Search
j0ke.net Open Build Service
>
Projects
>
server:routing
>
exabgp
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
[-]
[+]
Changed
python-exabgp.spec
@@ -2,7 +2,7 @@ %{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} Name: python-exabgp -Version: 3.4.11 +Version: 3.4.12 Release: 1%{?dist} Summary: The BGP swiss army knife of networking (Library) @@ -22,8 +22,14 @@ %package -n exabgp Summary: The BGP swiss army knife of networking Group: Applications/Internet +%if 0%{?suse_version} >= 1310 || 0%{?sles_version} >= 12 || 0%{?rhel} >= 7 BuildRequires: systemd-units -Requires: systemd, exabgp-libs == %{version} +%endif +%if 0%{?suse_version} >= 1310 || 0%{?sles_version} >= 12 || 0%{?rhel} >= 7 +Requires: systemd +%else +Requires: exabgp-libs == %{version} +%endif %description -n exabgp ExaBGP allows engineers to control their network from commodity servers. Think of it as Software Defined Networking using BGP by transforming BGP messages into friendly plain text or JSON. @@ -47,8 +53,10 @@ install -d -m 744 ${RPM_BUILD_ROOT}/%{_sysconfdir}/ mv ${RPM_BUILD_ROOT}/usr/etc/exabgp ${RPM_BUILD_ROOT}/%{_sysconfdir}/ +%if 0%{?suse_version} >= 1310 || 0%{?sles_version} >= 12 || 0%{?rhel} >= 7 install -d %{buildroot}/%{_unitdir} install etc/systemd/exabgp.service %{buildroot}/%{_unitdir}/ +%endif install -d %{buildroot}/%{_mandir}/man1 install doc/man/exabgp.1 %{buildroot}/%{_mandir}/man1 @@ -58,13 +66,19 @@ %post -n exabgp +%if 0%{?suse_version} >= 1310 || 0%{?sles_version} >= 12 || 0%{?rhel} >= 7 %systemd_post exabgp.service +%endif %preun -n exabgp +%if 0%{?suse_version} >= 1310 || 0%{?sles_version} >= 12 || 0%{?rhel} >= 7 %systemd_preun exabgp.service +%endif %postun -n exabgp +%if 0%{?suse_version} >= 1310 || 0%{?sles_version} >= 12 || 0%{?rhel} >= 7 %systemd_postun_with_restart exabgp.service +%endif %files %defattr(-,root,root,-) @@ -77,7 +91,9 @@ %attr(755, root, root) %{_sbindir}/exabgp-healthcheck %dir %{_sysconfdir}/exabgp %attr(744, root, root) %{_sysconfdir}/exabgp/* +%if 0%{?suse_version} >= 1310 || 0%{?sles_version} >= 12 || 0%{?rhel} >= 7 %{_unitdir}/exabgp.service +%endif %doc COPYRIGHT CHANGELOG README.md %{_mandir}/man1/* %{_mandir}/man5/*
Added
exabgp-3.4.12.tar.gz
^