diff --git a/.gitignore b/.gitignore index deec2cf..ce5967a 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ /pyroute2-0.3.4.tar.gz /pyroute2-0.3.14.tar.gz /pyroute2-0.3.15.tar.gz +/pyroute2-0.3.19.tar.gz diff --git a/python-pyroute2.spec b/python-pyroute2.spec index 91a682b..754a03a 100644 --- a/python-pyroute2.spec +++ b/python-pyroute2.spec @@ -1,15 +1,16 @@ -%global pkgname pyroute2 +%global srcname pyroute2 +%global sum Pure Python netlink library -Name: python-%{pkgname} -Version: 0.3.15 -Release: 2%{?dist} -Summary: Pure Python netlink library +Name: python-%{srcname} +Version: 0.3.19 +Release: 1%{?dist} +Summary: %{sum} License: GPLv2+ Group: Development/Languages -URL: https://github.com/svinota/%{pkgname} +URL: https://github.com/svinota/%{srcname} BuildArch: noarch -BuildRequires: python2-devel +BuildRequires: python2-devel python3-devel Source: https://pypi.python.org/packages/source/p/pyroute2/pyroute2-%{version}.tar.gz %description @@ -17,23 +18,52 @@ PyRoute2 provides several levels of API to work with Netlink protocols, such as Generic Netlink, RTNL, TaskStats, NFNetlink, IPQ. +%package -n python2-%{srcname} +Summary: %{sum} +%{?python_provide:%python_provide python2-%{srcname}} + +%description -n python2-%{srcname} +PyRoute2 provides several levels of API to work with Netlink +protocols, such as Generic Netlink, RTNL, TaskStats, NFNetlink, +IPQ. + +%package -n python3-%{srcname} +Summary: %{sum} +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +PyRoute2 provides several levels of API to work with Netlink +protocols, such as Generic Netlink, RTNL, TaskStats, NFNetlink, +IPQ. + + %prep -%setup -q -n %{pkgname}-%{version} +%setup -q -n %{srcname}-%{version} %build -# nothing to build +%py2_build +%py3_build %install -%{__python} setup.py install --root $RPM_BUILD_ROOT +%py2_install +%py3_install + +%files -n python2-%{srcname} +%doc README* LICENSE.GPL.v2 LICENSE.Apache.v2 +%{python2_sitelib}/%{srcname}* -%files +%files -n python3-%{srcname} %doc README* LICENSE.GPL.v2 LICENSE.Apache.v2 -%{python_sitelib}/%{pkgname}* +%{python3_sitelib}/%{srcname}* %changelog +* Tue Apr 5 2016 Peter V. Saveliev 0.3.19-1 +- separate Python2 and Python3 packages +- MPLS lwtunnel support + * Thu Feb 04 2016 Fedora Release Engineering - 0.3.15-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Nov 20 2015 Peter V. Saveliev 0.3.15-1 - critical NetNS fd leak fix diff --git a/sources b/sources index b9015f1..16061e1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -1795542586534a681de67384735b39ab pyroute2-0.3.15.tar.gz +86c36cf190e077d325da0097638aa643 pyroute2-0.3.19.tar.gz