Mon, 28 Jan 2013 17:37:18 +0100
Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.
1 ##
2 ## taglib.spec -- OpenPKG RPM Specification
3 ## Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com>
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 ##
25 # package information
26 Name: taglib
27 Summary: Audio Metadata Manipulation Utility
28 URL: http://developer.kde.org/~wheeler/taglib.html
29 Vendor: Scott Wheeler
30 Packager: Michael Schloh von Bennewitz
31 Distribution: Europalab Networks Production
32 Class: EVAL
33 Group: Audio
34 License: LGPL
35 Version: 1.7.2
36 Release: 20120800
38 # list of sources
39 Source0: http://www.github.com/downloads/taglib/taglib/taglib-%{version}.tar.gz
41 # build information
42 BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc, gcc::with_cxx = yes
43 PreReq: OpenPKG, openpkg >= 20100101
45 %description
46 TagLib is a library for reading and editing the metadata of several
47 popular audio formats. Currently it supports both ID3v1 and ID3v2
48 for MP3 files, Ogg Vorbis comments and ID3 tags and Vorbis comments
49 in FLAC files as well as MPC.
51 %track
52 prog taglib = {
53 version = %{version}
54 url = http://developer.kde.org/~wheeler/files/src/
55 url = http://www.github.com/downloads/taglib/taglib/
56 regex = taglib-(__VER__)\.tar\.gz
57 }
59 %prep
60 # unpack sources
61 %setup -q
63 %build
64 # prepare configuration
65 %{l_prefix}/bin/cmake \
66 -DCMAKE_INSTALL_PREFIX="%{l_prefix}" \
67 -DENABLE_STATIC=Yes \
68 -DENABLE_SHARED=No
70 # build using parallel make
71 %{l_make} %{l_mflags -O}
73 %install
74 # run the native installation logic
75 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
77 # remove shared libs forcibly built by cmake(1)
78 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libtag_c.so*
80 # determine installation files
81 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
83 %files -f files
85 %clean