diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-15 06:33:23 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 06:33:23 +0000 |
| commit | 1ad0752095af6622bef66879f04f897905fb8bbf (patch) | |
| tree | a9303cb53e236a7db2d4a57033006d32093456ed | |
| parent | a7eb490a1f0a1626d87b260a9771efe2f4f45288 (diff) | |
automatic import of python-py-tools-ds
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-py-tools-ds.spec | 72 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/py_tools_ds-0.21.1.tar.gz diff --git a/python-py-tools-ds.spec b/python-py-tools-ds.spec new file mode 100644 index 0000000..d12372a --- /dev/null +++ b/python-py-tools-ds.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-py-tools-ds +Version: 0.21.1 +Release: 1 +Summary: A collection of Python tools by Daniel Scheffler. +License: Apache-2.0 +URL: https://git.gfz-potsdam.de/danschef/py_tools_ds +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/37/cc/8bf5371a930b2fad31703a67edcb3fd2f7ed14d8e2f3033a8c102654638d/py_tools_ds-0.21.1.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-py-tools-ds +Summary: A collection of Python tools by Daniel Scheffler. +Provides: python-py-tools-ds +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-py-tools-ds + + +%package help +Summary: Development documents and examples for py-tools-ds +Provides: python3-py-tools-ds-doc +%description help + + +%prep +%autosetup -n py-tools-ds-0.21.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-py-tools-ds -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.21.1-1 +- Package Spec generated @@ -0,0 +1 @@ +6f676136778039bd945263aaab2cafd2 py_tools_ds-0.21.1.tar.gz |
