]> git.pld-linux.org Git - packages/python-authres.git/commitdiff
- cleanup, added descriptions and tests master
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 8 Oct 2022 19:41:51 +0000 (21:41 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 8 Oct 2022 19:41:51 +0000 (21:41 +0200)
python-authres.spec

index dd7e946dde034a2d0480b56f124ef39e54b8cc77..da5abf5b8babc19db53b1b5ac81cefb524003393 100644 (file)
@@ -2,23 +2,21 @@
 # Conditional build:
 %bcond_without python2 # CPython 2.x module
 %bcond_without python3 # CPython 3.x module
+%bcond_without tests   # doctests
 
-# 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          authres
 Summary:       Authentication Results Header Module
+Summary(pl.UTF-8):     Moduł nagłówków Authentication Results
 Name:          python-%{module}
 Version:       1.2.0
-Release:       1
-License:       BSD-like
+Release:       2
+License:       Apache v2.0
 Group:         Libraries/Python
 Source0:       https://files.pythonhosted.org/packages/source/a/authres/%{module}-%{version}.tar.gz
 # Source0-md5: b24ee2541d74eac661fde5c8c27da689
 URL:           https://launchpad.net/authentication-results-python
 %if %{with python2}
-BuildRequires: python-modules >= 1:2.5
+BuildRequires: python-modules >= 1:2.6
 BuildRequires: python-setuptools
 %endif
 %if %{with python3}
@@ -27,33 +25,50 @@ BuildRequires:      python3-setuptools
 %endif
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.714
-Requires:      python-modules >= 1:2.5
+Requires:      python-modules >= 1:2.6
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Authentication Results Header Module
+Package for parsing "Authentication-Results" headers as defined in RFC
+5451.
 
 %description -l pl.UTF-8
+Pakiet do analizy nagłówków "Authentication-Results", zdefiniowanych w
+RFC 5451.
 
 %package -n python3-%{module}
 Summary:       Authentication Results Header Module
+Summary(pl.UTF-8):     Moduł nagłówków Authentication Results
 Group:         Libraries/Python
 Requires:      python3-modules >= 1:3.2
 
 %description -n python3-%{module}
-Authentication Results Header Module
+Package for parsing "Authentication-Results" headers as defined in RFC
+5451.
+
+%description -n python3-%{module} -l pl.UTF-8
+Pakiet do analizy nagłówków "Authentication-Results", zdefiniowanych w
+RFC 5451.
 
 %prep
 %setup -q -n %{module}-%{version}
 
 %build
 %if %{with python2}
-%py_build %{?with_tests:test}
+%py_build
+
+%if %{with tests}
+%{__python} -m authres
+%endif
 %endif
 
 %if %{with python3}
-%py3_build %{?with_tests:test}
+%py3_build
+
+%if %{with tests}
+%{__python3} -m authres
+%endif
 %endif
 
 %install
@@ -62,8 +77,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
 
This page took 0.094566 seconds and 4 git commands to generate.