# HG changeset patch # User Michael Schloh von Bennewitz # Date 1346173350 -7200 # Node ID 4e49d0429eeb9c16c8884dd566e6f6144d3ca3a0 # Parent be8a9b152c6e1300295e0267c79505b55f3f89f6 Update version and source URI, adjust build conf now using cmake(1), and modernize packaging. diff -r be8a9b152c6e -r 4e49d0429eeb taglib/taglib.spec --- a/taglib/taglib.spec Tue Aug 28 19:02:15 2012 +0200 +++ b/taglib/taglib.spec Tue Aug 28 19:02:30 2012 +0200 @@ -1,6 +1,6 @@ ## ## taglib.spec -- OpenPKG RPM Specification -## Copyright (c) 2009 Michael Schloh von Bennewitz +## Copyright (c) 2012 Michael Schloh von Bennewitz ## ## Permission to use, copy, modify, and distribute this software for ## any purpose with or without fee is hereby granted, provided that @@ -32,19 +32,15 @@ Class: EVAL Group: Audio License: LGPL -Version: 1.5 -Release: 20090106 +Version: 1.7.2 +Release: 20120800 # list of sources -Source0: http://developer.kde.org/~wheeler/files/src/taglib-%{version}.tar.gz +Source0: http://www.github.com/downloads/taglib/taglib/taglib-%{version}.tar.gz # build information -Prefix: %{l_prefix} -BuildRoot: %{l_buildroot} -BuildPreReq: OpenPKG, openpkg >= 20040130, make, gcc, gcc::with_cxx = yes -PreReq: OpenPKG, openpkg >= 20040130 -AutoReq: no -AutoReqProv: no +BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc, gcc::with_cxx = yes +PreReq: OpenPKG, openpkg >= 20100101 %description TagLib is a library for reading and editing the metadata of several @@ -56,6 +52,7 @@ prog taglib = { version = %{version} url = http://developer.kde.org/~wheeler/files/src/ + url = http://www.github.com/downloads/taglib/taglib/ regex = taglib-(__VER__)\.tar\.gz } @@ -63,40 +60,27 @@ # unpack sources %setup -q - # correct build configuration - %{l_shtool} subst \ - -e 's;\(if\) test \! \-f \$libstdcpp;\1 false;' \ - configure - chmod +x admin/install-sh - %build # prepare configuration - CC="%{l_cc}" \ - CXX="%{l_cxx}" \ - CFLAGS="%{l_cflags -O}" \ - CXXFLAGS="%{l_cflags -O}" \ - CPPFLAGS="%{l_cppflags}" \ - LDFLAGS="%{l_ldflags}" \ - GREP=grep \ - ./configure \ - --prefix=%{l_prefix} \ - --disable-shared + %{l_prefix}/bin/cmake \ + -DCMAKE_INSTALL_PREFIX="%{l_prefix}" \ + -DENABLE_STATIC=Yes \ + -DENABLE_SHARED=No # build using parallel make %{l_make} %{l_mflags -O} %install - # remove previously existing installations - rm -rf $RPM_BUILD_ROOT - # run the native installation logic %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT + # remove shared libs forcibly built by cmake(1) + rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libtag_c.so* + # determine installation files %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} %files -f files %clean - rm -rf $RPM_BUILD_ROOT