Package python3-module-netaddr: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | %global pypi_name netaddr %def_enable check Name: python3-module-%{pypi_name} Version: 0.7.19 Release: alt2 Summary: A pure Python network address representation and manipulation library Group: Development/Python3 License: BSD URL: http://github.com/drkjam/netaddr # Source0-url: https://github.com/drkjam/netaddr/archive/netaddr-%version.tar.gz Source0: %name-%version.tar BuildArch: noarch Patch0001: 0001-fixed-broken-tests.patch Patch0002: 0002-PEP-479-return-instead-of-raise-StopIteration.patch Patch0003: 0003-Use-raw-strings-for-escape-characters-used-in-regex.patch Patch0004: 0004-fix-Python-38-SyntaxWarning-on-using-is-not-with-a-string-literal.patch Patch0005: 0005-Do-not-override-executable-path.patch BuildRequires(pre): rpm-build-python3 BuildRequires: python3-devel python3-module-sphinx %{?_enable_check:BuildRequires: python3-module-pytest} %description A pure Python network address representation and manipulation library. netaddr provides a Pythonic way of working with :- - IPv4 and IPv6 addresses and subnets - MAC addresses, OUI and IAB identifiers, IEEE EUI-64 identifiers - arbitrary (non-aligned) IP address ranges and IP address sets - various non-CIDR IP range formats such as nmap and glob-style formats Included are routines for :- - generating, sorting and summarizing IP addresses and networks - performing easy conversions between address notations and formats - detecting, parsing and formatting network address representations - performing set-based operations on groups of IP addresses and subnets - working with arbitrary IP address ranges and formats - accessing OUI and IAB organisational information published by IEEE - accessing IP address and block information published by IANA For details on the latest updates and changes, see :- http://github.com/drkjam/netaddr/blob/rel-0.7.x/CHANGELOG API documentation for the latest release is available here :- http://packages.python.org/netaddr/ %prep %setup %patch0001 -p1 %patch0002 -p1 %patch0003 -p1 %patch0004 -p1 %patch0005 -p1 # Make rpmlint happy, get rid of DOS line endings %{__sed} -i 's/\r//' netaddr/*.py %{__sed} -i 's/\r//' netaddr/ip/*.py %{__sed} -i 's/\r//' netaddr/eui/*.idx # Make rpmlint happy, rip out python shebang lines from most python # modules find netaddr -name "*.py" | \ xargs sed -i -e '1 {/^#!\//d}' # Fix python executable sed -i -e '1s,/usr/bin/env python,%__python3,' netaddr/tools/netaddr # Make rpmlint happy, fix permissions on documentation files chmod 0644 AUTHORS CHANGELOG COPYRIGHT INSTALL LICENSE REFERENCES THANKS %build %python3_build #docs pushd docs PYTHONPATH='../' sphinx-build-3 -b html -d build/doctrees source html popd %install %python3_install %check py.test3 %files %doc AUTHORS CHANGELOG COPYRIGHT LICENSE REFERENCES THANKS %doc README.md docs/html %python3_sitelibdir/* %_bindir/netaddr %changelog * Mon Mar 23 2020 Alexey Shabalin <shaba@altlinux.org> 0.7.19-alt2 - build as new python3 package - backported patch from upstream - enable check - build as noarch * Wed Jun 14 2017 Vitaly Lipatov <lav@altlinux.ru> 0.7.19-alt1 - new version 0.7.19 (with rpmrb script) * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 0.7.13-alt1.1.1 - (NMU) rebuild with rpm-build-python3-0.1.9 (for common python3/site-packages/ and auto python3.3-ABI dep when needed) * Thu Jan 28 2016 Mikhail Efremov <sem@altlinux.org> 0.7.13-alt1.1 - NMU: Use buildreq for BR. * Tue Feb 03 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.7.13-alt1 - Version 0.7.13 * Fri Aug 29 2014 Lenar Shakirov <snejok@altlinux.ru> 0.7.12-alt1 - 0.7.12 * Thu Sep 27 2012 Pavel Shilovsky <piastry@altlinux.org> 0.7.5-alt1 - Initial release for Sisyphus (based on Fedora) |