sox/sox.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 595
a455004dd97f
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 ##  sox.spec -- OpenPKG RPM Package Specification
     3 ##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
     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 ##
    24 #   package information
    25 Name:         sox
    26 Summary:      Audio Format Conversion Tool
    27 URL:          http://sox.sourceforge.net/
    28 Vendor:       Lance Norskog
    29 Packager:     OpenPKG Foundation e.V.
    30 Distribution: OpenPKG Community
    31 Class:        PLUS
    32 Group:        Audio
    33 License:      LGPL
    34 Version:      14.4.0
    35 Release:      20120800
    37 #   list of sources
    38 Source0:      http://switch.dl.sourceforge.net/sourceforge/sox/sox-%{version}.tar.bz2
    40 #   build information
    41 BuildPreReq:  OpenPKG, openpkg >= 20100101, make, gcc
    42 PreReq:       OpenPKG, openpkg >= 20100101
    44 %description
    45     SoX is the swiss army knife of sound processing programs. It is a
    46     command line utility that can convert various formats of computer
    47     audio files in to other formats. It can also apply various effects
    48     to these sound files during the conversion. As an added bonus, SoX
    49     can play and record audio files on several Unix style platforms.
    51 %track
    52     prog sox = {
    53         version   = %{version}
    54         url       = http://prdownloads.sourceforge.net/sox/
    55         regex     = sox-(__VER__)\.tar\.bz2
    56     }
    58 %prep
    59     %setup -q
    61 %build
    62     export CC="%{l_cc}"
    63     export CFLAGS="%{l_cflags -O}"
    64     export CPPFLAGS="%{l_cppflags}"
    65     export LDFLAGS="%{l_ldflags}"
    66     export LIBS=""
    67     case "%{l_platform -p}" in
    68         *-netbsd* ) LIBS="$LIBS -lossaudio" ;;
    69     esac
    70     ./configure \
    71         --prefix=%{l_prefix} \
    72         --mandir=%{l_prefix}/man \
    73         --disable-shared
    75     %{l_make} %{l_mflags -O}
    77 %install
    78     %{l_make} %{l_mflags} install \
    79         DESTDIR="$RPM_BUILD_ROOT" \
    80         LN_S="ln"
    81     strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
    82     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
    84 %files -f files
    86 %clean

mercurial