[packages/python-dkimpy] - new

baggins baggins at pld-linux.org
Mon Mar 15 15:20:34 CET 2021


commit 239afa57aa0ec9ea437c4a4baf802f346ff2c264
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Mar 15 15:20:15 2021 +0100

    - new

 python-dkimpy.spec | 128 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 128 insertions(+)
---
diff --git a/python-dkimpy.spec b/python-dkimpy.spec
new file mode 100644
index 0000000..bdacd67
--- /dev/null
+++ b/python-dkimpy.spec
@@ -0,0 +1,128 @@
+#
+# Conditional build:
+%bcond_with	tests	# unit tests
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+# NOTES:
+# - 'module' should match the Python import path (first component?)
+# - 'egg_name' should equal to Python egg name
+# - 'pypi_name' must match the Python Package Index name
+%define		module		dkimpy
+Summary:	DKIM, ARC, and TLSRPT email signing and verification
+Name:		python-%{module}
+Version:	1.0.5
+Release:	1
+License:	BSD-like
+Group:		Libraries/Python
+Source0:	https://files.pythonhosted.org/packages/source/d/dkimpy/%{module}-%{version}.tar.gz
+# Source0-md5:	080909e6557c01bb4855e37cd53d3e39
+URL:		https://launchpad.net/dkimpy
+%if %{with python2}
+BuildRequires:	python-modules >= 1:2.5
+BuildRequires:	python-setuptools
+%if %{with tests}
+BuildRequires:	python-PyNaCl
+BuildRequires:	python-aiodns
+BuildRequires:	python-authres
+BuildRequires:	python-dns >= 1.16
+%endif
+%endif
+%if %{with python3}
+BuildRequires:	python3-modules >= 1:3.2
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-PyNaCl
+BuildRequires:	python3-aiodns
+BuildRequires:	python3-authres
+BuildRequires:	python3-dns >= 1.16
+%endif
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python-modules >= 1:2.5
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Python module that implements DKIM (DomainKeys Identified Mail) email
+signing and verification (RFC6376).
+
+%description -l pl.UTF-8
+
+%package -n python3-%{module}
+Summary:	DKIM, ARC, and TLSRPT email signing and verification
+Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.2
+
+%description -n python3-%{module}
+Python module that implements DKIM (DomainKeys Identified Mail) email
+signing and verification (RFC6376).
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%if %{with python2}
+%py_build %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%py3_build %{?with_tests:test}
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog README.md
+%if %{without python3}
+%attr(755,root,root) %{_bindir}/arcsign
+%attr(755,root,root) %{_bindir}/arcverify
+%attr(755,root,root) %{_bindir}/dkimsign
+%attr(755,root,root) %{_bindir}/dkimverify
+%attr(755,root,root) %{_bindir}/dknewkey
+%{_mandir}/man1/arcsign.1*
+%{_mandir}/man1/arcverify.1*
+%{_mandir}/man1/dkimsign.1*
+%{_mandir}/man1/dkimverify.1*
+%{_mandir}/man1/dknewkey.1*
+%endif
+%{py_sitescriptdir}/dkim
+%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc ChangeLog README.md
+%attr(755,root,root) %{_bindir}/arcsign
+%attr(755,root,root) %{_bindir}/arcverify
+%attr(755,root,root) %{_bindir}/dkimsign
+%attr(755,root,root) %{_bindir}/dkimverify
+%attr(755,root,root) %{_bindir}/dknewkey
+%{_mandir}/man1/arcsign.1*
+%{_mandir}/man1/arcverify.1*
+%{_mandir}/man1/dkimsign.1*
+%{_mandir}/man1/dkimverify.1*
+%{_mandir}/man1/dknewkey.1*
+%{py3_sitescriptdir}/dkim
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-dkimpy.git/commitdiff/239afa57aa0ec9ea437c4a4baf802f346ff2c264



More information about the pld-cvs-commit mailing list