1 Name: libmad |
1 Name: libmad |
2 Version: 0.15.1b |
2 Summary: MPEG audio decoder library |
3 Release: 14%{?dist} |
3 Vendor: Europalab Software |
4 Summary: MPEG audio decoder library |
4 Packager: Michael Schloh von Bennewitz |
5 |
5 Distribution: MeeGo Thirdparty |
6 Group: System Environment/Libraries |
6 Version: 0.15.1b |
7 License: GPLv2 |
7 Release: 20101201 |
8 URL: http://www.underbit.com/products/mad/ |
8 Group: System Environment/Libraries |
9 Source0: http://download.sourceforge.net/mad/%{name}-%{version}.tar.gz |
9 License: GPLv2 |
10 Patch0: libmad-0.15.1b-multiarch.patch |
10 URL: http://www.underbit.com/products/mad/ |
11 Patch1: libmad-0.15.1b-ppc.patch |
11 Source0: http://download.sourceforge.net/mad/%{name}-%{version}.tar.gz |
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
13 |
|
14 BuildRequires: automake |
|
15 BuildRequires: autoconf |
|
16 BuildRequires: libtool |
|
17 |
|
18 |
13 |
19 %description |
14 %description |
20 MAD is a high-quality MPEG audio decoder. It currently supports MPEG-1 |
15 MAD is a high quality MPEG audio decoder. It currently supports MPEG-1 |
21 and the MPEG-2 extension to Lower Sampling Frequencies, as well as the |
16 and the MPEG-2 extension to Lower Sampling Frequencies, as well as the |
22 so-called MPEG 2.5 format. All three audio layers (Layer I, Layer II, |
17 so-called MPEG 2.5 format. All three audio layers (Layer I, Layer II, |
23 and Layer III a.k.a. MP3) are fully implemented. |
18 and Layer III a.k.a. MP3) are fully implemented. |
24 |
19 |
25 %package devel |
20 %package devel |
26 Summary: MPEG audio decoder library development files |
21 Summary: MPEG audio decoder library development files |
27 Group: Development/Libraries |
22 Vendor: Europalab Software |
28 Requires: %{name} = %{version}-%{release} |
23 Packager: Michael Schloh von Bennewitz |
29 Requires: pkgconfig |
24 Distribution: MeeGo Thirdparty |
|
25 Group: Development/Libraries |
|
26 Requires: %{name} = %{version}-%{release} |
|
27 Requires: pkgconfig |
30 |
28 |
31 %description devel |
29 %description devel |
32 %{summary}. |
30 MAD is a high quality MPEG audio decoder. It currently supports MPEG-1 |
33 |
31 and the MPEG-2 extension to Lower Sampling Frequencies, as well as the |
|
32 so-called MPEG 2.5 format. All three audio layers (Layer I, Layer II, |
|
33 and Layer III a.k.a. MP3) are fully implemented. This package contains |
|
34 the header and library files needed to develop with %{name}. |
34 |
35 |
35 %prep |
36 %prep |
36 %setup -q |
37 %setup -q |
37 %patch0 -p1 -b .multiarch |
38 sed -i -e /-fforce-mem/d configure* |
38 %patch1 -p1 -b .ppc |
|
39 |
|
40 sed -i -e /-fforce-mem/d configure* # -fforce-mem gone in gcc 4.2, noop earlier |
|
41 touch -r aclocal.m4 configure.ac NEWS AUTHORS ChangeLog |
39 touch -r aclocal.m4 configure.ac NEWS AUTHORS ChangeLog |
42 |
40 |
43 # Create an additional pkgconfig file |
41 # Create an additional pkgconfig file |
44 %{__cat} << EOF > mad.pc |
42 %{__cat} << EOF > mad.pc |
45 prefix=%{_prefix} |
43 prefix=%{_prefix} |
53 Version: %{version} |
51 Version: %{version} |
54 Libs: -L%{_libdir} -lmad -lm |
52 Libs: -L%{_libdir} -lmad -lm |
55 Cflags: -I%{_includedir} |
53 Cflags: -I%{_includedir} |
56 EOF |
54 EOF |
57 |
55 |
58 |
|
59 |
|
60 %build |
56 %build |
61 autoreconf -sfi |
|
62 %configure \ |
57 %configure \ |
63 %ifarch x86_64 ia64 ppc64 |
58 %ifarch x86_64 ia64 ppc64 |
64 --enable-fpm=64bit \ |
59 --enable-fpm=64bit \ |
65 %endif |
60 %endif |
66 --disable-dependency-tracking \ |
61 --enable-accuracy \ |
67 --enable-accuracy \ |
62 --disable-debugging |
68 --disable-debugging \ |
63 make %{?_smp_mflags} |
69 --disable-static |
|
70 |
|
71 make %{?_smp_mflags} CPPFLAGS="$RPM_OPT_FLAGS" |
|
72 |
64 |
73 %install |
65 %install |
74 rm -rf $RPM_BUILD_ROOT |
66 rm -rf $RPM_BUILD_ROOT |
75 make install DESTDIR=$RPM_BUILD_ROOT |
67 make install DESTDIR=$RPM_BUILD_ROOT |
76 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
|
77 %{__install} -D -p -m 0644 mad.pc %{buildroot}%{_libdir}/pkgconfig/mad.pc |
68 %{__install} -D -p -m 0644 mad.pc %{buildroot}%{_libdir}/pkgconfig/mad.pc |
78 touch -r mad.h.sed %{buildroot}/%{_includedir}/mad.h |
|
79 |
69 |
80 %clean |
70 %clean |
81 rm -rf $RPM_BUILD_ROOT |
71 rm -rf $RPM_BUILD_ROOT |
82 |
72 |
83 |
|
84 %post -p /sbin/ldconfig |
73 %post -p /sbin/ldconfig |
85 |
74 |
86 %postun -p /sbin/ldconfig |
75 %postun -p /sbin/ldconfig |
87 |
|
88 |
76 |
89 %files |
77 %files |
90 %defattr(-,root,root,-) |
78 %defattr(-,root,root,-) |
91 %doc CHANGES COPYING COPYRIGHT CREDITS README TODO |
79 %doc CHANGES COPYING COPYRIGHT CREDITS README TODO |
92 %{_libdir}/libmad.so.* |
80 %{_libdir}/libmad.so.* |
93 |
81 |
94 %files devel |
82 %files devel |
95 %defattr(-,root,root,-) |
83 %defattr(-,root,root,-) |
|
84 %{_libdir}/libmad.a |
|
85 %{_libdir}/libmad.la |
96 %{_libdir}/libmad.so |
86 %{_libdir}/libmad.so |
97 %{_libdir}/pkgconfig/mad.pc |
87 %{_libdir}/pkgconfig/mad.pc |
98 %{_includedir}/mad.h |
88 %{_includedir}/mad.h |
99 |
89 |
|
90 %changelog |
|
91 * Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 0.15.1b-20101201 |
|
92 - Adjust packaging and patch logic |
100 |
93 |
101 %changelog |
|
102 * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 0.15.1b-14 |
94 * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 0.15.1b-14 |
103 - Build for MeeGo 1.1 |
95 - Build for MeeGo 1.1 |
104 |
96 |
105 * Sun Jul 19 2009 David Juran <david@juran.se> - 0.15.1b-13 |
97 * Sun Jul 19 2009 David Juran <david@juran.se> - 0.15.1b-13 |
106 - ppc asm patch from David Woodhouse (Bz 730) |
98 - ppc asm patch from David Woodhouse (Bz 730) |