Update version and source URI, adjust build conf now using cmake(1), and

Tue, 28 Aug 2012 19:02:30 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 28 Aug 2012 19:02:30 +0200
changeset 634
4e49d0429eeb
parent 633
be8a9b152c6e
child 635
60d8c38e1900

Update version and source URI, adjust build conf now using cmake(1), and
modernize packaging.

taglib/taglib.spec file | annotate | diff | comparison | revisions
     1.1 --- a/taglib/taglib.spec	Tue Aug 28 19:02:15 2012 +0200
     1.2 +++ b/taglib/taglib.spec	Tue Aug 28 19:02:30 2012 +0200
     1.3 @@ -1,6 +1,6 @@
     1.4  ##
     1.5  ##  taglib.spec -- OpenPKG RPM Specification
     1.6 -##  Copyright (c) 2009 Michael Schloh von Bennewitz <michael@schloh.com>
     1.7 +##  Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com>
     1.8  ##
     1.9  ##  Permission to use, copy, modify, and distribute this software for
    1.10  ##  any purpose with or without fee is hereby granted, provided that
    1.11 @@ -32,19 +32,15 @@
    1.12  Class:        EVAL
    1.13  Group:        Audio
    1.14  License:      LGPL
    1.15 -Version:      1.5
    1.16 -Release:      20090106
    1.17 +Version:      1.7.2
    1.18 +Release:      20120800
    1.19  
    1.20  #   list of sources
    1.21 -Source0:      http://developer.kde.org/~wheeler/files/src/taglib-%{version}.tar.gz
    1.22 +Source0:      http://www.github.com/downloads/taglib/taglib/taglib-%{version}.tar.gz
    1.23  
    1.24  #   build information
    1.25 -Prefix:       %{l_prefix}
    1.26 -BuildRoot:    %{l_buildroot}
    1.27 -BuildPreReq:  OpenPKG, openpkg >= 20040130, make, gcc, gcc::with_cxx = yes
    1.28 -PreReq:       OpenPKG, openpkg >= 20040130
    1.29 -AutoReq:      no
    1.30 -AutoReqProv:  no
    1.31 +BuildPreReq:  OpenPKG, openpkg >= 20100101, make, gcc, gcc::with_cxx = yes
    1.32 +PreReq:       OpenPKG, openpkg >= 20100101
    1.33  
    1.34  %description
    1.35      TagLib is a library for reading and editing the metadata of several
    1.36 @@ -56,6 +52,7 @@
    1.37      prog taglib = {
    1.38          version   = %{version}
    1.39          url       = http://developer.kde.org/~wheeler/files/src/
    1.40 +        url       = http://www.github.com/downloads/taglib/taglib/
    1.41          regex     = taglib-(__VER__)\.tar\.gz
    1.42      }
    1.43  
    1.44 @@ -63,40 +60,27 @@
    1.45      #   unpack sources
    1.46      %setup -q
    1.47  
    1.48 -    #   correct build configuration
    1.49 -    %{l_shtool} subst \
    1.50 -        -e 's;\(if\) test \! \-f \$libstdcpp;\1 false;' \
    1.51 -        configure
    1.52 -    chmod +x admin/install-sh
    1.53 -
    1.54  %build
    1.55      #   prepare configuration
    1.56 -    CC="%{l_cc}" \
    1.57 -    CXX="%{l_cxx}" \
    1.58 -    CFLAGS="%{l_cflags -O}" \
    1.59 -    CXXFLAGS="%{l_cflags -O}" \
    1.60 -    CPPFLAGS="%{l_cppflags}" \
    1.61 -    LDFLAGS="%{l_ldflags}" \
    1.62 -    GREP=grep \
    1.63 -    ./configure \
    1.64 -        --prefix=%{l_prefix} \
    1.65 -        --disable-shared
    1.66 +    %{l_prefix}/bin/cmake \
    1.67 +        -DCMAKE_INSTALL_PREFIX="%{l_prefix}" \
    1.68 +        -DENABLE_STATIC=Yes \
    1.69 +        -DENABLE_SHARED=No
    1.70  
    1.71      #   build using parallel make
    1.72      %{l_make} %{l_mflags -O}
    1.73  
    1.74  %install
    1.75 -    #   remove previously existing installations
    1.76 -    rm -rf $RPM_BUILD_ROOT
    1.77 -
    1.78      #   run the native installation logic
    1.79      %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
    1.80  
    1.81 +    #   remove shared libs forcibly built by cmake(1)
    1.82 +    rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libtag_c.so*
    1.83 +
    1.84      #   determine installation files
    1.85      %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
    1.86  
    1.87  %files -f files
    1.88  
    1.89  %clean
    1.90 -    rm -rf $RPM_BUILD_ROOT
    1.91  

mercurial