New upstream release 0.7.20 (rhbz#1848782)
This commit is contained in:
parent
c78afa4abc
commit
14224c8fca
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@ netaddr-0.7.4.tar.gz
|
|||||||
/netaddr-0.7.17.tar.gz
|
/netaddr-0.7.17.tar.gz
|
||||||
/netaddr-0.7.18.tar.gz
|
/netaddr-0.7.18.tar.gz
|
||||||
/netaddr-0.7.19.tar.gz
|
/netaddr-0.7.19.tar.gz
|
||||||
|
/netaddr-0.7.20.tar.gz
|
||||||
|
@ -7,8 +7,8 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: python-netaddr
|
Name: python-netaddr
|
||||||
Version: 0.7.19
|
Version: 0.7.20
|
||||||
Release: 22%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: A pure Python network address representation and manipulation library
|
Summary: A pure Python network address representation and manipulation library
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -25,11 +25,6 @@ BuildRequires: python2-devel
|
|||||||
BuildRequires: python2-setuptools
|
BuildRequires: python2-setuptools
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Patch0: 0001-fixed-broken-tests-in-issue-149-python-3-regression-.patch
|
|
||||||
Patch1: 0001-Do-not-override-executable-path.patch
|
|
||||||
# From https://github.com/drkjam/netaddr/pull/167
|
|
||||||
Patch2: 0001-PEP-479-return-instead-of-raise-StopIteration.patch
|
|
||||||
|
|
||||||
%global desc A network address manipulation library for Python\
|
%global desc A network address manipulation library for Python\
|
||||||
\
|
\
|
||||||
Provides support for:\
|
Provides support for:\
|
||||||
@ -39,7 +34,8 @@ Layer 3 addresses\
|
|||||||
* IPv4 and IPv6 addresses, subnets, masks, prefixes\
|
* IPv4 and IPv6 addresses, subnets, masks, prefixes\
|
||||||
* iterating, slicing, sorting, summarizing and classifying IP networks\
|
* iterating, slicing, sorting, summarizing and classifying IP networks\
|
||||||
* dealing with various ranges formats (CIDR, arbitrary ranges and globs, nmap)\
|
* dealing with various ranges formats (CIDR, arbitrary ranges and globs, nmap)\
|
||||||
* set based operations (unions, intersections etc) over IP addresses and subnets\
|
* set based operations (unions, intersections etc) over IP addresses and\
|
||||||
|
subnets\
|
||||||
* parsing a large variety of different formats and notations\
|
* parsing a large variety of different formats and notations\
|
||||||
* looking up IANA IP block information\
|
* looking up IANA IP block information\
|
||||||
* generating DNS reverse lookups\
|
* generating DNS reverse lookups\
|
||||||
@ -80,19 +76,11 @@ BuildRequires: python3-pytest
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n netaddr-%{version}
|
%setup -q -n netaddr-%{version}
|
||||||
%patch0 -p1
|
|
||||||
%patch1 -p1
|
|
||||||
%patch2 -p1
|
|
||||||
|
|
||||||
# Make rpmlint happy, get rid of DOS line endings
|
|
||||||
sed -i 's/\r//' netaddr/*.py netaddr/ip/*.py netaddr/eui/*.idx
|
|
||||||
|
|
||||||
# Make rpmlint happy, rip out python shebang lines from most python
|
# Make rpmlint happy, rip out python shebang lines from most python
|
||||||
# modules
|
# modules
|
||||||
find netaddr -name "*.py" | \
|
find netaddr -name "*.py" | \
|
||||||
xargs sed -i -e '1 {/^#!\//d}'
|
xargs sed -i -e '1 {/^#!\//d}'
|
||||||
# Fix python executable
|
|
||||||
sed -i -e '1s,/usr/bin/env python,%{__python2} %{?py_shbang_opts},' netaddr/tools/netaddr
|
|
||||||
|
|
||||||
# Make rpmlint happy, fix permissions on documentation files
|
# Make rpmlint happy, fix permissions on documentation files
|
||||||
chmod 0644 README.md AUTHORS CHANGELOG COPYRIGHT LICENSE PKG-INFO
|
chmod 0644 README.md AUTHORS CHANGELOG COPYRIGHT LICENSE PKG-INFO
|
||||||
@ -109,8 +97,10 @@ chmod 0644 README.md AUTHORS CHANGELOG COPYRIGHT LICENSE PKG-INFO
|
|||||||
#docs
|
#docs
|
||||||
pushd docs
|
pushd docs
|
||||||
PYTHONPATH='../' sphinx-build-%{python3_version} -b html -d build/doctrees source html
|
PYTHONPATH='../' sphinx-build-%{python3_version} -b html -d build/doctrees source html
|
||||||
|
rm -f html/.buildinfo
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
PYTHONPATH='../' sphinx-build-%{python3_version} -b html -d build/doctrees source python3/html
|
PYTHONPATH='../' sphinx-build-%{python3_version} -b html -d build/doctrees source python3/html
|
||||||
|
rm -f python3/html/.buildinfo
|
||||||
%endif
|
%endif
|
||||||
popd
|
popd
|
||||||
|
|
||||||
@ -151,6 +141,10 @@ py.test-%{python3_version}
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 19 2020 John Eckersberg <jeckersb@redhat.com> - 0.7.20-1
|
||||||
|
- New upstream release 0.7.20 (rhbz#1848782)
|
||||||
|
- Minor spec and rpmlint cleanups
|
||||||
|
|
||||||
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.7.19-22
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.7.19-22
|
||||||
- Rebuilt for Python 3.9
|
- Rebuilt for Python 3.9
|
||||||
|
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (netaddr-0.7.19.tar.gz) = 8440dee19d51828cd0dee403ec8c2fbc70e42d8c7c922d1a6a2a752100f9a313c521fa5e0789e024af0998f713599d50cf986e96867d3cc62a4143875e52d6bf
|
SHA512 (netaddr-0.7.20.tar.gz) = f6cbfefa3cec95c039ef711b15e3c9509cdf730c9c4b9427fe2fa55beddd8fd44621fe8615d26a3b9ac6989a648f96d42a6a8e848a4976d883b8a5a243590ccf
|
||||||
|
Loading…
Reference in New Issue
Block a user