[packages/python-passlib] Initial (but tests & docs need more work)
arekm
arekm at pld-linux.org
Fri Jun 6 11:11:58 CEST 2025
commit 6426c4aa1f83863283e26cc9529a0755e0e671b4
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Jun 6 10:08:02 2025 +0200
Initial (but tests & docs need more work)
python-passlib.spec | 127 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 127 insertions(+)
---
diff --git a/python-passlib.spec b/python-passlib.spec
new file mode 100644
index 0000000..9764e18
--- /dev/null
+++ b/python-passlib.spec
@@ -0,0 +1,127 @@
+# Conditional build:
+%bcond_without doc # API documentation
+%bcond_without tests # unit tests
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+%define module passlib
+Summary: Comprehensive password hashing framework supporting over 20 schemes
+Name: python-%{module}
+Version: 1.7.4
+Release: 1
+License: BSD
+Group: Libraries/Python
+Source0: https://files.pythonhosted.org/packages/source/p/passlib/%{module}-%{version}.tar.gz
+# Source0-md5: 3a229cbd00dfb33e99885b43325e0591
+URL: https://foss.heptapod.net/python-libs/passlib
+%if %{with python2}
+BuildRequires: python-devel >= 1:2.5
+BuildRequires: python-setuptools
+%if %{with tests}
+#BuildRequires: python-
+%endif
+%endif
+%if %{with python3}
+BuildRequires: python3-devel >= 1:3.2
+BuildRequires: python3-setuptools
+%if %{with tests}
+#BuildRequires: python3-
+%endif
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires: sphinx-pdg-3
+%endif
+Requires: python-modules >= 1:2.5
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Passlib is a password hashing library for Python, which provides
+cross-platform implementations of over 30 password hashing algorithms,
+as well as a framework for managing existing password hashes. It's
+designed to be useful for a wide range of tasks, from verifying a hash
+found in /etc/shadow, to providing full-strength password hashing for
+multi-user application.
+
+%package -n python3-%{module}
+Summary: Comprehensive password hashing framework supporting over 20 schemes
+Group: Libraries/Python
+Requires: python3-modules >= 1:3.2
+BuildArch: noarch
+
+%description -n python3-%{module}
+Passlib is a password hashing library for Python, which provides
+cross-platform implementations of over 30 password hashing algorithms,
+as well as a framework for managing existing password hashes. It's
+designed to be useful for a wide range of tasks, from verifying a hash
+found in /etc/shadow, to providing full-strength password hashing for
+multi-user application.
+
+%package apidocs
+Summary: API documentation for Python %{module} module
+Summary(pl.UTF-8): Dokumentacja API modułu Pythona %{module}
+Group: Documentation
+BuildArch: noarch
+
+%description apidocs
+API documentation for Python %{module} module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona %{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
+
+%if %{with doc}
+%{__make} -C docs html
+rm -rf docs/_build/html/_sources
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%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 README
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc README
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%endif
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/*
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-passlib.git/commitdiff/6426c4aa1f83863283e26cc9529a0755e0e671b4
More information about the pld-cvs-commit
mailing list