Группа :: Звук
Пакет: xmms
Главная Изменения Спек Патчи Загрузить Bugs and FR
%define prever pre1
%define use_prever 0
%define build_static 0
%define build_recode 1
%define build_id3v2 1
%define rusversion 1.2.10
%define rusxmms_ver csa28
Name: xmms
Version: 1.2.10
Release: alt6.M24.1
Epoch: 20050829
Summary: X Multimedia System -- the player for you
License: GPL
Group: Sound
Url: http://xmms.org
Icon: xmms-logo.xpm
%if %use_prever
Source0: %url/files/1.2.x/%name-%version-%prever.tar.bz2
%else
Source0: %url/files/1.2.x/%name-%version.tar.bz2
%endif
Source2: gnomexmms.desktop.bz2
Source4: xmms-icons.tar.bz2
Source5: xmms.menu
Source6: wmxmms.menu
Source8: xmms-ru.po.bz2
Source10: xmms.16.xpm.bz2
Source11: xmms.32.xpm.bz2
Source12: xmms.48.xpm.bz2
Source13: xmms-1.2.10-gentoo-m4-1.1.tar.bz2
Source70: http://unc.dl.sourceforge.net/sourceforge/rusxmms/xmms-%rusversion-recode-%rusxmms_ver.tar.bz2
Source71: xmms.rpm-macros
Source72: xmms-cyr-setup.sh
Source73: xmms-cyr-setup.menu
Source74: xmms-wrapper.sh
Source80: xmms-README.ALT
Source81: #xmms-faq.html
Patch1: xmms-1.2-audio-patch
Patch4: xmms-fix-smallfiles.patch
Patch5: xmms-1.2.6-fix-title-mp3streaming.patch
Patch6: xmms-fix-textbox.patch
Patch8: xmms-3dse-niqueluisarace.patch
# Local patches
Patch41: xmms-1.2.6-filebrowser_get_files.patch
Patch42: xmms-1.2.7-automake.patch
Patch43: xmms-1.2.7-local-libxmms_n.patch
Patch44: xmms-1.2.9-alt-socketpath.patch
Patch45: xmms-1.2.8-alt-aclocal-mess-cleanup.patch.bz2
Patch46: xmms-1.2.10-alt-gcc34_libctrl.patch
Patch47: xmms-1.2.10-xmmsctrl.patch
# imported from 1.2.8-1.9asp
Patch52: xmms-1.2.6-lazy.patch
# ...and additionally fixed
Patch55: xmms-1.2.10-alt-arts.patch
# rollback winlist changes in 1.2.9
Patch56: xmms-1.2.10-alt-skipwinlist.patch
# id3v2 support
Patch60: xmms-1.2.9-yonas-id3v2.patch
# advanced queue mgmt
Patch61: xmms-1.2.10-davinchi-queued.patch
# patch after rusxmms-1.2.10-csa27.4 -- should fix one more segfault
# [included in csa28]
Patch62: xmms-recode.patch
# some merge-up
Patch70: xmms-underquoted.patch
Patch71: xmms-alsa-mono-vol-adjust.patch
# TODO (not applied right now)
# dag's
Patch80: xmms-1.2.6-audio.patch
Patch81: xmms-1.2.8-default-skin.patch
Patch82: xmms-alsa-backport.patch
Packager: Michael Shigorin <mike at altlinux.org>
Obsoletes: x11amp
Requires: libxmms = %version-%release
# Automatically added by buildreq on Tue Feb 24 2004
BuildRequires: ORBit-devel XFree86-devel XFree86-libs esound-devel glib-devel gtk+-devel hostinfo libalsa-devel libaudiofile-devel libmikmod-devel libogg-devel libvorbis-devel zlib-devel
#set_autoconf_version 2.13
#set_automake_version 1.7
%description
XMMS is a sound player written from scratch. Since it uses the WinAmp GUI, it
can use WinAmp skins, and play mp3s, mods, s3ms, and other formats. It now has
support for input, output, and general plugins, and has also been GPLd.
%description -l ru_RU.KOI8-R
X MultiMedia System - наиболее популярный медиа-проигрыватель для UNIX-систем.
Поддерживает существенное количество форматов и эффектов благодаря большому
количеству модулей расширения, доступных в отдельных пакетах.
%description -l uk_UA.KOI8-U
X MultiMedia System - найб╕льш популярний мед╕а-програвач для UNIX-систем.
П╕дтриму╓ величезну к╕льк╕сть формат╕в та ефект╕в завдяки велик╕й к╕лькост╕
модул╕в розширення, що доступн╕ в окремих пакетах.
%package -n libxmms
Summary: Library needed for XMMS and its plugins
Summary(ru_RU.KOI8-R): Библиотека для XMMS и модулей к нему
Summary(uk_UA.KOI8-U): Б╕бл╕отека для XMMS та модул╕в до нього
Group: System/Libraries
Requires: libxmms = %version-%release
%description -n libxmms
This library is mandatory for xmms and for all its plugins to run.
%description -n libxmms -l ru_RU.KOI8-R
Эта библиотека необходима для xmms и всех его модулей.
%description -n libxmms -l uk_UA.KOI8-U
Ця б╕бл╕отека ╓ необх╕дною для xmms та ус╕х його модулей.
%package -n libxmms-devel
Summary: Development package with headers
Group: Development/C
Icon: xmms-devel-logo.xpm
Requires: libxmms = %version-%release
Provides: xmms-devel = %version-%release
Obsoletes: xmms-devel
%description -n libxmms-devel
Header files required for compiling xmms plugins.
%if %build_static
%package -n libxmms-devel-static
Summary: Development package with static libs
Group: Development/C
Requires: libxmms-devel = %version-%release
Obsoletes: xmms-devel-static
Provides: xmms-devel-static = %version-%release
%description -n libxmms-devel-static
Static libraries required for compiling xmms plugins.
%endif
%package in-mikmod
Summary: Mikmod output plugin
Summary(ru_RU.KOI8-R): Модуль поддержки воспроизведения MOD-файлов
Summary(uk_UA.KOI8-U): Модуль п╕дтримки в╕дтворення MOD-файл╕в
Group: Sound
Icon: xmms-mikmod-logo.xpm
BuildPreReq: libmikmod-devel
Requires: %name = %version-%release
Requires: libmikmod >= 3.1.6
Obsoletes: x11amp-mikmod xmms-mikmod
Provides: xmms-mikmod = %version-%release
%description in-mikmod
Input plugin for XMMS to play MODs (.mod,.xm,.s3m, etc)
%description in-mikmod -l ru_RU.KOI8-R
Модуль ввода для проигрывания MOD-файлов (.mod, .xm, .s3m, ...)
%description in-mikmod -l uk_UA.KOI8-U
Модуль вводу для програвання MOD-файл╕в (.mod, .xm, .s3m, ...)
%package in-vorbis
Summary: Input plugin that uses the Vorbis library
Summary(ru_RU.KOI8-R): Модуль поддержки воспроизведения Ogg Vorbis
Summary(uk_UA.KOI8-U): Модуль п╕дтримки в╕дтворення Ogg Vorbis
Group: Sound
Requires: %name = %version-%release, libvorbis >= 1.0rc2, libogg >= 1.0rc2
BuildPreReq: libvorbis
Obsoletes: xmms-vorbis
Provides: xmms-vorbis = %version-%release
%description in-vorbis
Input plugins that use the Vorbis library
%description in-vorbis -l ru_RU.KOI8-R
Модуль ввода, использующий библиотеку Ogg Vorbis
%description in-vorbis -l uk_UA.KOI8-U
Модуль вводу, що використову╓ б╕бл╕отеку Ogg Vorbis
%package out-alsa
Summary: ALSA output plugin
Summary(ru_RU.KOI8-R): Модуль вывода для ALSA
Summary(uk_UA.KOI8-U): Модуль виводу для ALSA
Group: Sound
BuildPreReq: libalsa-devel
Requires: %name = %version-%release
Obsoletes: xmms-alsa < 1.2.8
Provides: xmms-alsa = %version-%release
%description out-alsa
Output plugin for xmms to use with ALSA
%description out-alsa -l ru_RU.KOI8-R
Модуль вывода для использования с ALSA
%description out-alsa -l uk_UA.KOI8-U
Модуль виводу для використання ╕з ALSA
%package out-diskwriter
Summary: DiskWriter output plugin
Summary(ru_RU.KOI8-R): Модуль вывода в файл
Summary(uk_UA.KOI8-U): Модуль виводу в файл
Group: Sound
Requires: %name = %version-%release
Obsoletes: xmms-diskwriter < 1.2.8-alt2
Provides: xmms-diskwriter = %version-%release
%description out-diskwriter
Output plugin for xmms in order to output *.wav files instead of playing
sound on the soundcard.
%description out-diskwriter -l ru_RU.KOI8-R
Модуль вывода для записи wav-файлов вместо воспроизведения
%description out-diskwriter -l uk_UA.KOI8-U
Модуль виводу для запису wav-файл╕в зам╕сть в╕дтворення
%package out-esd
Summary: ESound output plugin
Summary(ru_RU.KOI8-R): Модуль вывода через ESound
Summary(uk_UA.KOI8-U): Модуль виводу через ESound
Group: Sound
Icon: xmms-esd-logo.xpm
BuildPreReq: esound-devel
Requires: %name = %version-%release
Requires: esound >= 0.2.14
Obsoletes: x11amp-esd xmms-esd < 1.2.8-alt2
Provides: xmms-esd = %version-%release
%description out-esd
Output plugin for xmms to use with the ESD
%description out-esd -l ru_RU.KOI8-R
Модуль вывода, применяемый при необходимости использования ESound
%description out-esd -l uk_UA.KOI8-U
Модуль виводу, що застосову╓ться при необх╕дност╕ використання ESound
%package vis-mesa
Summary: Visualization plugins that use the Mesa3D library
Summary(ru_RU.KOI8-R): Модули визуализации с использованием Mesa3D
Summary(uk_UA.KOI8-U): Модул╕ в╕зуал╕зац╕╖ з використанням Mesa3D
Group: Sound
Icon: xmms-mesa-logo.xpm
Requires: %name = %version-%release
BuildPreReq: Mesa-devel
Obsoletes: xmms-mesa < 1.2.8-alt2
Provides: xmms-mesa = %version-%release
%description vis-mesa
3D Visualization plugins for XMMS that use the Mesa3d library
%description vis-mesa -l ru_RU.KOI8-R
Модуль визуализации с использованием 3D-эффектов
%description vis-mesa -l uk_UA.KOI8-U
Модуль в╕зуал╕зац╕╖ з використанням 3D-ефект╕в
%package -n wmxmms
Summary: XMMS applet for WindowMaker
Group: Graphical desktop/Window Maker
Requires: %name = %version-%release
%description -n wmxmms
XMMS applet for WindowMaker.
You may also want to take a look at wmusic.
%description -n wmxmms -l ru_RU.KOI8-R
Аплет XMMS для WindowMaker.
В отличие от wmusic, не поддерживает кириллицу.
%description -n wmxmms -l uk_UA.KOI8-U
Аплет XMMS для WindowMaker.
На в╕дм╕ну в╕д wmusic, не п╕дтриму╓ кирилицю.
%package cyr-setup
Summary: Script to auto-tune XMMS for cyrillic tags
Summary(ru_RU.KOI8-R): Скрипт для автонастройки XMMS под кириллицу
Summary(uk_UA.KOI8-U): Скрипт для автоналаштування XMMS п╕д кирилицю
Summary(be_BY.CP1251): яЖЩМЮП Ю╒РЮЛЮРШВМЮЕ МЮКЮДЙЁ ОПЮЖШ XMMS Г ЙЁПШКЁВМШЛЁ ЬПШТРЮЛЁ
Requires: XFree86-cyr_rfx-fonts-koi8-u XFree86-cyr_rfx-fonts-cp1251 xmms
Group: Sound
%description cyr-setup
This package is of use to Cyrillic users only.
%description cyr-setup -l ru_RU.KOI8-R
Этот пакет поможет пользователям XMMS настроить его для использования
кириллицы "одним щелчком"
%description cyr-setup -l uk_UA.KOI8-U
Цей пакунок допоможе користувачам XMMS налаштувати його для використання
кирилиц╕ "одним кл╕ком"
%description cyr-setup -l be_BY.CP1251
цЩРШ ОЮЙЕР ДЮОЮЛНФЮ ЙЮПШЯРЮКЭМЁЙЮЛ XMMS МЮКЮДГЁЖЭ ЪЦН ДКЪ БШЙЮПШЯРЮМЭМЪ
ЙЁПШКЁЖШ "ЮДМШЛ ЬВЮ╒ВЙНЛ"
%prep
%if %use_prever
%setup -n xmms-%version-%prever -q -a 70 -a 13
%else
%setup -n xmms-%version -q -a 70 -a 13
%endif
%patch1 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch8 -p1
%patch41 -p1
%patch44 -p1
%patch46 -p1
%patch47 -p1
%patch70 -p1
%patch71 -p1
#patch45 -p1
# RH/ASP patches
# Use RTLD_LAZY, not RTLD_NOW
%patch52 -p1 -b .lazy
# Link arts dynamically and detect its presence for choosing output plugin
# --> disabled: gives more grief than joy and we have soundwrapper anyways
#patch55 -p1 -b .arts
#patch56 -p1 -b .winlist
# id3v2
%if %build_id3v2
%patch60 -p1 -b .id3v2
%endif
# ID3 recoding patch (rusxmms)
%if %build_recode
%if %build_id3v2
%__patch -p1 -s < xmms_id3v2-ds-recode.patch
%else
%__patch -p1 -s < xmms-ds-recode.patch
%endif
#patch62 -p1
%endif
# another 1.2.9 fix from ds
%__patch -p1 -s < recode.addons/xmms-ds-ctrl3.patch
# subqueue management -- 1..9 keys set queue number,
# Ctrl-1..9 exchange it with an existing one;
# contact Boldin Pavel <ldavinchi at inbox.ru> for details
#patch61 -p1
%define _optlevel 3
%add_optflags %optflags_notraceback -funroll-all-loops
%add_optflags -fexpensive-optimizations -fomit-frame-pointer
%set_verify_elf_method textrel=relaxed
%build
unset CC CXX
%__libtoolize --copy --force
%__aclocal -I m4
%__autoconf
%__automake -a
pushd libxmms
%__aclocal -I ../m4
%__autoconf
popd
export CFLAGS="%optflags `glib-config --cflags` -I%_x11includedir/GL $(orbit-config --cflags client server)"
%configure \
%ifarch %{ix86}
--enable-3dnow \
--enable-simd \
%endif
--enable-recode \
--enable-texthack
%make
%install
%__mkdir_p %buildroot{%_menudir,%_liconsdir,%_miconsdir,%pkgdocdir}
%make DESTDIR=%buildroot install
%__cat > xmms.keys << EOF
audio/x-mp3:
open=xmms %f
view=xmms %f
EOF
%__install -pD -m644 xmms.keys %buildroot%_datadir/mime-info/xmms.keys
# icons
%__install -m644 $RPM_SOURCE_DIR/xmms-logo.xpm %buildroot%_datadir/xmms/xmms.xpm
%__install -m755 -d %buildroot%_datadir/pixmaps/
%__ln_s ../xmms/xmms.xpm %buildroot%_datadir/pixmaps/
bzcat %SOURCE10 > %buildroot%_miconsdir/%name.xpm
bzcat %SOURCE11 > %buildroot%_iconsdir/%name.xpm
bzcat %SOURCE12 > %buildroot%_liconsdir/%name.xpm
%__install -m644 %SOURCE5 %buildroot%_menudir/%name
%__install -m644 %SOURCE6 %buildroot%_menudir/wmxmms
%__install -pD -m644 %SOURCE71 %buildroot%_sysconfdir/rpm/macros.d/%name
# cyr setup
%__install -pD -m755 %SOURCE72 %buildroot%_bindir/xmms-cyr-setup.sh
%__install -pD -m644 %SOURCE73 %buildroot%_menudir/xmms-cyr-setup
# wrapper
%__mv %buildroot%_bindir/xmms %buildroot%_bindir/xmms-bin
%__install -pD -m755 %SOURCE74 %buildroot%_bindir/xmms
%if %build_recode
%__subst 's, at at RECODE at at ,yes,' %buildroot%_bindir/xmms
%else
%__subst 's, at at RECODE at at ,no,' %buildroot%_bindir/xmms
%endif
# packaging policy
%__install -p -m644 %SOURCE80 $RPM_BUILD_DIR/%name-%version/README.ALT-koi8r
# FAQ
%__install -p -m644 %SOURCE81 $RPM_BUILD_DIR/%name-%version/\#xmms-faq.html
%find_lang %name
%post
%post_ldconfig
%update_menus
%postun
%postun_ldconfig
%clean_menus
%post cyr-setup
%update_menus
%postun cyr-setup
%clean_menus
%post -n wmxmms
%update_menus
%postun -n wmxmms
%clean_menus
%files -f %name.lang
%doc AUTHORS ChangeLog NEWS* README* TODO
%doc recode.docs/README*.rus
%dir %_datadir/%name
%dir %_libdir/%name/
%dir %_libdir/%name/*
%_bindir/%name
%_bindir/%name-bin
%_libdir/%name/Input/libcdaudio*
%_libdir/%name/Input/libmpg123*
%_libdir/%name/Input/libtonegen*
%_libdir/%name/Input/libwav*
%_libdir/%name/Output/libOSS*
%_libdir/%name/General/*
%_libdir/%name/Effect/*
%_libdir/%name/Visualization/libbscope*
%_libdir/%name/Visualization/libsanalyzer*
%_datadir/%name/xmms.xpm
%_datadir/mime-info/xmms.keys
%_datadir/pixmaps/*
%_iconsdir/%name.xpm
%_miconsdir/%name.xpm
%_liconsdir/%name.xpm
%_menudir/%name
%_man1dir/xmms.1.*
%files -n libxmms
%_libdir/libxmms.so.*
%files -n libxmms-devel
%_libdir/lib*.so
%_includedir/*
%_datadir/aclocal/xmms.m4
%_bindir/xmms-config
%_sysconfdir/rpm/macros.d/%name
%if %build_static
%files -n libxmms-devel-static
%_libdir/lib*.a
%endif
%files in-mikmod
%_libdir/xmms/Input/libmikmod*
%files in-vorbis
%_libdir/xmms/Input/libvorbis*
%files out-alsa
%_libdir/xmms/Output/libALSA*
%files out-esd
%_libdir/xmms/Output/libesdout*
%files out-diskwriter
%_libdir/xmms/Output/libdisk_writer*
%files vis-mesa
%_libdir/xmms/Visualization/libogl_spectrum*
%files -n wmxmms
%_bindir/wmxmms
%_man1dir/wmxmms.1.*
%_datadir/xmms/wmxmms.*
%_menudir/wmxmms
%files cyr-setup
%_bindir/xmms-cyr-setup.sh
%_menudir/xmms-cyr-setup
# TODO:
# - seperate in-mp3, possibly in-wav & co? (PLD-style)
# - sort out Dag's patches (default skin, alsa, ...)
# when/if time comes for them here
# - have another look at xmms-1.2.10-gentoo-patches
# - test _optlevel s on older hardware?
# - implement ALSA autodetect (see xmms arts detect patch
# and arts sources; zerg's proposal)
%changelog
…
Полный changelog можно просмотреть здесь
%define use_prever 0
%define build_static 0
%define build_recode 1
%define build_id3v2 1
%define rusversion 1.2.10
%define rusxmms_ver csa28
Name: xmms
Version: 1.2.10
Release: alt6.M24.1
Epoch: 20050829
Summary: X Multimedia System -- the player for you
License: GPL
Group: Sound
Url: http://xmms.org
Icon: xmms-logo.xpm
%if %use_prever
Source0: %url/files/1.2.x/%name-%version-%prever.tar.bz2
%else
Source0: %url/files/1.2.x/%name-%version.tar.bz2
%endif
Source2: gnomexmms.desktop.bz2
Source4: xmms-icons.tar.bz2
Source5: xmms.menu
Source6: wmxmms.menu
Source8: xmms-ru.po.bz2
Source10: xmms.16.xpm.bz2
Source11: xmms.32.xpm.bz2
Source12: xmms.48.xpm.bz2
Source13: xmms-1.2.10-gentoo-m4-1.1.tar.bz2
Source70: http://unc.dl.sourceforge.net/sourceforge/rusxmms/xmms-%rusversion-recode-%rusxmms_ver.tar.bz2
Source71: xmms.rpm-macros
Source72: xmms-cyr-setup.sh
Source73: xmms-cyr-setup.menu
Source74: xmms-wrapper.sh
Source80: xmms-README.ALT
Source81: #xmms-faq.html
Patch1: xmms-1.2-audio-patch
Patch4: xmms-fix-smallfiles.patch
Patch5: xmms-1.2.6-fix-title-mp3streaming.patch
Patch6: xmms-fix-textbox.patch
Patch8: xmms-3dse-niqueluisarace.patch
# Local patches
Patch41: xmms-1.2.6-filebrowser_get_files.patch
Patch42: xmms-1.2.7-automake.patch
Patch43: xmms-1.2.7-local-libxmms_n.patch
Patch44: xmms-1.2.9-alt-socketpath.patch
Patch45: xmms-1.2.8-alt-aclocal-mess-cleanup.patch.bz2
Patch46: xmms-1.2.10-alt-gcc34_libctrl.patch
Patch47: xmms-1.2.10-xmmsctrl.patch
# imported from 1.2.8-1.9asp
Patch52: xmms-1.2.6-lazy.patch
# ...and additionally fixed
Patch55: xmms-1.2.10-alt-arts.patch
# rollback winlist changes in 1.2.9
Patch56: xmms-1.2.10-alt-skipwinlist.patch
# id3v2 support
Patch60: xmms-1.2.9-yonas-id3v2.patch
# advanced queue mgmt
Patch61: xmms-1.2.10-davinchi-queued.patch
# patch after rusxmms-1.2.10-csa27.4 -- should fix one more segfault
# [included in csa28]
Patch62: xmms-recode.patch
# some merge-up
Patch70: xmms-underquoted.patch
Patch71: xmms-alsa-mono-vol-adjust.patch
# TODO (not applied right now)
# dag's
Patch80: xmms-1.2.6-audio.patch
Patch81: xmms-1.2.8-default-skin.patch
Patch82: xmms-alsa-backport.patch
Packager: Michael Shigorin <mike at altlinux.org>
Obsoletes: x11amp
Requires: libxmms = %version-%release
# Automatically added by buildreq on Tue Feb 24 2004
BuildRequires: ORBit-devel XFree86-devel XFree86-libs esound-devel glib-devel gtk+-devel hostinfo libalsa-devel libaudiofile-devel libmikmod-devel libogg-devel libvorbis-devel zlib-devel
#set_autoconf_version 2.13
#set_automake_version 1.7
%description
XMMS is a sound player written from scratch. Since it uses the WinAmp GUI, it
can use WinAmp skins, and play mp3s, mods, s3ms, and other formats. It now has
support for input, output, and general plugins, and has also been GPLd.
%description -l ru_RU.KOI8-R
X MultiMedia System - наиболее популярный медиа-проигрыватель для UNIX-систем.
Поддерживает существенное количество форматов и эффектов благодаря большому
количеству модулей расширения, доступных в отдельных пакетах.
%description -l uk_UA.KOI8-U
X MultiMedia System - найб╕льш популярний мед╕а-програвач для UNIX-систем.
П╕дтриму╓ величезну к╕льк╕сть формат╕в та ефект╕в завдяки велик╕й к╕лькост╕
модул╕в розширення, що доступн╕ в окремих пакетах.
%package -n libxmms
Summary: Library needed for XMMS and its plugins
Summary(ru_RU.KOI8-R): Библиотека для XMMS и модулей к нему
Summary(uk_UA.KOI8-U): Б╕бл╕отека для XMMS та модул╕в до нього
Group: System/Libraries
Requires: libxmms = %version-%release
%description -n libxmms
This library is mandatory for xmms and for all its plugins to run.
%description -n libxmms -l ru_RU.KOI8-R
Эта библиотека необходима для xmms и всех его модулей.
%description -n libxmms -l uk_UA.KOI8-U
Ця б╕бл╕отека ╓ необх╕дною для xmms та ус╕х його модулей.
%package -n libxmms-devel
Summary: Development package with headers
Group: Development/C
Icon: xmms-devel-logo.xpm
Requires: libxmms = %version-%release
Provides: xmms-devel = %version-%release
Obsoletes: xmms-devel
%description -n libxmms-devel
Header files required for compiling xmms plugins.
%if %build_static
%package -n libxmms-devel-static
Summary: Development package with static libs
Group: Development/C
Requires: libxmms-devel = %version-%release
Obsoletes: xmms-devel-static
Provides: xmms-devel-static = %version-%release
%description -n libxmms-devel-static
Static libraries required for compiling xmms plugins.
%endif
%package in-mikmod
Summary: Mikmod output plugin
Summary(ru_RU.KOI8-R): Модуль поддержки воспроизведения MOD-файлов
Summary(uk_UA.KOI8-U): Модуль п╕дтримки в╕дтворення MOD-файл╕в
Group: Sound
Icon: xmms-mikmod-logo.xpm
BuildPreReq: libmikmod-devel
Requires: %name = %version-%release
Requires: libmikmod >= 3.1.6
Obsoletes: x11amp-mikmod xmms-mikmod
Provides: xmms-mikmod = %version-%release
%description in-mikmod
Input plugin for XMMS to play MODs (.mod,.xm,.s3m, etc)
%description in-mikmod -l ru_RU.KOI8-R
Модуль ввода для проигрывания MOD-файлов (.mod, .xm, .s3m, ...)
%description in-mikmod -l uk_UA.KOI8-U
Модуль вводу для програвання MOD-файл╕в (.mod, .xm, .s3m, ...)
%package in-vorbis
Summary: Input plugin that uses the Vorbis library
Summary(ru_RU.KOI8-R): Модуль поддержки воспроизведения Ogg Vorbis
Summary(uk_UA.KOI8-U): Модуль п╕дтримки в╕дтворення Ogg Vorbis
Group: Sound
Requires: %name = %version-%release, libvorbis >= 1.0rc2, libogg >= 1.0rc2
BuildPreReq: libvorbis
Obsoletes: xmms-vorbis
Provides: xmms-vorbis = %version-%release
%description in-vorbis
Input plugins that use the Vorbis library
%description in-vorbis -l ru_RU.KOI8-R
Модуль ввода, использующий библиотеку Ogg Vorbis
%description in-vorbis -l uk_UA.KOI8-U
Модуль вводу, що використову╓ б╕бл╕отеку Ogg Vorbis
%package out-alsa
Summary: ALSA output plugin
Summary(ru_RU.KOI8-R): Модуль вывода для ALSA
Summary(uk_UA.KOI8-U): Модуль виводу для ALSA
Group: Sound
BuildPreReq: libalsa-devel
Requires: %name = %version-%release
Obsoletes: xmms-alsa < 1.2.8
Provides: xmms-alsa = %version-%release
%description out-alsa
Output plugin for xmms to use with ALSA
%description out-alsa -l ru_RU.KOI8-R
Модуль вывода для использования с ALSA
%description out-alsa -l uk_UA.KOI8-U
Модуль виводу для використання ╕з ALSA
%package out-diskwriter
Summary: DiskWriter output plugin
Summary(ru_RU.KOI8-R): Модуль вывода в файл
Summary(uk_UA.KOI8-U): Модуль виводу в файл
Group: Sound
Requires: %name = %version-%release
Obsoletes: xmms-diskwriter < 1.2.8-alt2
Provides: xmms-diskwriter = %version-%release
%description out-diskwriter
Output plugin for xmms in order to output *.wav files instead of playing
sound on the soundcard.
%description out-diskwriter -l ru_RU.KOI8-R
Модуль вывода для записи wav-файлов вместо воспроизведения
%description out-diskwriter -l uk_UA.KOI8-U
Модуль виводу для запису wav-файл╕в зам╕сть в╕дтворення
%package out-esd
Summary: ESound output plugin
Summary(ru_RU.KOI8-R): Модуль вывода через ESound
Summary(uk_UA.KOI8-U): Модуль виводу через ESound
Group: Sound
Icon: xmms-esd-logo.xpm
BuildPreReq: esound-devel
Requires: %name = %version-%release
Requires: esound >= 0.2.14
Obsoletes: x11amp-esd xmms-esd < 1.2.8-alt2
Provides: xmms-esd = %version-%release
%description out-esd
Output plugin for xmms to use with the ESD
%description out-esd -l ru_RU.KOI8-R
Модуль вывода, применяемый при необходимости использования ESound
%description out-esd -l uk_UA.KOI8-U
Модуль виводу, що застосову╓ться при необх╕дност╕ використання ESound
%package vis-mesa
Summary: Visualization plugins that use the Mesa3D library
Summary(ru_RU.KOI8-R): Модули визуализации с использованием Mesa3D
Summary(uk_UA.KOI8-U): Модул╕ в╕зуал╕зац╕╖ з використанням Mesa3D
Group: Sound
Icon: xmms-mesa-logo.xpm
Requires: %name = %version-%release
BuildPreReq: Mesa-devel
Obsoletes: xmms-mesa < 1.2.8-alt2
Provides: xmms-mesa = %version-%release
%description vis-mesa
3D Visualization plugins for XMMS that use the Mesa3d library
%description vis-mesa -l ru_RU.KOI8-R
Модуль визуализации с использованием 3D-эффектов
%description vis-mesa -l uk_UA.KOI8-U
Модуль в╕зуал╕зац╕╖ з використанням 3D-ефект╕в
%package -n wmxmms
Summary: XMMS applet for WindowMaker
Group: Graphical desktop/Window Maker
Requires: %name = %version-%release
%description -n wmxmms
XMMS applet for WindowMaker.
You may also want to take a look at wmusic.
%description -n wmxmms -l ru_RU.KOI8-R
Аплет XMMS для WindowMaker.
В отличие от wmusic, не поддерживает кириллицу.
%description -n wmxmms -l uk_UA.KOI8-U
Аплет XMMS для WindowMaker.
На в╕дм╕ну в╕д wmusic, не п╕дтриму╓ кирилицю.
%package cyr-setup
Summary: Script to auto-tune XMMS for cyrillic tags
Summary(ru_RU.KOI8-R): Скрипт для автонастройки XMMS под кириллицу
Summary(uk_UA.KOI8-U): Скрипт для автоналаштування XMMS п╕д кирилицю
Summary(be_BY.CP1251): яЖЩМЮП Ю╒РЮЛЮРШВМЮЕ МЮКЮДЙЁ ОПЮЖШ XMMS Г ЙЁПШКЁВМШЛЁ ЬПШТРЮЛЁ
Requires: XFree86-cyr_rfx-fonts-koi8-u XFree86-cyr_rfx-fonts-cp1251 xmms
Group: Sound
%description cyr-setup
This package is of use to Cyrillic users only.
%description cyr-setup -l ru_RU.KOI8-R
Этот пакет поможет пользователям XMMS настроить его для использования
кириллицы "одним щелчком"
%description cyr-setup -l uk_UA.KOI8-U
Цей пакунок допоможе користувачам XMMS налаштувати його для використання
кирилиц╕ "одним кл╕ком"
%description cyr-setup -l be_BY.CP1251
цЩРШ ОЮЙЕР ДЮОЮЛНФЮ ЙЮПШЯРЮКЭМЁЙЮЛ XMMS МЮКЮДГЁЖЭ ЪЦН ДКЪ БШЙЮПШЯРЮМЭМЪ
ЙЁПШКЁЖШ "ЮДМШЛ ЬВЮ╒ВЙНЛ"
%prep
%if %use_prever
%setup -n xmms-%version-%prever -q -a 70 -a 13
%else
%setup -n xmms-%version -q -a 70 -a 13
%endif
%patch1 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch8 -p1
%patch41 -p1
%patch44 -p1
%patch46 -p1
%patch47 -p1
%patch70 -p1
%patch71 -p1
#patch45 -p1
# RH/ASP patches
# Use RTLD_LAZY, not RTLD_NOW
%patch52 -p1 -b .lazy
# Link arts dynamically and detect its presence for choosing output plugin
# --> disabled: gives more grief than joy and we have soundwrapper anyways
#patch55 -p1 -b .arts
#patch56 -p1 -b .winlist
# id3v2
%if %build_id3v2
%patch60 -p1 -b .id3v2
%endif
# ID3 recoding patch (rusxmms)
%if %build_recode
%if %build_id3v2
%__patch -p1 -s < xmms_id3v2-ds-recode.patch
%else
%__patch -p1 -s < xmms-ds-recode.patch
%endif
#patch62 -p1
%endif
# another 1.2.9 fix from ds
%__patch -p1 -s < recode.addons/xmms-ds-ctrl3.patch
# subqueue management -- 1..9 keys set queue number,
# Ctrl-1..9 exchange it with an existing one;
# contact Boldin Pavel <ldavinchi at inbox.ru> for details
#patch61 -p1
%define _optlevel 3
%add_optflags %optflags_notraceback -funroll-all-loops
%add_optflags -fexpensive-optimizations -fomit-frame-pointer
%set_verify_elf_method textrel=relaxed
%build
unset CC CXX
%__libtoolize --copy --force
%__aclocal -I m4
%__autoconf
%__automake -a
pushd libxmms
%__aclocal -I ../m4
%__autoconf
popd
export CFLAGS="%optflags `glib-config --cflags` -I%_x11includedir/GL $(orbit-config --cflags client server)"
%configure \
%ifarch %{ix86}
--enable-3dnow \
--enable-simd \
%endif
--enable-recode \
--enable-texthack
%make
%install
%__mkdir_p %buildroot{%_menudir,%_liconsdir,%_miconsdir,%pkgdocdir}
%make DESTDIR=%buildroot install
%__cat > xmms.keys << EOF
audio/x-mp3:
open=xmms %f
view=xmms %f
EOF
%__install -pD -m644 xmms.keys %buildroot%_datadir/mime-info/xmms.keys
# icons
%__install -m644 $RPM_SOURCE_DIR/xmms-logo.xpm %buildroot%_datadir/xmms/xmms.xpm
%__install -m755 -d %buildroot%_datadir/pixmaps/
%__ln_s ../xmms/xmms.xpm %buildroot%_datadir/pixmaps/
bzcat %SOURCE10 > %buildroot%_miconsdir/%name.xpm
bzcat %SOURCE11 > %buildroot%_iconsdir/%name.xpm
bzcat %SOURCE12 > %buildroot%_liconsdir/%name.xpm
%__install -m644 %SOURCE5 %buildroot%_menudir/%name
%__install -m644 %SOURCE6 %buildroot%_menudir/wmxmms
%__install -pD -m644 %SOURCE71 %buildroot%_sysconfdir/rpm/macros.d/%name
# cyr setup
%__install -pD -m755 %SOURCE72 %buildroot%_bindir/xmms-cyr-setup.sh
%__install -pD -m644 %SOURCE73 %buildroot%_menudir/xmms-cyr-setup
# wrapper
%__mv %buildroot%_bindir/xmms %buildroot%_bindir/xmms-bin
%__install -pD -m755 %SOURCE74 %buildroot%_bindir/xmms
%if %build_recode
%__subst 's, at at RECODE at at ,yes,' %buildroot%_bindir/xmms
%else
%__subst 's, at at RECODE at at ,no,' %buildroot%_bindir/xmms
%endif
# packaging policy
%__install -p -m644 %SOURCE80 $RPM_BUILD_DIR/%name-%version/README.ALT-koi8r
# FAQ
%__install -p -m644 %SOURCE81 $RPM_BUILD_DIR/%name-%version/\#xmms-faq.html
%find_lang %name
%post
%post_ldconfig
%update_menus
%postun
%postun_ldconfig
%clean_menus
%post cyr-setup
%update_menus
%postun cyr-setup
%clean_menus
%post -n wmxmms
%update_menus
%postun -n wmxmms
%clean_menus
%files -f %name.lang
%doc AUTHORS ChangeLog NEWS* README* TODO
%doc recode.docs/README*.rus
%dir %_datadir/%name
%dir %_libdir/%name/
%dir %_libdir/%name/*
%_bindir/%name
%_bindir/%name-bin
%_libdir/%name/Input/libcdaudio*
%_libdir/%name/Input/libmpg123*
%_libdir/%name/Input/libtonegen*
%_libdir/%name/Input/libwav*
%_libdir/%name/Output/libOSS*
%_libdir/%name/General/*
%_libdir/%name/Effect/*
%_libdir/%name/Visualization/libbscope*
%_libdir/%name/Visualization/libsanalyzer*
%_datadir/%name/xmms.xpm
%_datadir/mime-info/xmms.keys
%_datadir/pixmaps/*
%_iconsdir/%name.xpm
%_miconsdir/%name.xpm
%_liconsdir/%name.xpm
%_menudir/%name
%_man1dir/xmms.1.*
%files -n libxmms
%_libdir/libxmms.so.*
%files -n libxmms-devel
%_libdir/lib*.so
%_includedir/*
%_datadir/aclocal/xmms.m4
%_bindir/xmms-config
%_sysconfdir/rpm/macros.d/%name
%if %build_static
%files -n libxmms-devel-static
%_libdir/lib*.a
%endif
%files in-mikmod
%_libdir/xmms/Input/libmikmod*
%files in-vorbis
%_libdir/xmms/Input/libvorbis*
%files out-alsa
%_libdir/xmms/Output/libALSA*
%files out-esd
%_libdir/xmms/Output/libesdout*
%files out-diskwriter
%_libdir/xmms/Output/libdisk_writer*
%files vis-mesa
%_libdir/xmms/Visualization/libogl_spectrum*
%files -n wmxmms
%_bindir/wmxmms
%_man1dir/wmxmms.1.*
%_datadir/xmms/wmxmms.*
%_menudir/wmxmms
%files cyr-setup
%_bindir/xmms-cyr-setup.sh
%_menudir/xmms-cyr-setup
# TODO:
# - seperate in-mp3, possibly in-wav & co? (PLD-style)
# - sort out Dag's patches (default skin, alsa, ...)
# when/if time comes for them here
# - have another look at xmms-1.2.10-gentoo-patches
# - test _optlevel s on older hardware?
# - implement ALSA autodetect (see xmms arts detect patch
# and arts sources; zerg's proposal)
%changelog
…
Полный changelog можно просмотреть здесь