libmad/libmad.spec

Fri, 11 Mar 2011 21:30:26 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 11 Mar 2011 21:30:26 +0100
changeset 0
4f133201e207
child 1
4667f24fe848
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

     1 Name:		libmad
     2 Version:	0.15.1b
     3 Release:	14%{?dist}
     4 Summary:	MPEG audio decoder library
     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
    14 BuildRequires:	automake
    15 BuildRequires:	autoconf
    16 BuildRequires:	libtool
    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.
    25 %package        devel
    26 Summary:	MPEG audio decoder library development files
    27 Group:		Development/Libraries
    28 Requires:	%{name} = %{version}-%{release}
    29 Requires:	pkgconfig
    31 %description	devel
    32 %{summary}.
    35 %prep
    36 %setup -q
    37 %patch0 -p1 -b .multiarch
    38 %patch1 -p1 -b .ppc
    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
    43 # Create an additional pkgconfig file
    44 %{__cat} << EOF > mad.pc
    45 prefix=%{_prefix}
    46 exec_prefix=%{_prefix}
    47 libdir=%{_libdir}
    48 includedir=%{_includedir}
    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
    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    
    71 make %{?_smp_mflags} CPPFLAGS="$RPM_OPT_FLAGS"
    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
    80 %clean
    81 rm -rf $RPM_BUILD_ROOT
    84 %post -p /sbin/ldconfig
    86 %postun -p /sbin/ldconfig
    89 %files
    90 %defattr(-,root,root,-)
    91 %doc CHANGES COPYING COPYRIGHT CREDITS README TODO
    92 %{_libdir}/libmad.so.*
    94 %files devel
    95 %defattr(-,root,root,-)
    96 %{_libdir}/libmad.so
    97 %{_libdir}/pkgconfig/mad.pc
    98 %{_includedir}/mad.h
   101 %changelog
   102 * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 0.15.1b-14
   103 - Build for MeeGo 1.1
   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
   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)
   113 * Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.15.1b-11
   114 - rebuild for new F11 features
   116 * Wed Jan 28 2009 David Juran <david@juran.se> - 0.15.1b-10
   117 - fix timestamps (Bz 264)
   119 * Sun Jan 25 2009 David Juran <david@juran.se> - 0.15.1b-9
   120 - fix multiarch (Bz 264)
   122 * Wed Jul 30 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.15.1b-8
   123 - rebuild for buildsys cflags issue
   125 * Thu Jul 24 2008 David Juran <david@juran.se> - 0.15.1b-7
   126 - Bump release for RpmFusion
   128 * Tue Feb 19 2008 David Juran <david@juran.se> - 0.15.1b-6
   129 - use $RPM_OPT_FLAGS - Bz 1873
   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
   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
   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.
   145 * Mon Mar 13 2006 Thorsten Leemhuis <fedora[AT]leemhuis.info> 0.15.1-2.b
   146 - Drop Epoch in devel dep, too
   148 * Thu Mar 09 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
   149 - switch to new release field
   150 - drop Epoch
   152 * Tue Feb 28 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
   153 - add dist
   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.
   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
   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.
   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.
   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.
   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.
   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.
   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.
   187 * Tue Mar 12 2002 Bill Nottingham <notting@redhat.com> 0.14.2b-3
   188 - ship libid3tag too
   190 * Thu Feb 21 2002 Bill Nottingham <notting@redhat.com>
   191 - rebuild
   193 * Mon Jan 28 2002 Bill Nottingham <notting@redhat.com>
   194 - split libmad off into a separate package

mercurial