2016-01-18 10:12:42 +01:00
|
|
|
#
|
|
|
|
# spec file for package pam_wrapper
|
|
|
|
#
|
2020-03-19 11:06:58 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2016-01-18 10:12:42 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-09-26 15:20:39 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-01-18 10:12:42 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
############################# NOTE ##################################
|
|
|
|
#
|
|
|
|
# This is a special library. You are not able to link this library.
|
|
|
|
# Do NOT create library package or a devel package!
|
|
|
|
#
|
|
|
|
############################# NOTE ##################################
|
2020-03-19 11:06:58 +01:00
|
|
|
%bcond_without python2
|
2016-01-18 10:12:42 +01:00
|
|
|
Name: pam_wrapper
|
2018-09-26 15:20:39 +02:00
|
|
|
Version: 1.0.7
|
2016-01-18 10:12:42 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: A tool to test PAM applications and PAM modules
|
2018-09-26 15:20:39 +02:00
|
|
|
License: GPL-3.0-or-later
|
2020-03-19 11:06:58 +01:00
|
|
|
URL: https://cwrap.org/
|
2016-01-18 10:12:42 +01:00
|
|
|
Source0: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
|
|
|
|
Source1: %{name}-rpmlintrc
|
2019-12-09 16:14:04 +01:00
|
|
|
Patch0: pam_wrapper-1.0.8-fix_with_latest_pam.patch
|
2020-03-19 11:06:58 +01:00
|
|
|
Patch1: fix-pam-module-output-crash.patch
|
2016-01-18 10:12:42 +01:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: libcmocka-devel
|
|
|
|
BuildRequires: pam-devel
|
2020-03-19 11:06:58 +01:00
|
|
|
BuildRequires: pkgconfig
|
2018-02-04 10:33:22 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-02-12 12:57:39 +01:00
|
|
|
BuildRequires: pkgconfig(python3)
|
2016-01-18 10:12:42 +01:00
|
|
|
Recommends: cmake
|
2020-03-19 11:06:58 +01:00
|
|
|
Recommends: pkgconfig
|
|
|
|
%if %{with python2}
|
|
|
|
BuildRequires: pkgconfig(python2)
|
|
|
|
%endif
|
2016-01-18 10:12:42 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This component of cwrap allows you to either test your PAM (Linux-PAM
|
|
|
|
and OpenPAM) application or module.
|
|
|
|
|
2016-02-14 13:27:59 +01:00
|
|
|
For testing PAM applications, a simple PAM module called pam_matrix is
|
|
|
|
included. If you plan to test a PAM module, you can use the pamtest library,
|
2016-01-18 10:12:42 +01:00
|
|
|
which simplifies testing of modules. You can combine it with the cmocka
|
2016-02-14 13:27:59 +01:00
|
|
|
unit testing framework, or you can use the provided Python bindings to
|
2016-01-18 10:12:42 +01:00
|
|
|
write tests for your module in Python.
|
|
|
|
|
2016-02-14 13:27:59 +01:00
|
|
|
This package does not have a devel package, because this project is for
|
2016-01-18 10:12:42 +01:00
|
|
|
development/testing.
|
|
|
|
|
|
|
|
%package -n libpamtest0
|
|
|
|
Summary: A tool to test PAM applications and PAM modules
|
|
|
|
Requires: pam_wrapper = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n libpamtest0
|
2016-02-14 13:27:59 +01:00
|
|
|
If you plan to test a PAM module, you can use this library, which simplifies
|
2016-01-18 10:12:42 +01:00
|
|
|
testing of modules.
|
|
|
|
|
|
|
|
%package -n libpamtest-devel
|
|
|
|
Summary: A tool to test PAM applications and PAM modules
|
|
|
|
Requires: libpamtest0 = %{version}-%{release}
|
2016-05-31 08:59:45 +02:00
|
|
|
Requires: pam_wrapper = %{version}-%{release}
|
2016-01-18 10:12:42 +01:00
|
|
|
Recommends: cmake
|
2020-03-19 11:06:58 +01:00
|
|
|
Recommends: pkgconfig
|
2016-01-18 10:12:42 +01:00
|
|
|
|
|
|
|
%description -n libpamtest-devel
|
2016-02-14 13:27:59 +01:00
|
|
|
If you plan to develop tests for a PAM module, you can use this library,
|
2016-01-18 10:12:42 +01:00
|
|
|
which simplifies testing of modules. This subpackage includes the header
|
|
|
|
files for libpamtest
|
|
|
|
|
|
|
|
%package -n libpamtest-devel-doc
|
|
|
|
Summary: The libpamtest API documentation
|
|
|
|
|
|
|
|
%description -n libpamtest-devel-doc
|
|
|
|
Documentation for libpamtest development.
|
|
|
|
|
2018-02-12 12:57:39 +01:00
|
|
|
%package -n python2-libpamtest
|
2016-01-18 10:12:42 +01:00
|
|
|
Summary: A python wrapper for libpamtest
|
|
|
|
Requires: libpamtest0 = %{version}-%{release}
|
2016-05-31 08:59:45 +02:00
|
|
|
Requires: pam_wrapper = %{version}-%{release}
|
2016-01-18 10:12:42 +01:00
|
|
|
|
2018-02-12 12:57:39 +01:00
|
|
|
%description -n python2-libpamtest
|
|
|
|
If you plan to develop python tests for a PAM module, you can use this
|
|
|
|
library, which simplifies testing of modules. This subpackage includes
|
|
|
|
the header files for libpamtest
|
|
|
|
|
|
|
|
%package -n python3-libpamtest
|
|
|
|
Summary: A python wrapper for libpamtest
|
|
|
|
Requires: libpamtest0 = %{version}-%{release}
|
|
|
|
Requires: pam_wrapper = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n python3-libpamtest
|
2016-02-14 13:27:59 +01:00
|
|
|
If you plan to develop python tests for a PAM module, you can use this
|
2016-01-18 10:12:42 +01:00
|
|
|
library, which simplifies testing of modules. This subpackage includes
|
|
|
|
the header files for libpamtest
|
|
|
|
|
|
|
|
%prep
|
2019-12-09 16:14:04 +01:00
|
|
|
%autosetup -p1
|
2016-01-18 10:12:42 +01:00
|
|
|
|
|
|
|
%build
|
2019-07-16 11:43:19 +02:00
|
|
|
# CMAKE_SKIP_RPATH:BOOL=OFF is required to run the tests!
|
2016-01-18 10:12:42 +01:00
|
|
|
%cmake \
|
2019-07-16 11:43:19 +02:00
|
|
|
-DUNIT_TESTING=ON \
|
|
|
|
-DCMAKE_SKIP_RPATH:BOOL=OFF
|
2020-03-19 11:06:58 +01:00
|
|
|
%cmake_build
|
|
|
|
%cmake_build doc
|
2016-01-18 10:12:42 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
%check
|
2019-07-16 11:43:19 +02:00
|
|
|
%ctest
|
2016-01-18 10:12:42 +01:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%post -n libpamtest0 -p /sbin/ldconfig
|
|
|
|
%postun -n libpamtest0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
2018-09-26 15:20:39 +02:00
|
|
|
%doc AUTHORS README ChangeLog
|
|
|
|
%license LICENSE
|
2016-01-18 10:12:42 +01:00
|
|
|
%{_libdir}/libpam_wrapper.so*
|
|
|
|
%{_libdir}/pkgconfig/pam_wrapper.pc
|
|
|
|
%dir %{_libdir}/cmake/pam_wrapper
|
|
|
|
%{_libdir}/cmake/pam_wrapper/pam_wrapper-config-version.cmake
|
|
|
|
%{_libdir}/cmake/pam_wrapper/pam_wrapper-config.cmake
|
|
|
|
%dir %{_libdir}/pam_wrapper
|
|
|
|
%{_libdir}/pam_wrapper/pam_matrix.so
|
2020-03-19 11:06:58 +01:00
|
|
|
%{_libdir}/pam_wrapper/pam_chatty.so
|
2016-01-18 10:12:42 +01:00
|
|
|
%{_libdir}/pam_wrapper/pam_get_items.so
|
|
|
|
%{_libdir}/pam_wrapper/pam_set_items.so
|
2020-03-19 11:06:58 +01:00
|
|
|
%{_mandir}/man1/pam_wrapper.1%{?ext_man}
|
|
|
|
%{_mandir}/man8/pam_matrix.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/pam_get_items.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/pam_set_items.8%{?ext_man}
|
2016-01-18 10:12:42 +01:00
|
|
|
|
|
|
|
%files -n libpamtest0
|
|
|
|
%{_libdir}/libpamtest.so.*
|
|
|
|
|
|
|
|
%files -n libpamtest-devel
|
|
|
|
%{_libdir}/libpamtest.so
|
|
|
|
%{_libdir}/pkgconfig/libpamtest.pc
|
|
|
|
%dir %{_libdir}/cmake/libpamtest
|
|
|
|
%{_libdir}/cmake/libpamtest/libpamtest-config-version.cmake
|
|
|
|
%{_libdir}/cmake/libpamtest/libpamtest-config.cmake
|
|
|
|
%{_includedir}/libpamtest.h
|
|
|
|
|
|
|
|
%files -n libpamtest-devel-doc
|
|
|
|
%doc build/doc/html
|
|
|
|
|
2020-03-19 11:06:58 +01:00
|
|
|
%if %{with python2}
|
2018-02-12 12:57:39 +01:00
|
|
|
%files -n python2-libpamtest
|
|
|
|
%{python2_sitearch}/pypamtest.so
|
2020-03-19 11:06:58 +01:00
|
|
|
%endif
|
2018-02-12 12:57:39 +01:00
|
|
|
|
|
|
|
%files -n python3-libpamtest
|
|
|
|
%{python3_sitearch}/pypamtest.so
|
2016-01-18 10:12:42 +01:00
|
|
|
|
|
|
|
%changelog
|