Пакет pam_wrapper: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | Name: pam_wrapper Version: 1.1.4 Release: alt1 Summary: A tool to test PAM applications and PAM modules License: GPLv3+ Url: http://cwrap.org/ # git://git.samba.org/pam_wrapper.git Source0: %name-%version.tar Patch0: %name-%version-%release.patch Group: Development/C BuildRequires: cmake BuildRequires: libcmocka-devel BuildRequires: python3-devel BuildRequires: pam-devel BuildRequires: doxygen BuildRequires: git BuildRequires: ctest %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+ Group:Development/C 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+ Group: Development/C Requires: pam_wrapper = %version-%release Requires: libpamtest = %version-%release %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 libpamtest-doc Summary: The libpamtest API documentation Group: Development/C License: GPLv3+ %description -n libpamtest-doc Documentation for libpamtest development. %package -n python3-module-libpamtest Summary: A python wrapper for libpamtest License: GPLv3+ Group: Development/C Requires: pam_wrapper = %version-%release Requires: libpamtest = %version-%release %description -n python3-module-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 %setup %patch0 -p1 %build %cmake \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DAPPLICATION_VERSION=%version \ -DUNIT_TESTING=ON %cmake_build %cmake_build --target doc %install %cmake_install %check export LD_LIBRARY_PATH=%buildroot%_libdir %cmake_build --target test %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 libpamtest-doc %doc %_cmake__builddir/doc/html %files -n python3-module-libpamtest %python3_sitelibdir/pypamtest.so %changelog * Mon Nov 01 2021 Evgeny Sinelnikov <sin@altlinux.org> 1.1.4-alt1 - new version 1.1.4 * Wed Apr 28 2021 Arseny Maslennikov <arseny@altlinux.org> 1.1.3-alt1.1 - NMU: spec: adapted to new cmake macros. * Thu Aug 13 2020 Anton Farygin <rider@altlinux.ru> 1.1.3-alt1 - first build for ALT (based on specfile from Fedora) |