id3lib/id3lib.spec

changeset 673
004b21be0b4c
parent 387
33ae2d61c751
equal deleted inserted replaced
2:612d7e659b43 3:e2e9cb57516c
1 ## 1 ##
2 ## id3lib.spec -- OpenPKG RPM Specification 2 ## id3lib.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.
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: 3.8.3 35 Version: 3.8.3
36 Release: 20090106 36 Release: 20120800
37 37
38 # list of sources 38 # list of sources
39 Source0: http://switch.dl.sourceforge.net/id3lib/id3lib-%{version}.tar.gz 39 Source0: http://switch.dl.sourceforge.net/id3lib/id3lib-%{version}.tar.gz
40 Patch0: id3lib.patch
40 41
41 # build information 42 # build information
42 Prefix: %{l_prefix} 43 BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc, gcc::with_cxx = yes
43 BuildRoot: %{l_buildroot} 44 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 45
49 %description 46 %description
50 id3lib is an Opensource, cross platform software development library 47 id3lib is an Opensource, cross platform software development library
51 for reading, writing, and manipulating ID3v1 and ID3v2 tags. It is 48 for reading, writing, and manipulating ID3v1 and ID3v2 tags. It is
52 an ongoing project whose primary goals are full compliance with the 49 an ongoing project whose primary goals are full compliance with the
62 } 59 }
63 60
64 %prep 61 %prep
65 # unpack sources 62 # unpack sources
66 %setup -q 63 %setup -q
64 %patch -p0
65 %{l_shtool} subst \
66 -e 's;iomanip\.h;iomanip;' \
67 configure
67 68
68 %build 69 %build
69 # prepare configuration 70 # prepare configuration
70 CC="%{l_cc}" \ 71 CC="%{l_cc}" \
71 CXX="%{l_cxx}" \ 72 CXX="%{l_cxx}" \
79 80
80 # build using parallel make 81 # build using parallel make
81 %{l_make} %{l_mflags -O} 82 %{l_make} %{l_mflags -O}
82 83
83 %install 84 %install
84 # remove previously existing installations
85 rm -rf $RPM_BUILD_ROOT
86
87 # run the native installation logic 85 # run the native installation logic
88 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT 86 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
89 87
90 # strip binaries of symbols 88 # strip binaries of symbols
91 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true 89 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
94 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 92 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
95 93
96 %files -f files 94 %files -f files
97 95
98 %clean 96 %clean
99 rm -rf $RPM_BUILD_ROOT
100 97

mercurial