diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 05:33:36 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 05:33:36 +0000 |
commit | 391e1b18c5956792b0ea3727a3ee316619009720 (patch) | |
tree | 6457606e2d3c288203f9f24b67200f82425bee79 | |
parent | 0f7ec3f433af83ba56aaf4475839e0abb4351a7a (diff) |
automatic import of python-carriageopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-carriage.spec | 74 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 76 insertions, 0 deletions
@@ -0,0 +1 @@ +/carriage-0.4.15.tar.gz diff --git a/python-carriage.spec b/python-carriage.spec new file mode 100644 index 0000000..69fb624 --- /dev/null +++ b/python-carriage.spec @@ -0,0 +1,74 @@ +%global _empty_manifest_terminate_build 0 +Name: python-carriage +Version: 0.4.15 +Release: 1 +Summary: Enhanced collection classes for programming fluently +License: Apache-2.0 +URL: http://carriage.readthedocs.io/ +Source0: https://mirrors.aliyun.com/pypi/web/packages/d9/df/eddf31a6d75ab3336a6a59a4b51c2d15c10afe49137032040d9f0572d527/carriage-0.4.15.tar.gz +BuildArch: noarch + +Requires: python3-tabulate +Requires: python3-pandas + +%description + + +%package -n python3-carriage +Summary: Enhanced collection classes for programming fluently +Provides: python-carriage +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-carriage + + +%package help +Summary: Development documents and examples for carriage +Provides: python3-carriage-doc +%description help + + +%prep +%autosetup -n carriage-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-carriage -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.15-1 +- Package Spec generated @@ -0,0 +1 @@ +c0d8e11f3a66ac53105e976b1559cb03 carriage-0.4.15.tar.gz |