diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 10:47:29 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 10:47:29 +0000 |
| commit | 1f2f466a7656995b4f40a7556d844ab958dd2e09 (patch) | |
| tree | 995137423617569ba88a4a8d5a15bd177bbbb28a | |
| parent | 653255709677ac8d4c5d6e6f67c2effa9242155a (diff) | |
automatic import of python-py2-ipaddress
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-py2-ipaddress.spec | 81 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 83 insertions, 0 deletions
@@ -0,0 +1 @@ +/py2-ipaddress-3.4.2.tar.gz diff --git a/python-py2-ipaddress.spec b/python-py2-ipaddress.spec new file mode 100644 index 0000000..83c3930 --- /dev/null +++ b/python-py2-ipaddress.spec @@ -0,0 +1,81 @@ +%global _empty_manifest_terminate_build 0 +Name: python-py2-ipaddress +Version: 3.4.2 +Release: 1 +Summary: Python 2.6 backport of 3.4's ipaddress module +License: Python Software Foundation License version 2 +URL: https://github.com/kwi-dk/py2-ipaddress +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/43/fd/ac6cd46b9f0150749041944dd2c7fe5903a67770d2d68deeae1b5db2fa1d/py2-ipaddress-3.4.2.tar.gz +BuildArch: noarch + + +%description +This is a Python 2.6 backport of the Python 3.4 ``ipaddress`` module. +Please refer to the `official Python 3.4 documentation`__ for more information +on the module. +__ http://docs.python.org/3.4/library/ipaddress + +%package -n python3-py2-ipaddress +Summary: Python 2.6 backport of 3.4's ipaddress module +Provides: python-py2-ipaddress +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-py2-ipaddress +This is a Python 2.6 backport of the Python 3.4 ``ipaddress`` module. +Please refer to the `official Python 3.4 documentation`__ for more information +on the module. +__ http://docs.python.org/3.4/library/ipaddress + +%package help +Summary: Development documents and examples for py2-ipaddress +Provides: python3-py2-ipaddress-doc +%description help +This is a Python 2.6 backport of the Python 3.4 ``ipaddress`` module. +Please refer to the `official Python 3.4 documentation`__ for more information +on the module. +__ http://docs.python.org/3.4/library/ipaddress + +%prep +%autosetup -n py2-ipaddress-3.4.2 + +%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-py2-ipaddress -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 3.4.2-1 +- Package Spec generated @@ -0,0 +1 @@ +15738f17cfcc53293e7855131ff10d15 py2-ipaddress-3.4.2.tar.gz |
