diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-11 13:19:43 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 13:19:43 +0000 |
commit | c137e9bd7e0ebdf5007e0e9a5b306faa1ebd2b61 (patch) | |
tree | 35b79b93f5eb79d5bd2199812d2bafc0efad22e3 | |
parent | 20e0f946ce480f5641830aa569ccf9169721fa74 (diff) |
automatic import of python-pyuv
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-pyuv.spec | 74 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 76 insertions, 0 deletions
@@ -0,0 +1 @@ +/pyuv-1.4.0.tar.gz diff --git a/python-pyuv.spec b/python-pyuv.spec new file mode 100644 index 0000000..691d0df --- /dev/null +++ b/python-pyuv.spec @@ -0,0 +1,74 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyuv +Version: 1.4.0 +Release: 1 +Summary: Python interface for libuv +License: MIT License +URL: http://github.com/saghul/pyuv +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/53/cc/7f5313348a9212b455abe2d9dd2bb2fdb8d75d9a2ce5d5a2e8ba7819ff05/pyuv-1.4.0.tar.gz + + +%description + + +%package -n python3-pyuv +Summary: Python interface for libuv +Provides: python-pyuv +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-pyuv + + +%package help +Summary: Development documents and examples for pyuv +Provides: python3-pyuv-doc +%description help + + +%prep +%autosetup -n pyuv-1.4.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-pyuv -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.4.0-1 +- Package Spec generated @@ -0,0 +1 @@ +f8e1dd097b2b3eb8ab378508160820e5 pyuv-1.4.0.tar.gz |