taglib/taglib.spec

changeset 761
3d752068b7fb
parent 387
33ae2d61c751
equal deleted inserted replaced
3:63776e909a38 4:68422120c241
1 ## 1 ##
2 ## taglib.spec -- OpenPKG RPM Specification 2 ## taglib.spec -- OpenPKG RPM Specification
3 ## Copyright (c) 2009 Michael Schloh von Bennewitz <michael@schloh.com> 3 ## Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com>
4 ## 4 ##
5 ## Permission to use, copy, modify, and distribute this software for 5 ## Permission to use, copy, modify, and distribute this software for
6 ## any purpose with or without fee is hereby granted, provided that 6 ## any purpose with or without fee is hereby granted, provided that
7 ## the above copyright notice and this permission notice appear in all 7 ## the above copyright notice and this permission notice appear in all
8 ## copies. 8 ## copies.
30 Packager: Michael Schloh von Bennewitz 30 Packager: Michael Schloh von Bennewitz
31 Distribution: Europalab Networks Production 31 Distribution: Europalab Networks Production
32 Class: EVAL 32 Class: EVAL
33 Group: Audio 33 Group: Audio
34 License: LGPL 34 License: LGPL
35 Version: 1.5 35 Version: 1.7.2
36 Release: 20090106 36 Release: 20120800
37 37
38 # list of sources 38 # list of sources
39 Source0: http://developer.kde.org/~wheeler/files/src/taglib-%{version}.tar.gz 39 Source0: http://www.github.com/downloads/taglib/taglib/taglib-%{version}.tar.gz
40 40
41 # build information 41 # build information
42 Prefix: %{l_prefix} 42 BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc, gcc::with_cxx = yes
43 BuildRoot: %{l_buildroot} 43 PreReq: OpenPKG, openpkg >= 20100101
44 BuildPreReq: OpenPKG, openpkg >= 20040130, make, gcc, gcc::with_cxx = yes
45 PreReq: OpenPKG, openpkg >= 20040130
46 AutoReq: no
47 AutoReqProv: no
48 44
49 %description 45 %description
50 TagLib is a library for reading and editing the metadata of several 46 TagLib is a library for reading and editing the metadata of several
51 popular audio formats. Currently it supports both ID3v1 and ID3v2 47 popular audio formats. Currently it supports both ID3v1 and ID3v2
52 for MP3 files, Ogg Vorbis comments and ID3 tags and Vorbis comments 48 for MP3 files, Ogg Vorbis comments and ID3 tags and Vorbis comments
54 50
55 %track 51 %track
56 prog taglib = { 52 prog taglib = {
57 version = %{version} 53 version = %{version}
58 url = http://developer.kde.org/~wheeler/files/src/ 54 url = http://developer.kde.org/~wheeler/files/src/
55 url = http://www.github.com/downloads/taglib/taglib/
59 regex = taglib-(__VER__)\.tar\.gz 56 regex = taglib-(__VER__)\.tar\.gz
60 } 57 }
61 58
62 %prep 59 %prep
63 # unpack sources 60 # unpack sources
64 %setup -q 61 %setup -q
65 62
66 # correct build configuration
67 %{l_shtool} subst \
68 -e 's;\(if\) test \! \-f \$libstdcpp;\1 false;' \
69 configure
70 chmod +x admin/install-sh
71
72 %build 63 %build
73 # prepare configuration 64 # prepare configuration
74 CC="%{l_cc}" \ 65 %{l_prefix}/bin/cmake \
75 CXX="%{l_cxx}" \ 66 -DCMAKE_INSTALL_PREFIX="%{l_prefix}" \
76 CFLAGS="%{l_cflags -O}" \ 67 -DENABLE_STATIC=Yes \
77 CXXFLAGS="%{l_cflags -O}" \ 68 -DENABLE_SHARED=No
78 CPPFLAGS="%{l_cppflags}" \
79 LDFLAGS="%{l_ldflags}" \
80 GREP=grep \
81 ./configure \
82 --prefix=%{l_prefix} \
83 --disable-shared
84 69
85 # build using parallel make 70 # build using parallel make
86 %{l_make} %{l_mflags -O} 71 %{l_make} %{l_mflags -O}
87 72
88 %install 73 %install
89 # remove previously existing installations
90 rm -rf $RPM_BUILD_ROOT
91
92 # run the native installation logic 74 # run the native installation logic
93 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT 75 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
76
77 # remove shared libs forcibly built by cmake(1)
78 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libtag_c.so*
94 79
95 # determine installation files 80 # determine installation files
96 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 81 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
97 82
98 %files -f files 83 %files -f files
99 84
100 %clean 85 %clean
101 rm -rf $RPM_BUILD_ROOT
102 86

mercurial