diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 07:13:40 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 07:13:40 +0000 |
| commit | cec43e57bbb9bd83bf83184a9246d0ebe6212a4c (patch) | |
| tree | 5ab3adb9499132e0a62591290b77c32c9f757863 | |
| parent | 42d568c97413f8d3712174ab5ca0d3598ec83b38 (diff) | |
automatic import of python-toolwrapperopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-toolwrapper.spec | 72 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/toolwrapper-2.1.0.tar.gz diff --git a/python-toolwrapper.spec b/python-toolwrapper.spec new file mode 100644 index 0000000..a3e0943 --- /dev/null +++ b/python-toolwrapper.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-toolwrapper +Version: 2.1.0 +Release: 1 +Summary: A base class for wrapping text-processing tools +License: MIT +URL: https://github.com/luismsgomes/toolwrapper +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/41/7b/34bf8fb69426d8a18bcc61081e9d126f4fcd41c3c832072bef39af1602cd/toolwrapper-2.1.0.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-toolwrapper +Summary: A base class for wrapping text-processing tools +Provides: python-toolwrapper +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-toolwrapper + + +%package help +Summary: Development documents and examples for toolwrapper +Provides: python3-toolwrapper-doc +%description help + + +%prep +%autosetup -n toolwrapper-2.1.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-toolwrapper -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 2.1.0-1 +- Package Spec generated @@ -0,0 +1 @@ +e1f3bf315d42e8a47ae69f1728049be6 toolwrapper-2.1.0.tar.gz |
