diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-18 05:05:00 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-18 05:05:00 +0000 |
| commit | 5d1c2ef262a089b108c609545df778b87d99b9a9 (patch) | |
| tree | 3f1f397594d79602d104bbc4b5a2d579a7a1ee17 | |
| parent | 0cafea7ac130a6ca3a67ba9adedd4dd3683c192f (diff) | |
automatic import of python-openstack-release-test
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-openstack-release-test.spec | 73 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 75 insertions, 0 deletions
@@ -0,0 +1 @@ +/openstack-release-test-4.1.0.tar.gz diff --git a/python-openstack-release-test.spec b/python-openstack-release-test.spec new file mode 100644 index 0000000..c1a8ca7 --- /dev/null +++ b/python-openstack-release-test.spec @@ -0,0 +1,73 @@ +%global _empty_manifest_terminate_build 0 +Name: python-openstack-release-test +Version: 4.1.0 +Release: 1 +Summary: Package for testing OpenStack release tools. +License: Apache Software License +URL: https://www.openstack.org/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b3/96/186ef928ec2d1fae79d900d8fc7a6fbc75b3078dde54143b7e21f900ca32/openstack-release-test-4.1.0.tar.gz +BuildArch: noarch + +Requires: python3-pbr + +%description + + +%package -n python3-openstack-release-test +Summary: Package for testing OpenStack release tools. +Provides: python-openstack-release-test +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-openstack-release-test + + +%package help +Summary: Development documents and examples for openstack-release-test +Provides: python3-openstack-release-test-doc +%description help + + +%prep +%autosetup -n openstack-release-test-4.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-openstack-release-test -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 4.1.0-1 +- Package Spec generated @@ -0,0 +1 @@ +4db240e6c03e8895cd6fc8536dc22f34 openstack-release-test-4.1.0.tar.gz |
