diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 08:44:10 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 08:44:10 +0000 |
commit | 444de695d3e6c2050056d8b2f6c7b5a56d7f657c (patch) | |
tree | 19c6770fbce393bc7519aa552646024e492b65d3 | |
parent | 82e579641b2ab3ba7f61b8e109d90d2777478029 (diff) |
automatic import of python-sendmail-containeropeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-sendmail-container.spec | 93 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 95 insertions, 0 deletions
@@ -0,0 +1 @@ +/sendmail-container-0.2.0.tar.gz diff --git a/python-sendmail-container.spec b/python-sendmail-container.spec new file mode 100644 index 0000000..d832f99 --- /dev/null +++ b/python-sendmail-container.spec @@ -0,0 +1,93 @@ +%global _empty_manifest_terminate_build 0 +Name: python-sendmail-container +Version: 0.2.0 +Release: 1 +Summary: API for sending emails with POST request +License: MIT License +URL: https://github.com/Clinical-Genomics/sendmail-container +Source0: https://mirrors.aliyun.com/pypi/web/packages/df/11/89c22a7c0b7225d732a1ac3925ded457d2577ad92bcaac601bb7783d6394/sendmail-container-0.2.0.tar.gz +BuildArch: noarch + +Requires: python3-fastapi +Requires: python3-uvicorn +Requires: python3-gunicorn +Requires: python3-multipart +Requires: python3-email-validator +Requires: python3-pydantic +Requires: python3-pydantic[email] +Requires: python3-pydantic[dotenv] +Requires: python3-requests + +%description +# sendmail-container +Containerized mailing service + + + + +%package -n python3-sendmail-container +Summary: API for sending emails with POST request +Provides: python-sendmail-container +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-sendmail-container +# sendmail-container +Containerized mailing service + + + + +%package help +Summary: Development documents and examples for sendmail-container +Provides: python3-sendmail-container-doc +%description help +# sendmail-container +Containerized mailing service + + + + +%prep +%autosetup -n sendmail-container-0.2.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-sendmail-container -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.0-1 +- Package Spec generated @@ -0,0 +1 @@ +fb68ee1b7f69a9c6cb7db200e4c91cbe sendmail-container-0.2.0.tar.gz |