Personalize configuration including nonstandard gnome and esd libs.

Fri, 16 Jan 2009 11:50:46 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2009 11:50:46 +0100
changeset 93
cada8e2b51a4
parent 92
645923d1e875
child 94
0bb9d0584d2a

Personalize configuration including nonstandard gnome and esd libs.

xmms/xmms.patch file | annotate | diff | comparison | revisions
xmms/xmms.spec file | annotate | diff | comparison | revisions
xmms/xmmsskins.tar file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xmms/xmms.patch	Fri Jan 16 11:50:46 2009 +0100
     1.3 @@ -0,0 +1,28 @@
     1.4 +diff -Naur xmms-1.2.8.orig/xmms/skin.c xmms-1.2.8/xmms/skin.c
     1.5 +--- xmms-1.2.8.orig/xmms/skin.c	Mon Mar 17 15:49:08 2003
     1.6 ++++ xmms-1.2.8/xmms/skin.c	Fri Sep  5 11:08:47 2003
     1.7 +@@ -600,10 +600,10 @@
     1.8 + 
     1.9 + 	unzip = getenv("UNZIPCMD");
    1.10 + 	if (!unzip)
    1.11 +-		unzip = "unzip";
    1.12 ++		unzip = "@l_unzip@";
    1.13 + 	tar = getenv("TARCMD");
    1.14 + 	if (!tar)
    1.15 +-		tar = "tar";
    1.16 ++		tar = "@l_tar@";
    1.17 + 
    1.18 + 	if ((ending = strrchr(path, '.')) == NULL)
    1.19 + 		return NULL;
    1.20 +@@ -621,9 +621,9 @@
    1.21 + 	if (!strcasecmp(ending, ".zip") || !strcasecmp(ending, ".wsz"))
    1.22 + 		tmp = g_strdup_printf("%s >/dev/null -o -j \"%s\" -d %s", unzip, escaped, tempdir);
    1.23 + 	if (!strcasecmp(ending, ".tgz") || !strcasecmp(ending, ".gz"))
    1.24 +-		tmp = g_strdup_printf("%s >/dev/null xzf \"%s\" -C %s", tar, escaped, tempdir);
    1.25 ++		tmp = g_strdup_printf("@l_gzip@ -dc \"%s\" | %s >/dev/null xf - -C %s", escaped, tar, tempdir);
    1.26 + 	if (!strcasecmp(ending, ".bz2"))
    1.27 +-		tmp = g_strdup_printf("bzip2 -dc \"%s\" | %s >/dev/null xf - -C %s", escaped, tar, tempdir);
    1.28 ++		tmp = g_strdup_printf("@l_bzip2@ -dc \"%s\" | %s >/dev/null xf - -C %s", escaped, tar, tempdir);
    1.29 + 	if (!strcasecmp(ending, ".tar"))
    1.30 + 		tmp = g_strdup_printf("%s >/dev/null xf \"%s\" -C %s", tar, escaped, tempdir);
    1.31 + 
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/xmms/xmms.spec	Fri Jan 16 11:50:46 2009 +0100
     2.3 @@ -0,0 +1,153 @@
     2.4 +##
     2.5 +##  xmms.spec -- OpenPKG RPM Package Specification
     2.6 +##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
     2.7 +##
     2.8 +##  Permission to use, copy, modify, and distribute this software for
     2.9 +##  any purpose with or without fee is hereby granted, provided that
    2.10 +##  the above copyright notice and this permission notice appear in all
    2.11 +##  copies.
    2.12 +##
    2.13 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    2.14 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    2.15 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    2.16 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    2.17 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    2.18 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    2.19 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    2.20 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    2.21 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    2.22 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    2.23 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    2.24 +##  SUCH DAMAGE.
    2.25 +##
    2.26 +
    2.27 +#   package information
    2.28 +Name:         xmms
    2.29 +Summary:      X Mulitmedia System
    2.30 +URL:          http://www.xmms.org/
    2.31 +Vendor:       Peter Alm
    2.32 +Packager:     OpenPKG Foundation e.V.
    2.33 +Distribution: OpenPKG Community
    2.34 +Class:        EVAL
    2.35 +Group:        Audio
    2.36 +License:      GPL
    2.37 +Version:      1.2.11
    2.38 +Release:      20090106
    2.39 +
    2.40 +#   list of sources
    2.41 +Source0:      http://xmms.org/files/1.2.x/xmms-%{version}.tar.bz2
    2.42 +Source1:      xmmsskins.tar
    2.43 +Patch0:       xmms.patch
    2.44 +
    2.45 +#   build information
    2.46 +Prefix:       %{l_prefix}
    2.47 +BuildRoot:    %{l_buildroot}
    2.48 +BuildPreReq:  OpenPKG, openpkg >= 20040130, X11, gtk, libiconv
    2.49 +BuildPreReq:  infozip, glib, glib::with_threads = yes
    2.50 +BuildPreReq:  libxml, libmikmod, vorbis-libs
    2.51 +PreReq:       OpenPKG, openpkg >= 20040130, X11, gtk, libiconv
    2.52 +PreReq:       infozip, glib, glib::with_threads = yes
    2.53 +PreReq:       libxml, libmikmod, vorbis-libs
    2.54 +AutoReq:      no
    2.55 +AutoReqProv:  no
    2.56 +
    2.57 +%description
    2.58 +    The X Multimedia System (XMMS) is a cross-platform Multimedia player
    2.59 +    for Unix/X11 resembling the look & feel of the popular WinAmp.
    2.60 +
    2.61 +%track
    2.62 +    prog xmms = {
    2.63 +        version   = %{version}
    2.64 +        url       = http://xmms.org/download.php
    2.65 +        regex     = xmms-(__VER__)\.tar\.bz2
    2.66 +    }
    2.67 +
    2.68 +%prep
    2.69 +    %setup -q
    2.70 +    %patch -p1
    2.71 +    %{l_shtool} subst \
    2.72 +        -e 's;\(#include <locale.h>\);/*\1*/;' \
    2.73 +        wmxmms/wmxmms.c
    2.74 +    %{l_shtool} subst \
    2.75 +        -e 's;@l_tar@;%{l_tar};g' \
    2.76 +        -e 's;@l_gzip@;%{l_gzip};g' \
    2.77 +        -e 's;@l_bzip2@;%{l_bzip2};g' \
    2.78 +        -e 's;@l_unzip@;%{l_prefix}/bin/unzip;g' \
    2.79 +        xmms/skin.c
    2.80 +
    2.81 +%build
    2.82 +    #   link main binaries statically
    2.83 +    CC="%{l_cc}" \
    2.84 +    CFLAGS="%{l_cflags}" \
    2.85 +    CPPFLAGS="%{l_cppflags libxml2/libxml}" \
    2.86 +    LDFLAGS="%{l_ldflags}" \
    2.87 +    XML_CONFIG="%{l_prefix}/bin/xml2-config" \
    2.88 +    ./configure \
    2.89 +        --prefix=%{l_prefix} \
    2.90 +        --with-x \
    2.91 +        --x-includes=`%{l_rc} --query x11_incdir` \
    2.92 +        --x-libraries=`%{l_rc} --query x11_libdir` \
    2.93 +        --enable-static \
    2.94 +        --disable-shared \
    2.95 +        --with-glib-prefix=%{l_prefix} \
    2.96 +        --with-gtk-prefix=%{l_prefix} \
    2.97 +        --with-libxml-prefix=%{l_prefix} \
    2.98 +        --with-libmikmod-prefix=%{l_prefix} \
    2.99 +        --enable-vorbis \
   2.100 +        --with-vorbis-prefix=%{l_prefix} \
   2.101 +        --with-ogg-prefix=%{l_prefix} \
   2.102 +        --with-gnome-includes=/usr/include/libgnomeui-2.0 \
   2.103 +        --with-gnome-libs=/usr/lib \
   2.104 +        --with-gnome=/usr \
   2.105 +        --enable-esd \
   2.106 +        --with-esd-prefix=/usr \
   2.107 +        --disable-nls \
   2.108 +        --enable-3dnow
   2.109 +    %{l_make} %{l_mflags -O}
   2.110 +
   2.111 +    #   link plugins as shared objects instead
   2.112 +    CC="%{l_cc}" \
   2.113 +    CFLAGS="%{l_cflags}" \
   2.114 +    CPPFLAGS="%{l_cppflags libxml2/libxml}" \
   2.115 +    LDFLAGS="%{l_ldflags}" \
   2.116 +    XML_CONFIG="%{l_prefix}/bin/xml2-config" \
   2.117 +    ./configure \
   2.118 +        --prefix=%{l_prefix} \
   2.119 +        --with-x \
   2.120 +        --x-includes=`%{l_rc} --query x11_incdir` \
   2.121 +        --x-libraries=`%{l_rc} --query x11_libdir` \
   2.122 +        --disable-static \
   2.123 +        --enable-shared \
   2.124 +        --with-glib-prefix=%{l_prefix} \
   2.125 +        --with-gtk-prefix=%{l_prefix} \
   2.126 +        --with-libxml-prefix=%{l_prefix} \
   2.127 +        --with-libmikmod-prefix=%{l_prefix} \
   2.128 +        --enable-vorbis \
   2.129 +        --with-vorbis-prefix=%{l_prefix} \
   2.130 +        --with-ogg-prefix=%{l_prefix} \
   2.131 +        --with-gnome-includes=/usr/include/libgnomeui-2.0 \
   2.132 +        --with-gnome-libs=/usr/lib \
   2.133 +        --with-gnome=/usr \
   2.134 +        --enable-esd \
   2.135 +        --with-esd-prefix=/usr \
   2.136 +        --disable-nls \
   2.137 +        --enable-3dnow
   2.138 +    ( cd Input; %{l_make} %{l_mflags -O} clean all) || exit $?
   2.139 +    ( cd Output; %{l_make} %{l_mflags -O} clean all) || exit $?
   2.140 +    ( cd General; %{l_make} %{l_mflags -O} clean all) || exit $?
   2.141 +    ( cd Effect; %{l_make} %{l_mflags -O} clean all) || exit $?
   2.142 +    ( cd Visualization; %{l_make} %{l_mflags -O} clean all) || exit $?
   2.143 +
   2.144 +%install
   2.145 +    rm -rf $RPM_BUILD_ROOT
   2.146 +    %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
   2.147 +    ( cd $RPM_BUILD_ROOT%{l_prefix}/share/xmms
   2.148 +      %{l_tar} xf %{SOURCE xmmsskins.tar}
   2.149 +    ) || exit $?
   2.150 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
   2.151 +
   2.152 +%files -f files
   2.153 +
   2.154 +%clean
   2.155 +    rm -rf $RPM_BUILD_ROOT
   2.156 +
     3.1 Binary file xmms/xmmsskins.tar has changed

mercurial