rpms/Glide3/devel Glide3.spec,1.15,1.16
Hans de Goede (jwrdegoede)
fedora-extras-commits at redhat.com
Fri Apr 28 09:32:50 UTC 2006
Author: jwrdegoede
Update of /cvs/extras/rpms/Glide3/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19995
Modified Files:
Glide3.spec
Log Message:
* Fri Apr 28 2006 Hans de Goede <j.w.r.degoede at hhs.nl> 20050815-4
- Add scripts to set SELinux type for the .so files to textrel_shlib_t
on i386, because of the non PIC asm used on i386 (bz 187484).
Index: Glide3.spec
===================================================================
RCS file: /cvs/extras/rpms/Glide3/devel/Glide3.spec,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- Glide3.spec 17 Feb 2006 09:48:49 -0000 1.15
+++ Glide3.spec 28 Apr 2006 09:32:50 -0000 1.16
@@ -1,29 +1,29 @@
-Name: Glide3
-Version: 20050815
-Release: 3%{?dist}
-Summary: Glide3 runtime for the 3Dfx Voodoo family of cards
-# Glide3 is x86/alpha/ia64/x86_64 only, ia64 is untested
-ExclusiveArch: %{ix86} alpha ia64 x86_64
-
-Group: User Interface/X Hardware Support
-License: 3DFX GLIDE Source Code General Public License
-URL: http://glide.sourceforge.net
-
+Name: Glide3
+Version: 20050815
+Release: 4%{?dist}
+Summary: Glide3 runtime for the 3Dfx Voodoo family of cards
+# Glide3 is x86/alpha/ia64/x86_64 only, ia64 is untested
+ExclusiveArch: %{ix86} alpha ia64 x86_64
+Group: User Interface/X Hardware Support
+License: 3DFX GLIDE Source Code General Public License
+URL: http://glide.sourceforge.net
# Create the Glide3 tarball by using:
# cvs -d :pserver:anonymous at cvs.glide.sourceforge.net:/cvsroot/glide \
# co -r glide-devel-branch Glide3
# pushd Glide3 ; find . -name CVS -type d |xargs rm -rf
# find . -name .cvsignore | xargs rm ; popd
# tar jcf Glide3-$(date +"%Y%m%d").tar.bz2 Glide3/
-Source0: %{name}-%{version}.tar.bz2
-Source1: glidelink.c
-Patch0: Glide3-warn.patch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: libX11-devel xorg-x11-proto-devel
+Source0: %{name}-%{version}.tar.bz2
+Source1: glidelink.c
+Patch0: Glide3-warn.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: libX11-devel xorg-x11-proto-devel
# Add these to try the experimental DGA support and add DGA=1 to %{glide_flags}
-# BuildRequires: libXxf86dga-devel libXxf86vm-devel
+# BuildRequires: libXxf86dga-devel libXxf86vm-devel
%ifarch %{ix86}
-BuildRequires: nasm
+BuildRequires: nasm
+Requires(post): policycoreutils /sbin/ldconfig
+Requires(postun): policycoreutils /sbin/ldconfig
%endif
%description
@@ -107,9 +107,27 @@
rm -rf $RPM_BUILD_ROOT
+%ifarch %{ix86}
+%post
+/sbin/ldconfig
+# Set SELinux file_context in the policy
+semanage fcontext -a -t textrel_shlib_t '%{_libdir}/libglide3-v.\.so' 2>/dev/null || :
+# Actually change the context
+chcon -t textrel_shlib_t %{_libdir}/libglide3-v?.so || :
+%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}/libglide3-v.\.so' 2>/dev/null || :
+fi
+%else
%postun -p /sbin/ldconfig
+%endif
%files
@@ -132,6 +150,10 @@
%changelog
+* Fri Apr 28 2006 Hans de Goede <j.w.r.degoede at hhs.nl> 20050815-4
+- Add scripts to set SELinux type for the .so files to textrel_shlib_t
+ on i386, because of the non PIC asm used on i386 (bz 187484).
+
* Mon Feb 13 2006 Hans de Goede <j.w.r.degoede at hhs.nl> 20050815-3
- Bump release and rebuild for new gcc4.1 and glibc.
- add %%{?dist} for consistency with my other packages
More information about the fedora-extras-commits
mailing list