diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 07:50:40 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 07:50:40 +0000 |
commit | dc5b777d20f27011129b55888f2e80a712a39da6 (patch) | |
tree | 73fbfd79633a2c774bc76d452b74d7803416ef2a | |
parent | 937944cfb1b7c473a2cee28666ff228e485b8ae2 (diff) |
automatic import of python-ad-ci-toolsopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-ad-ci-tools.spec | 74 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 76 insertions, 0 deletions
@@ -0,0 +1 @@ +/ad_ci_tools-0.1.9.tar.gz diff --git a/python-ad-ci-tools.spec b/python-ad-ci-tools.spec new file mode 100644 index 0000000..0807297 --- /dev/null +++ b/python-ad-ci-tools.spec @@ -0,0 +1,74 @@ +%global _empty_manifest_terminate_build 0 +Name: python-ad-ci-tools +Version: 0.1.9 +Release: 1 +Summary: Ci library with miscellaneous utils +License: Apache Software License +URL: https://github.com/arenadata/ci_tools +Source0: https://mirrors.aliyun.com/pypi/web/packages/eb/6d/8ed697d6ad2e9170b841cabd59f5da8e6c0321ae875560095185ee639f4f/ad_ci_tools-0.1.9.tar.gz +BuildArch: noarch + +Requires: python3-gitpython +Requires: python3-wheel + +%description + + +%package -n python3-ad-ci-tools +Summary: Ci library with miscellaneous utils +Provides: python-ad-ci-tools +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-ad-ci-tools + + +%package help +Summary: Development documents and examples for ad-ci-tools +Provides: python3-ad-ci-tools-doc +%description help + + +%prep +%autosetup -n ad_ci_tools-0.1.9 + +%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-ad-ci-tools -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.9-1 +- Package Spec generated @@ -0,0 +1 @@ +d0bedcb7083b7cf06de800ce1580ac20 ad_ci_tools-0.1.9.tar.gz |