diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-09 13:06:47 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-09 13:06:47 +0000 |
commit | 0d730d738fab3c919924ba5609effb87e790a663 (patch) | |
tree | 05cde06775380442b941dea1218fbe066f2d28fc | |
parent | 7ac840b32f889cd8ce552e9e4029b5d076f7e8af (diff) |
automatic import of python-iptools
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-iptools.spec | 97 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 99 insertions, 0 deletions
@@ -0,0 +1 @@ +/iptools-0.7.0.tar.gz diff --git a/python-iptools.spec b/python-iptools.spec new file mode 100644 index 0000000..fd71392 --- /dev/null +++ b/python-iptools.spec @@ -0,0 +1,97 @@ +%global _empty_manifest_terminate_build 0 +Name: python-iptools +Version: 0.7.0 +Release: 1 +Summary: Python utilites for manipulating IPv4 and IPv6 addresses +License: BSD +URL: https://github.com/bd808/python-iptools +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/26/f8/c0aed5193cf9e3f38bf5e7505f5581fd0718e2529896e0c0ada9d038b92f/iptools-0.7.0.tar.gz +BuildArch: noarch + +Requires: python3-nose + +%description + +Utilities for manipulating IPv4 and IPv6 addresses including a +class that can be used to include CIDR network blocks in Django's +INTERNAL_IPS setting. + +Full documentation at http://python-iptools.readthedocs.org/ + + + + +%package -n python3-iptools +Summary: Python utilites for manipulating IPv4 and IPv6 addresses +Provides: python-iptools +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-iptools + +Utilities for manipulating IPv4 and IPv6 addresses including a +class that can be used to include CIDR network blocks in Django's +INTERNAL_IPS setting. + +Full documentation at http://python-iptools.readthedocs.org/ + + + + +%package help +Summary: Development documents and examples for iptools +Provides: python3-iptools-doc +%description help + +Utilities for manipulating IPv4 and IPv6 addresses including a +class that can be used to include CIDR network blocks in Django's +INTERNAL_IPS setting. + +Full documentation at http://python-iptools.readthedocs.org/ + + + + +%prep +%autosetup -n iptools-0.7.0 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-iptools -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.7.0-1 +- Package Spec generated @@ -0,0 +1 @@ +3c252e7f1f0f50d5d3d9e671ac3bde9a iptools-0.7.0.tar.gz |