diff --git a/libsemanage.changes b/libsemanage.changes index 1944bdf..3bcd97f 100644 --- a/libsemanage.changes +++ b/libsemanage.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Dec 12 14:59:36 UTC 2016 - dimstar@opensuse.org + +- Split out the Policy Store Migration tool into + libsemanage-store-migrate: it is not a devel tool to start with. + Additionally, it causes the -devel package to depend on python, + which we want to avoid (libsemanabe being part of the core build + cycle). The library suggests libsemanage-store-migrate. + ------------------------------------------------------------------- Sun Jul 17 15:17:39 UTC 2016 - jengelh@inai.de diff --git a/libsemanage.spec b/libsemanage.spec index 0206ee4..8cce518 100644 --- a/libsemanage.spec +++ b/libsemanage.spec @@ -47,6 +47,7 @@ file_contexts configuration is valid. %package -n libsemanage1 Summary: SELinux policy management library Group: System/Libraries +Suggests: %{name}-migrate-store %description -n libsemanage1 libsemanage is the policy management library. Using libsepol and @@ -78,6 +79,17 @@ Requires: libsemanage-devel The libsemanage-devel-static package contains the static libraries needed for developing applications that manipulate binary policies. +%package migrate-store +Summary: SELinux Policy Store Migration +Group: Productivity/Security + +%description migrate-store +In version 2.4 of libsemanage, libsepol, and policycoreutils, the policy +module store was moved from /etc/selinux//modules/ to +/var/lib/selinux//. Once the libraries are upgraded, all policy +stores must be migrated before any commands that modify or use the store +(e.g. semodule, semanage) can be executed. + %prep %setup -q %patch0 -p0 @@ -110,11 +122,14 @@ cp %{SOURCE2} %{buildroot}%{_sysconfdir}/selinux/semanage.conf %defattr(-,root,root) %{_libdir}/libsemanage.so %{_libdir}/pkgconfig/libsemanage.pc -%{_libexecdir}/selinux/ %{_includedir}/semanage/ %{_mandir}/man3/* %{_mandir}/man5/* +%files migrate-store +%defattr(-,root,root) +%{_libexecdir}/selinux/ + %files devel-static %defattr(-,root,root) %{_libdir}/libsemanage.a