Репозитории ALT
S: | 0.99.80-alt11.3 |
5.1: | 0.99.80-alt11 |
4.1: | 0.99.80-alt6 |
4.0: | 0.99.80-alt0.9 |
3.0: | 0.99.76-alt1.1.1 |
Группа :: Звук
Пакет: alsaplayer
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%def_with jack
%def_with flac
Name: alsaplayer
Version: 0.99.76
Release: alt1.1.1
Summary: Advanced Linux Sound Architecture (ALSA) player
Summary(ru_RU.KOI8-R): Проигрыватель для ALSA
Group: Sound
License: GPL
Url: http://www.alsaplayer.org
ExcludeArch: alpha ppc sparc sparc64
Source: %url/%name-%version.tar.bz2
Source1: %name-icons.tar.bz2
Prefix: %prefix
Requires: lib%name = %version-%release
Requires: %name-plugins = %version-%release
%define sndfile_ver 1.0.4
Requires: libsndfile >= %sndfile_ver
BuildPreReq: libsndfile-devel >= %sndfile_ver
%if_with jack
%define jack_ver 0.70.4
BuildPreReq: jackit-devel >= %jack_ver
%endif
%if_with flac
%define flac_ver 1.0.4-alt3
BuildPreReq: libflac-devel
%endif
BuildPreReq: kernel-headers-std
# Automatically added by buildreq on Tue Dec 16 2003
BuildRequires: XFree86-devel XFree86-libs doxygen esound-devel gcc-c++ gcc-g77 glib-devel gtk+-devel hostinfo jackit-devel libalsa-devel libaudio-devel libaudiofile-devel libflac-devel libid3tag-devel libmad-devel libmikmod-devel libogg-devel liboggflac-devel libsndfile-devel libstdc++-devel libvorbis-devel libxosd-devel pkgconfig zlib-devel
%description
This package contains Alsaplayer is an audio player with wide range of
input, interface, output, and scopes plugins.
%package -n lib%name
Summary: Shared library for AlsaPlayer
Group: System/Libraries
%description -n lib%name
This package contains shared library required for Alsaplayer to work.
%package plugins
Summary: AlsaPlayer plugins
Group: System/Libraries
Requires: lib%name = %version-%release
%description plugins
This package contains plugins for Alsaplayer.
%package devel
Summary: Development files for Alsaplayer
Group: Development/C++
Requires: lib%name = %version-%release
Requires: %name-plugins = %version-%release
%description devel
This package contains header files, libraries and documentation needed
to develop plugins for Alsaplayer.
%prep
%setup -q -a1
# while configure stuff broken.
%if_without flac
%__subst 's, flac,,g' input/Makefile.in
%endif
find -type f -name "Makefile*" -print0 |xargs -r0 %__subst 's,\(ldflags = .*\),\1 %optflags_shared,' --
%build
export CFLAGS=-I%_x11includedir
%configure --enable-audiofile \
%if_without jack
--disable-jack \
%endif
%if_without flac
--disable-flac \
%endif
%make_build
%install
%make_install DESTDIR=%buildroot \
DOCDIR=%buildroot%_docdir/%name install
# menus
%__cat <<__MENU__ > %name.menu
?package(alsaplayer): needs="x11" title="Alsa Player" longtitle="Multiformat audio player" \
section="Multimedia/Sound/" icon="alsaplayer.xpm"
?package(alsaplayer): command="alsaplayer" needs="x11" \
title="Alsa Player (ALSA output)" longtitle="The Alsa Player using ALSA output driver" \
section="Multimedia/Sound/Alsa Player" icon="alsaplayer.xpm"
?package(alsaplayer): command="alsaplayer -o oss" needs="x11" \
title="Alsa Player (OSS output)" longtitle="The Alsa Player using OSS output driver" \
section="Multimedia/Sound/Alsa Player" icon="alsaplayer.xpm"
?package(alsaplayer): command="alsaplayer -o esound" needs="x11" \
title="Alsa Player (EsounD output)" longtitle="The Alsa Player using EsounD output driver" \
section="Multimedia/Sound/Alsa Player" icon="alsaplayer.xpm"
__MENU__
%__install -p -m644 -D %name.menu %buildroot%_menudir/%name
#icons
%__mkdir -p %buildroot%_iconsdir
%__cp -a icons/* %buildroot%_iconsdir
%if_with jack
%__ln_s alsaplayer %buildroot%_bindir/jackplayer
%endif
# remove non-packaged files
%__rm -f %buildroot%_libdir/*.la
%__rm -f %buildroot%_libdir/%name/*/*.la
%__rm -rf %buildroot%_docdir/%name
%post
%update_menus
%postun
%clean_menus
%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig
%files
%_bindir/*
%_iconsdir/*.xpm
%_iconsdir/*/*.xpm
%_man1dir/*
%_menudir/*
%doc AUTHORS ChangeLog README
%files -n lib%name
%_libdir/*.so.*
%files plugins
%dir %_libdir/%name
%dir %_libdir/%name/input
%dir %_libdir/%name/interface
%dir %_libdir/%name/output
%dir %_libdir/%name/reader
%dir %_libdir/%name/scopes
%_libdir/%name/*/*.so
%files devel
%_includedir/*
%_libdir/*.so
%_libdir/pkgconfig/*
%doc docs/reference/html docs/*.txt
%changelog
…
Полный changelog можно просмотреть здесь
%def_with flac
Name: alsaplayer
Version: 0.99.76
Release: alt1.1.1
Summary: Advanced Linux Sound Architecture (ALSA) player
Summary(ru_RU.KOI8-R): Проигрыватель для ALSA
Group: Sound
License: GPL
Url: http://www.alsaplayer.org
ExcludeArch: alpha ppc sparc sparc64
Source: %url/%name-%version.tar.bz2
Source1: %name-icons.tar.bz2
Prefix: %prefix
Requires: lib%name = %version-%release
Requires: %name-plugins = %version-%release
%define sndfile_ver 1.0.4
Requires: libsndfile >= %sndfile_ver
BuildPreReq: libsndfile-devel >= %sndfile_ver
%if_with jack
%define jack_ver 0.70.4
BuildPreReq: jackit-devel >= %jack_ver
%endif
%if_with flac
%define flac_ver 1.0.4-alt3
BuildPreReq: libflac-devel
%endif
BuildPreReq: kernel-headers-std
# Automatically added by buildreq on Tue Dec 16 2003
BuildRequires: XFree86-devel XFree86-libs doxygen esound-devel gcc-c++ gcc-g77 glib-devel gtk+-devel hostinfo jackit-devel libalsa-devel libaudio-devel libaudiofile-devel libflac-devel libid3tag-devel libmad-devel libmikmod-devel libogg-devel liboggflac-devel libsndfile-devel libstdc++-devel libvorbis-devel libxosd-devel pkgconfig zlib-devel
%description
This package contains Alsaplayer is an audio player with wide range of
input, interface, output, and scopes plugins.
%package -n lib%name
Summary: Shared library for AlsaPlayer
Group: System/Libraries
%description -n lib%name
This package contains shared library required for Alsaplayer to work.
%package plugins
Summary: AlsaPlayer plugins
Group: System/Libraries
Requires: lib%name = %version-%release
%description plugins
This package contains plugins for Alsaplayer.
%package devel
Summary: Development files for Alsaplayer
Group: Development/C++
Requires: lib%name = %version-%release
Requires: %name-plugins = %version-%release
%description devel
This package contains header files, libraries and documentation needed
to develop plugins for Alsaplayer.
%prep
%setup -q -a1
# while configure stuff broken.
%if_without flac
%__subst 's, flac,,g' input/Makefile.in
%endif
find -type f -name "Makefile*" -print0 |xargs -r0 %__subst 's,\(ldflags = .*\),\1 %optflags_shared,' --
%build
export CFLAGS=-I%_x11includedir
%configure --enable-audiofile \
%if_without jack
--disable-jack \
%endif
%if_without flac
--disable-flac \
%endif
%make_build
%install
%make_install DESTDIR=%buildroot \
DOCDIR=%buildroot%_docdir/%name install
# menus
%__cat <<__MENU__ > %name.menu
?package(alsaplayer): needs="x11" title="Alsa Player" longtitle="Multiformat audio player" \
section="Multimedia/Sound/" icon="alsaplayer.xpm"
?package(alsaplayer): command="alsaplayer" needs="x11" \
title="Alsa Player (ALSA output)" longtitle="The Alsa Player using ALSA output driver" \
section="Multimedia/Sound/Alsa Player" icon="alsaplayer.xpm"
?package(alsaplayer): command="alsaplayer -o oss" needs="x11" \
title="Alsa Player (OSS output)" longtitle="The Alsa Player using OSS output driver" \
section="Multimedia/Sound/Alsa Player" icon="alsaplayer.xpm"
?package(alsaplayer): command="alsaplayer -o esound" needs="x11" \
title="Alsa Player (EsounD output)" longtitle="The Alsa Player using EsounD output driver" \
section="Multimedia/Sound/Alsa Player" icon="alsaplayer.xpm"
__MENU__
%__install -p -m644 -D %name.menu %buildroot%_menudir/%name
#icons
%__mkdir -p %buildroot%_iconsdir
%__cp -a icons/* %buildroot%_iconsdir
%if_with jack
%__ln_s alsaplayer %buildroot%_bindir/jackplayer
%endif
# remove non-packaged files
%__rm -f %buildroot%_libdir/*.la
%__rm -f %buildroot%_libdir/%name/*/*.la
%__rm -rf %buildroot%_docdir/%name
%post
%update_menus
%postun
%clean_menus
%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig
%files
%_bindir/*
%_iconsdir/*.xpm
%_iconsdir/*/*.xpm
%_man1dir/*
%_menudir/*
%doc AUTHORS ChangeLog README
%files -n lib%name
%_libdir/*.so.*
%files plugins
%dir %_libdir/%name
%dir %_libdir/%name/input
%dir %_libdir/%name/interface
%dir %_libdir/%name/output
%dir %_libdir/%name/reader
%dir %_libdir/%name/scopes
%_libdir/%name/*/*.so
%files devel
%_includedir/*
%_libdir/*.so
%_libdir/pkgconfig/*
%doc docs/reference/html docs/*.txt
%changelog
…
Полный changelog можно просмотреть здесь