1.1 --- a/lame/lame.spec Fri Mar 11 21:30:26 2011 +0100 1.2 +++ b/lame/lame.spec Fri Mar 11 21:36:51 2011 +0100 1.3 @@ -1,19 +1,16 @@ 1.4 Name: lame 1.5 Version: 3.98.4 1.6 -Release: 1.4 1.7 +Release: 20101201 1.8 Summary: Free MP3 audio compressor 1.9 - 1.10 +Vendor: Europalab Software 1.11 +Packager: Michael Schloh von Bennewitz 1.12 +Distribution: MeeGo Thirdparty 1.13 Group: Applications/Multimedia 1.14 License: GPLv2+ 1.15 URL: http://lame.sourceforge.net/ 1.16 Source0: http://downloads.sourceforge.net/sourceforge/lame/%{name}-%{version}.tar.gz 1.17 -Patch1: %{name}-noexecstack.patch 1.18 -Patch2: %{name}-pmake.patch 1.19 -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 1.20 - 1.21 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root 1.22 BuildRequires: ncurses-devel 1.23 -BuildRequires: gtk+-devel 1.24 -# pkg-config should be pulled in by gtk+-devel but is not in EL-5 1.25 BuildRequires: pkgconfig 1.26 %ifarch %{ix86} 1.27 BuildRequires: nasm 1.28 @@ -27,77 +24,61 @@ 1.29 1.30 %package libs 1.31 Summary: LAME MP3 encoding library 1.32 +Vendor: Europalab Software 1.33 +Packager: Michael Schloh von Bennewitz 1.34 +Distribution: MeeGo Thirdparty 1.35 Group: System Environment/Libraries 1.36 1.37 %description libs 1.38 +LAME is an open source MP3 encoder whose quality and speed matches 1.39 +commercial encoders. LAME handles MPEG1,2 and 2.5 layer III encoding 1.40 +with both constant and variable bitrates. This package provides the 1.41 LAME MP3 encoding library. 1.42 1.43 %package devel 1.44 Summary: Development files for %{name} 1.45 +Vendor: Europalab Software 1.46 +Packager: Michael Schloh von Bennewitz 1.47 +Distribution: MeeGo Thirdparty 1.48 Group: Development/Libraries 1.49 Requires: %{name}-libs = %{version}-%{release} 1.50 1.51 %description devel 1.52 -This package development files for %{name}. 1.53 - 1.54 -%package mp3x 1.55 -Summary: MP3 frame analyzer 1.56 -Group: Applications/Multimedia 1.57 -Requires: %{name} = %{version}-%{release} 1.58 - 1.59 -%description mp3x 1.60 -This package contains the mp3x frame analyzer. 1.61 - 1.62 +LAME is an open source MP3 encoder whose quality and speed matches 1.63 +commercial encoders. LAME handles MPEG1,2 and 2.5 layer III encoding 1.64 +with both constant and variable bitrates. This package provides 1.65 +development files for %{name}. 1.66 1.67 %prep 1.68 %setup -q 1.69 -%patch1 -p1 -b .noexec 1.70 -%patch2 -p1 -b .pmake 1.71 iconv -f ISO-8859-1 -t UTF8 ChangeLog > ChangeLog.tmp && touch -r ChangeLog ChangeLog.tmp && mv ChangeLog.tmp ChangeLog 1.72 1.73 - 1.74 %build 1.75 -#sed -i -e 's/^\(\s*hardcode_libdir_flag_spec\s*=\).*/\1/' configure 1.76 -#export CFLAGS="$RPM_OPT_FLAGS -ffast-math" 1.77 -unset CFLAGS 1.78 -unset CXXFLAGS 1.79 -unset FFLAGS 1.80 -unset LD_AS_NEEDED 1.81 %configure \ 1.82 - --disable-dependency-tracking \ 1.83 - --disable-static \ 1.84 %ifarch %{ix86} 1.85 --enable-nasm \ 1.86 %endif 1.87 - --enable-mp3x \ 1.88 --enable-mp3rtp \ 1.89 --enable-decode-layer1 1.90 1.91 -make 1.92 -echo $CFLAGS 1.93 +%{__make} 1.94 1.95 %install 1.96 rm -rf $RPM_BUILD_ROOT 1.97 -make install INSTALL="install -p" DESTDIR=$RPM_BUILD_ROOT 1.98 +%{__make} install DESTDIR=$RPM_BUILD_ROOT 1.99 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la 1.100 -# Some apps still expect to find <lame.h> 1.101 -ln -sf lame/lame.h $RPM_BUILD_ROOT%{_includedir}/lame.h 1.102 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} 1.103 1.104 - 1.105 %check 1.106 -make test 1.107 - 1.108 +%{__make} test 1.109 1.110 %post libs -p /sbin/ldconfig 1.111 1.112 %postun libs -p /sbin/ldconfig 1.113 1.114 - 1.115 %clean 1.116 rm -rf $RPM_BUILD_ROOT 1.117 1.118 - 1.119 %files 1.120 %defattr (-,root,root,-) 1.121 %doc README TODO USAGE doc/html/*.html doc/html/*.css 1.122 @@ -113,14 +94,13 @@ 1.123 %files devel 1.124 %defattr (-,root,root,-) 1.125 %doc API HACKING STYLEGUIDE 1.126 +%{_libdir}/libmp3lame.a 1.127 %{_libdir}/libmp3lame.so 1.128 -%{_includedir}/lame/ 1.129 -%{_includedir}/lame.h 1.130 - 1.131 -%files mp3x 1.132 -%defattr (-,root,root,-) 1.133 -%{_bindir}/mp3x 1.134 +%{_includedir}/lame 1.135 1.136 %changelog 1.137 +* Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 3.98.4-20101201 1.138 +- Adjust packaging 1.139 + 1.140 * Fri Oct 29 2010 Kozinov Ivan <kozinov@gmail.com> - 3.98.4-1 1.141 -- Build for 1.1 1.142 +- Package for MeeGo 1.1