- Fix wrong file path in semanage call in scriptlets (#481407)

This commit is contained in:
Hans de Goede 2009-01-25 13:50:45 +00:00
commit 720a3d6ab5

View file

@ -1,6 +1,6 @@
Name: allegro
Version: 4.2.2
Release: 10%{?dist}
Release: 11%{?dist}
Summary: A game programming library
Summary(es): Una libreria de programacion de juegos
@ -204,7 +204,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/liball{p,d}_unsharable.a
/sbin/ldconfig
# Set SELinux file_context for vga plugin in the policy
semanage fcontext -a -t textrel_shlib_t \
'%{_libdir}/allegro/4\.2\.1/alleg-vga\.so' 2>/dev/null || :
'%{_libdir}/allegro/4\.2\.2/alleg-vga\.so' 2>/dev/null || :
# Actually change the context
chcon -t textrel_shlib_t %{_libdir}/allegro/%{version}/alleg-vga.so \
2> /dev/null || :
@ -218,7 +218,7 @@ chcon -t textrel_shlib_t %{_libdir}/allegro/%{version}/alleg-vga.so \
# SELinux support
if [ $1 -eq 0 ]; then # final removal
semanage fcontext -d -t textrel_shlib_t \
'%{_libdir}/allegro/4\.2\.1/alleg-vga\.so' 2>/dev/null || :
'%{_libdir}/allegro/4\.2\.2/alleg-vga\.so' 2>/dev/null || :
fi
%else
%postun -p /sbin/ldconfig
@ -294,6 +294,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Sun Jan 25 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 4.2.2-11
- Fix wrong file path in semanage call in scriptlets (#481407)
* Mon May 5 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 4.2.2-10
- Look for /etc/timidity.cfg instead of /usr/share/timidity/timidity.cfg,
as the latter is no longer available now that Fedora has switched from