[packages/xmms-input-sndfile] - autoconf quoting fixes

qboosh qboosh at pld-linux.org
Sun May 31 06:47:11 CEST 2026


commit 0b87ae7329c8e4a6bcb6fea39425d13a2e435217
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun May 31 06:47:11 2026 +0200

    - autoconf quoting fixes

 xmms-input-sndfile.spec |  21 +++++--
 xmms_sndfile-ac.patch   | 143 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 158 insertions(+), 6 deletions(-)
---
diff --git a/xmms-input-sndfile.spec b/xmms-input-sndfile.spec
index bd09333..8c38538 100644
--- a/xmms-input-sndfile.spec
+++ b/xmms-input-sndfile.spec
@@ -1,5 +1,5 @@
 
-%define		_orig_name	xmms_sndfile
+%define		src_name	xmms_sndfile
 
 Summary:	XMMS input plugin that uses libsndfile to read files
 Summary(pl.UTF-8):	Wtyczka wejściowa dla XMMS-a używająca libsndfile do czytania plików
@@ -8,11 +8,17 @@ Version:	1.2
 Release:	3
 License:	GPL
 Group:		X11/Applications/Multimedia
-Source0:	http://www.zipworld.com.au/~erikd/XMMS/%{_orig_name}-%{version}.tar.gz
+Source0:	http://www.zipworld.com.au/~erikd/XMMS/%{src_name}-%{version}.tar.gz
 # Source0-md5:	6028307cf7b1310f0c302a4a0c212ae9
 Patch0:		cflags.patch
+Patch1:		%{src_name}-ac.patch
 URL:		http://www.xmms.org/plugins_input.html#122
-BuildRequires:	libsndfile-devel
+BuildRequires:	autoconf >= 2.50
+BuildRequires:	automake
+BuildRequires:	glib-devel >= 1.2.2
+BuildRequires:	gtk+-devel >= 1.2.2
+BuildRequires:	libsndfile-devel >= 1.0.2
+BuildRequires:	libtool
 BuildRequires:	pkgconfig
 BuildRequires:	rpmbuild(macros) >= 1.125
 BuildRequires:	xmms-devel >= 1.2.3
@@ -31,12 +37,15 @@ można otworzyć i odczytać przy pomocy biblioteki libsndfile, w tym
 WAV, AIFF, AU i SVX oraz wiele skompresowanych wersji tych formatów.
 
 %prep
-%setup -q -n %{_orig_name}-%{version}
+%setup -q -n %{src_name}-%{version}
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
+%{__libtoolize}
 %{__aclocal}
 %{__autoconf}
+%{__autoheader}
 %{__automake}
 %configure
 
@@ -49,7 +58,7 @@ rm -rf $RPM_BUILD_ROOT
 	 DESTDIR=$RPM_BUILD_ROOT
 
 # useless
-rm -f $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la
+%{__rm} $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.la
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -57,4 +66,4 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS TODO NEWS README ChangeLog
-%attr(755,root,root) %{xmms_input_plugindir}/*.so
+%{xmms_input_plugindir}/*.so
diff --git a/xmms_sndfile-ac.patch b/xmms_sndfile-ac.patch
new file mode 100644
index 0000000..19551e2
--- /dev/null
+++ b/xmms_sndfile-ac.patch
@@ -0,0 +1,143 @@
+--- xmms_sndfile-1.2/configure.ac.orig	2026-05-31 06:02:40.932193160 +0200
++++ xmms_sndfile-1.2/configure.ac	2026-05-31 06:03:21.548639789 +0200
+@@ -36,8 +36,8 @@ dnl check for libraries
+ 
+ AC_CHECK_LIB(m,main)
+ 
+-AM_PATH_GLIB(1.2.2,,AC_MSG_ERROR([*** GLIB >= 1.2.2 not installed - please install first ***]))
+-AM_PATH_GTK(1.2.2,,AC_MSG_ERROR([*** GTK+ >= 1.2.2 not installed - please install first ***]))
++AM_PATH_GLIB(1.2.2,,[AC_MSG_ERROR([*** GLIB >= 1.2.2 not installed - please install first ***])])
++AM_PATH_GTK(1.2.2,,[AC_MSG_ERROR([*** GTK+ >= 1.2.2 not installed - please install first ***])])
+ 
+ #-----------------------------------------------------------------------------
+ 
+@@ -63,7 +63,7 @@ else
+ 
+ #-----------------------------------------------------------------------------
+ 
+-AM_PATH_XMMS(1.0.0, , AC_MSG_ERROR([*** XMMS >= 1.0.0 not installed - please install first ***]))
++AM_PATH_XMMS(1.0.0, , [AC_MSG_ERROR([*** XMMS >= 1.0.0 not installed - please install first ***])])
+ 
+ AC_SUBST(VERSION)
+ AC_SUBST(SNDFILE_CFLAGS)
+--- xmms_sndfile-1.2/acinclude.m4.orig	2026-05-31 06:37:27.290890385 +0200
++++ xmms_sndfile-1.2/acinclude.m4	2026-05-31 06:43:59.455432514 +0200
+@@ -21,8 +21,8 @@ dnl    3) If 1) and 2) fails and not cro
+ dnl    4) If 1) and 2) fails and cross compiling then guess based on target.
+ 
+ AC_DEFUN([AC_C_FIND_ENDIAN],
+-[AC_CACHE_CHECK(processor byte ordering, 
+-	ac_cv_c_byte_order,
++[AC_CACHE_CHECK([processor byte ordering], 
++	ac_cv_c_byte_order, [
+ 
+ # Initialize to unknown
+ ac_cv_c_byte_order=unknown
+@@ -31,35 +31,35 @@ if test x$ac_cv_header_endian_h = xyes ;
+ 
+ 	# First try <endian.h> which should set BYTE_ORDER.
+ 
+-	[AC_TRY_LINK([
++	AC_TRY_LINK([
+ 		#include <endian.h>
+ 		#if BYTE_ORDER != LITTLE_ENDIAN
+ 			not big endian
+ 		#endif
+-		], return 0 ;, 
+-			ac_cv_c_byte_order=little
+-		)]
++		], [return 0 ;], 
++			[ac_cv_c_byte_order=little]
++		)
+ 				
+-	[AC_TRY_LINK([
++	AC_TRY_LINK([
+ 		#include <endian.h>
+ 		#if BYTE_ORDER != BIG_ENDIAN
+ 			not big endian
+ 		#endif
+-		], return 0 ;, 
+-			ac_cv_c_byte_order=big
+-		)]
++		], [return 0 ;], 
++			[ac_cv_c_byte_order=big]
++		)
+ 
+ 	fi
+ 
+ if test $ac_cv_c_byte_order = unknown ; then
+ 
+-	[AC_TRY_LINK([
++	AC_TRY_LINK([
+ 		#include <sys/types.h>
+ 		#include <sys/param.h>
+ 		#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
+ 			bogus endian macros
+ 		#endif
+-		], return 0 ;, 
++		], [return 0 ;], 
+ 
+ 		[AC_TRY_LINK([
+ 			#include <sys/types.h>
+@@ -67,8 +67,8 @@ if test $ac_cv_c_byte_order = unknown ;
+ 			#if BYTE_ORDER != LITTLE_ENDIAN
+ 				not big endian
+ 			#endif
+-			], return 0 ;, 
+-				ac_cv_c_byte_order=little
++			], [return 0 ;], 
++				[ac_cv_c_byte_order=little]
+ 			)]
+ 				
+ 		[AC_TRY_LINK([
+@@ -77,11 +77,11 @@ if test $ac_cv_c_byte_order = unknown ;
+ 			#if BYTE_ORDER != LITTLE_ENDIAN
+ 				not big endian
+ 			#endif
+-			], return 0 ;, 
+-				ac_cv_c_byte_order=little
++			], [return 0 ;], 
++				[ac_cv_c_byte_order=little]
+ 			)]
+ 
+-		)]
++		)
+ 
+  	fi
+ 
+@@ -115,8 +115,8 @@ if test $ac_cv_c_byte_order = unknown ;
+ 			u.l = 1 ;
+ 			return (u.c [sizeof (long) - 1] == 1);
+ 			}
+-			]], , ac_cv_c_byte_order=big, 
+-			ac_cv_c_byte_order=unknown
++			]], , [ac_cv_c_byte_order=big], 
++			[ac_cv_c_byte_order=unknown]
+ 			)
+ 
+ 		AC_TRY_RUN(
+@@ -128,14 +128,13 @@ if test $ac_cv_c_byte_order = unknown ;
+ 			} u ;
+ 			u.l = 1 ;
+ 			return (u.c [0] == 1);
+-			}]], , ac_cv_c_byte_order=little, 
+-			ac_cv_c_byte_order=unknown
++			}]], , [ac_cv_c_byte_order=little], 
++			[ac_cv_c_byte_order=unknown]
+ 			)
+ 		fi	
+ 	fi
+ 
+-)
+-]
++])
+ 
+ if test $ac_cv_c_byte_order = big ; then
+ 	ac_cv_c_big_endian=1
+@@ -154,5 +153,5 @@ else
+ 	AC_MSG_WARN([[*****************************************************************]])
+ 	fi
+ 
+-)# AC_C_FIND_ENDIAN
++])# AC_C_FIND_ENDIAN
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xmms-input-sndfile.git/commitdiff/0b87ae7329c8e4a6bcb6fea39425d13a2e435217



More information about the pld-cvs-commit mailing list