id3lib/id3lib.spec

Mon, 28 Jan 2013 17:37:18 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 28 Jan 2013 17:37:18 +0100
changeset 758
a2c6460cfb16
parent 387
33ae2d61c751
permissions
-rw-r--r--

Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.

     1 ##
     2 ##  id3lib.spec -- OpenPKG RPM Specification
     3 ##  Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com>
     4 ##
     5 ##  Permission to use, copy, modify, and distribute this software for
     6 ##  any purpose with or without fee is hereby granted, provided that
     7 ##  the above copyright notice and this permission notice appear in all
     8 ##  copies.
     9 ##
    10 ##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    11 ##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    12 ##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    13 ##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    14 ##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    15 ##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    16 ##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    17 ##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    18 ##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    19 ##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    20 ##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    21 ##  SUCH DAMAGE.
    22 ##
    25 #   package information
    26 Name:         id3lib
    27 Summary:      ID3v1 and ID3v2 SDK
    28 URL:          http://id3lib.sourceforge.net/
    29 Vendor:       Thijmen Klok
    30 Packager:     Michael Schloh von Bennewitz
    31 Distribution: Europalab Networks Production
    32 Class:        EVAL
    33 Group:        Audio
    34 License:      LGPL
    35 Version:      3.8.3
    36 Release:      20120800
    38 #   list of sources
    39 Source0:      http://switch.dl.sourceforge.net/id3lib/id3lib-%{version}.tar.gz
    40 Patch0:       id3lib.patch
    42 #   build information
    43 BuildPreReq:  OpenPKG, openpkg >= 20100101, make, gcc, gcc::with_cxx = yes
    44 PreReq:       OpenPKG, openpkg >= 20100101
    46 %description
    47     id3lib is an Opensource, cross platform software development library
    48     for reading, writing, and manipulating ID3v1 and ID3v2 tags. It is
    49     an ongoing project whose primary goals are full compliance with the
    50     ID3v2 standard, portability across several platforms, and providing
    51     a powerful and feature rich API with a highly stable and efficient
    52     implementation.
    54 %track
    55     prog id3lib = {
    56         version   = %{version}
    57         url       = http://switch.dl.sourceforge.net/id3lib/
    58         regex     = id3lib-(__VER__)\.tar\.gz
    59     }
    61 %prep
    62     #   unpack sources
    63     %setup -q
    64     %patch -p0
    65     %{l_shtool} subst \
    66         -e 's;iomanip\.h;iomanip;' \
    67         configure
    69 %build
    70     #   prepare configuration
    71     CC="%{l_cc}" \
    72     CXX="%{l_cxx}" \
    73     CFLAGS="%{l_cflags -O}" \
    74     CXXFLAGS="%{l_cxxflags -O}" \
    75     CPPFLAGS="%{l_cppflags}" \
    76     LDFLAGS="%{l_ldflags}" \
    77     ./configure \
    78         --prefix=%{l_prefix} \
    79         --disable-shared
    81     #   build using parallel make
    82     %{l_make} %{l_mflags -O}
    84 %install
    85     #   run the native installation logic
    86     %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
    88     #   strip binaries of symbols
    89     strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
    91     #   determine installation files
    92     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
    94 %files -f files
    96 %clean

mercurial