Matt Domsch 25fd866
Name: py-radix
Matt Domsch 25fd866
Summary: Radix tree data structure for Python
b1d512c
Version: 0.9.3
7b7b021
Release: 4%{?dist}
7b7b021
7b7b021
URL: https://github.com/mjschultz/py-radix
b1d512c
Source0: https://github.com/mjschultz/py-radix/archive/v%{version}.tar.gz
7b7b021
Matt Domsch 25fd866
License: BSD with advertising
Matt Domsch 25fd866
Group: Development/Libraries
7b7b021
7b7b021
%description
7b7b021
py-radix is an implementation of a radix tree for Python, which
7b7b021
supports storage and lookups of IPv4 and IPv6 networks.
7b7b021
7b7b021
The radix tree (a.k.a Patricia tree) is the data structure most
7b7b021
commonly used for routing table lookups. It efficiently stores
7b7b021
network prefixes of varying lengths and allows fast lookups of
7b7b021
containing networks. py-radix's implementation is built solely
7b7b021
for networks (the data structure itself is more general).
7b7b021
7b7b021
%package -n python2-%{name}
7b7b021
Summary: Radix tree data structure for Python
7b7b021
7b7b021
BuildRequires: python2-devel
7b7b021
BuildRequires: python2-setuptools
b1d512c
# Needed for tests
7b7b021
BuildRequires: python2-coverage
7b7b021
BuildRequires: python2-nose
b1d512c
7b7b021
%{?python_provide:%python_provide python2-%{name}}
Matt Domsch 25fd866
7b7b021
Provides: py-radix = %{version}-%{release}
7b7b021
Obsoletes: py-radix <= 0.9.3-3
Matt Domsch 25fd866
7b7b021
%description -n python2-%{name}
7b7b021
py-radix is an implementation of a radix tree for Python, which
7b7b021
supports storage and lookups of IPv4 and IPv6 networks.
Matt Domsch 25fd866
7b7b021
The radix tree (a.k.a Patricia tree) is the data structure most
7b7b021
commonly used for routing table lookups. It efficiently stores
7b7b021
network prefixes of varying lengths and allows fast lookups of
7b7b021
containing networks. py-radix's implementation is built solely
7b7b021
for networks (the data structure itself is more general).
Matt Domsch 25fd866
7b7b021
%package -n python3-%{name}
7b7b021
Summary: Radix tree data structure for Python
7b7b021
7b7b021
BuildRequires: python3-devel
7b7b021
BuildRequires: python3-setuptools
7b7b021
# Needed for tests
7b7b021
BuildRequires: python3-coverage
7b7b021
BuildRequires: python3-nose
7b7b021
7b7b021
%{?python_provide:%python_provide python3-%{name}}
7b7b021
7b7b021
%description -n python3-%{name}
7b7b021
py-radix is an implementation of a radix tree for Python, which
7b7b021
supports storage and lookups of IPv4 and IPv6 networks.
7b7b021
7b7b021
The radix tree (a.k.a Patricia tree) is the data structure most
7b7b021
commonly used for routing table lookups. It efficiently stores
7b7b021
network prefixes of varying lengths and allows fast lookups of
7b7b021
containing networks. py-radix's implementation is built solely
7b7b021
for networks (the data structure itself is more general).
Matt Domsch 25fd866
Matt Domsch 25fd866
%prep
7b7b021
%setup -q
Matt Domsch 25fd866
rm -f inet_ntop.c strlcpy.c
Matt Domsch 25fd866
touch inet_ntop.c strlcpy.c
Matt Domsch 25fd866
Matt Domsch 25fd866
%build
7b7b021
%py2_build
7b7b021
%py3_build
Matt Domsch 25fd866
Matt Domsch 25fd866
%install
7b7b021
%py2_install
7b7b021
%py3_install
Matt Domsch 25fd866
b1d512c
%check
b1d512c
%{__python2} setup.py test
7b7b021
%{__python3} setup.py test
b1d512c
7b7b021
%files -n python2-%{name}
7b7b021
%doc README.rst
7b7b021
%license LICENSE
7b7b021
%{python2_sitearch}/py_radix*
7b7b021
%{python2_sitearch}/radix*
7b7b021
7b7b021
%files -n python3-%{name}
7b7b021
%doc README.rst
7b7b021
%license LICENSE
7b7b021
%{python3_sitearch}/py_radix*
7b7b021
%{python3_sitearch}/radix*
Matt Domsch 25fd866
Matt Domsch 25fd866
%changelog
7b7b021
* Thu Jul 21 2016 Charalampos Stratakis <cstratak@redhat.com> 0.9.3-4
7b7b021
- Provide python 3 subpackage
7b7b021
- Renamed python 2 (sub)package
7b7b021
- Modernize SPEC
7b7b021
26a87d8
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3-3
26a87d8
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
26a87d8
7787b4b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.3-2
7787b4b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7787b4b
b1d512c
* Tue Oct 20 2015 Kevin Fenzi <kevin@scrye.com> 0.9.3-1
b1d512c
- Update to 0.9.3
b1d512c
- Enable tests in check
b1d512c
- Point to new upstream site/repo
0fb2551
41c217a
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-14
41c217a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
41c217a
f2b18b0
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-13
f2b18b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f2b18b0
b3da687
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-12
b3da687
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b3da687
bc919a6
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-11
bc919a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
bc919a6
0aac7d0
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-10
0aac7d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0aac7d0
d8139ec
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-9
d8139ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d8139ec
9edbd49
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-8
9edbd49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9edbd49
6909901
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.5-7
6909901
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
6909901
Matt Domsch c27a6dd
* Fri Oct 23 2009 Matt Domsch <mdomsch@fedoraproject.org> - 0.5-6
Matt Domsch c27a6dd
- Add patch by Alexander Sabourenkov to fix memory leak (Debian #512830)
Matt Domsch c27a6dd
Matt Domsch 25fd866
* Mon Oct 12 2009 Matt Domsch <mdomsch@fedoraproject.org> - 0.5-5
Matt Domsch 25fd866
- remove inet_ntop.c and strlcpy.c for safety.  They're only used on
Matt Domsch 25fd866
  Windows.
Matt Domsch 25fd866
Matt Domsch 25fd866
* Thu Oct  1 2009 Matt Domsch <mdomsch@fedoraproject.org> - 0.5-4
Matt Domsch 25fd866
- more package cleanups during review
Matt Domsch 25fd866
  - quiet setup, clean buildroot at install, drop python Requires,
Matt Domsch 25fd866
    add dist tag.
Matt Domsch 25fd866
Matt Domsch 25fd866
* Thu Oct  1 2009 Matt Domsch <mdomsch@fedoraproject.org> - 0.5-2
Matt Domsch 25fd866
- update for Fedora packaging guidelines
Matt Domsch 25fd866
Matt Domsch 25fd866
* Wed Jun 28 2006 Damien Miller <djm@mindrot.org>
Matt Domsch 25fd866
- Build RPM