[620] | 1 | Summary: LAME Ain't an MP3 Encoder... but it's the best. |
---|
| 2 | Name: lame |
---|
[692] | 3 | Version: 3.98.4 |
---|
[4754] | 4 | Release: 2%{?_dist_release} |
---|
[620] | 5 | License: LGPL |
---|
| 6 | Group: Applications/Multimedia |
---|
| 7 | URL: http://lame.sourceforge.net/ |
---|
| 8 | #Source: http://prdownloads.sourceforge.net/lame/lame-%{version}.tar.gz |
---|
| 9 | Source: http://prdownloads.sourceforge.net/lame/lame-%{version}.tar.gz |
---|
| 10 | Patch1: %{name}-noexecstack.patch |
---|
| 11 | Patch2: %{name}-pmake.patch |
---|
| 12 | |
---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 14 | |
---|
[4754] | 15 | %{?enable_brhist:BuildRequires: ncurses-devel} |
---|
[620] | 16 | BuildRequires: gtk+-devel |
---|
| 17 | BuildRequires: nasm |
---|
[4754] | 18 | %{?enable_brhist:Requires: ncurses} |
---|
[620] | 19 | |
---|
| 20 | Requires(post): ldconfig |
---|
| 21 | Requires(postun): ldconfig |
---|
| 22 | |
---|
| 23 | %description |
---|
| 24 | LAME is an educational tool to be used for learning about MP3 encoding. |
---|
| 25 | The goal of the LAME project is to use the open source model to improve |
---|
| 26 | the psycho acoustics, noise shaping and speed of MP3. |
---|
| 27 | |
---|
| 28 | %package mp3x |
---|
| 29 | Summary: GTK frame analyzer for lame |
---|
| 30 | Group: Applications/Multimedia |
---|
| 31 | Requires: %{name} = %{version}-%{release} |
---|
| 32 | Requires: gtk+ |
---|
| 33 | |
---|
| 34 | %description mp3x |
---|
| 35 | LAME is an educational tool to be used for learning about MP3 encoding. |
---|
| 36 | The goal of the LAME project is to use the open source model to improve |
---|
| 37 | the psycho acoustics, noise shaping and speed of MP3. |
---|
| 38 | |
---|
| 39 | This package contains the GTK frame analyzer. |
---|
| 40 | |
---|
| 41 | %package devel |
---|
| 42 | Summary: Shared and static libraries for LAME. |
---|
| 43 | Group: Development/Libraries |
---|
| 44 | Requires: %{name} = %{version}-%{release} |
---|
| 45 | |
---|
| 46 | %description devel |
---|
| 47 | LAME is an educational tool to be used for learning about MP3 encoding. |
---|
| 48 | The goal of the LAME project is to use the open source model to improve |
---|
| 49 | the psycho acoustics, noise shaping and speed of MP3. |
---|
| 50 | |
---|
| 51 | This package contains the libraries and includes files needed to develop |
---|
| 52 | applications with lame. |
---|
| 53 | |
---|
| 54 | %prep |
---|
| 55 | %setup -q |
---|
| 56 | |
---|
| 57 | %patch1 -p1 -b .noexec |
---|
| 58 | %patch2 -p1 -b .pmake |
---|
| 59 | |
---|
| 60 | %build |
---|
| 61 | %__sed -i -e 's/^\(\s*hardcode_libdir_flag_spec\s*=\).*/\1/' configure |
---|
| 62 | %ifarch %{ix86} x86_64 |
---|
| 63 | export CFLAGS="$RPM_OPT_FLAGS -ffast-math" |
---|
| 64 | %endif |
---|
| 65 | %configure \ |
---|
| 66 | --disable-dependency-tracking \ |
---|
| 67 | --disable-static \ |
---|
| 68 | %ifarch %{ix86} x86_64 |
---|
| 69 | --enable-nasm \ |
---|
| 70 | %else |
---|
| 71 | --disable-nasm \ |
---|
| 72 | %endif |
---|
| 73 | --enable-decoder \ |
---|
| 74 | --without-vorbis \ |
---|
| 75 | --enable-mp3x \ |
---|
| 76 | --enable-mp3rtp \ |
---|
| 77 | --enable-decode-layer1 \ |
---|
[4754] | 78 | %{?enable_brhist:--enable-brhist}%{!?enable_brhist:--disable-brhist} \ |
---|
| 79 | --disable-debug \ |
---|
| 80 | ; |
---|
[620] | 81 | |
---|
| 82 | %__make %{?_smp_mflags} |
---|
| 83 | |
---|
| 84 | %check |
---|
| 85 | %__make test |
---|
| 86 | |
---|
| 87 | %install |
---|
| 88 | %__rm -rf %{buildroot} |
---|
| 89 | %makeinstall |
---|
| 90 | |
---|
| 91 | %__rm -rf installed-docs |
---|
| 92 | %__mv -f %{buildroot}%{_datadir}/doc/%{name} installed-docs |
---|
| 93 | |
---|
| 94 | # some apps still expect to find <lame.h> |
---|
| 95 | %__ln_s -f lame/lame.h %{buildroot}%{_includedir}/lame.h |
---|
| 96 | |
---|
| 97 | # remove unpackaged files |
---|
| 98 | %__rm -f $RPM_BUILD_ROOT%{_libdir}/*.{la,a} |
---|
| 99 | |
---|
| 100 | |
---|
| 101 | %post -p /sbin/ldconfig |
---|
| 102 | |
---|
| 103 | %postun -p /sbin/ldconfig |
---|
| 104 | |
---|
| 105 | %clean |
---|
| 106 | %__rm -rf %{buildroot} |
---|
| 107 | |
---|
| 108 | %files |
---|
| 109 | %defattr (-,root,root) |
---|
| 110 | %doc COPYING ChangeLog LICENSE README TODO USAGE |
---|
| 111 | %doc installed-docs/* |
---|
| 112 | %{_bindir}/lame |
---|
| 113 | %{_bindir}/mp3rtp |
---|
| 114 | %{_libdir}/lib*.so.* |
---|
| 115 | %{_mandir}/man1/lame.1* |
---|
| 116 | |
---|
| 117 | %files mp3x |
---|
| 118 | %defattr (-,root,root) |
---|
| 119 | %{_bindir}/mp3x |
---|
| 120 | |
---|
| 121 | %files devel |
---|
| 122 | %defattr (-,root,root) |
---|
| 123 | %doc API HACKING STYLEGUIDE |
---|
| 124 | %{_libdir}/lib*.so |
---|
| 125 | %{_includedir}/lame |
---|
| 126 | %{_includedir}/lame.h |
---|
| 127 | |
---|
| 128 | %changelog |
---|
[4754] | 129 | * Sun Sep 11 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.4-2 |
---|
| 130 | - change release to sync with self-build-lame |
---|
| 131 | |
---|
[692] | 132 | * Sat Mar 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.4-1 |
---|
| 133 | - new upstream release |
---|
| 134 | |
---|
[620] | 135 | * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.3-1 |
---|
| 136 | - new upstream release |
---|
| 137 | |
---|
| 138 | * Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.2-2 |
---|
| 139 | - change release to sync with self-build-lame |
---|
| 140 | |
---|
| 141 | * Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.2-1 |
---|
| 142 | - new upstream release |
---|
| 143 | - applied some patches from RPM Fusion development |
---|
| 144 | - added in %%configure: |
---|
| 145 | --enable-decode-layer1 |
---|
| 146 | --disable-dependency-tracking |
---|
| 147 | --disable-static |
---|
| 148 | |
---|
| 149 | * Fri Jun 05 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 3.97-5 |
---|
| 150 | - change release to sync with self-build-lame |
---|
| 151 | |
---|
| 152 | * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 3.97-4 |
---|
| 153 | - change release to sync with self-build-lame |
---|
| 154 | |
---|
| 155 | * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 3.97-3 |
---|
| 156 | - spec in utf8 |
---|
| 157 | - remove *.la |
---|
| 158 | |
---|
| 159 | * Wed May 07 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.97-2 |
---|
| 160 | - change %%{__make} option to -j1 <BTS:VineLinux:611> |
---|
| 161 | |
---|
| 162 | * Sat May 03 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.97-1 |
---|
| 163 | - apply new versioning policy |
---|
| 164 | |
---|
| 165 | * Sun Nov 12 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 3.97-0vl3 |
---|
| 166 | - fix typo |
---|
| 167 | |
---|
| 168 | * Sun Nov 12 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 3.97-0vl2 |
---|
| 169 | - link libmp3lame with libm (patch1) |
---|
| 170 | |
---|
| 171 | * Sat Nov 11 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 3.97-0vl1 |
---|
| 172 | - initial build |
---|