[packages/python-authres] - new

hawk hawk at pld-linux.org
Sun May 8 22:24:00 CEST 2022


commit d4e0cc559872b2cfff0dc62f5d30e910c9badc39
Author: Marcin Krol <hawk at tld-linux.org>
Date:   Sun May 8 22:23:43 2022 +0200

    - new

 python-authres.spec | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 91 insertions(+)
---
diff --git a/python-authres.spec b/python-authres.spec
new file mode 100644
index 0000000..dd7e946
--- /dev/null
+++ b/python-authres.spec
@@ -0,0 +1,91 @@
+#
+# Conditional build:
+%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		authres
+Summary:	Authentication Results Header Module
+Name:		python-%{module}
+Version:	1.2.0
+Release:	1
+License:	BSD-like
+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-setuptools
+%endif
+%if %{with python3}
+BuildRequires:	python3-modules >= 1:3.2
+BuildRequires:	python3-setuptools
+%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
+Authentication Results Header Module
+
+%description -l pl.UTF-8
+
+%package -n python3-%{module}
+Summary:	Authentication Results Header Module
+Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.2
+
+%description -n python3-%{module}
+Authentication Results Header Module
+
+%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 CHANGES README
+%{py_sitescriptdir}/authres
+%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc CHANGES README
+%{py3_sitescriptdir}/authres
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-authres.git/commitdiff/d4e0cc559872b2cfff0dc62f5d30e910c9badc39



More information about the pld-cvs-commit mailing list