[packages/python-dkimpy] - pl, fixed tests

qboosh qboosh at pld-linux.org
Sun Oct 9 07:44:40 CEST 2022


commit aaeff7f45f11176e9bef332624842c82b9caff53
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Oct 9 07:45:16 2022 +0200

    - pl, fixed tests

 python-dkimpy.spec | 40 +++++++++++++++++++++++++---------------
 1 file changed, 25 insertions(+), 15 deletions(-)
---
diff --git a/python-dkimpy.spec b/python-dkimpy.spec
index cc57a7e..62ba337 100644
--- a/python-dkimpy.spec
+++ b/python-dkimpy.spec
@@ -1,15 +1,12 @@
 #
 # Conditional build:
-%bcond_with	tests	# unit tests
+%bcond_without	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
+Summary(pl.UTF-8):	Podpisywanie i weryfikacja e-maili DKIM, ARC oraz TLSRPT
 Name:		python-%{module}
 Version:	1.0.5
 Release:	5
@@ -23,7 +20,6 @@ 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
@@ -33,7 +29,6 @@ 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
@@ -46,27 +41,44 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Python module that implements DKIM (DomainKeys Identified Mail) email
-signing and verification (RFC6376).
+signing and verification (RFC 6376).
+
+%description -l pl.UTF-8
+Moduł Pythona implementujący podpisywanie i weryfikację e-maili DKIM
+(DomainKeys Identified Mail).
 
 %package -n python3-%{module}
 Summary:	DKIM, ARC, and TLSRPT email signing and verification
+Summary(pl.UTF-8):	Podpisywanie i weryfikacja e-maili DKIM, ARC oraz TLSRPT
 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).
+signing and verification (RFC 6376).
+
+%description -n python3-%{module} -l pl.UTF-8
+Moduł Pythona implementujący podpisywanie i weryfikację e-maili DKIM
+(DomainKeys Identified Mail).
 
 %prep
 %setup -q -n %{module}-%{version}
 
 %build
 %if %{with python2}
-%py_build %{?with_tests:test}
+%py_build
+
+%if %{with tests}
+%{__python} test.py
+%endif
 %endif
 
 %if %{with python3}
-%py3_build %{?with_tests:test}
+%py3_build
+
+%if %{with tests}
+%{__python3} test.py
+%endif
 %endif
 
 %install
@@ -75,8 +87,6 @@ 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
 
@@ -90,7 +100,7 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog README.md
+%doc ChangeLog LICENSE README.md
 %if %{without python3}
 %attr(755,root,root) %{_bindir}/arcsign
 %attr(755,root,root) %{_bindir}/arcverify
@@ -110,7 +120,7 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python3}
 %files -n python3-%{module}
 %defattr(644,root,root,755)
-%doc ChangeLog README.md
+%doc ChangeLog LICENSE README.md
 %attr(755,root,root) %{_bindir}/arcsign
 %attr(755,root,root) %{_bindir}/arcverify
 %attr(755,root,root) %{_bindir}/dkimsign
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list