[-]
[+]
|
Changed |
mad.spec
|
|
[-]
[+]
|
Added |
libmad-0.15.1b-automake.patch
^
|
@@ -0,0 +1,11 @@
+--- Makefile.am-dist 2004-02-26 12:49:05.000000000 +0100
++++ Makefile.am 2004-02-26 12:49:13.000000000 +0100
+@@ -21,6 +21,8 @@
+
+ ## Process this file with automake to produce Makefile.in
+
++AUTOMAKE_OPTIONS = foreign
++
+ SUBDIRS =
+ DIST_SUBDIRS = msvc++
+
|
[-]
[+]
|
Added |
libmad-0.15.1b-gcc43.patch
^
|
@@ -0,0 +1,22 @@
+diff -urN libmad-0.15.1b.patched/configure libmad-0.15.1b/configure
+--- libmad-0.15.1b.patched/configure 2008-01-19 23:39:51.000000000 +0200
++++ libmad-0.15.1b/configure 2008-01-19 23:40:46.000000000 +0200
+@@ -19099,7 +19099,6 @@
+ case "$optimize" in
+ -O|"-O "*)
+ optimize="-O"
+- optimize="$optimize -fforce-mem"
+ optimize="$optimize -fforce-addr"
+ : #x optimize="$optimize -finline-functions"
+ : #- optimize="$optimize -fstrength-reduce"
+diff -urN libmad-0.15.1b.patched/configure.ac libmad-0.15.1b/configure.ac
+--- libmad-0.15.1b.patched/configure.ac 2008-01-19 23:39:51.000000000 +0200
++++ libmad-0.15.1b/configure.ac 2008-01-19 23:40:53.000000000 +0200
+@@ -140,7 +140,6 @@
+ case "$optimize" in
+ -O|"-O "*)
+ optimize="-O"
+- optimize="$optimize -fforce-mem"
+ optimize="$optimize -fforce-addr"
+ : #x optimize="$optimize -finline-functions"
+ : #- optimize="$optimize -fstrength-reduce"
|
[-]
[+]
|
Added |
mad.spec-old
^
|
@@ -0,0 +1,97 @@
+# norootforbuild
+
+Name: mad
+Summary: An MPEG audio decoder library
+Summary(de): MAD ist ein high-quality MPEG audio decoder.
+BuildPreReq: sed
+Version: 0.15.1b
+Release: 1.pm.3
+Group: System/Libraries
+License: GPL
+URL: http://www.underbit.com/products/mad/
+Source: libmad-%{version}.tar.bz2
+Patch0: mad-automake-fix.dif
+Patch1: libmad-0.15.1b-pkgconfig.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+
+%description
+MAD is a high-quality MPEG audio decoder. It currently supports MPEG-1
+and the MPEG-2 extension to Lower Sampling Frequencies, as well as the
+so-called MPEG 2.5 format. All three audio layers (Layer I, Layer II,
+and Layer III a.k.a. MP3) are fully implemented.
+
+MAD supports high quality 24-bit PCM output for modern audio
+technologies. MAD computes using 100% fixed-point (integer)
+computation, so you can run it without a floating point unit.
+
+
+
+Authors:
+--------
+ Underbit Technologies, Inc. <support@underbit.com>
+
+%package devel
+Summary: Development package for mad
+Group: Development/Libraries/C and C++
+Requires: mad
+
+%description devel
+This package contains the header files and static libraries needed to
+develop applications with libmad.
+
+
+
+Authors:
+--------
+ Underbit Technologies, Inc. <support@underbit.com>
+
+%prep
+%setup -n libmad-%{version}
+%patch0
+%patch1 -p 1
+%__sed -i s/" -fforce-mem"/""/g configure
+%__sed -i s/" -fforce-mem"/""/g configure.ac
+
+%build
+%{?suse_update_config:%{suse_update_config -f}}
+autoreconf -fi
+%configure
+%__make
+
+%install
+%makeinstall
+%{__install} -D -m 0644 mad.pc %{buildroot}%{_libdir}/pkgconfig/mad.pc
+
+%post
+%if 0%{?suse_version}
+%run_ldconfig
+%else
+/sbin/ldconfig
+%endif
+
+%postun
+%if 0%{?suse_version}
+%run_ldconfig
+%else
+/sbin/ldconfig
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+%doc CHANGES COPYING COPYRIGHT CREDITS README TODO VERSION
+%{_libdir}/lib*.so.*
+
+%files devel
+%defattr(-,root,root)
+%{_includedir}/*
+%{_libdir}/*.*a
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*.pc
+
+%changelog -n mad
+* Sun Sep 30 2007 Carsten Schoene <cs@linux-administrator.com>
+- import for SLE_10 build
+
|