Search
j0ke.net Open Build Service
>
Projects
>
server:routing
>
python-exabgp
> exabgp.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File exabgp.spec of Package python-exabgp (Revision 4)
Currently displaying revision
4
,
show latest
# # spec file for package exabgp # # Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %if 0%{?suse_version} > 1210 || 0%{?rhel_version} > 6 || 0%{?centos_version} > 6 || 0%{?fedora_version} >= 20 || 0%{?el7}%{?fc20}%{?fc21}%{?fc22} %bcond_without systemd %else %bcond_with systemd %endif %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: exabgp Version: 3.4.17 Release: 0 License: BSD-3-Clause Summary: The BGP swiss army knife of networking Url: https://github.com/Exa-Networks/exabgp Group: Productivity/Networking/Routing Source: https://github.com/Exa-Networks/exabgp/archive/%{version}.tar.gz Source2: exabgp-suse.init BuildRequires: python-devel BuildRequires: python-ipaddr BuildRequires: python-setuptools Requires: python-ipaddr Requires: python-setuptools Requires: python PreReq: python-%{name} %if %{with systemd} BuildRequires: pkgconfig(systemd) %{?systemd_requires} %else %if 0%{?suse_version} Requires(pre): %insserv_prereq %endif %endif %if 0%{?suse_version} Requires(pre): %fillup_prereq %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build #BuildArch: noarch %description 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. %package -n python-%{name} Group: Development/Libraries/Python # Summary: The BGP swiss army knife of networking %description -n python-%{name} 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 %build python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} mv %{buildroot}%{_bindir} %{buildroot}%{_sbindir} install -d %{buildroot}%{_sysconfdir}/ mv %{buildroot}%{_prefix}/etc/* %{buildroot}%{_sysconfdir}/ chmod -R go= %{buildroot}%{_sysconfdir}/%{name} install -D -m 0644 doc/man/exabgp.1 %{buildroot}%{_mandir}/man1/exabgp.1 install -D -m 0644 doc/man/exabgp.conf.5 %{buildroot}%{_mandir}/man5/exabgp.conf.5 %if %{with systemd} install -D -m 0644 etc/systemd/exabgp.service %{buildroot}%{_unitdir}/exabgp.service ln -s service %{buildroot}%{_sbindir}/rc%{name} %else %if 0%{?suse_version} install -D -m755 %{S:2} %{buildroot}%{_sysconfdir}/init.d/exabgp %endif %endif %if %{with systemd} %pre %service_add_pre %{name}.service %preun %service_del_preun %{name}.service %post %service_add_post %{name}.service %postun %service_del_postun %{name}.service %endif %files %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/%{name} %if %{with systemd} %{_sbindir}/rc%{name} %{_unitdir}/exabgp.service %else %if 0%{?suse_version} %attr(755, root, root) %{_sysconfdir}/init.d/exabgp %endif %endif %{_mandir}/man1/exabgp.1* %{_mandir}/man5/exabgp.conf.5* %doc CHANGELOG COPYRIGHT PEP8 PYPI.rst README.md %files -n python-%{name} %defattr(-,root,root) %{_sbindir}/%{name} %{python_sitelib}/%{name}-%{version}*/ %{python_sitelib}/%{name}/