Packaging Allegro I found a SELinux related scriplet in the Fedora spec file (http://cvs.fedoraproject.org/viewvc/rpms/allegro/devel/allegro.spec?revision=1.54&view=markup). They use: %ifarch %{ix86} %post /sbin/ldconfig # Set SELinux file_context for vga plugin in the policy semanage fcontext -a -t textrel_shlib_t \ '%{_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 || : %else %post -p /sbin/ldconfig %endif %ifarch %{ix86} %postun /sbin/ldconfig # SELinux support if [ $1 -eq 0 ]; then # final removal semanage fcontext -d -t textrel_shlib_t \ '%{_libdir}/allegro/4\.2\.2/alleg-vga\.so' 2>/dev/null || : fi %else %postun -p /sbin/ldconfig %endif And since I read that since 11.1 we support SELinux... and little more, one ask himself what should be done in openSUSE. Are packages needed to be modified for SELinux? Also, since the branching in RPM has been always been something of a mistery to me. How should I modify such a scriptlet to note that SELinux is only avalable since openSUSE 11.1? - %ifarch %{ix86} && %if ! 0%{?suse_version} < 1110 ? - %ifarch %{ix86} && ! 0%{?suse_version} < 1110 ? - ... ? Thanks. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org