source: projects/specs/trunk/nonfree/self-build-lame/lame-vl.spec @ 6241

Revision 6241, 4.7 KB checked in by munepi, 12 years ago (diff)

upgrade some self-build packages; remove obsolete self-build packages

Line 
1Summary:        LAME Ain't an MP3 Encoder... but it's the best.
2Name:           lame
3Version:        3.99.5
4Release:        1%{?_dist_release}
5License:        GPLv2+
6Group:          Applications/Multimedia
7URL:            http://lame.sourceforge.net/
8#Source:                http://prdownloads.sourceforge.net/lame/lame-%{version}.tar.gz
9Source:         http://prdownloads.sourceforge.net/lame/lame-%{version}.tar.gz
10Patch1:         %{name}-noexecstack.patch
11
12Patch10:        lame-3.99-libs-termcap.patch
13
14BuildRoot:      %{_tmppath}/%{name}-%{version}-root
15
16%{?enable_brhist:BuildRequires: ncurses-devel}
17BuildRequires:  gtk+-devel
18BuildRequires:  nasm
19%{?enable_brhist:Requires:      ncurses}
20
21Requires(post):   ldconfig
22Requires(postun): ldconfig
23
24%description
25LAME is an educational tool to be used for learning about MP3 encoding.
26The goal of the LAME project is to use the open source model to improve
27the psycho acoustics, noise shaping and speed of MP3.
28
29%package mp3x
30Summary:        GTK frame analyzer for lame
31Group:          Applications/Multimedia
32Requires:       %{name} = %{version}-%{release}
33Requires:       gtk+
34
35%description mp3x
36LAME is an educational tool to be used for learning about MP3 encoding.
37The goal of the LAME project is to use the open source model to improve
38the psycho acoustics, noise shaping and speed of MP3.
39
40This package contains the GTK frame analyzer.
41
42%package devel
43Summary:        Shared and static libraries for LAME.
44Group:          Development/Libraries
45Requires:       %{name} = %{version}-%{release}
46
47%description devel
48LAME is an educational tool to be used for learning about MP3 encoding.
49The goal of the LAME project is to use the open source model to improve
50the psycho acoustics, noise shaping and speed of MP3.
51
52This package contains the libraries and includes files needed to develop
53applications with lame.
54
55%prep
56%setup -q
57
58%patch1 -p1 -b .noexec
59%patch10 -p1 -b .termcap
60
61%build
62%__sed -i -e 's/^\(\s*hardcode_libdir_flag_spec\s*=\).*/\1/' configure
63%ifarch %{ix86} x86_64
64export CFLAGS="$RPM_OPT_FLAGS -ffast-math"
65%endif
66%configure \
67    --disable-dependency-tracking \
68    --disable-static \
69%ifarch %{ix86} x86_64
70    --enable-nasm \
71%else
72    --disable-nasm \
73%endif
74    --enable-decoder \
75    --without-vorbis \
76    --enable-mp3x \
77    --enable-mp3rtp \
78    --enable-decode-layer1 \
79    %{?enable_brhist:--enable-brhist}%{!?enable_brhist:--disable-brhist} \
80    --disable-debug \
81    ;
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 May 26 2012 Munehiro Yamamoto <munepi@vinelinux.org> 3.99.5
131- new upstream release
132
133* Wed Oct 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.99-1
134- new upstream release
135- applied lame-3.99-libs-termcap.patch
136
137* Sun Sep 11 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.4-2
138- change release to sync with self-build-lame
139
140* Sat Mar 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.4-1
141- new upstream release
142
143* Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.3-1
144- new upstream release
145
146* Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.2-2
147- change release to sync with self-build-lame
148
149* Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.2-1
150- new upstream release
151- applied some patches from RPM Fusion development
152- added in %%configure:
153  --enable-decode-layer1
154  --disable-dependency-tracking
155  --disable-static
156
157* Fri Jun 05 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 3.97-5
158- change release to sync with self-build-lame
159
160* Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 3.97-4
161- change release to sync with self-build-lame
162
163* Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 3.97-3
164- spec in utf8
165- remove *.la
166
167* Wed May 07 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.97-2
168- change %%{__make} option to -j1 <BTS:VineLinux:611>
169
170* Sat May 03 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.97-1
171- apply new versioning policy
172
173* Sun Nov 12 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 3.97-0vl3
174- fix typo
175
176* Sun Nov 12 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 3.97-0vl2
177- link libmp3lame with libm (patch1)
178
179* Sat Nov 11 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 3.97-0vl1
180- initial build
Note: See TracBrowser for help on using the repository browser.