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

Revision 4754, 4.5 KB checked in by munepi, 13 years ago (diff)

updated self-build-*: supported vl7 (VineSeed)

Line 
1Summary:        LAME Ain't an MP3 Encoder... but it's the best.
2Name:           lame
3Version:        3.98.4
4Release:        2%{?_dist_release}
5License:        LGPL
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
11Patch2:         %{name}-pmake.patch
12
13BuildRoot:      %{_tmppath}/%{name}-%{version}-root
14
15%{?enable_brhist:BuildRequires: ncurses-devel}
16BuildRequires:  gtk+-devel
17BuildRequires:  nasm
18%{?enable_brhist:Requires:      ncurses}
19
20Requires(post):   ldconfig
21Requires(postun): ldconfig
22
23%description
24LAME is an educational tool to be used for learning about MP3 encoding.
25The goal of the LAME project is to use the open source model to improve
26the psycho acoustics, noise shaping and speed of MP3.
27
28%package mp3x
29Summary:        GTK frame analyzer for lame
30Group:          Applications/Multimedia
31Requires:       %{name} = %{version}-%{release}
32Requires:       gtk+
33
34%description mp3x
35LAME is an educational tool to be used for learning about MP3 encoding.
36The goal of the LAME project is to use the open source model to improve
37the psycho acoustics, noise shaping and speed of MP3.
38
39This package contains the GTK frame analyzer.
40
41%package devel
42Summary:        Shared and static libraries for LAME.
43Group:          Development/Libraries
44Requires:       %{name} = %{version}-%{release}
45
46%description devel
47LAME is an educational tool to be used for learning about MP3 encoding.
48The goal of the LAME project is to use the open source model to improve
49the psycho acoustics, noise shaping and speed of MP3.
50
51This package contains the libraries and includes files needed to develop
52applications 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
63export 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 \
78    %{?enable_brhist:--enable-brhist}%{!?enable_brhist:--disable-brhist} \
79    --disable-debug \
80    ;
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
129* Sun Sep 11 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.4-2
130- change release to sync with self-build-lame
131
132* Sat Mar 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 3.98.4-1
133- new upstream release
134
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
Note: See TracBrowser for help on using the repository browser.