SHA256
1
0
forked from pool/alsa-utils
alsa-utils/alsa-utils.spec
Takashi Iwai 3a57fbf7f8 Accepting request 122710 from home:tiwai:branches:multimedia:libs
- backport fix patches from upstream:
  * Some document fixes
  * Improve xrun_sync in alsaloop
  * Add option to dump HW parameters to aplay
  * Add the support for mapped volumes to amixer
  * Add option to tread any xrun as fatal to aplay/arecord
  * configure.in fixes
  * alsactl: Don't access other cards than specified
  * aplay prints Vu-meter to stderr now
  * fix the avail_min setup in alsaloop

OBS-URL: https://build.opensuse.org/request/show/122710
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa-utils?expand=0&rev=52
2012-05-29 09:34:36 +00:00

137 lines
3.8 KiB
RPMSpec

#
# spec file for package alsa-utils
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
#
%if %suse_version > 1130
%define use_systemd 1
%define use_varlib 1
%else
%define use_systemd 0
%define use_varlib 0
%endif
Name: alsa-utils
BuildRequires: alsa-devel
BuildRequires: automake
BuildRequires: ncurses-devel
BuildRequires: pkgconfig
BuildRequires: xmlto
%define package_version 1.0.25
Provides: alsa-conf
Requires: alsa
Requires: dialog
Requires: pciutils
Summary: Advanced Linux Sound Architecture Utilities
License: GPL-2.0+
Group: Productivity/Multimedia/Sound/Players
Version: 1.0.25
Release: 0
Source: ftp://ftp.alsa-project.org/pub/utils/alsa-utils-%{package_version}.tar.bz2
# Patch: alsa-utils-git-fixes.diff
Patch1: 0001-Fix-the-examples-in-aplay.1.patch
Patch2: 0002-Trivial-fixes-in-INSTALL-file.patch
Patch4: 0004-alsaloop-Improve-xrun_sync-fill-missing-playback-sam.patch
Patch5: 0005-aplay-option-to-dump-HW-parameters.patch
Patch6: 0006-amixer-Add-the-support-for-mapped-volumes-like-alsam.patch
Patch7: 0007-aplay-arecord-option-to-treat-any-xrun-as-fatal.patch
Patch8: 0008-amixer-alsamixer-Add-description-of-volume-mapping.patch
Patch9: 0009-configure.in-look-for-ncurses-pkg-config-first.patch
Patch10: 0010-configure.in-use-AS_HELP_STRING-everywhere.patch
Patch11: 0011-alsactl-Do-not-access-other-cards-than-specified-for.patch
Patch12: 0012-aplay-print-vu-meter-to-stderr-not-stdout.patch
Patch13: 0013-alsaloop-fix-the-avail_min-setup.patch
Patch99: alsa-utils-gettext-version-removal.diff
Url: http://www.alsa-project.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains utility programs supporting ALSA, Advanced Linux
Sound Architecture.
%prep
%setup -q -n %{name}-%{package_version}
# fix stupid automake's automatic action
sed -i -e's/EXTRA_DIST= config.rpath /EXTRA_DIST=/' Makefile.am
# rm -f po/Makefile* po/*.gmo po/*.pot po/*.header po/stamp-*
# patch -p1
%patch1 -p1
%patch2 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%if %suse_version < 1020
%patch99 -p1
%endif
%build
export AUTOMAKE_JOBS="%{?_smp_mflags}"
%if %suse_version < 1020
gettextize -f
%endif
autoreconf -fi
opts=""
%if %use_systemd
opts="$opts --with-systemdsystemunitdir=/lib/systemd/system"
%endif
%if ! %use_varlib
opts="$opts --with-asound-state-dir=/etc"
%endif
%if %suse_version < 1030
opts="$opts --disable-xmlto"
%endif
%configure --with-curses=ncursesw $opts
make %{?_smp_mflags}
%install
%makeinstall
%find_lang %{name} --all-name
%if %use_systemd
ln -s alsa-restore.service $RPM_BUILD_ROOT/lib/systemd/system/alsasound.service
%endif
%if %use_varlib
mkdir -p $RPM_BUILD_ROOT/var/lib/alsa
%endif
%files -f %{name}.lang
%defattr(-, root, root)
%doc COPYING ChangeLog INSTALL README TODO
%doc seq/aconnect/README*
%doc seq/aseqnet/README*
%doc %{_mandir}/man*/*
%doc %{_mandir}/fr
%{_bindir}/*
%{_sbindir}/*
%{_datadir}/sounds/alsa
%{_datadir}/alsa
/lib/udev
%if %use_systemd
/lib/systemd
%endif
%if %use_varlib
/var/lib/alsa
%endif
%changelog