[packages/python-pypamtest] - new spec; last version of python2 module from pam_wrapper.spec
qboosh
qboosh at pld-linux.org
Sun Aug 20 12:52:32 CEST 2023
commit f4c6504f7aa3a9896455b5cc4e7653043ea839b1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Aug 20 11:54:12 2023 +0200
- new spec; last version of python2 module from pam_wrapper.spec
python-pypamtest.spec | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
---
diff --git a/python-pypamtest.spec b/python-pypamtest.spec
new file mode 100644
index 0000000..ebfb9d8
--- /dev/null
+++ b/python-pypamtest.spec
@@ -0,0 +1,58 @@
+Summary: PamTest module for Python 2.x
+Summary(pl.UTF-8): Moduł PamTest dla Pythona 2.x
+Name: python-pypamtest
+# 1.1.4 is the last pam_wrapper version with python2 support; newer versions in pam_wrapper.spec
+Version: 1.1.4
+Release: 2
+License: GPL v3+
+Group: Libraries
+Source0: https://www.samba.org/ftp/cwrap/pam_wrapper-%{version}.tar.gz
+# Source0-md5: c54539f0506cf6f1caa5a93847908dd6
+URL: https://cwrap.org/pam_wrapper.html
+BuildRequires: cmake >= 3.5.0
+# for tests
+#BuildRequires: cmocka-devel
+BuildRequires: pam-devel
+BuildRequires: python-devel >= 1:2.6
+BuildRequires: rpmbuild(macros) >= 1.605
+Requires: pam_wrapper >= %{version}
+Requires: python-libs >= 1:2.6
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+PamTest module for Python 2.x.
+
+%description -l pl.UTF-8
+Moduł PamTest dla Pythona 2.x.
+
+%prep
+%setup -q -n pam_wrapper-%{version}
+
+%build
+install -d build
+cd build
+%cmake ..
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+# package only python 2 module
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.so* \
+ $RPM_BUILD_ROOT%{_includedir}/libpamtest.h \
+ $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc \
+ $RPM_BUILD_ROOT%{_mandir}/man[18]/*
+
+%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/pam_wrapper \
+ $RPM_BUILD_ROOT%{_libdir}/cmake/{pam_wrapper,pamtest}
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS CHANGELOG README.md
+%attr(755,root,root) %{py_sitedir}/pypamtest.so
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pypamtest.git/commitdiff/f4c6504f7aa3a9896455b5cc4e7653043ea839b1
More information about the pld-cvs-commit
mailing list