rpms/xmms/devel xmms-1.2.10-multidevel.patch, NONE, 1.1 xmms.spec, 1.21, 1.22 xmms-1.2.10-extra_libs.patch, 1.1, NONE

Ville Skytta (scop) fedora-extras-commits at redhat.com
Thu May 25 12:26:59 UTC 2006


Author: scop

Update of /cvs/extras/rpms/xmms/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10629

Modified Files:
	xmms.spec 
Added Files:
	xmms-1.2.10-multidevel.patch 
Removed Files:
	xmms-1.2.10-extra_libs.patch 
Log Message:
* Thu May 25 2006 Ville Skyttä <ville.skytta at iki.fi> - 1:1.2.10-25
- Avoid multilib conflicts in -devel, introducing xmms.pc.
- Include license text in -libs.


xmms-1.2.10-multidevel.patch:

--- NEW FILE xmms-1.2.10-multidevel.patch ---
--- xmms-1.2.10/xmms-config.in~	2001-04-06 03:35:49.000000000 +0300
+++ xmms-1.2.10/xmms-config.in	2006-05-25 00:22:21.000000000 +0300
@@ -18,24 +18,6 @@
 data_dir="@datadir@/@PACKAGE@"
 
 version="@VERSION@"
-include_dir="@includedir@"
-xmms_include_dir="@includedir@/@PACKAGE@"
-lib_dir="@libdir@"
-
-if ( (gtk-config --version) > /dev/null 2>&1)  then
-   gtk_libs=`gtk-config --libs`
-   gtk_cflags=`gtk-config --cflags`
-else
-   gtk_libs="@GTK_LIBS@"
-   gtk_cflags="@GTK_CFLAGS@"
-fi
-
-plugin_dir="@plugindir@"
-visualization_plugin_dir="@plugindir@/@VISUALIZATION_PLUGIN_DIR@"
-input_plugin_dir="@plugindir@/@INPUT_PLUGIN_DIR@"
-output_plugin_dir="@plugindir@/@OUTPUT_PLUGIN_DIR@"
-effect_plugin_dir="@plugindir@/@EFFECT_PLUGIN_DIR@"
-general_plugin_dir="@plugindir@/@GENERAL_PLUGIN_DIR@"
 
 usage()
 {
@@ -146,24 +128,12 @@
     echo $exec_prefix
 fi
 
-if test "$include_dir" != "/usr/include"; then
-    cflags="-I$include_dir -I$xmms_include_dir $gtk_cflags"
-else
-    cflags="-I$xmms_include_dir $gtk_cflags"
-fi
-
-if test "$lib_dir" != "/usr/lib"; then
-    libs="-L$lib_dir $gtk_libs -lxmms"
-else
-    libs="$gtk_libs -lxmms"
-fi
-
 if test "$echo_cflags" = "yes"; then
-    echo $cflags
+    pkg-config xmms --cflags
 fi
 
 if test "$echo_libs" = "yes"; then
-    echo $libs
+    pkg-config xmms --libs
 fi
 
 if test "$echo_data_dir" = "yes"; then
@@ -171,25 +141,25 @@
 fi
 
 if test "$echo_plugin_dir" = "yes"; then
-    echo $plugin_dir
+    pkg-config xmms --variable=plugin_dir
 fi
 
 if test "$echo_visualization_plugin_dir" = "yes"; then
-    echo $visualization_plugin_dir
+    pkg-config xmms --variable=visualization_plugin_dir
 fi
 
 if test "$echo_input_plugin_dir" = "yes"; then
-    echo $input_plugin_dir
+    pkg-config xmms --variable=input_plugin_dir
 fi
 
 if test "$echo_output_plugin_dir" = "yes"; then
-    echo $output_plugin_dir
+    pkg-config xmms --variable=output_plugin_dir
 fi
 
 if test "$echo_general_plugin_dir" = "yes"; then
-    echo $general_plugin_dir
+    pkg-config xmms --variable=general_plugin_dir
 fi
 
 if test "$echo_effect_plugin_dir" = "yes"; then
-    echo $effect_plugin_dir
+    pkg-config xmms --variable=effect_plugin_dir
 fi
--- xmms-1.2.10/configure~	2004-02-23 23:44:32.000000000 +0200
+++ xmms-1.2.10/configure	2006-05-24 23:55:50.000000000 +0300
@@ -19201,7 +19201,7 @@
 
 
 
-                                                                                                                                                                                                                                                                                                                                                                        ac_config_files="$ac_config_files Makefile xmms.1 wmxmms.1 xmms.spec xmms-config xmms/Makefile xmms/defskin/Makefile Output/Makefile Output/OSS/Makefile Output/esd/Makefile Output/disk_writer/Makefile Output/solaris/Makefile Output/sun/Makefile Output/alsa/Makefile Input/Makefile Input/wav/Makefile Input/mikmod/Makefile Input/cdaudio/Makefile Input/tonegen/Makefile Input/vorbis/Makefile Effect/Makefile Effect/voice/Makefile Effect/echo_plugin/Makefile Effect/stereo_plugin/Makefile General/Makefile General/ir/Makefile General/joystick/Makefile General/song_change/Makefile Visualization/Makefile Visualization/blur_scope/Ma!
 kefile Visualization/sanalyzer/Makefile Visualization/opengl_spectrum/Makefile wmxmms/Makefile po/Makefile.in intl/Makefile"
+                                                                                                                                                                                                                                                                                                                                                                        ac_config_files="$ac_config_files Makefile xmms.1 wmxmms.1 xmms.spec xmms-config xmms.pc xmms/Makefile xmms/defskin/Makefile Output/Makefile Output/OSS/Makefile Output/esd/Makefile Output/disk_writer/Makefile Output/solaris/Makefile Output/sun/Makefile Output/alsa/Makefile Input/Makefile Input/wav/Makefile Input/mikmod/Makefile Input/cdaudio/Makefile Input/tonegen/Makefile Input/vorbis/Makefile Effect/Makefile Effect/voice/Makefile Effect/echo_plugin/Makefile Effect/stereo_plugin/Makefile General/Makefile General/ir/Makefile General/joystick/Makefile General/song_change/Makefile Visualization/Makefile Visualization/blur_!
 scope/Makefile Visualization/sanalyzer/Makefile Visualization/opengl_spectrum/Makefile wmxmms/Makefile po/Makefile.in intl/Makefile"
           ac_config_commands="$ac_config_commands default"
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
@@ -19861,6 +19861,7 @@
   "wmxmms.1" ) CONFIG_FILES="$CONFIG_FILES wmxmms.1" ;;
   "xmms.spec" ) CONFIG_FILES="$CONFIG_FILES xmms.spec" ;;
   "xmms-config" ) CONFIG_FILES="$CONFIG_FILES xmms-config" ;;
+  "xmms.pc" ) CONFIG_FILES="$CONFIG_FILES xmms.pc" ;;
   "xmms/Makefile" ) CONFIG_FILES="$CONFIG_FILES xmms/Makefile" ;;
   "xmms/defskin/Makefile" ) CONFIG_FILES="$CONFIG_FILES xmms/defskin/Makefile" ;;
   "Output/Makefile" ) CONFIG_FILES="$CONFIG_FILES Output/Makefile" ;;
--- xmms-1.2.10/xmms.pc.in~	2006-05-24 23:54:59.000000000 +0300
+++ xmms-1.2.10/xmms.pc.in	2006-05-24 23:54:48.000000000 +0300
@@ -0,0 +1,18 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+data_dir=@datadir@
+plugin_dir=@plugindir@
+visualization_plugin_dir=${plugin_dir}/@VISUALIZATION_PLUGIN_DIR@
+input_plugin_dir=${plugin_dir}/@INPUT_PLUGIN_DIR@
+output_plugin_dir=${plugin_dir}/@OUTPUT_PLUGIN_DIR@
+effect_plugin_dir=${plugin_dir}/@EFFECT_PLUGIN_DIR@
+general_plugin_dir=${plugin_dir}/@GENERAL_PLUGIN_DIR@
+
+Name: XMMS
+Description: The X MultiMedia System, a media player
+Version: @VERSION@
+Requires: gtk+
+Libs: -L${libdir} -lxmms
+Cflags: -I${includedir} -I${includedir}/@PACKAGE@


Index: xmms.spec
===================================================================
RCS file: /cvs/extras/rpms/xmms/devel/xmms.spec,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- xmms.spec	23 May 2006 19:25:25 -0000	1.21
+++ xmms.spec	25 May 2006 12:26:59 -0000	1.22
@@ -4,7 +4,7 @@
 
 Name:           xmms
 Version:        1.2.10
-Release:        24%{?dist}
+Release:        25%{?dist}
 Epoch:          1
 Summary:        The X MultiMedia System, a media player
 
@@ -28,11 +28,12 @@
 Patch5:         %{name}-1.2.8-arts.patch
 Patch6:         %{name}-1.2.8-alsalib.patch
 Patch7:         %{name}-cd-mountpoint.patch
+# Patch8 on top of patch4
+Patch8:         %{name}-1.2.10-multidevel.patch
 Patch9:         %{name}-underquoted.patch
 Patch10:        %{name}-alsa-backport.patch
 Patch11:        %{name}-1.2.10-gcc4.patch
 Patch12:        %{name}-1.2.10-crossfade-0.3.9.patch
-Patch13:        %{name}-1.2.10-extra_libs.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  gtk+-devel
@@ -71,6 +72,7 @@
 Group:          Development/Libraries
 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
 Requires:       gtk+-devel
+Requires:       pkgconfig
 
 %description    devel
 Files needed for building plug-ins for the X MultiMedia System.
@@ -94,6 +96,8 @@
 %patch6 -p1 -b .alsalib
 # Use something that's more likely to work as the default cdrom mountpoint
 %patch7 -p0 -b .cd-mountpoint
+# Avoid multilib devel conflicts
+%patch8 -p1 -b .multidevel
 # Fix m4 underquoted warning
 %patch9 -p1 -b .underquoted
 # Backport for recent ALSA
@@ -102,8 +106,6 @@
 %patch11 -p1 -b .gcc4
 # Fix for crossfade >= 0.3.9 to work properly
 %patch12 -p1 -b .crossfade
-# Remove extra libs from xmms-config output (only needed for static linking)
-%patch13 -p1 -b .extra_libs
 # Avoid standard rpaths on lib64 archs, --disable-rpath doesn't do it
 sed -i -e 's|"/lib /usr/lib"|"/%{_lib} %{_libdir}"|' configure
 
@@ -143,6 +145,8 @@
 install -Dpm 644 %{SOURCE2} \
     $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/xmms.xpm
 
+install -Dpm 644 xmms.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig/xmms.pc
+
 %find_lang %{name}
 
 
@@ -175,6 +179,7 @@
 
 %files libs
 %defattr(-,root,root,-)
+%doc COPYING
 %{_libdir}/libxmms.so.*
 %{_libdir}/xmms/
 
@@ -183,10 +188,15 @@
 %{_bindir}/xmms-config
 %{_includedir}/xmms/
 %{_libdir}/libxmms.so
+%{_libdir}/pkgconfig/xmms.pc
 %{_datadir}/aclocal/xmms.m4
 
 
 %changelog
+* Thu May 25 2006 Ville Skyttä <ville.skytta at iki.fi> - 1:1.2.10-25
+- Avoid multilib conflicts in -devel, introducing xmms.pc.
+- Include license text in -libs.
+
 * Tue May 23 2006 Ville Skyttä <ville.skytta at iki.fi> - 1:1.2.10-24
 - Apply upstream fix for joystick plugin crashes.
 


--- xmms-1.2.10-extra_libs.patch DELETED ---




More information about the fedora-extras-commits mailing list