lame/lame.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:           lame
     2 Version:        3.98.4
     3 Release:        1.4
     4 Summary:        Free MP3 audio compressor
     6 Group:          Applications/Multimedia
     7 License:        GPLv2+
     8 URL:            http://lame.sourceforge.net/
     9 Source0:        http://downloads.sourceforge.net/sourceforge/lame/%{name}-%{version}.tar.gz
    10 Patch1:         %{name}-noexecstack.patch
    11 Patch2:         %{name}-pmake.patch
    12 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
    14 BuildRequires:  ncurses-devel
    15 BuildRequires:  gtk+-devel
    16 # pkg-config should be pulled in by gtk+-devel but is not in EL-5
    17 BuildRequires:  pkgconfig
    18 %ifarch %{ix86}
    19 BuildRequires:  nasm
    20 %endif
    21 Requires:       %{name}-libs = %{version}-%{release}
    23 %description
    24 LAME is an open source MP3 encoder whose quality and speed matches
    25 commercial encoders. LAME handles MPEG1,2 and 2.5 layer III encoding
    26 with both constant and variable bitrates.
    28 %package        libs
    29 Summary:        LAME MP3 encoding library
    30 Group:          System Environment/Libraries
    32 %description    libs
    33 LAME MP3 encoding library.
    35 %package        devel
    36 Summary:        Development files for %{name}
    37 Group:          Development/Libraries
    38 Requires:       %{name}-libs = %{version}-%{release}
    40 %description    devel
    41 This package development files for %{name}.
    43 %package        mp3x
    44 Summary:        MP3 frame analyzer
    45 Group:          Applications/Multimedia
    46 Requires:       %{name} = %{version}-%{release}
    48 %description    mp3x
    49 This package contains the mp3x frame analyzer.
    52 %prep
    53 %setup -q
    54 %patch1 -p1 -b .noexec
    55 %patch2 -p1 -b .pmake
    56 iconv -f ISO-8859-1 -t UTF8 ChangeLog > ChangeLog.tmp && touch -r ChangeLog ChangeLog.tmp && mv ChangeLog.tmp ChangeLog
    59 %build
    60 #sed -i -e 's/^\(\s*hardcode_libdir_flag_spec\s*=\).*/\1/' configure
    61 #export CFLAGS="$RPM_OPT_FLAGS -ffast-math"
    62 unset CFLAGS
    63 unset CXXFLAGS
    64 unset FFLAGS
    65 unset LD_AS_NEEDED
    66 %configure \
    67   --disable-dependency-tracking \
    68   --disable-static \
    69 %ifarch %{ix86}
    70   --enable-nasm \
    71 %endif
    72   --enable-mp3x \
    73   --enable-mp3rtp \
    74   --enable-decode-layer1
    76 make
    77 echo $CFLAGS
    79 %install
    80 rm -rf $RPM_BUILD_ROOT
    81 make install INSTALL="install -p" DESTDIR=$RPM_BUILD_ROOT
    82 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
    83 # Some apps still expect to find <lame.h>
    84 ln -sf lame/lame.h $RPM_BUILD_ROOT%{_includedir}/lame.h
    85 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
    88 %check
    89 make test
    92 %post libs -p /sbin/ldconfig
    94 %postun libs -p /sbin/ldconfig
    97 %clean
    98 rm -rf $RPM_BUILD_ROOT
   101 %files
   102 %defattr (-,root,root,-)
   103 %doc README TODO USAGE doc/html/*.html doc/html/*.css
   104 %{_bindir}/lame
   105 %{_bindir}/mp3rtp
   106 %{_mandir}/man1/lame.1*
   108 %files libs
   109 %defattr(-,root,root,-)
   110 %doc ChangeLog COPYING LICENSE
   111 %{_libdir}/libmp3lame.so.*
   113 %files devel
   114 %defattr (-,root,root,-)
   115 %doc API HACKING STYLEGUIDE
   116 %{_libdir}/libmp3lame.so
   117 %{_includedir}/lame/
   118 %{_includedir}/lame.h
   120 %files mp3x
   121 %defattr (-,root,root,-)
   122 %{_bindir}/mp3x
   124 %changelog
   125 * Fri Oct 29 2010 Kozinov Ivan <kozinov@gmail.com> - 3.98.4-1
   126 - Build for 1.1

mercurial