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