Tue, 28 Aug 2012 18:36:35 +0200
Correct the paths of patched scripts, refine password generation,
mitigate fdatasync(2) detection problems, correct dependencies, remove
outdated autoconf components, correct conf file paths and attributes,
complete and correct log file rotation handing, and note warnings
useful for diagnosing builds.
michael@93 | 1 | ## |
michael@93 | 2 | ## xmms.spec -- OpenPKG RPM Package Specification |
michael@93 | 3 | ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> |
michael@93 | 4 | ## |
michael@93 | 5 | ## Permission to use, copy, modify, and distribute this software for |
michael@93 | 6 | ## any purpose with or without fee is hereby granted, provided that |
michael@93 | 7 | ## the above copyright notice and this permission notice appear in all |
michael@93 | 8 | ## copies. |
michael@93 | 9 | ## |
michael@93 | 10 | ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
michael@93 | 11 | ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
michael@93 | 12 | ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
michael@93 | 13 | ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
michael@93 | 14 | ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
michael@93 | 15 | ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
michael@93 | 16 | ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
michael@93 | 17 | ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
michael@93 | 18 | ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
michael@93 | 19 | ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
michael@93 | 20 | ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
michael@93 | 21 | ## SUCH DAMAGE. |
michael@93 | 22 | ## |
michael@93 | 23 | |
michael@93 | 24 | # package information |
michael@93 | 25 | Name: xmms |
michael@93 | 26 | Summary: X Mulitmedia System |
michael@93 | 27 | URL: http://www.xmms.org/ |
michael@93 | 28 | Vendor: Peter Alm |
michael@93 | 29 | Packager: OpenPKG Foundation e.V. |
michael@93 | 30 | Distribution: OpenPKG Community |
michael@93 | 31 | Class: EVAL |
michael@93 | 32 | Group: Audio |
michael@93 | 33 | License: GPL |
michael@93 | 34 | Version: 1.2.11 |
michael@93 | 35 | Release: 20090106 |
michael@93 | 36 | |
michael@93 | 37 | # list of sources |
michael@93 | 38 | Source0: http://xmms.org/files/1.2.x/xmms-%{version}.tar.bz2 |
michael@93 | 39 | Source1: xmmsskins.tar |
michael@93 | 40 | Patch0: xmms.patch |
michael@93 | 41 | |
michael@93 | 42 | # build information |
michael@93 | 43 | Prefix: %{l_prefix} |
michael@93 | 44 | BuildRoot: %{l_buildroot} |
michael@93 | 45 | BuildPreReq: OpenPKG, openpkg >= 20040130, X11, gtk, libiconv |
michael@93 | 46 | BuildPreReq: infozip, glib, glib::with_threads = yes |
michael@93 | 47 | BuildPreReq: libxml, libmikmod, vorbis-libs |
michael@93 | 48 | PreReq: OpenPKG, openpkg >= 20040130, X11, gtk, libiconv |
michael@93 | 49 | PreReq: infozip, glib, glib::with_threads = yes |
michael@93 | 50 | PreReq: libxml, libmikmod, vorbis-libs |
michael@93 | 51 | AutoReq: no |
michael@93 | 52 | AutoReqProv: no |
michael@93 | 53 | |
michael@93 | 54 | %description |
michael@93 | 55 | The X Multimedia System (XMMS) is a cross-platform Multimedia player |
michael@93 | 56 | for Unix/X11 resembling the look & feel of the popular WinAmp. |
michael@93 | 57 | |
michael@93 | 58 | %track |
michael@93 | 59 | prog xmms = { |
michael@93 | 60 | version = %{version} |
michael@93 | 61 | url = http://xmms.org/download.php |
michael@93 | 62 | regex = xmms-(__VER__)\.tar\.bz2 |
michael@93 | 63 | } |
michael@93 | 64 | |
michael@93 | 65 | %prep |
michael@93 | 66 | %setup -q |
michael@93 | 67 | %patch -p1 |
michael@93 | 68 | %{l_shtool} subst \ |
michael@93 | 69 | -e 's;\(#include <locale.h>\);/*\1*/;' \ |
michael@93 | 70 | wmxmms/wmxmms.c |
michael@93 | 71 | %{l_shtool} subst \ |
michael@93 | 72 | -e 's;@l_tar@;%{l_tar};g' \ |
michael@93 | 73 | -e 's;@l_gzip@;%{l_gzip};g' \ |
michael@93 | 74 | -e 's;@l_bzip2@;%{l_bzip2};g' \ |
michael@93 | 75 | -e 's;@l_unzip@;%{l_prefix}/bin/unzip;g' \ |
michael@93 | 76 | xmms/skin.c |
michael@93 | 77 | |
michael@93 | 78 | %build |
michael@93 | 79 | # link main binaries statically |
michael@93 | 80 | CC="%{l_cc}" \ |
michael@93 | 81 | CFLAGS="%{l_cflags}" \ |
michael@93 | 82 | CPPFLAGS="%{l_cppflags libxml2/libxml}" \ |
michael@93 | 83 | LDFLAGS="%{l_ldflags}" \ |
michael@93 | 84 | XML_CONFIG="%{l_prefix}/bin/xml2-config" \ |
michael@93 | 85 | ./configure \ |
michael@93 | 86 | --prefix=%{l_prefix} \ |
michael@93 | 87 | --with-x \ |
michael@93 | 88 | --x-includes=`%{l_rc} --query x11_incdir` \ |
michael@93 | 89 | --x-libraries=`%{l_rc} --query x11_libdir` \ |
michael@93 | 90 | --enable-static \ |
michael@93 | 91 | --disable-shared \ |
michael@93 | 92 | --with-glib-prefix=%{l_prefix} \ |
michael@93 | 93 | --with-gtk-prefix=%{l_prefix} \ |
michael@93 | 94 | --with-libxml-prefix=%{l_prefix} \ |
michael@93 | 95 | --with-libmikmod-prefix=%{l_prefix} \ |
michael@93 | 96 | --enable-vorbis \ |
michael@93 | 97 | --with-vorbis-prefix=%{l_prefix} \ |
michael@93 | 98 | --with-ogg-prefix=%{l_prefix} \ |
michael@93 | 99 | --with-gnome-includes=/usr/include/libgnomeui-2.0 \ |
michael@93 | 100 | --with-gnome-libs=/usr/lib \ |
michael@93 | 101 | --with-gnome=/usr \ |
michael@93 | 102 | --enable-esd \ |
michael@93 | 103 | --with-esd-prefix=/usr \ |
michael@93 | 104 | --disable-nls \ |
michael@93 | 105 | --enable-3dnow |
michael@93 | 106 | %{l_make} %{l_mflags -O} |
michael@93 | 107 | |
michael@93 | 108 | # link plugins as shared objects instead |
michael@93 | 109 | CC="%{l_cc}" \ |
michael@93 | 110 | CFLAGS="%{l_cflags}" \ |
michael@93 | 111 | CPPFLAGS="%{l_cppflags libxml2/libxml}" \ |
michael@93 | 112 | LDFLAGS="%{l_ldflags}" \ |
michael@93 | 113 | XML_CONFIG="%{l_prefix}/bin/xml2-config" \ |
michael@93 | 114 | ./configure \ |
michael@93 | 115 | --prefix=%{l_prefix} \ |
michael@93 | 116 | --with-x \ |
michael@93 | 117 | --x-includes=`%{l_rc} --query x11_incdir` \ |
michael@93 | 118 | --x-libraries=`%{l_rc} --query x11_libdir` \ |
michael@93 | 119 | --disable-static \ |
michael@93 | 120 | --enable-shared \ |
michael@93 | 121 | --with-glib-prefix=%{l_prefix} \ |
michael@93 | 122 | --with-gtk-prefix=%{l_prefix} \ |
michael@93 | 123 | --with-libxml-prefix=%{l_prefix} \ |
michael@93 | 124 | --with-libmikmod-prefix=%{l_prefix} \ |
michael@93 | 125 | --enable-vorbis \ |
michael@93 | 126 | --with-vorbis-prefix=%{l_prefix} \ |
michael@93 | 127 | --with-ogg-prefix=%{l_prefix} \ |
michael@93 | 128 | --with-gnome-includes=/usr/include/libgnomeui-2.0 \ |
michael@93 | 129 | --with-gnome-libs=/usr/lib \ |
michael@93 | 130 | --with-gnome=/usr \ |
michael@93 | 131 | --enable-esd \ |
michael@93 | 132 | --with-esd-prefix=/usr \ |
michael@93 | 133 | --disable-nls \ |
michael@93 | 134 | --enable-3dnow |
michael@93 | 135 | ( cd Input; %{l_make} %{l_mflags -O} clean all) || exit $? |
michael@93 | 136 | ( cd Output; %{l_make} %{l_mflags -O} clean all) || exit $? |
michael@93 | 137 | ( cd General; %{l_make} %{l_mflags -O} clean all) || exit $? |
michael@93 | 138 | ( cd Effect; %{l_make} %{l_mflags -O} clean all) || exit $? |
michael@93 | 139 | ( cd Visualization; %{l_make} %{l_mflags -O} clean all) || exit $? |
michael@93 | 140 | |
michael@93 | 141 | %install |
michael@93 | 142 | rm -rf $RPM_BUILD_ROOT |
michael@93 | 143 | %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
michael@93 | 144 | ( cd $RPM_BUILD_ROOT%{l_prefix}/share/xmms |
michael@93 | 145 | %{l_tar} xf %{SOURCE xmmsskins.tar} |
michael@93 | 146 | ) || exit $? |
michael@93 | 147 | %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
michael@93 | 148 | |
michael@93 | 149 | %files -f files |
michael@93 | 150 | |
michael@93 | 151 | %clean |
michael@93 | 152 | rm -rf $RPM_BUILD_ROOT |
michael@93 | 153 |