Search
j0ke.net Open Build Service
>
Projects
>
server:routing
>
exabgp
> python-exabgp.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File python-exabgp.spec of Package exabgp (Revision 8)
Currently displaying revision
8
,
show latest
%{!?__python2: %global __python2 /usr/bin/python2} %{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} Name: python-exabgp Version: 3.4.12 Release: 1%{?dist} Summary: The BGP swiss army knife of networking (Library) Group: Development/Libraries License: BSD URL: http://pypi.python.org/pypi/exabgp/ Source0: https://github.com/Exa-Networks/exabgp/archive/%{version}/exabgp-%{version}.tar.gz Provides: exabgp-libs BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: python-setuptools Requires: python2 >= 2.6, python-ipaddr %description ExaBGP python module %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 %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. It comes with an healthcheck application to help you monitor your daemons and withdraw dead ones from the network during failures/maintenances. A full lab explaining how to use it is available here. Find what other users have done with it. Current documented use cases include DDOS mitigation, network visualisation, anycast, service high availability. %prep %setup -q -n exabgp-%{version} %build %{__python2} setup.py build %install %{__python2} setup.py install -O1 --root ${RPM_BUILD_ROOT} --prefix %{_prefix} # fix file locations mv ${RPM_BUILD_ROOT}%{_bindir} ${RPM_BUILD_ROOT}%{_sbindir} install -d %{buildroot}/%{_bindir} for prg in exabgpcli exanetlink ; do cp bin/${prg} ${RPM_BUILD_ROOT}/%{_bindir}/${prg} done cp bin/healthcheck ${RPM_BUILD_ROOT}/%{_bindir}/exabgp-healthcheck 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 install -d %{buildroot}/%{_mandir}/man5 install doc/man/exabgp.conf.5 %{buildroot}/%{_mandir}/man5 %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,-) %{python2_sitelib}/* %doc COPYRIGHT CHANGELOG README.md %files -n exabgp %defattr(-,root,root,-) %attr(755, root, root) %{_sbindir}/exabgp %attr(755, root, root) %{_bindir}/exabgp-healthcheck %attr(755, root, root) %{_bindir}/exanetlink %attr(755, root, root) %{_bindir}/exabgpcli %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/* %changelog * Tue Jun 09 2015 Arun Babu Neelicattu <arun.neelicattu@gmail.com> - 3.4.11-1 - Initial release