rdobuilder 57fa08
%global srcname pyroute2
rdobuilder 57fa08
rdobuilder 57fa08
%{!?python3_pkgversion:%global python3_pkgversion 3}
rdobuilder 57fa08
rdobuilder 57fa08
# FIXME(hguemar): Fix for EL7, in summary
rdobuilder 57fa08
# Fedora => python3 only
rdobuilder 57fa08
# EL7 => python2 only
rdobuilder 57fa08
# EL>7 => python3 only
rdobuilder 57fa08
rdobuilder 57fa08
Name: python-%{srcname}
rdobuilder ff8c5d
Version: 0.6.6
rdobuilder 949e4f
Release: 2%{?dist}
rdobuilder 57fa08
Summary: Pure Python netlink library
rdobuilder 57fa08
License: GPLv2+
rdobuilder 57fa08
URL: https://github.com/svinota/%{srcname}
rdobuilder 57fa08
rdobuilder 57fa08
BuildArch: noarch
rdobuilder ff8c5d
Source0: https://pypi.io/packages/source/p/pyroute2/pyroute2-%{version}.tar.gz
rdobuilder ff8c5d
Source1: https://pypi.io/packages/source/p/pyroute2.core/pyroute2.core-%{version}.tar.gz
rdobuilder ff8c5d
Source2: https://pypi.io/packages/source/p/pyroute2.nslink/pyroute2.nslink-%{version}.tar.gz
rdobuilder ff8c5d
Source3: https://pypi.io/packages/source/p/pyroute2.nftables/pyroute2.nftables-%{version}.tar.gz
rdobuilder ff8c5d
Source4: https://pypi.io/packages/source/p/pyroute2.ethtool/pyroute2.ethtool-%{version}.tar.gz
rdobuilder ff8c5d
Source5: https://pypi.io/packages/source/p/pyroute2.ipset/pyroute2.ipset-%{version}.tar.gz
rdobuilder ff8c5d
Source6: https://pypi.io/packages/source/p/pyroute2.ipdb/pyroute2.ipdb-%{version}.tar.gz
rdobuilder ff8c5d
Source7: https://pypi.io/packages/source/p/pyroute2.ndb/pyroute2.ndb-%{version}.tar.gz
rdobuilder ff8c5d
rdobuilder 949e4f
# Required for https://bugs.launchpad.net/tripleo/+bug/2023764
rdobuilder 949e4f
Patch: 0001-iproute-linux-try-to-improve-flags-when-sending-del-.patch
rdobuilder 57fa08
rdobuilder 57fa08
%description
rdobuilder 57fa08
PyRoute2 provides several levels of API to work with Netlink
rdobuilder 57fa08
protocols, such as Generic Netlink, RTNL, TaskStats, NFNetlink,
rdobuilder 57fa08
IPQ.
rdobuilder 57fa08
rdobuilder 57fa08
rdobuilder 57fa08
%package -n python%{python3_pkgversion}-%{srcname}
rdobuilder 57fa08
Summary: %{summary}
rdobuilder 57fa08
BuildRequires: python%{python3_pkgversion}-devel
rdobuilder 57fa08
BuildRequires: python%{python3_pkgversion}-setuptools
rdobuilder ff8c5d
%if 0%{?rhel} && 0%{?rhel} < 9
rdobuilder ff8c5d
Requires:       python3-importlib-metadata
rdobuilder ff8c5d
%endif
rdobuilder 57fa08
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
rdobuilder 57fa08
rdobuilder 57fa08
%description -n python%{python3_pkgversion}-%{srcname}
rdobuilder 57fa08
PyRoute2 provides several levels of API to work with Netlink
rdobuilder 57fa08
protocols, such as Generic Netlink, RTNL, TaskStats, NFNetlink,
rdobuilder 57fa08
IPQ.
rdobuilder 57fa08
rdobuilder 57fa08
rdobuilder 57fa08
%prep
rdobuilder 57fa08
%setup -q -n %{srcname}-%{version}
rdobuilder 57fa08
cd ..
rdobuilder 57fa08
tar xzvf %SOURCE1
rdobuilder 57fa08
tar xzvf %SOURCE2
rdobuilder 57fa08
tar xzvf %SOURCE3
rdobuilder 57fa08
tar xzvf %SOURCE4
rdobuilder 57fa08
tar xzvf %SOURCE5
rdobuilder 57fa08
tar xzvf %SOURCE6
rdobuilder 57fa08
tar xzvf %SOURCE7
rdobuilder 949e4f
cd pyroute2.core-%{version}
rdobuilder 949e4f
%patch -p2
rdobuilder 949e4f
cd ..
rdobuilder 57fa08
rdobuilder 57fa08
%build
rdobuilder 57fa08
%py3_build
rdobuilder 57fa08
cd ../pyroute2.core-%{version}
rdobuilder 57fa08
%py3_build
rdobuilder 57fa08
cd ../pyroute2.nslink-%{version}
rdobuilder 57fa08
%py3_build
rdobuilder 57fa08
cd ../pyroute2.nftables-%{version}
rdobuilder 57fa08
%py3_build
rdobuilder 57fa08
cd ../pyroute2.ethtool-%{version}
rdobuilder 57fa08
%py3_build
rdobuilder 57fa08
cd ../pyroute2.ipset-%{version}
rdobuilder 57fa08
%py3_build
rdobuilder 57fa08
cd ../pyroute2.ipdb-%{version}
rdobuilder 57fa08
%py3_build
rdobuilder 57fa08
cd ../pyroute2.ndb-%{version}
rdobuilder 57fa08
%py3_build
rdobuilder 57fa08
rdobuilder 57fa08
%install
rdobuilder 57fa08
%py3_install
rdobuilder 57fa08
cd ../pyroute2.core-%{version}
rdobuilder 57fa08
%py3_install
rdobuilder 57fa08
cd ../pyroute2.nslink-%{version}
rdobuilder 57fa08
%py3_install
rdobuilder 57fa08
cd ../pyroute2.nftables-%{version}
rdobuilder 57fa08
%py3_install
rdobuilder 57fa08
cd ../pyroute2.ethtool-%{version}
rdobuilder 57fa08
%py3_install
rdobuilder 57fa08
cd ../pyroute2.ipset-%{version}
rdobuilder 57fa08
%py3_install
rdobuilder 57fa08
cd ../pyroute2.ipdb-%{version}
rdobuilder 57fa08
%py3_install
rdobuilder 57fa08
cd ../pyroute2.ndb-%{version}
rdobuilder 57fa08
%py3_install
rdobuilder 57fa08
rdobuilder 57fa08
%files -n python%{python3_pkgversion}-%{srcname}
rdobuilder 57fa08
%{_bindir}/ss2
rdobuilder 57fa08
%{_bindir}/%{srcname}-cli
rdobuilder 57fa08
%doc README* LICENSE.GPL.v2 LICENSE.Apache.v2
rdobuilder 57fa08
%{python3_sitelib}/%{srcname}*
rdobuilder 57fa08
%{python3_sitelib}/pr2modules
rdobuilder 57fa08
rdobuilder 57fa08
%changelog
rdobuilder 949e4f
* Thu Jun 15 2023 Alfredo Moralejo <amoralej@redhat.com> - 0.6.6-2
rdobuilder 949e4f
- Backport https://github.com/svinota/pyroute2/commit/1eb08312 required for kernel-5.14.0-324
rdobuilder 949e4f
- Resolves: https://bugs.launchpad.net/tripleo/+bug/2023764
rdobuilder 949e4f
rdobuilder ff8c5d
* Tue Jun 07 2022 Alfredo Moralejo <amoralej@redhat.com> - 0.6.6-1
rdobuilder ff8c5d
- Update to 0.6.6
rdobuilder 6f2de1
rdobuilder ff8c5d
* Tue Jan 18 2022 Alfredo Moralejo <amoralej@redhat.com> - 0.6.5-2
rdobuilder ff8c5d
- Added requirement on imporlib-metadata for CS8
rdobuilder 57fa08
rdobuilder ff8c5d
* Fri Jan 14 2022 Alfredo Moralejo <amoralej@redhat.com> - 0.6.5-1
rdobuilder ff8c5d
- Update to 0.6.5
rdobuilder c64ebf
rdobuilder 57fa08
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.14-3
rdobuilder 57fa08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
rdobuilder 57fa08
rdobuilder 57fa08
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.5.14-2
rdobuilder 57fa08
- Rebuilt for Python 3.10
rdobuilder 57fa08
rdobuilder 57fa08
* Fri Feb 19 2021 Yatin Karel <ykarel@redhat.com> - 0.5.14-1
rdobuilder 57fa08
- Update to 0.5.14
rdobuilder 57fa08
rdobuilder 57fa08
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.6-5
rdobuilder 57fa08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
rdobuilder 57fa08
rdobuilder 57fa08
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.6-4
rdobuilder 57fa08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
rdobuilder 57fa08
rdobuilder 57fa08
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 0.5.6-3
rdobuilder 57fa08
- Rebuilt for Python 3.9
rdobuilder 57fa08
rdobuilder 57fa08
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.6-2
rdobuilder 57fa08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
rdobuilder 57fa08
rdobuilder 57fa08
* Fri Oct 11 2019 Yatin Karel <ykarel@redhat.com> - 0.5.6-1
rdobuilder 57fa08
- Update to 0.5.6
rdobuilder 57fa08
rdobuilder 57fa08
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.3-7
rdobuilder 57fa08
- Rebuilt for Python 3.8.0rc1 (#1748018)
rdobuilder 57fa08
rdobuilder 57fa08
* Mon Aug 26 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.3-6
rdobuilder 57fa08
- Subpackage python2-pyroute2 has been removed
rdobuilder 57fa08
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
rdobuilder 57fa08
rdobuilder 57fa08
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.3-5
rdobuilder 57fa08
- Rebuilt for Python 3.8
rdobuilder 57fa08
rdobuilder 57fa08
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-4
rdobuilder 57fa08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
rdobuilder 57fa08
rdobuilder 57fa08
* Wed Feb 06 2019 Alfredo Moralejo <amoralej@redhat.com> - 0.5.3-3
rdobuilder 57fa08
- Fix build in CentOS7.
rdobuilder 57fa08
rdobuilder 57fa08
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-2
rdobuilder 57fa08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
rdobuilder 57fa08
rdobuilder 57fa08
* Sun Oct 07 2018 Slawek Kaplonski <skaplons@redhat.com> 0.5.3-1
rdobuilder 57fa08
- Update to 0.5.3
rdobuilder 57fa08
rdobuilder 57fa08
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-3
rdobuilder 57fa08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
rdobuilder 57fa08
rdobuilder 57fa08
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 0.5.2-2
rdobuilder 57fa08
- Rebuilt for Python 3.7
rdobuilder 57fa08
rdobuilder 57fa08
* Thu Jun 21 2018 Haïkel Guémar <hguemar@fedoraproject.org> - 0.5.2-1
rdobuilder 57fa08
- Upstream 0.5.2 (includes previous deprecated async arg patch)
rdobuilder 57fa08
rdobuilder 57fa08
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 0.4.21-3
rdobuilder 57fa08
- Rebuilt for Python 3.7
rdobuilder 57fa08
rdobuilder 57fa08
* Fri Mar 16 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.4.21-2
rdobuilder 57fa08
- Conditionalize the Python 2 subpackage
rdobuilder 57fa08
- Don't build the Python 2 subpackage on EL > 7
rdobuilder 57fa08
rdobuilder 57fa08
* Fri Feb 9 2018 amoralej <amoralej@redhat.com> - 0.4.21-1
rdobuilder 57fa08
- Upstream 0.4.21
rdobuilder 57fa08
rdobuilder 57fa08
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.19-2
rdobuilder 57fa08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
rdobuilder 57fa08
rdobuilder 57fa08
* Tue Aug 29 2017 hguemar <hguemar@benihime.seireitei> - 0.4.19-1
rdobuilder 57fa08
- Upstream 0.4.19
rdobuilder 57fa08
rdobuilder 57fa08
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.15-2
rdobuilder 57fa08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
rdobuilder 57fa08
rdobuilder 57fa08
* Thu Jun  1 2017 Haïkel Guémar <hguemar@fedoraproject.org> - 0.4.15-1
rdobuilder 57fa08
- Upstream 0.4.15
rdobuilder 57fa08
- req: #365 -- full and short nla notation fixed, critical
rdobuilder 57fa08
- iproute: #364 -- new method, brport()
rdobuilder 57fa08
- ipdb: -- support bridge port options
rdobuilder 57fa08
rdobuilder 57fa08
* Tue Mar  7 2017 Antoni S. Puimedon <antonisp@celebdor.com> 0.4.13-1
rdobuilder 57fa08
- upgrade to 0.4.13
rdobuilder 57fa08
- ipset hash:mac support
rdobuilder 57fa08
- ipset: hash:mac support
rdobuilder 57fa08
- ipset: list:set support
rdobuilder 57fa08
- ifinfmsg: allow absolute/relative paths in the net_ns_fd NLA
rdobuilder 57fa08
- ipdb: #322 -- IPv6 updates on interfaces in DOWN state
rdobuilder 57fa08
- rtnl: #284 -- support vlan_flags
rdobuilder 57fa08
- ipdb: #307 -- fix IPv6 routes management
rdobuilder 57fa08
- ipdb: #311 -- vlan interfaces address loading
rdobuilder 57fa08
- iprsocket: #305 -- support NETLINK_LISTEN_ALL_NSID
rdobuilder 57fa08
rdobuilder 57fa08
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.10-3
rdobuilder 57fa08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
rdobuilder 57fa08
rdobuilder 57fa08
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.4.10-2
rdobuilder 57fa08
- Rebuild for Python 3.6
rdobuilder 57fa08
rdobuilder 57fa08
* Fri Oct 14 2016 Peter V. Saveliev <peter@svinota.eu> 0.4.10-1
rdobuilder 57fa08
- devlink fd leak fix
rdobuilder 57fa08
rdobuilder 57fa08
* Thu Oct  6 2016 Peter V. Saveliev <peter@svinota.eu> 0.4.9-1
rdobuilder 57fa08
- critical fd leak fix
rdobuilder 57fa08
- initial NETLINK_SOCK_DIAG support
rdobuilder 57fa08
rdobuilder 57fa08
* Tue Sep 27 2016 Peter V. Saveliev <peter@svinota.eu> 0.4.8-1
rdobuilder 57fa08
- uplift to 0.4.x
rdobuilder 57fa08
rdobuilder 57fa08
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.19-2
rdobuilder 57fa08
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
rdobuilder 57fa08
rdobuilder 57fa08
* Tue Apr  5 2016 Peter V. Saveliev <peter@svinota.eu> 0.3.19-1
rdobuilder 57fa08
- separate Python2 and Python3 packages
rdobuilder 57fa08
- MPLS lwtunnel support
rdobuilder 57fa08
rdobuilder 57fa08
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.15-2
rdobuilder 57fa08
rdobuilder 57fa08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
rdobuilder 57fa08
* Fri Nov 20 2015 Peter V. Saveliev <peter@svinota.eu> 0.3.15-1
rdobuilder 57fa08
- critical NetNS fd leak fix
rdobuilder 57fa08
rdobuilder 57fa08
* Tue Sep  1 2015 Peter V. Saveliev <peter@svinota.eu> 0.3.14-1
rdobuilder 57fa08
- bogus rpm dates in the changelog are fixed
rdobuilder 57fa08
- both licenses added
rdobuilder 57fa08
rdobuilder 57fa08
* Tue Sep  1 2015 Peter V. Saveliev <peter@svinota.eu> 0.3.13-1
rdobuilder 57fa08
- BPF filters support
rdobuilder 57fa08
- MPLS routes support
rdobuilder 57fa08
- MIPS platform support
rdobuilder 57fa08
- multiple improvements on iwutil
rdobuilder 57fa08
- memory consumption improvements
rdobuilder 57fa08
rdobuilder 57fa08
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.4-2
rdobuilder 57fa08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
rdobuilder 57fa08
rdobuilder 57fa08
* Thu Jan  8 2015 Peter V. Saveliev <peter@svinota.eu> 0.3.4-1
rdobuilder 57fa08
- Network namespaces support
rdobuilder 57fa08
- Veth, tuntap
rdobuilder 57fa08
- Route metrics
rdobuilder 57fa08
rdobuilder 57fa08
* Fri Dec  5 2014 Peter V. Saveliev <peter@svinota.eu> 0.3.3-1
rdobuilder 57fa08
- Fix-ups, 0.3.3
rdobuilder 57fa08
- Bugfixes for Python 2.6
rdobuilder 57fa08
rdobuilder 57fa08
* Tue Nov 18 2014 Peter V. Saveliev <peter@svinota.eu> 0.3.2-1
rdobuilder 57fa08
- Update to 0.3.2
rdobuilder 57fa08
rdobuilder 57fa08
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-2
rdobuilder 57fa08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
rdobuilder 57fa08
rdobuilder 57fa08
* Tue Mar 18 2014 Jiri Pirko <jpirko@redhat.com> - 0.2.7-1
rdobuilder 57fa08
- Update to 0.2.7
rdobuilder 57fa08
rdobuilder 57fa08
* Thu Aug 22 2013 Peter V. Saveliev <peet@redhat.com> 0.1.11-1
rdobuilder 57fa08
- IPRSocket threadless objects
rdobuilder 57fa08
- rtnl: tc filters improvements
rdobuilder 57fa08
rdobuilder 57fa08
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.10-2
rdobuilder 57fa08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
rdobuilder 57fa08
rdobuilder 57fa08
* Wed Jun 26 2013 Peter V. Saveliev <peet@redhat.com> 0.1.10-1
rdobuilder 57fa08
- fd and threads leaks fixed
rdobuilder 57fa08
- shutdown sequence fixed (release() calls)
rdobuilder 57fa08
- ipdb: interface removal
rdobuilder 57fa08
- ipdb: fail on transaction sync timeout
rdobuilder 57fa08
rdobuilder 57fa08
* Tue Jun 11 2013 Peter V. Saveliev <peet@redhat.com> 0.1.9-2
rdobuilder 57fa08
- fedpkg import fix
rdobuilder 57fa08
rdobuilder 57fa08
* Tue Jun 11 2013 Peter V. Saveliev <peet@redhat.com> 0.1.9-1
rdobuilder 57fa08
- several races fixed
rdobuilder 57fa08
- Python 2.6 compatibility issues fixed
rdobuilder 57fa08
rdobuilder 57fa08
* Wed Jun 05 2013 Peter V. Saveliev <peet@redhat.com> 0.1.8-1
rdobuilder 57fa08
- initial RH build
rdobuilder 57fa08