libmad/libmad.spec

changeset 0
4f133201e207
child 1
4667f24fe848
equal deleted inserted replaced
-1:000000000000 0:0e7e0773a207
1 Name: libmad
2 Version: 0.15.1b
3 Release: 14%{?dist}
4 Summary: MPEG audio decoder library
5
6 Group: System Environment/Libraries
7 License: GPLv2
8 URL: http://www.underbit.com/products/mad/
9 Source0: http://download.sourceforge.net/mad/%{name}-%{version}.tar.gz
10 Patch0: libmad-0.15.1b-multiarch.patch
11 Patch1: libmad-0.15.1b-ppc.patch
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
13
14 BuildRequires: automake
15 BuildRequires: autoconf
16 BuildRequires: libtool
17
18
19 %description
20 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
22 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.
24
25 %package devel
26 Summary: MPEG audio decoder library development files
27 Group: Development/Libraries
28 Requires: %{name} = %{version}-%{release}
29 Requires: pkgconfig
30
31 %description devel
32 %{summary}.
33
34
35 %prep
36 %setup -q
37 %patch0 -p1 -b .multiarch
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
42
43 # Create an additional pkgconfig file
44 %{__cat} << EOF > mad.pc
45 prefix=%{_prefix}
46 exec_prefix=%{_prefix}
47 libdir=%{_libdir}
48 includedir=%{_includedir}
49
50 Name: mad
51 Description: MPEG Audio Decoder
52 Requires:
53 Version: %{version}
54 Libs: -L%{_libdir} -lmad -lm
55 Cflags: -I%{_includedir}
56 EOF
57
58
59
60 %build
61 autoreconf -sfi
62 %configure \
63 %ifarch x86_64 ia64 ppc64
64 --enable-fpm=64bit \
65 %endif
66 --disable-dependency-tracking \
67 --enable-accuracy \
68 --disable-debugging \
69 --disable-static
70
71 make %{?_smp_mflags} CPPFLAGS="$RPM_OPT_FLAGS"
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75 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
78 touch -r mad.h.sed %{buildroot}/%{_includedir}/mad.h
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83
84 %post -p /sbin/ldconfig
85
86 %postun -p /sbin/ldconfig
87
88
89 %files
90 %defattr(-,root,root,-)
91 %doc CHANGES COPYING COPYRIGHT CREDITS README TODO
92 %{_libdir}/libmad.so.*
93
94 %files devel
95 %defattr(-,root,root,-)
96 %{_libdir}/libmad.so
97 %{_libdir}/pkgconfig/mad.pc
98 %{_includedir}/mad.h
99
100
101 %changelog
102 * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 0.15.1b-14
103 - Build for MeeGo 1.1
104
105 * Sun Jul 19 2009 David Juran <david@juran.se> - 0.15.1b-13
106 - ppc asm patch from David Woodhouse (Bz 730)
107 - rpmlint warnings
108
109 * Wed Jul 1 2009 David Juran <david@juran.se> - 0.15.1b-12
110 - fix typo in multiarch patch
111 - fix ppc64 version (Bz 691)
112
113 * Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.15.1b-11
114 - rebuild for new F11 features
115
116 * Wed Jan 28 2009 David Juran <david@juran.se> - 0.15.1b-10
117 - fix timestamps (Bz 264)
118
119 * Sun Jan 25 2009 David Juran <david@juran.se> - 0.15.1b-9
120 - fix multiarch (Bz 264)
121
122 * Wed Jul 30 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.15.1b-8
123 - rebuild for buildsys cflags issue
124
125 * Thu Jul 24 2008 David Juran <david@juran.se> - 0.15.1b-7
126 - Bump release for RpmFusion
127
128 * Tue Feb 19 2008 David Juran <david@juran.se> - 0.15.1b-6
129 - use $RPM_OPT_FLAGS - Bz 1873
130
131 * Sun Sep 30 2007 David Juran <david@juran.se> - 0.15.1b-5
132 - Grab mad.pc from freshrpms.
133 - merge configure-optioins with freshrpms
134 - Adjusted Licence tag (GPLv2)
135 - Drop static archive
136
137 * Fri Oct 06 2006 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 0.15.1b-4
138 - rebuilt for unwind info generation, broken in gcc-4.1.1-21
139
140 * Tue Sep 19 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.15.1b-3
141 - Use 64bit fixed point math on x86_64.
142 - Filter deprecated gcc flags, build with dependency tracking disabled.
143 - Move "b" to version field.
144
145 * Mon Mar 13 2006 Thorsten Leemhuis <fedora[AT]leemhuis.info> 0.15.1-2.b
146 - Drop Epoch in devel dep, too
147
148 * Thu Mar 09 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
149 - switch to new release field
150 - drop Epoch
151
152 * Tue Feb 28 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
153 - add dist
154
155 * Wed Feb 18 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.15.1-0.lvn.1.b
156 - Update to 0.15.1b.
157
158 * Sun Sep 28 2003 Dams <anvil[AT]livna.org> 0:0.15.0-0.fdr.1.b.0.94
159 - Remove comment after scriptlets
160
161 * Mon Jun 30 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.15.0-0.fdr.1.b
162 - Update to 0.15.0b.
163 - Split separate from the old mad package to follow upstream.
164 - -devel requires pkgconfig.
165
166 * Thu Apr 24 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.14.2-0.fdr.3.b
167 - Fix missing "main" package dependencies in *-devel.
168 - Include patch from Debian, possibly fixes #187 comment 7, and adds
169 pkgconfig files for libraries.
170
171 * Sun Apr 20 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.14.2-0.fdr.2.b
172 - Split into mad, libmad, -devel, libid3tag and -devel packages (#187).
173 - Provide mp3-cmdline virtual package and alternative.
174 - Build shared library.
175
176 * Fri Apr 4 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.14.2-0.fdr.1.b
177 - Update to current Fedora guidelines.
178 - Exclude %%{_libdir}/*.la.
179
180 * Thu Feb 20 2003 Ville Skyttä <ville.skytta at iki.fi> - 0.14.2b-1.fedora.1
181 - First Fedora release, based on Matthias Saou's work.
182
183 * Fri Sep 27 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
184 - Rebuild for Red Hat Linux 8.0 (missing because of license issues).
185 - Spec file cleanup.
186
187 * Tue Mar 12 2002 Bill Nottingham <notting@redhat.com> 0.14.2b-3
188 - ship libid3tag too
189
190 * Thu Feb 21 2002 Bill Nottingham <notting@redhat.com>
191 - rebuild
192
193 * Mon Jan 28 2002 Bill Nottingham <notting@redhat.com>
194 - split libmad off into a separate package

mercurial