diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 19:21:02 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 19:21:02 +0000 |
| commit | 7bb565be0f1ea3c2d3145078735c36e14d56410e (patch) | |
| tree | c719eb08f9e1432fd4d384beba80f95c8624eb6c /python-awscurl.spec | |
| parent | a5a19b71d5cdbc9920957ab22eaf01c1e1b13e84 (diff) | |
automatic import of python-awscurl
Diffstat (limited to 'python-awscurl.spec')
| -rw-r--r-- | python-awscurl.spec | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/python-awscurl.spec b/python-awscurl.spec new file mode 100644 index 0000000..8276140 --- /dev/null +++ b/python-awscurl.spec @@ -0,0 +1,77 @@ +%global _empty_manifest_terminate_build 0 +Name: python-awscurl +Version: 0.26 +Release: 1 +Summary: Curl like tool with AWS request signing +License: MIT +URL: http://github.com/okigan/awscurl +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/6e/95/74209c24ac099c109109229bee14886c210edefb3f6bd73096e3a2277a93/awscurl-0.26.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-configargparse +Requires: python3-configparser +Requires: python3-urllib3[secure] +Requires: python3-botocore + +%description + + +%package -n python3-awscurl +Summary: Curl like tool with AWS request signing +Provides: python-awscurl +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-awscurl + + +%package help +Summary: Development documents and examples for awscurl +Provides: python3-awscurl-doc +%description help + + +%prep +%autosetup -n awscurl-0.26 + +%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-awscurl -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.26-1 +- Package Spec generated |
