Notification time stamped 2022-05-31 22:55:19 UTC
From 4eee890c354b0b087fbc107860f6c765b35f2ed0 Mon Sep 17 00:00:00 2001
From: Orion Poplawski <orion(a)nwra.com>
Date: May 31 2022 22:55:07 +0000
Subject: Initial import
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..9f3d4fe
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/netaddr-0.8.0.tar.gz
diff --git a/python38-netaddr-epel.spec b/python38-netaddr-epel.spec
new file mode 100644
index 0000000..ca2f5c5
--- /dev/null
+++ b/python38-netaddr-epel.spec
@@ -0,0 +1,100 @@
+%global __python3 /usr/bin/python3.8
+%global python3_pkgversion 38
+
+Name: python38-netaddr-epel
+Version: 0.8.0
+Release: 1%{?dist}
+Summary: A pure Python network address representation and manipulation library
+
+License: BSD
+URL:
http://github.com/drkjam/netaddr
+Source0:
https://pypi.python.org/packages/source/n/netaddr/netaddr-%{version}.tar.gz
+
+BuildArch: noarch
+
+%global desc A network address manipulation library for Python\
+\
+Provides support for:\
+\
+Layer 3 addresses\
+\
+ * IPv4 and IPv6 addresses, subnets, masks, prefixes\
+ * iterating, slicing, sorting, summarizing and classifying IP networks\
+ * dealing with various ranges formats (CIDR, arbitrary ranges and globs, nmap)\
+ * set based operations (unions, intersections etc) over IP addresses and\
+ subnets\
+ * parsing a large variety of different formats and notations\
+ * looking up IANA IP block information\
+ * generating DNS reverse lookups\
+ * supernetting and subnetting\
+\
+Layer 2 addresses\
+\
+ * representation and manipulation MAC addresses and EUI-64 identifiers\
+ * looking up IEEE organisational information (OUI, IAB)\
+ * generating derived IPv6 addresses
+
+
+%global _description\
+%{desc}
+
+%description %_description
+
+%package -n python38-netaddr
+Summary: A pure Python network address representation and manipulation library
+BuildRequires: python38-devel
+BuildRequires: python38-rpm-macros
+BuildRequires: python38-setuptools
+# No python38-sphinx yet
+BuildRequires: python3-sphinx
+BuildRequires: python38-pytest
+
+%description -n python38-netaddr
+%{desc}
+
+%package -n python38-netaddr-shell
+Summary: An IPython-based shell environment for the netaddr library
+Requires: python38-netaddr = %{version}-%{release}
+Requires: python38-ipython
+
+%description -n python38-netaddr-shell
+An IPython-based shell environment for the netaddr library
+
+%prep
+%setup -q -n netaddr-%{version}
+
+# Make rpmlint happy, rip out python shebang lines from most python
+# modules
+find netaddr -name "*.py" | \
+ xargs sed -i -e '1 {/^#!\//d}'
+
+# Make rpmlint happy, fix permissions on documentation files
+chmod 0644 README.rst AUTHORS CHANGELOG COPYRIGHT LICENSE PKG-INFO
+
+%build
+%py3_build
+
+#docs
+pushd docs
+PYTHONPATH='../' sphinx-build -b html -d build/doctrees source html
+rm -f python3/html/.buildinfo
+popd
+
+%install
+%py3_install
+
+%check
+py.test-%{python3_version}
+
+%files -n python38-netaddr
+%license COPYRIGHT
+%doc AUTHORS CHANGELOG
+%doc README.rst docs/html
+%{python3_sitelib}/*
+
+%files -n python38-netaddr-shell
+%{_bindir}/netaddr
+
+%changelog
+* Tue May 31 2022 Orion Poplawski <orion(a)nwra.com> - 0.8.0-1
+- Build for EPEL8
diff --git a/sources b/sources
new file mode 100644
index 0000000..3eca290
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (netaddr-0.8.0.tar.gz) =
a158bef87e862330c583f8b6709c4f575ec036dd31d725dad679e583ad4bef1a34f43225453bc93970ab720ae5f9f0fc2a6a3b92cbb922ed6f201414fd1e96d3
https://src.fedoraproject.org/rpms/python38-netaddr-epel/c/4eee890c354b0b...