taglib/taglib.spec

Tue, 28 Aug 2012 18:28:35 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 28 Aug 2012 18:28:35 +0200
changeset 526
7ddfdb42afce
parent 85
e6a1cd7ed6ba
child 634
4e49d0429eeb
permissions
-rw-r--r--

Write a explicit dependency to pkgconfig file for getaddrinfo(3). The SVR4
dependencies libsocket and libnsl are needed by libgio and libglib at least,
and allow dependent software like gmime to build unmodified.

michael@70 1 ##
michael@70 2 ## taglib.spec -- OpenPKG RPM Specification
michael@70 3 ## Copyright (c) 2009 Michael Schloh von Bennewitz <michael@schloh.com>
michael@70 4 ##
michael@70 5 ## Permission to use, copy, modify, and distribute this software for
michael@70 6 ## any purpose with or without fee is hereby granted, provided that
michael@70 7 ## the above copyright notice and this permission notice appear in all
michael@70 8 ## copies.
michael@70 9 ##
michael@70 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@70 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@70 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@70 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@70 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@70 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@70 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@70 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@70 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@70 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@70 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@70 21 ## SUCH DAMAGE.
michael@70 22 ##
michael@70 23
michael@70 24
michael@70 25 # package information
michael@70 26 Name: taglib
michael@70 27 Summary: Audio Metadata Manipulation Utility
michael@70 28 URL: http://developer.kde.org/~wheeler/taglib.html
michael@70 29 Vendor: Scott Wheeler
michael@70 30 Packager: Michael Schloh von Bennewitz
michael@387 31 Distribution: Europalab Networks Production
michael@70 32 Class: EVAL
michael@70 33 Group: Audio
michael@70 34 License: LGPL
michael@70 35 Version: 1.5
michael@70 36 Release: 20090106
michael@70 37
michael@70 38 # list of sources
michael@70 39 Source0: http://developer.kde.org/~wheeler/files/src/taglib-%{version}.tar.gz
michael@70 40
michael@70 41 # build information
michael@70 42 Prefix: %{l_prefix}
michael@70 43 BuildRoot: %{l_buildroot}
michael@85 44 BuildPreReq: OpenPKG, openpkg >= 20040130, make, gcc, gcc::with_cxx = yes
michael@70 45 PreReq: OpenPKG, openpkg >= 20040130
michael@70 46 AutoReq: no
michael@70 47 AutoReqProv: no
michael@70 48
michael@70 49 %description
michael@70 50 TagLib is a library for reading and editing the metadata of several
michael@70 51 popular audio formats. Currently it supports both ID3v1 and ID3v2
michael@70 52 for MP3 files, Ogg Vorbis comments and ID3 tags and Vorbis comments
michael@70 53 in FLAC files as well as MPC.
michael@70 54
michael@70 55 %track
michael@70 56 prog taglib = {
michael@70 57 version = %{version}
michael@70 58 url = http://developer.kde.org/~wheeler/files/src/
michael@70 59 regex = taglib-(__VER__)\.tar\.gz
michael@70 60 }
michael@70 61
michael@70 62 %prep
michael@70 63 # unpack sources
michael@70 64 %setup -q
michael@70 65
michael@70 66 # correct build configuration
michael@70 67 %{l_shtool} subst \
michael@70 68 -e 's;\(if\) test \! \-f \$libstdcpp;\1 false;' \
michael@70 69 configure
michael@70 70 chmod +x admin/install-sh
michael@70 71
michael@70 72 %build
michael@70 73 # prepare configuration
michael@70 74 CC="%{l_cc}" \
michael@70 75 CXX="%{l_cxx}" \
michael@70 76 CFLAGS="%{l_cflags -O}" \
michael@70 77 CXXFLAGS="%{l_cflags -O}" \
michael@70 78 CPPFLAGS="%{l_cppflags}" \
michael@70 79 LDFLAGS="%{l_ldflags}" \
michael@74 80 GREP=grep \
michael@70 81 ./configure \
michael@70 82 --prefix=%{l_prefix} \
michael@70 83 --disable-shared
michael@70 84
michael@70 85 # build using parallel make
michael@70 86 %{l_make} %{l_mflags -O}
michael@70 87
michael@70 88 %install
michael@70 89 # remove previously existing installations
michael@70 90 rm -rf $RPM_BUILD_ROOT
michael@70 91
michael@70 92 # run the native installation logic
michael@70 93 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
michael@70 94
michael@70 95 # determine installation files
michael@70 96 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@70 97
michael@70 98 %files -f files
michael@70 99
michael@70 100 %clean
michael@70 101 rm -rf $RPM_BUILD_ROOT
michael@70 102

mercurial