-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1203 from v-kamerdinerov/spec-file-refactor
- Loading branch information
Showing
2 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,7 +66,7 @@ ln -s %{_sysconfdir}/exabgp/examples/api-api.conf %{buildroot}/%{_sysconfdir}/ex | |
%post -n exabgp | ||
%systemd_post exabgp.service | ||
# Default env | ||
[ -f %{_sysconfdir}/exabgp/exabgp.env ] || %{_sbindir}/exabgp > %{_sysconfdir}/exabgp/exabgp.env | ||
[ -f %{_sysconfdir}/exabgp/exabgp.env ] || %{_sbindir}/exabgp --fi > %{_sysconfdir}/exabgp/exabgp.env | ||
|
||
%preun -n exabgp | ||
%systemd_preun exabgp.service | ||
|
@@ -77,22 +77,23 @@ ln -s %{_sysconfdir}/exabgp/examples/api-api.conf %{buildroot}/%{_sysconfdir}/ex | |
%files | ||
%defattr(-,root,root,-) | ||
%{python3_sitelib}/* | ||
%doc COPYRIGHT CHANGELOG README.md | ||
%doc CHANGELOG.rst README.md | ||
|
||
%files -n exabgp | ||
%defattr(-,root,root,-) | ||
%attr(755, root, root) %{_sbindir}/exabgp | ||
%attr(755, root, root) %{_sbindir}/exabgpcli | ||
%attr(755, root, root) %{_sbindir}/exabgp-cli | ||
%attr(755, root, root) %{_sbindir}/exabgp-healthcheck | ||
%dir %{_sysconfdir}/exabgp | ||
%{_sysconfdir}/exabgp/exabgp.conf | ||
%dir %{_sysconfdir}/exabgp/examples | ||
%attr(744, root, root) %{_prefix}/share/exabgp/* | ||
%attr(744, root, root) %{_prefix}/etc/exabgp/* | ||
%attr(744, root, root) %{_sysconfdir}/exabgp/examples/* | ||
%{_unitdir}/exabgp.service | ||
%{_unitdir}/[email protected] | ||
%attr(644, root, root) %{_unitdir}/* | ||
%doc COPYRIGHT CHANGELOG README.md | ||
%doc CHANGELOG.rst README.md | ||
%{_mandir}/man1/* | ||
%{_mandir}/man5/* | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,22 +85,23 @@ ln -s %{_sysconfdir}/exabgp/examples/api-api.conf %{buildroot}/%{_sysconfdir}/ex | |
%files | ||
%defattr(-,root,root,-) | ||
%{python3_sitelib}/* | ||
%doc COPYRIGHT CHANGELOG README.md | ||
%doc CHANGELOG.rst README.md | ||
|
||
%files -n exabgp | ||
%defattr(-,root,root,-) | ||
%attr(755, root, root) %{_sbindir}/exabgp | ||
%attr(755, root, root) %{_sbindir}/exabgpcli | ||
%attr(755, root, root) %{_sbindir}/exabgp-cli | ||
%attr(755, root, root) %{_sbindir}/exabgp-healthcheck | ||
%dir %{_sysconfdir}/exabgp | ||
%{_sysconfdir}/exabgp/exabgp.conf | ||
%dir %{_sysconfdir}/exabgp/examples | ||
%attr(744, root, root) %{_prefix}/share/exabgp/* | ||
%attr(744, root, root) %{_prefix}/etc/exabgp/* | ||
%attr(744, root, root) %{_sysconfdir}/exabgp/examples/* | ||
%{_unitdir}/exabgp.service | ||
%{_unitdir}/[email protected] | ||
%attr(644, root, root) %{_unitdir}/* | ||
%doc COPYRIGHT CHANGELOG README.md | ||
%doc CHANGELOG.rst README.md | ||
%{_mandir}/man1/* | ||
%{_mandir}/man5/* | ||
|
||
|