13 Star 0 Fork 2

ocs-bot/pam_wrapper

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pam_wrapper.spec 3.82 KB
一键复制 编辑 原始数据 按行查看 历史
ocs-bot 提交于 2024-01-03 16:22 . Upgrade to version 1.1.5
Summary: A tool to test PAM applications and PAM modules
Name: pam_wrapper
Version: 1.1.5
Release: 1%{?dist}
License: GPLv3+
Url: http://cwrap.org/
Source0: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
Source1: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz.asc
BuildRequires: gcc cmake git
BuildRequires: libcmocka-devel
BuildRequires: python3-devel pam-devel
Recommends: cmake pkgconfig
%description
This component of cwrap allows you to either test your PAM (Linux-PAM
and OpenPAM) application or module.
For testing PAM applications, simple PAM module called pam_matrix is
included. If you plan to test a PAM module you can use the pamtest library,
which simplifies testing of modules. You can combine it with the cmocka
unit testing framework or you can use the provided Python bindings to
write tests for your module in Python.
%package -n libpamtest
Summary: A tool to test PAM applications and PAM modules
License: GPLv3+
Requires: pam_wrapper = %{version}-%{release}
%description -n libpamtest
If you plan to test a PAM module you can use this library, which simplifies
testing of modules.
%package -n libpamtest-devel
Summary: A tool to test PAM applications and PAM modules
License: GPLv3+
Requires: pam_wrapper = %{version}-%{release}
Requires: libpamtest = %{version}-%{release}
Recommends: cmake pkgconfig
%description -n libpamtest-devel
If you plan to develop tests for a PAM module you can use this library,
which simplifies testing of modules. This sub package includes the header
files for libpamtest.
%package -n python3-libpamtest
Summary: A python wrapper for libpamtest
License: GPLv3+
Requires: pam_wrapper = %{version}-%{release}
Requires: libpamtest = %{version}-%{release}
%description -n python3-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
%prep
%autosetup -S git
%build
%cmake \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DUNIT_TESTING=ON
%cmake_build
%__cmake --build %{__cmake_builddir}
%install
%cmake_install
%check
%ctest
%files
%{_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
%{_libdir}/pam_wrapper/pam_chatty.so
%{_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_chatty.8*
%{_mandir}/man8/pam_matrix.8*
%{_mandir}/man8/pam_get_items.8*
%{_mandir}/man8/pam_set_items.8*
%files -n libpamtest
%{_libdir}/libpamtest.so.*
%files -n libpamtest-devel
%{_libdir}/libpamtest.so
%{_libdir}/pkgconfig/libpamtest.pc
%dir %{_libdir}/cmake/pamtest
%{_libdir}/cmake/pamtest/pamtest-config-relwithdebinfo.cmake
%{_libdir}/cmake/pamtest/pamtest-config-version.cmake
%{_libdir}/cmake/pamtest/pamtest-config.cmake
%{_includedir}/libpamtest.h
%files -n python3-libpamtest
%{python3_sitearch}/pypamtest.so
%changelog
* Wed Jan 03 2024 Upgrade Robot <upbot@opencloudos.org> - 1.1.5-1
- Upgrade to version 1.1.5
* Tue Sep 19 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 1.1.4-5
- Rebuilt for python 3.11
* Fri Sep 08 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 1.1.4-4
- Rebuilt for OpenCloudOS Stream 23.09
* Fri Apr 28 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 1.1.4-3
- Rebuilt for OpenCloudOS Stream 23.05
* Fri Mar 31 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 1.1.4-2
- Rebuilt for OpenCloudOS Stream 23
* Mon Feb 06 2023 Feng Weiyao <wynnfeng@tencent.com> - 1.1.4-1
- initial build
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ocs-bot/pam_wrapper.git
git@gitee.com:ocs-bot/pam_wrapper.git
ocs-bot
pam_wrapper
pam_wrapper
master

搜索帮助