commit a7e8b33edcf80d52c2389ad3ae3b112622fbcab5
Author: Jakub Bogusz <[email protected]>
Date:   Sun Apr 1 12:46:36 2018 +0200

    - updated to 1.0.6
    - python- and python3- subpackages

 pam_wrapper.spec | 51 +++++++++++++++++++++++++++++++++++++++++++++++----
 1 file changed, 47 insertions(+), 4 deletions(-)
---
diff --git a/pam_wrapper.spec b/pam_wrapper.spec
index f969b78..8d24d6c 100644
--- a/pam_wrapper.spec
+++ b/pam_wrapper.spec
@@ -1,18 +1,24 @@
+#
+# Conditional build:
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
 Summary:       PAM wrapper library - tool to test PAM applications and modules
 Summary(pl.UTF-8):     Biblioteka obudowująca PAM - narzędzie do testowania 
aplikacji i modułów PAM
 Name:          pam_wrapper
-Version:       1.0.4
+Version:       1.0.6
 Release:       1
 License:       GPL v3+
 Group:         Libraries
 Source0:       https://www.samba.org/ftp/cwrap/%{name}-%{version}.tar.gz
-# Source0-md5: 2c5a98c40f20b81890cffd7045febea6
+# Source0-md5: 715b657d685aef0da98abc8bc1e27156
 URL:           https://cwrap.org/pam_wrapper.html
 BuildRequires: cmake >= 2.8.0
 # for tests
 #BuildRequires:        cmocka-devel
 BuildRequires: pam-devel
-BuildRequires: python-devel >= 1:2.6
+%{?with_python2:BuildRequires: python-devel >= 1:2.6}
+%{?with_python3:BuildRequires: python3-devel >= 1:3.2}
 BuildRequires: rpmbuild(macros) >= 1.605
 Requires:      pam-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -34,6 +40,32 @@ pamtest, upraszczająca testowanie. Można łączyć ją ze 
szkieletem
 testów jednostkowych cmocka, albo użyć dostarczonych wiązań Pythona do
 pisania własnych testów modułu w Pythonie.
 
+%package -n python-pypamtest
+Summary:       PamTest module for Python 2.x
+Summary(pl.UTF-8):     Moduł PamTest dla Pythona 2.x
+Group:         Libraries/Python
+Requires:      %{name} = %{version}-%{release}
+Requires:      python-libs >= 1:2.6
+
+%description -n python-pypamtest
+PamTest module for Python 2.x.
+
+%description -n python-pypamtest -l pl.UTF-8
+Moduł PamTest dla Pythona 2.x.
+
+%package -n python3-pypamtest
+Summary:       PamTest module for Python 3.x
+Summary(pl.UTF-8):     Moduł PamTest dla Pythona 3.x
+Group:         Libraries/Python
+Requires:      %{name} = %{version}-%{release}
+Requires:      python3-libs >= 1:3.2
+
+%description -n python3-pypamtest
+PamTest module for Python 3.x.
+
+%description -n python3-pypamtest -l pl.UTF-8
+Moduł PamTest dla Pythona 3.x.
+
 %prep
 %setup -q
 
@@ -69,7 +101,6 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/pam_wrapper/pam_get_items.so
 %attr(755,root,root) %{_libdir}/pam_wrapper/pam_matrix.so
 %attr(755,root,root) %{_libdir}/pam_wrapper/pam_set_items.so
-%attr(755,root,root) %{py_sitedir}/pypamtest.so
 %{_includedir}/libpamtest.h
 %{_pkgconfigdir}/libpamtest.pc
 %{_pkgconfigdir}/pam_wrapper.pc
@@ -79,3 +110,15 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man8/pam_get_items.8*
 %{_mandir}/man8/pam_matrix.8*
 %{_mandir}/man8/pam_set_items.8*
+
+%if %{with python2}
+%files -n python-pypamtest
+%defattr(644,root,root,755)
+%attr(755,root,root) %{py_sitedir}/pypamtest.so
+%endif
+
+%if %{with python3}
+%files -n python3-pypamtest
+%defattr(644,root,root,755)
+%attr(755,root,root) %{py3_sitedir}/pypamtest.so
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pam_wrapper.git/commitdiff/a7e8b33edcf80d52c2389ad3ae3b112622fbcab5

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to