xmms/xmms.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
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 ##  xmms.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:         xmms
    26 Summary:      X Mulitmedia System
    27 URL:          http://www.xmms.org/
    28 Vendor:       Peter Alm
    29 Packager:     OpenPKG Foundation e.V.
    30 Distribution: OpenPKG Community
    31 Class:        EVAL
    32 Group:        Audio
    33 License:      GPL
    34 Version:      1.2.11
    35 Release:      20090106
    37 #   list of sources
    38 Source0:      http://xmms.org/files/1.2.x/xmms-%{version}.tar.bz2
    39 Source1:      xmmsskins.tar
    40 Patch0:       xmms.patch
    42 #   build information
    43 Prefix:       %{l_prefix}
    44 BuildRoot:    %{l_buildroot}
    45 BuildPreReq:  OpenPKG, openpkg >= 20040130, X11, gtk, libiconv
    46 BuildPreReq:  infozip, glib, glib::with_threads = yes
    47 BuildPreReq:  libxml, libmikmod, vorbis-libs
    48 PreReq:       OpenPKG, openpkg >= 20040130, X11, gtk, libiconv
    49 PreReq:       infozip, glib, glib::with_threads = yes
    50 PreReq:       libxml, libmikmod, vorbis-libs
    51 AutoReq:      no
    52 AutoReqProv:  no
    54 %description
    55     The X Multimedia System (XMMS) is a cross-platform Multimedia player
    56     for Unix/X11 resembling the look & feel of the popular WinAmp.
    58 %track
    59     prog xmms = {
    60         version   = %{version}
    61         url       = http://xmms.org/download.php
    62         regex     = xmms-(__VER__)\.tar\.bz2
    63     }
    65 %prep
    66     %setup -q
    67     %patch -p1
    68     %{l_shtool} subst \
    69         -e 's;\(#include <locale.h>\);/*\1*/;' \
    70         wmxmms/wmxmms.c
    71     %{l_shtool} subst \
    72         -e 's;@l_tar@;%{l_tar};g' \
    73         -e 's;@l_gzip@;%{l_gzip};g' \
    74         -e 's;@l_bzip2@;%{l_bzip2};g' \
    75         -e 's;@l_unzip@;%{l_prefix}/bin/unzip;g' \
    76         xmms/skin.c
    78 %build
    79     #   link main binaries statically
    80     CC="%{l_cc}" \
    81     CFLAGS="%{l_cflags}" \
    82     CPPFLAGS="%{l_cppflags libxml2/libxml}" \
    83     LDFLAGS="%{l_ldflags}" \
    84     XML_CONFIG="%{l_prefix}/bin/xml2-config" \
    85     ./configure \
    86         --prefix=%{l_prefix} \
    87         --with-x \
    88         --x-includes=`%{l_rc} --query x11_incdir` \
    89         --x-libraries=`%{l_rc} --query x11_libdir` \
    90         --enable-static \
    91         --disable-shared \
    92         --with-glib-prefix=%{l_prefix} \
    93         --with-gtk-prefix=%{l_prefix} \
    94         --with-libxml-prefix=%{l_prefix} \
    95         --with-libmikmod-prefix=%{l_prefix} \
    96         --enable-vorbis \
    97         --with-vorbis-prefix=%{l_prefix} \
    98         --with-ogg-prefix=%{l_prefix} \
    99         --with-gnome-includes=/usr/include/libgnomeui-2.0 \
   100         --with-gnome-libs=/usr/lib \
   101         --with-gnome=/usr \
   102         --enable-esd \
   103         --with-esd-prefix=/usr \
   104         --disable-nls \
   105         --enable-3dnow
   106     %{l_make} %{l_mflags -O}
   108     #   link plugins as shared objects instead
   109     CC="%{l_cc}" \
   110     CFLAGS="%{l_cflags}" \
   111     CPPFLAGS="%{l_cppflags libxml2/libxml}" \
   112     LDFLAGS="%{l_ldflags}" \
   113     XML_CONFIG="%{l_prefix}/bin/xml2-config" \
   114     ./configure \
   115         --prefix=%{l_prefix} \
   116         --with-x \
   117         --x-includes=`%{l_rc} --query x11_incdir` \
   118         --x-libraries=`%{l_rc} --query x11_libdir` \
   119         --disable-static \
   120         --enable-shared \
   121         --with-glib-prefix=%{l_prefix} \
   122         --with-gtk-prefix=%{l_prefix} \
   123         --with-libxml-prefix=%{l_prefix} \
   124         --with-libmikmod-prefix=%{l_prefix} \
   125         --enable-vorbis \
   126         --with-vorbis-prefix=%{l_prefix} \
   127         --with-ogg-prefix=%{l_prefix} \
   128         --with-gnome-includes=/usr/include/libgnomeui-2.0 \
   129         --with-gnome-libs=/usr/lib \
   130         --with-gnome=/usr \
   131         --enable-esd \
   132         --with-esd-prefix=/usr \
   133         --disable-nls \
   134         --enable-3dnow
   135     ( cd Input; %{l_make} %{l_mflags -O} clean all) || exit $?
   136     ( cd Output; %{l_make} %{l_mflags -O} clean all) || exit $?
   137     ( cd General; %{l_make} %{l_mflags -O} clean all) || exit $?
   138     ( cd Effect; %{l_make} %{l_mflags -O} clean all) || exit $?
   139     ( cd Visualization; %{l_make} %{l_mflags -O} clean all) || exit $?
   141 %install
   142     rm -rf $RPM_BUILD_ROOT
   143     %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
   144     ( cd $RPM_BUILD_ROOT%{l_prefix}/share/xmms
   145       %{l_tar} xf %{SOURCE xmmsskins.tar}
   146     ) || exit $?
   147     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
   149 %files -f files
   151 %clean
   152     rm -rf $RPM_BUILD_ROOT

mercurial