summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 08:22:05 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 08:22:05 +0000
commit2ab9a67ac9337c0b67b5aea1cfbf1e0b165ed3bd (patch)
treeaf495a5b017df643b1bc09b03dd231472b5a7e1c
parentf446c9fafc3f12139bb33d8d8a375856c6cb9b60 (diff)
automatic import of python-glibc
-rw-r--r--.gitignore1
-rw-r--r--python-glibc.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..7f196a2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/glibc-0.6.1.tar.gz
diff --git a/python-glibc.spec b/python-glibc.spec
new file mode 100644
index 0000000..c58a364
--- /dev/null
+++ b/python-glibc.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-glibc
+Version: 0.6.1
+Release: 1
+Summary: Pure-Python bindings to glibc (based on ctypes)
+License: LGPLv3
+URL: https://github.com/zyga/python-glibc/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/9c/8a/abc11cfecf3e80ddcc3ce66886c25ff71b819a4fadbbd8ad5d5c9949bcd2/glibc-0.6.1.tar.gz
+BuildArch: noarch
+
+
+%description
+
+
+%package -n python3-glibc
+Summary: Pure-Python bindings to glibc (based on ctypes)
+Provides: python-glibc
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-glibc
+
+
+%package help
+Summary: Development documents and examples for glibc
+Provides: python3-glibc-doc
+%description help
+
+
+%prep
+%autosetup -n glibc-0.6.1
+
+%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-glibc -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..e4c7e37
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+abfa9b6893577def3a0ece1baab55c74 glibc-0.6.1.tar.gz