2007-04-19 04:26:03 +02:00
|
|
|
#
|
2011-06-03 15:33:27 +02:00
|
|
|
# spec file for package alsa-utils
|
2007-04-19 04:26:03 +02:00
|
|
|
#
|
2011-06-03 15:33:27 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-04-19 04:26:03 +02:00
|
|
|
#
|
2008-08-07 01:09:36 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-04-19 04:26:03 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2010-11-26 09:10:21 +01:00
|
|
|
%if %suse_version > 1130
|
|
|
|
%define use_systemd 1
|
2010-11-30 08:53:23 +01:00
|
|
|
%define use_varlib 1
|
2010-11-26 09:10:21 +01:00
|
|
|
%else
|
|
|
|
%define use_systemd 0
|
2010-11-30 08:53:23 +01:00
|
|
|
%define use_varlib 0
|
2010-11-26 09:10:21 +01:00
|
|
|
%endif
|
2008-02-15 01:11:07 +01:00
|
|
|
|
2007-04-19 04:26:03 +02:00
|
|
|
Name: alsa-utils
|
2010-11-29 11:53:59 +01:00
|
|
|
BuildRequires: alsa-devel ncurses-devel pkgconfig xmlto
|
2011-02-01 15:03:12 +01:00
|
|
|
%define package_version 1.0.24.2
|
2010-02-19 16:48:02 +01:00
|
|
|
License: GPLv2+
|
2007-04-19 04:26:03 +02:00
|
|
|
Group: Productivity/Multimedia/Sound/Players
|
|
|
|
Provides: alsa-conf
|
|
|
|
Requires: dialog pciutils
|
2007-09-17 17:07:16 +02:00
|
|
|
AutoReqProv: on
|
2007-04-19 04:26:03 +02:00
|
|
|
Summary: Advanced Linux Sound Architecture Utilities
|
2011-02-01 15:03:12 +01:00
|
|
|
Version: 1.0.24.2
|
|
|
|
Release: 1
|
2007-04-19 04:26:03 +02:00
|
|
|
Source: ftp://ftp.alsa-project.org/pub/util/alsa-utils-%{package_version}.tar.bz2
|
2010-09-02 16:08:00 +02:00
|
|
|
# Patch: alsa-utils-git-fixes.diff
|
2011-06-03 15:33:27 +02:00
|
|
|
Patch1: 0001-alsamixer-fix-display-of-active-inactive-controls.patch
|
|
|
|
Patch2: 0002-alsaloop-libsamplerate-requires-specific-formats-for.patch
|
|
|
|
Patch3: 0003-alsaloop-another-try-to-force-correct-formats-for-li.patch
|
|
|
|
Patch4: 0004-alsamixer-fix-build-on-uClibc.patch
|
|
|
|
Patch5: 0005-alsactl-init-Mute-CD-Playback-volume-by-default.patch
|
|
|
|
Patch6: 0006-Revert-alsactl-Display-help-for-names-command.patch
|
|
|
|
Patch7: 0007-alsaucm-Add-list1-command-for-non-tuple-lists.patch
|
|
|
|
Patch8: 0008-alsaucm-Don-t-double-free-empty-lists.patch
|
|
|
|
Patch9: 0009-aplay-Add-i-option-for-interactive-mode.patch
|
|
|
|
Patch10: 0010-aplay-Avoid-recursive-signal-handling.patch
|
|
|
|
Patch12: 0012-alsaloop-Use-AM_CFLAGS-in-Makefile.am.patch
|
|
|
|
Patch13: 0013-Updated-COPYING-with-the-recent-FSF-address.patch
|
|
|
|
Patch14: 0014-alsamixer-Fix-64bit-issues.patch
|
|
|
|
Patch15: 0015-aplay-Add-include-files-for-mkdir.patch
|
|
|
|
Patch16: 0016-aplay-Use-standard-endian-convesions.patch
|
2010-09-03 16:46:03 +02:00
|
|
|
Patch99: alsa-utils-gettext-version-removal.diff
|
2011-02-01 15:03:12 +01:00
|
|
|
# Patch100: alsa-utils-po-pre-patch.diff
|
2007-09-17 17:07:16 +02:00
|
|
|
Url: http://www.alsa-project.org/
|
2007-04-19 04:26:03 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains utility programs supporting ALSA, Advanced Linux
|
|
|
|
Sound Architecture.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
2007-10-16 17:46:53 +02:00
|
|
|
Jaroslav Kysela <perex@perex.cz>
|
2007-04-19 04:26:03 +02:00
|
|
|
Takashi Iwai <tiwai@suse.de>
|
|
|
|
|
|
|
|
%prep
|
2007-06-05 00:44:59 +02:00
|
|
|
%setup -q -n %{name}-%{package_version}
|
2009-02-16 16:03:39 +01:00
|
|
|
# fix stupid automake's automatic action
|
2009-06-02 18:42:15 +02:00
|
|
|
sed -i -e's/EXTRA_DIST= config.rpath /EXTRA_DIST=/' Makefile.am
|
|
|
|
# fix po changes in tarball first
|
2011-06-03 15:33:27 +02:00
|
|
|
# %%patch100 -p1
|
2009-09-01 22:37:25 +02:00
|
|
|
# rm -f po/Makefile* po/*.gmo po/*.pot po/*.header po/stamp-*
|
2010-11-26 09:10:21 +01:00
|
|
|
# %%patch -p1
|
2011-06-03 15:33:27 +02:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
|
|
|
%patch10 -p1
|
|
|
|
%patch12 -p1
|
|
|
|
%patch13 -p1
|
|
|
|
%patch14 -p1
|
|
|
|
%patch15 -p1
|
|
|
|
%patch16 -p1
|
2010-09-03 16:46:03 +02:00
|
|
|
%if %suse_version < 1020
|
|
|
|
%patch99 -p1
|
2009-06-02 18:42:15 +02:00
|
|
|
%endif
|
2007-04-19 04:26:03 +02:00
|
|
|
|
|
|
|
%build
|
2010-02-19 16:48:02 +01:00
|
|
|
export AUTOMAKE_JOBS=%{?jobs:%jobs}
|
2009-06-02 18:42:15 +02:00
|
|
|
%if %suse_version < 1020
|
|
|
|
gettextize -f
|
|
|
|
%endif
|
2007-04-19 04:26:03 +02:00
|
|
|
autoreconf -fi
|
2010-11-26 09:10:21 +01:00
|
|
|
opts=""
|
2010-11-26 09:21:50 +01:00
|
|
|
%if %use_systemd
|
|
|
|
opts="$opts --with-systemdsystemunitdir=/lib/systemd/system"
|
|
|
|
%endif
|
2010-11-30 08:53:23 +01:00
|
|
|
%if ! %use_varlib
|
2010-11-26 09:10:21 +01:00
|
|
|
opts="$opts --with-asound-state-dir=/etc"
|
|
|
|
%endif
|
2009-06-02 18:42:15 +02:00
|
|
|
%if %suse_version < 1030
|
2010-11-26 09:10:21 +01:00
|
|
|
opts="$opts --disable-xmlto"
|
2009-06-02 18:42:15 +02:00
|
|
|
%endif
|
2010-11-26 09:10:21 +01:00
|
|
|
%configure --with-curses=ncursesw $opts
|
2007-04-19 04:26:03 +02:00
|
|
|
make %{?jobs:-j %jobs}
|
|
|
|
|
|
|
|
%install
|
2009-01-22 16:45:41 +01:00
|
|
|
%makeinstall
|
2007-05-25 00:39:40 +02:00
|
|
|
%find_lang %{name} --all-name
|
2010-11-26 12:56:49 +01:00
|
|
|
%if %use_systemd
|
|
|
|
ln -s alsa-restore.service $RPM_BUILD_ROOT/lib/systemd/system/alsasound.service
|
|
|
|
%endif
|
2010-11-30 08:53:23 +01:00
|
|
|
%if %use_varlib
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/alsa
|
|
|
|
%endif
|
2007-04-19 04:26:03 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2007-05-25 00:39:40 +02:00
|
|
|
%files -f %{name}.lang
|
2007-04-19 04:26:03 +02:00
|
|
|
%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
|
2010-11-26 09:21:50 +01:00
|
|
|
/lib/udev
|
2010-11-26 09:10:21 +01:00
|
|
|
%if %use_systemd
|
2010-11-26 09:21:50 +01:00
|
|
|
/lib/systemd
|
2010-11-26 09:10:21 +01:00
|
|
|
%endif
|
2010-11-30 08:53:23 +01:00
|
|
|
%if %use_varlib
|
|
|
|
/var/lib/alsa
|
|
|
|
%endif
|
2007-12-05 23:34:26 +01:00
|
|
|
|
2007-04-19 04:26:03 +02:00
|
|
|
%changelog
|