diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 06:40:07 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 06:40:07 +0000 |
| commit | 6d4283a76d5a597d2a6a404ae935f1d7548611b0 (patch) | |
| tree | 94f57279184e3f9f3710e44c016e0a27ce1d1d17 | |
| parent | 456499107d6d86f8b76bde89e4bacab83e085385 (diff) | |
automatic import of python-caph1993-pytoolsopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-caph1993-pytools.spec | 72 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/caph1993-pytools-0.4.15.tar.gz diff --git a/python-caph1993-pytools.spec b/python-caph1993-pytools.spec new file mode 100644 index 0000000..85a9cda --- /dev/null +++ b/python-caph1993-pytools.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-caph1993-pytools +Version: 0.4.15 +Release: 1 +Summary: Python toolbox of Carlos Pinzón +License: MIT +URL: https://github.com/caph1993/caph1993-pytools +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b2/f7/0f98fc6b98045d2f2418dedc64090a04f8072b6c57a3f989d85e2178a63f/caph1993-pytools-0.4.15.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-caph1993-pytools +Summary: Python toolbox of Carlos Pinzón +Provides: python-caph1993-pytools +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-caph1993-pytools + + +%package help +Summary: Development documents and examples for caph1993-pytools +Provides: python3-caph1993-pytools-doc +%description help + + +%prep +%autosetup -n caph1993-pytools-0.4.15 + +%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-caph1993-pytools -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.15-1 +- Package Spec generated @@ -0,0 +1 @@ +dabf92f89387e198e8a832f8113a27c6 caph1993-pytools-0.4.15.tar.gz |
