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.

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

mercurial