diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-10 08:22:05 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 08:22:05 +0000 |
commit | 2ab9a67ac9337c0b67b5aea1cfbf1e0b165ed3bd (patch) | |
tree | af495a5b017df643b1bc09b03dd231472b5a7e1c /python-glibc.spec | |
parent | f446c9fafc3f12139bb33d8d8a375856c6cb9b60 (diff) |
automatic import of python-glibc
Diffstat (limited to 'python-glibc.spec')
-rw-r--r-- | python-glibc.spec | 72 |
1 files changed, 72 insertions, 0 deletions
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 |