2016-01-18 10:12:42 +01:00
|
|
|
#
|
|
|
|
# spec file for package pam_wrapper
|
|
|
|
#
|
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
############################# NOTE ##################################
|
|
|
|
#
|
|
|
|
# This is a special library. You are not able to link this library.
|
|
|
|
# Do NOT create library package or a devel package!
|
|
|
|
#
|
|
|
|
############################# NOTE ##################################
|
|
|
|
|
|
|
|
Name: pam_wrapper
|
2016-01-18 11:15:02 +01:00
|
|
|
Version: 1.0.1
|
2016-01-18 10:12:42 +01:00
|
|
|
Release: 0
|
|
|
|
|
|
|
|
Summary: A tool to test PAM applications and PAM modules
|
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Url: http://cwrap.org/
|
|
|
|
|
|
|
|
Source0: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
|
|
|
|
Source1: %{name}-rpmlintrc
|
|
|
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: libcmocka-devel
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
|
|
|
|
Recommends: pkg-config
|
|
|
|
Recommends: cmake
|
|
|
|
|
|
|
|
%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
|
|
|
|
License: GPL-3.0+
|
|
|
|
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
|
|
|
|
License: GPL-3.0+
|
|
|
|
Requires: pam_wrapper = %{version}-%{release}
|
|
|
|
Requires: libpamtest0 = %{version}-%{release}
|
|
|
|
|
|
|
|
Recommends: pkg-config
|
|
|
|
Recommends: cmake
|
|
|
|
|
|
|
|
%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
|
|
|
|
License: GPL-3.0+
|
|
|
|
|
|
|
|
%description -n libpamtest-devel-doc
|
|
|
|
Documentation for libpamtest development.
|
|
|
|
|
|
|
|
%package -n python-libpamtest
|
|
|
|
Summary: A python wrapper for libpamtest
|
|
|
|
License: GPL-3.0+
|
|
|
|
Requires: pam_wrapper = %{version}-%{release}
|
|
|
|
Requires: libpamtest0 = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n python-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
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake \
|
|
|
|
-DUNIT_TESTING=ON
|
|
|
|
|
|
|
|
make %{?_smp_mflags} VERBOSE=1
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
%check
|
|
|
|
pushd build
|
|
|
|
make %{?_smp_mflags} test || cat $(find Testing -name "*.log")
|
|
|
|
make %{?_smp_mflags} doc
|
|
|
|
popd
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libpamtest0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libpamtest0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS README ChangeLog COPYING
|
|
|
|
%{_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
|
|
|
|
%{_libdir}/pam_wrapper/pam_get_items.so
|
|
|
|
%{_libdir}/pam_wrapper/pam_set_items.so
|
|
|
|
%{_mandir}/man1/pam_wrapper.1*
|
|
|
|
%{_mandir}/man8/pam_matrix.8*
|
|
|
|
%{_mandir}/man8/pam_get_items.8*
|
|
|
|
%{_mandir}/man8/pam_set_items.8*
|
|
|
|
|
|
|
|
%files -n libpamtest0
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libpamtest.so.*
|
|
|
|
|
|
|
|
%files -n libpamtest-devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_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
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc build/doc/html
|
|
|
|
|
|
|
|
%files -n python-libpamtest
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{python_sitearch}/pypamtest.so
|
|
|
|
|
|
|
|
%changelog
|