michael@70: ## michael@70: ## taglib.spec -- OpenPKG RPM Specification michael@634: ## Copyright (c) 2012 Michael Schloh von Bennewitz michael@70: ## michael@70: ## Permission to use, copy, modify, and distribute this software for michael@70: ## any purpose with or without fee is hereby granted, provided that michael@70: ## the above copyright notice and this permission notice appear in all michael@70: ## copies. michael@70: ## michael@70: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@70: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@70: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@70: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@70: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@70: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@70: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@70: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@70: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@70: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@70: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@70: ## SUCH DAMAGE. michael@70: ## michael@70: michael@70: michael@70: # package information michael@70: Name: taglib michael@70: Summary: Audio Metadata Manipulation Utility michael@70: URL: http://developer.kde.org/~wheeler/taglib.html michael@70: Vendor: Scott Wheeler michael@70: Packager: Michael Schloh von Bennewitz michael@387: Distribution: Europalab Networks Production michael@70: Class: EVAL michael@70: Group: Audio michael@70: License: LGPL michael@634: Version: 1.7.2 michael@634: Release: 20120800 michael@70: michael@70: # list of sources michael@634: Source0: http://www.github.com/downloads/taglib/taglib/taglib-%{version}.tar.gz michael@70: michael@70: # build information michael@634: BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc, gcc::with_cxx = yes michael@634: PreReq: OpenPKG, openpkg >= 20100101 michael@70: michael@70: %description michael@70: TagLib is a library for reading and editing the metadata of several michael@70: popular audio formats. Currently it supports both ID3v1 and ID3v2 michael@70: for MP3 files, Ogg Vorbis comments and ID3 tags and Vorbis comments michael@70: in FLAC files as well as MPC. michael@70: michael@70: %track michael@70: prog taglib = { michael@70: version = %{version} michael@70: url = http://developer.kde.org/~wheeler/files/src/ michael@634: url = http://www.github.com/downloads/taglib/taglib/ michael@70: regex = taglib-(__VER__)\.tar\.gz michael@70: } michael@70: michael@70: %prep michael@70: # unpack sources michael@70: %setup -q michael@70: michael@70: %build michael@70: # prepare configuration michael@634: %{l_prefix}/bin/cmake \ michael@634: -DCMAKE_INSTALL_PREFIX="%{l_prefix}" \ michael@634: -DENABLE_STATIC=Yes \ michael@634: -DENABLE_SHARED=No michael@70: michael@70: # build using parallel make michael@70: %{l_make} %{l_mflags -O} michael@70: michael@70: %install michael@70: # run the native installation logic michael@70: %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT michael@70: michael@634: # remove shared libs forcibly built by cmake(1) michael@634: rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libtag_c.so* michael@634: michael@70: # determine installation files michael@70: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@70: michael@70: %files -f files michael@70: michael@70: %clean michael@70: