diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 23:17:09 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 23:17:09 +0000 |
| commit | 7345f562117fba6083930957a03908956ebe4b29 (patch) | |
| tree | df0e06f850395bb05553d689f552bc50c84e02c6 | |
| parent | d303135bd17fe1ef1cae07ffc699c90acbe49b40 (diff) | |
automatic import of python-sparkpost
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-sparkpost.spec | 73 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 75 insertions, 0 deletions
@@ -0,0 +1 @@ +/sparkpost-1.3.10.tar.gz diff --git a/python-sparkpost.spec b/python-sparkpost.spec new file mode 100644 index 0000000..f7d69f8 --- /dev/null +++ b/python-sparkpost.spec @@ -0,0 +1,73 @@ +%global _empty_manifest_terminate_build 0 +Name: python-sparkpost +Version: 1.3.10 +Release: 1 +Summary: SparkPost Python API client +License: Apache 2.0 +URL: https://github.com/SparkPost/python-sparkpost +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/21/6c/0c268eec81553ba95c6b98815c5bd377392738204e5a7c20a3b2567d4c95/sparkpost-1.3.10.tar.gz +BuildArch: noarch + +Requires: python3-requests + +%description +The official Python package for using the SparkPost API. + +%package -n python3-sparkpost +Summary: SparkPost Python API client +Provides: python-sparkpost +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-sparkpost +The official Python package for using the SparkPost API. + +%package help +Summary: Development documents and examples for sparkpost +Provides: python3-sparkpost-doc +%description help +The official Python package for using the SparkPost API. + +%prep +%autosetup -n sparkpost-1.3.10 + +%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-sparkpost -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.3.10-1 +- Package Spec generated @@ -0,0 +1 @@ +c45518d63c6899d177a5e755f33a31ac sparkpost-1.3.10.tar.gz |
