rpms/ladspa-swh-plugins/FC-6 ladspa-swh-plugins.spec,1.1,1.2
Anthony Green (green)
fedora-extras-commits at redhat.com
Sun Jan 7 06:23:48 UTC 2007
Author: green
Update of /cvs/extras/rpms/ladspa-swh-plugins/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv5031
Modified Files:
ladspa-swh-plugins.spec
Log Message:
Add SELinux support.
Index: ladspa-swh-plugins.spec
===================================================================
RCS file: /cvs/extras/rpms/ladspa-swh-plugins/FC-6/ladspa-swh-plugins.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ladspa-swh-plugins.spec 27 Dec 2006 18:43:42 -0000 1.1
+++ ladspa-swh-plugins.spec 7 Jan 2007 06:23:18 -0000 1.2
@@ -3,7 +3,7 @@
Summary: A set of audio plugins for LADSPA
Name: ladspa-%{pkgname}
Version: 0.4.15
-Release: 5%{?dist}
+Release: 6%{?dist}
License: GPL
Group: Applications/Multimedia
Source: http://plugin.org.uk/releases/0.4.15/swh-plugins-0.4.15.tar.gz
@@ -16,6 +16,9 @@
Obsoletes: %{pkgname} < 0.4.15-5
Provides: %{pkgname} = %{version}-%{release}
+Requires(post): policycoreutils
+Requires(postun): policycoreutils
+
%description
A set of audio plugins for LADSPA (see http://plugin.org.uk/ for more
details).
@@ -33,6 +36,18 @@
%{__make} DESTDIR=%{buildroot} install
%find_lang %{pkgname}
+%post
+# Set SELinux file context in the policy
+semanage fcontext -f -- -a -t textrel_shlib_t '%{_libdir}/ladspa/sc4m_1916.so' 2>/dev/null || :
+# Actually change the context
+chcon -R -t textrel_shlib_t %{_libdir}/ladspa/sc4m_1916.so || :
+
+%postun
+# SELinux support
+if [ $1 -eq 0 ]; then # final removal
+ semanage fcontext -f -- -d -t textrel_shlib_t %{_libdir}/ladspa/sc4m_1916.so || :
+fi
+
%clean
%{__rm} -rf %{buildroot}
@@ -43,6 +58,10 @@
%{_datadir}/ladspa/rdf/*
%changelog
+* Sat Jan 06 2007 Anthony Green <green at redhat.com> 0.4.15-6
+- Add SELinux bits for sc4m_1916.so.
+- Add policycoreutils dependencies.
+
* Wed Dec 27 2006 Anthony Green <green at redhat.com> 0.4.15-5
- Rename package from swh-plugins.
More information about the scm-commits
mailing list