diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-10 07:34:50 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 07:34:50 +0000 |
| commit | f9a86f70c66fe040c413a53013a9b4a75af7f307 (patch) | |
| tree | d72f9ee5128f3095dc38c08861ef9bf23414c5ba /python-dbaas-aclapi.spec | |
| parent | 02e638f6b704cce5cb0014bad4cb65a3fc4ed335 (diff) | |
automatic import of python-dbaas-aclapi
Diffstat (limited to 'python-dbaas-aclapi.spec')
| -rw-r--r-- | python-dbaas-aclapi.spec | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/python-dbaas-aclapi.spec b/python-dbaas-aclapi.spec new file mode 100644 index 0000000..aa1a163 --- /dev/null +++ b/python-dbaas-aclapi.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: python-dbaas-aclapi +Version: 1.0.14 +Release: 1 +Summary: ACL API integration for DBaaS +License: BSD +URL: https://github.com/felippemr/dbaas-aclapi +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7d/06/84aba7f014c9b75af36bf799667c7d15a978943bf9ca4a48c7e30f91c1e5/dbaas-aclapi-1.0.14.tar.gz +BuildArch: noarch + +Requires: python3-django +Requires: python3-urllib3 +Requires: python3-dbaas-credentials +Requires: python3-GloboNetworkAPI + +%description + + +%package -n python3-dbaas-aclapi +Summary: ACL API integration for DBaaS +Provides: python-dbaas-aclapi +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-dbaas-aclapi + + +%package help +Summary: Development documents and examples for dbaas-aclapi +Provides: python3-dbaas-aclapi-doc +%description help + + +%prep +%autosetup -n dbaas-aclapi-1.0.14 + +%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-dbaas-aclapi -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.14-1 +- Package Spec generated |
