summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-12 02:46:32 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-12 02:46:32 +0000
commit1d65b821052eebe2d8b5238c999741eac6708906 (patch)
treec56dc261e18c5954c6ce3fc4c70587dca3e28ef1
parent6572c6cd22585c8f467d19d6faa2841aa5b9a5ea (diff)
automatic import of python-pyzmail36
-rw-r--r--.gitignore1
-rw-r--r--python-pyzmail36.spec75
-rw-r--r--sources1
3 files changed, 77 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..c01e5e9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pyzmail36-1.0.5.tar.gz
diff --git a/python-pyzmail36.spec b/python-pyzmail36.spec
new file mode 100644
index 0000000..98533ff
--- /dev/null
+++ b/python-pyzmail36.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pyzmail36
+Version: 1.0.5
+Release: 1
+Summary: Python easy mail library, to parse, compose and send emails
+License: LGPL
+URL: http://www.magiksys.net/pyzmail
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/68/02/a0fa81aaebba4e4ff5647fa6f96ec87b9ee16ea16580f2a0b60108537b2e/pyzmail36-1.0.5.tar.gz
+BuildArch: noarch
+
+
+%description
+This is a fork of pyzmail modified to be pip-installable on Python 3.6
+
+
+%package -n python3-pyzmail36
+Summary: Python easy mail library, to parse, compose and send emails
+Provides: python-pyzmail36
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pyzmail36
+This is a fork of pyzmail modified to be pip-installable on Python 3.6
+
+
+%package help
+Summary: Development documents and examples for pyzmail36
+Provides: python3-pyzmail36-doc
+%description help
+This is a fork of pyzmail modified to be pip-installable on Python 3.6
+
+
+%prep
+%autosetup -n pyzmail36-1.0.5
+
+%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-pyzmail36 -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.5-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..749eb54
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+7e61e567e5ee57e30b4f5715dbd56c95 pyzmail36-1.0.5.tar.gz