rpms/ladspa-swh-plugins/devel swh-plugins-0.4.15-fPIC.patch, NONE, 1.1 ladspa-swh-plugins.spec, 1.2, 1.3

Anthony Green (green) fedora-extras-commits at redhat.com
Sat Feb 3 21:46:46 UTC 2007


Author: green

Update of /cvs/extras/rpms/ladspa-swh-plugins/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28332

Modified Files:
	ladspa-swh-plugins.spec 
Added Files:
	swh-plugins-0.4.15-fPIC.patch 
Log Message:
Compile everything with -fPIC.


swh-plugins-0.4.15-fPIC.patch:

--- NEW FILE swh-plugins-0.4.15-fPIC.patch ---
--- util/Makefile.in~	2006-08-08 08:48:04.000000000 -0700
+++ util/Makefile.in	2007-02-03 13:21:45.000000000 -0800
@@ -297,20 +297,20 @@
 @AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/rms.Po at am__quote@
 
 .c.o:
- at am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
+ at am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
 @am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	$(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
- at am__fastdepCC_FALSE@	$(COMPILE) -c $<
+ at am__fastdepCC_FALSE@	$(LTCOMPILE) -c $<
 
 .c.obj:
- at am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
+ at am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
 @am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	$(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
- at am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
+ at am__fastdepCC_FALSE@	$(LTCOMPILE) -c `$(CYGPATH_W) '$<'`
 
 .c.lo:
 @am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \


Index: ladspa-swh-plugins.spec
===================================================================
RCS file: /cvs/extras/rpms/ladspa-swh-plugins/devel/ladspa-swh-plugins.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ladspa-swh-plugins.spec	7 Jan 2007 06:24:52 -0000	1.2
+++ ladspa-swh-plugins.spec	3 Feb 2007 21:46:14 -0000	1.3
@@ -3,11 +3,12 @@
 Summary:      A set of audio plugins for LADSPA
 Name:         ladspa-%{pkgname}
 Version:      0.4.15
-Release:      6%{?dist}
+Release:      7%{?dist}
 License:      GPL
 Group:        Applications/Multimedia
 Source:       http://plugin.org.uk/releases/0.4.15/swh-plugins-0.4.15.tar.gz
 Patch0:       swh-plugins-0.4.14-Makefile.in.patch
+Patch1:       swh-plugins-0.4.15-fPIC.patch
 URL:          http://plugin.org.uk/
 BuildRoot:    %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -16,9 +17,6 @@
 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).
@@ -26,6 +24,7 @@
 %prep
 %setup -q -n %{pkgname}-%{version}
 %patch0 -p0
+%patch1 -p0
 
 %build
 CFLAGS="$RPM_OPT_FLAGS" %configure --disable-static
@@ -36,18 +35,6 @@
 %{__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}
 
@@ -58,6 +45,10 @@
 %{_datadir}/ladspa/rdf/*
 
 %changelog
+* Sat Feb 03 2007 Anthony Green <green at redhat.com> 0.4.15-7
+- Remove SELinux bits and compile with fPIC instead.  
+  See bugzilla 225060 and %%patch1.
+
 * Sat Jan 06 2007 Anthony Green <green at redhat.com> 0.4.15-6
 - Add SELinux bits for sc4m_1916.so.
 - Add policycoreutils dependencies.




More information about the scm-commits mailing list