Package libsemanage: 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 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 | %define _libexecdir %prefix/libexec %def_disable check %def_with python Name: libsemanage Epoch: 1 Version: 2.5 Release: alt1 Summary: Library, which provides an interface for SELinux management Group: System/Libraries License: LGPLv2.1+ Url: http://userspace.selinuxproject.org Source: %name-%version.tar Patch1: alt-extra-homedirs.patch Patch2: alt-linking.patch Patch3: alt-pkgconfig.patch Patch4: alt-lib-install-dir.patch %{?_with_python:BuildPreReq: rpm-build-python} BuildRequires: bzlib-devel flex libustr-devel libsepol-devel >= 2.5 libselinux-devel >= 2.5 libaudit-devel %{?_with_python:BuildRequires: swig python-dev} %{!?_disable_check:BuildRequires: CUnit-devel libsepol-devel-static >= 2.5 libselinux-devel-static >= 2.5} %description This package provides the shared libraries for the manipulation of SELinux binary policies. It is used by checkpolicy (the policy compiler) and similar tools, as well as by programs like load_policy that need to perform specific transformations on binary policies such as customizing policy boolean settings. This contains the run-time libraries needed by such tools. %package devel Summary: Development files for %name Group: Development/C Requires: %name = %version %description devel Header files and libraries for SELinux policy manipulation tools This package provides an API for the manipulation of SELinux binary policies. It is used by checkpolicy (the policy compiler) and similar tools, as well as by programs like load_policy that need to perform specific transformations on binary policies such as customizing policy boolean settings. It contains the static libraries and header files needed for developing applications that manipulate SELinux binary policies. %package devel-static Summary: Development files for %name Group: Development/C Requires: %name-devel = %version %description devel-static Static libraries for SELinux policy manipulation tools. %if_with python %package -n python-module-semanage Summary: Python module for %name Group: System/Configuration/Other Requires: %name = %version %description -n python-module-semanage Python bindings for SELinux policy manipulation tools This package provides python bindings for the manipulation of SELinux binary policies. %package utils Summary: Utils for checking and mainplating policy binaries Security-enhanced Linux Group: System/Configuration/Other Provides: semanage_migrate_store = %version-%release Requires: %name = %version-%release Requires: python-module-selinux python-module-semanage %description utils libsepol provides an API for the manipulation of SELinux binary policies. It is used by checkpolicy (the policy compiler) and similar tools, as well as by programs like load_policy that need to perform specific transformations on binary policies such as customizing policy boolean settings. %endif %prep %setup -q %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %build %make_build CFLAGS="%optflags" LIBDIR=%_libdir SHLIBDIR=%_lib LIBEXECDIR=%_libexecdir all %{?_with_python:%make_build CFLAGS="%optflags" LIBDIR=%_libdir SHLIBDIR=%_lib LIBEXECDIR=%_libexecdir pywrap} %install %makeinstall_std LIBDIR=%buildroot/%_libdir SHLIBDIR=%buildroot/%_lib %{?_with_python:install-pywrap} ln -sf /%_lib/libsemanage.so.1 %buildroot/%_libdir/libsemanage.so %check %make_build test %files %dir %_sysconfdir/selinux %config(noreplace) %_sysconfdir/selinux/* /%_lib/*.so.* %_man5dir/* %files devel %_libdir/*.so %_includedir/* %_pkgconfigdir/* %_man3dir/* %files devel-static %_libdir/*.a %if_with python %files -n python-module-semanage %python_sitelibdir/* %files utils #%%_libexecdir/selinux/* %endif %changelog * Tue Nov 01 2016 Anton Farygin <rider@altlinux.ru> 1:2.5-alt1 - new version * Thu Sep 29 2016 Vladimir D. Seleznev <vseleznv@altlinux.org> 1:2.3-alt1 - downgraded due regression (closes: #32254) - alt-lib-install-dir.patch has been removed * Wed Feb 10 2016 Sergey V Turchin <zerg@altlinux.org> 2.4-alt1 - new version * Thu Feb 05 2015 Anton Farygin <rider@altlinux.ru> 2.3-alt1 - new version * Tue Nov 19 2013 Anton Farygin <rider@altlinux.ru> 2.2-alt1 - New version * Wed Sep 18 2013 Andriy Stepanov <stanv@altlinux.ru> 2.1.10-alt2 - pam_mktemp workaround * Thu Jun 27 2013 Andriy Stepanov <stanv@altlinux.ru> 2.1.10-alt1 - New version * Sun Sep 23 2012 Led <led@altlinux.ru> 2.1.9-alt1 - 2.1.9 - cleaned up spec * Sat Oct 22 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 2.0.46-alt1.1 - Rebuild with Python-2.7 * Wed Dec 29 2010 Mikhail Efremov <sem@altlinux.org> 2.0.46-alt1 - Updated to 2.0.46. - Drop unused variable. * Mon Nov 15 2010 Mikhail Efremov <sem@altlinux.org> 2.0.45-alt3 - Add /srv/home and /var/srv/home to home directories list. - Use rpm-build-licenses. * Wed Nov 03 2010 Mikhail Efremov <sem@altlinux.org> 2.0.45-alt2 - .pc file: use Libs.private instead of Requires.private. - fix build and install sections. - use tar instead of tgz for sources. - Drop redundant information from description. - fix Url. - drop Packager from spec. * Wed Jun 09 2010 Mikhail Efremov <sem@altlinux.org> 2.0.45-alt1 - new version * Wed Feb 03 2010 Mikhail Efremov <sem@altlinux.org> 2.0.44-alt1 - new version * Thu Nov 12 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.31-alt1.1 - Rebuilt with python 2.6 * Tue Jan 13 2009 Anton Farygin <rider@altlinux.ru> 2.0.31-alt1 - new version * Mon Dec 22 2008 Anton Farygin <rider@altlinux.ru> 2.0.30-alt1 - new version - fixed python-module name * Sat Dec 20 2008 Anton Farygin <rider@altlinux.ru> 2.0.25-alt1 - new (development) version - specfile cleanup * Sun Mar 09 2008 Eugene Ostapets <eostapets@altlinux.ru> 1.10.9-alt1 - Initial build |