mpg123/mpg123.spec

changeset 39
488ae692938e
child 40
d8bc8fd2a27c
equal deleted inserted replaced
-1:000000000000 0:4770a1629f8c
1 ##
2 ## mpg123.spec -- OpenPKG RPM Package Specification
3 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
4 ##
5 ## Permission to use, copy, modify, and distribute this software for
6 ## any purpose with or without fee is hereby granted, provided that
7 ## the above copyright notice and this permission notice appear in all
8 ## copies.
9 ##
10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE.
22 ##
23
24 # package information
25 Name: mpg123
26 Summary: MP3 Decoder/Player
27 URL: http://www.mpg123.org/
28 Vendor: Michael Hipp
29 Packager: OpenPKG Foundation e.V.
30 Distribution: OpenPKG Community
31 Class: PLUS
32 Group: Audio
33 License: GPL
34 Version: 1.6.3
35 Release: 20081221
36
37 # list of sources
38 Source0: http://www.mpg123.de/download/mpg123-%{version}.tar.bz2
39 Patch0: mpg123.patch
40
41 # build information
42 Prefix: %{l_prefix}
43 BuildRoot: %{l_buildroot}
44 BuildPreReq: OpenPKG, openpkg >= 20040130
45 PreReq: OpenPKG, openpkg >= 20040130
46 AutoReq: no
47 AutoReqProv: no
48
49 %description
50 mpg123 is a real time MPEG Audio Player for Layer 1,2 and Layer 3.
51
52 %track
53 prog mpg123 = {
54 version = %{version}
55 url = http://www.mpg123.de/download.shtml
56 regex = mpg123-(__VER__)\.tar\.bz2
57 }
58
59 %prep
60 %setup -q
61 %patch -p0
62
63 %build
64 CC="%{l_cc}" \
65 CFLAGS="%{l_cflags -O}" \
66 ./configure \
67 --prefix=%{l_prefix} \
68 --mandir=%{l_prefix}/man \
69 --enable-static \
70 --enable-shared
71 %{l_make} %{l_mflags -O}
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75 %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT"
76 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libmpg123.so*
77 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libmpg123.la
78 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/mpg123/*.a
79 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
80
81 %files -f files
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85

mercurial