diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 05:48:36 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 05:48:36 +0000 |
commit | db53d43dee2c91e52d1c650c05fc9c8a69c00fd8 (patch) | |
tree | acb71065f51af8c174fc42b6dee758bf39dd9dd1 /python-blahblahblahblah3.spec | |
parent | f30c9458892250342efa04cbddeb453a67ae19b7 (diff) |
automatic import of python-blahblahblahblah3openeuler20.03
Diffstat (limited to 'python-blahblahblahblah3.spec')
-rw-r--r-- | python-blahblahblahblah3.spec | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/python-blahblahblahblah3.spec b/python-blahblahblahblah3.spec new file mode 100644 index 0000000..960cb67 --- /dev/null +++ b/python-blahblahblahblah3.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-blahblahblahblah3 +Version: 13.13.13 +Release: 1 +Summary: A package to test packaging with +License: UNKNOWN +URL: UNKNOWN +Source0: https://mirrors.aliyun.com/pypi/web/packages/24/71/30c44bcfed678298cc0054fad03d2fb9dd5cb0635aaeb4085eb15c28f17c/blahblahblahblah3-13.13.13.tar.gz +BuildArch: noarch + + +%description +UNKNOWN + +%package -n python3-blahblahblahblah3 +Summary: A package to test packaging with +Provides: python-blahblahblahblah3 +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-blahblahblahblah3 +UNKNOWN + +%package help +Summary: Development documents and examples for blahblahblahblah3 +Provides: python3-blahblahblahblah3-doc +%description help +UNKNOWN + +%prep +%autosetup -n blahblahblahblah3-13.13.13 + +%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-blahblahblahblah3 -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 13.13.13-1 +- Package Spec generated |