summaryrefslogtreecommitdiff
path: root/python-win-inet-pton.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 01:57:32 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 01:57:32 +0000
commitffd0bbe27abecd6451da7bb6c513f80094dcaf89 (patch)
treea185831b58981c3abe050d475e60faebfab3c644 /python-win-inet-pton.spec
parentc464f8f66fa2953e553e594c24ac8b92ea7d1d08 (diff)
automatic import of python-win-inet-pton
Diffstat (limited to 'python-win-inet-pton.spec')
-rw-r--r--python-win-inet-pton.spec72
1 files changed, 72 insertions, 0 deletions
diff --git a/python-win-inet-pton.spec b/python-win-inet-pton.spec
new file mode 100644
index 0000000..fc78157
--- /dev/null
+++ b/python-win-inet-pton.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-win-inet-pton
+Version: 1.1.0
+Release: 1
+Summary: Native inet_pton and inet_ntop implementation for Python on Windows (with ctypes).
+License: This software released into the public domain. Anyone is free to copy,
+URL: https://github.com/hickeroar/win_inet_pton
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d9/da/0b1487b5835497dea00b00d87c2aca168bb9ca2e2096981690239e23760a/win_inet_pton-1.1.0.tar.gz
+BuildArch: noarch
+
+
+%description
+ Native inet_pton and inet_ntop implementation for Python on Windows (with ctypes).
+
+%package -n python3-win-inet-pton
+Summary: Native inet_pton and inet_ntop implementation for Python on Windows (with ctypes).
+Provides: python-win-inet-pton
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-win-inet-pton
+ Native inet_pton and inet_ntop implementation for Python on Windows (with ctypes).
+
+%package help
+Summary: Development documents and examples for win-inet-pton
+Provides: python3-win-inet-pton-doc
+%description help
+ Native inet_pton and inet_ntop implementation for Python on Windows (with ctypes).
+
+%prep
+%autosetup -n win-inet-pton-1.1.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-win-inet-pton -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.0-1
+- Package Spec generated