From 1f4f5e4a7986adc1a7cbf85b884c8a5538f5a6a5 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Jan 18 2010 21:48:03 +0000 Subject: - Splect libsemanage.a into a static subpackage to keep fedora packaging guidelines happy --- diff --git a/libsemanage.spec b/libsemanage.spec index 6c26b6f..00758c5 100644 --- a/libsemanage.spec +++ b/libsemanage.spec @@ -2,8 +2,8 @@ %define libselinuxver 2.0.0-1 Summary: SELinux binary policy manipulation library Name: libsemanage -Version: 2.0.39 -Release: 1%{?dist} +Version: 2.0.43 +Release: 2%{?dist} License: LGPLv2+ Group: System Environment/Libraries Source: http://www.nsa.gov/selinux/archives/libsemanage-%{version}.tgz @@ -32,13 +32,22 @@ 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. +%package static +Summary: Static library used to build policy manipulation tools +Group: Development/Libraries +Requires: libsemanage-devel = %{version}-%{release} + +%description static +The semanage-static package contains the static libraries +needed for developing applications that manipulate binary policies. + %package devel Summary: Header files and libraries used to build policy manipulation tools Group: Development/Libraries Requires: libsemanage = %{version}-%{release} ustr %description devel -The semanage-devel package contains the static libraries and header files +The semanage-devel package contains the libraries and header files needed for developing applications that manipulate binary policies. %package python @@ -66,6 +75,7 @@ mkdir -p ${RPM_BUILD_ROOT}/%{_lib} mkdir -p ${RPM_BUILD_ROOT}/%{_libdir} mkdir -p ${RPM_BUILD_ROOT}%{_includedir} make DESTDIR="${RPM_BUILD_ROOT}" LIBDIR="${RPM_BUILD_ROOT}%{_libdir}" SHLIBDIR="${RPM_BUILD_ROOT}/%{_lib}" install install-pywrap +ln -sf /%{_lib}/libsemanage.so.1 ${RPM_BUILD_ROOT}/%{_libdir}/libsemanage.so %clean rm -rf ${RPM_BUILD_ROOT} @@ -79,10 +89,14 @@ rm -rf ${RPM_BUILD_ROOT} %postun -p /sbin/ldconfig -%files devel +%files static %defattr(-,root,root) %{_libdir}/libsemanage.a + +%files devel +%defattr(-,root,root) %{_libdir}/libsemanage.so +%{_libdir}/pkgconfig/libsemanage.pc %dir %{_includedir}/semanage %{_includedir}/semanage/*.h %{_mandir}/man3/* @@ -91,6 +105,27 @@ rm -rf ${RPM_BUILD_ROOT} %{_libdir}/python*/site-packages/* %changelog +* Mon Jan 18 2010 Dan Walsh - 2.0.43-3 +- Splect libsemanage.a into a static subpackage to keep fedora packaging guidelines happy + +* Wed Dec 16 2009 Dan Walsh - 2.0.43-2 +- Rebuild all c programs with -fPIC + +* Tue Dec 1 2009 Dan Walsh - 2.0.43-1 +- Update to upstream + * Move libsemanage.so to /usr/lib + * Add NAME lines to man pages from Manoj Srivastava + +* Wed Nov 18 2009 Dan Walsh - 2.0.42-1 +- Update to upstream + * Move load_policy from /usr/sbin to /sbin from Dan Walsh. + +* Mon Nov 2 2009 Dan Walsh - 2.0.41-1 +- Update to upstream + * Add pkgconfig file from Eamon Walsh. + * Add semanage_set_check_contexts() function to disable calling + setfiles + * Mon Sep 28 2009 Dan Walsh - 2.0.39-1 - Update to upstream * make swigify