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
|
|
|
#
|
2014-01-31 12:56:56 +01:00
|
|
|
# Copyright (c) 2014 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/
|
|
|
|
#
|
2011-12-22 20:29:06 +01:00
|
|
|
|
2012-05-29 11:34:36 +02:00
|
|
|
|
2011-12-02 08:27:44 +01:00
|
|
|
#
|
2010-11-26 09:10:21 +01:00
|
|
|
%if %suse_version > 1130
|
|
|
|
%define use_systemd 1
|
2012-11-03 19:49:47 +01:00
|
|
|
BuildRequires: systemd
|
2010-11-30 08:53:23 +01:00
|
|
|
%define use_varlib 1
|
2012-11-12 23:45:04 +01:00
|
|
|
%if %suse_version == 1140
|
|
|
|
%define _unitdir /lib/systemd/system
|
|
|
|
%endif
|
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
|
2013-05-27 15:40:57 +02:00
|
|
|
%if %suse_version > 1200
|
|
|
|
%define _udevdir %(pkg-config --variable=udevdir udev)
|
|
|
|
%else
|
|
|
|
%define _udevdir /lib/udev
|
|
|
|
%endif
|
2008-02-15 01:11:07 +01:00
|
|
|
|
2007-04-19 04:26:03 +02:00
|
|
|
Name: alsa-utils
|
2011-12-02 08:27:44 +01:00
|
|
|
BuildRequires: alsa-devel
|
|
|
|
BuildRequires: automake
|
2012-12-01 11:19:46 +01:00
|
|
|
BuildRequires: libsamplerate-devel
|
2013-05-27 15:40:57 +02:00
|
|
|
%if %suse_version > 1200
|
|
|
|
BuildRequires: libudev-devel
|
|
|
|
%endif
|
2011-12-02 08:27:44 +01:00
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: xmlto
|
2013-07-19 15:19:06 +02:00
|
|
|
%define package_version 1.0.27.2
|
2007-04-19 04:26:03 +02:00
|
|
|
Provides: alsa-conf
|
2012-05-29 11:34:36 +02:00
|
|
|
Requires: alsa
|
|
|
|
Requires: dialog
|
|
|
|
Requires: pciutils
|
2007-04-19 04:26:03 +02:00
|
|
|
Summary: Advanced Linux Sound Architecture Utilities
|
2012-01-25 16:53:38 +01:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: Productivity/Multimedia/Sound/Players
|
2013-07-19 15:19:06 +02:00
|
|
|
Version: 1.0.27.2
|
2011-12-02 08:27:44 +01:00
|
|
|
Release: 0
|
2011-09-18 13:06:22 +02:00
|
|
|
Source: ftp://ftp.alsa-project.org/pub/utils/alsa-utils-%{package_version}.tar.bz2
|
2012-06-19 12:54:24 +02:00
|
|
|
Source1: 01beep.conf
|
2010-09-02 16:08:00 +02:00
|
|
|
# Patch: alsa-utils-git-fixes.diff
|
2013-04-15 15:03:06 +02:00
|
|
|
# upstream fix patches
|
2013-07-19 15:19:06 +02:00
|
|
|
Patch1: 0001-alsactl-alsa-state.service-fix-typo-rkill-kill.patch
|
2013-09-07 15:57:20 +02:00
|
|
|
Patch2: 0002-alsaloop-fix-wrong-alias-for-signal.h.patch
|
2013-09-09 19:03:13 +02:00
|
|
|
Patch3: 0003-aplay-fix-two-off-by-one-errors.patch
|
2013-10-02 23:43:29 +02:00
|
|
|
Patch4: 0004-alsaloop-add-z-syslog-option-to-use-syslog-for-error.patch
|
|
|
|
Patch5: 0005-amixer-actually-print-all-TLVs-in-a-container-TLV.patch
|
2013-11-27 14:18:04 +01:00
|
|
|
Patch6: 0006-amixer-fix-indentation-when-printing-container-TLV-c.patch
|
|
|
|
Patch7: 0007-alsaloop-pcmjob.c-use-portable-way-to-initialize-rec.patch
|
|
|
|
Patch8: 0008-speaker-test-Fix-chmapped-channel-selection-without-.patch
|
|
|
|
Patch9: 0009-speaker-test-Always-show-chmap-channel-names-if-avai.patch
|
|
|
|
Patch10: 0010-speaker-test-Show-out-of-chmap-channels-as-Unknown.patch
|
|
|
|
Patch11: 0011-alsaconf-support-newer-m-i-t-and-kmod.patch
|
|
|
|
Patch12: 0012-alsaconf-update-gentoo-to-use-modprobe.d-method-as-e.patch
|
|
|
|
Patch13: 0013-configure-detect-udevdir-via-pkg-config-fallback-to-.patch
|
|
|
|
Patch14: 0014-alsactl-Add-monitor-command.patch
|
|
|
|
Patch15: 0015-alsactl-Fix-REMOVE-event-handling-in-monitor-command.patch
|
|
|
|
Patch16: 0016-alsactl-monitor-all-cards-as-default.patch
|
2014-01-31 12:56:56 +01:00
|
|
|
Patch17: 0017-alsactl-Fix-the-va_list-initialization-in-cerror_-an.patch
|
|
|
|
Patch18: 0018-aplay-fix-pcm_read-return-value.patch
|
|
|
|
Patch19: 0019-alsa-restore.rules-refer-to-correct-attr.patch
|
|
|
|
Patch20: 0020-aplay-fix-timespec-to-msec-conversion.patch
|
2013-04-15 15:03:06 +02:00
|
|
|
#
|
2010-09-03 16:46:03 +02:00
|
|
|
Patch99: alsa-utils-gettext-version-removal.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.
|
|
|
|
|
|
|
|
%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
|
2009-09-01 22:37:25 +02:00
|
|
|
# rm -f po/Makefile* po/*.gmo po/*.pot po/*.header po/stamp-*
|
2011-09-20 09:58:26 +02:00
|
|
|
# patch -p1
|
2013-04-15 15:03:06 +02:00
|
|
|
%patch1 -p1
|
2013-09-07 15:57:20 +02:00
|
|
|
%patch2 -p1
|
2013-09-09 19:03:13 +02:00
|
|
|
%patch3 -p1
|
2013-10-02 23:43:29 +02:00
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
2013-11-27 14:18:04 +01:00
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
|
|
|
%patch10 -p1
|
|
|
|
%patch11 -p1
|
|
|
|
%patch12 -p1
|
|
|
|
%patch13 -p1
|
|
|
|
%patch14 -p1
|
|
|
|
%patch15 -p1
|
|
|
|
%patch16 -p1
|
2014-01-31 12:56:56 +01:00
|
|
|
%patch17 -p1
|
|
|
|
%patch18 -p1
|
|
|
|
%patch19 -p1
|
|
|
|
%patch20 -p1
|
2013-04-15 15:03:06 +02:00
|
|
|
#
|
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
|
2011-09-18 13:06:22 +02:00
|
|
|
export AUTOMAKE_JOBS="%{?_smp_mflags}"
|
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
|
2012-11-03 19:49:47 +01:00
|
|
|
opts="$opts --with-systemdsystemunitdir=%{_unitdir}"
|
2010-11-26 09:21:50 +01:00
|
|
|
%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
|
2013-05-27 15:40:57 +02:00
|
|
|
opts="$opts --with-udev-rules-dir=%{_udevdir}/rules.d"
|
2010-11-26 09:10:21 +01:00
|
|
|
%configure --with-curses=ncursesw $opts
|
2011-09-18 13:06:22 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-04-19 04:26:03 +02:00
|
|
|
|
|
|
|
%install
|
2009-01-22 16:45:41 +01:00
|
|
|
%makeinstall
|
2012-06-20 18:22:52 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/alsa/init/preinit
|
2012-06-20 18:21:15 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/alsa/init/postinit
|
2012-06-19 12:54:24 +02:00
|
|
|
for i in %{_sourcedir}/[0-9]*.conf; do
|
|
|
|
install -c -m 0644 $i $RPM_BUILD_ROOT%{_datadir}/alsa/init/postinit
|
|
|
|
done
|
2007-05-25 00:39:40 +02:00
|
|
|
%find_lang %{name} --all-name
|
2010-11-26 12:56:49 +01:00
|
|
|
%if %use_systemd
|
2012-11-03 19:49:47 +01:00
|
|
|
ln -s alsa-restore.service %{buildroot}%{_unitdir}/alsasound.service
|
2010-11-26 12:56:49 +01:00
|
|
|
%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
|
|
|
|
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
|
2013-05-27 15:40:57 +02:00
|
|
|
%{_udevdir}
|
2010-11-26 09:10:21 +01:00
|
|
|
%if %use_systemd
|
2012-11-03 19:49:47 +01:00
|
|
|
%{_unitdir}/*.service
|
2013-04-12 16:24:10 +02:00
|
|
|
%{_unitdir}/basic.target.wants/alsa-state.service
|
2012-11-03 19:49:47 +01:00
|
|
|
%{_unitdir}/basic.target.wants/alsa-restore.service
|
|
|
|
%{_unitdir}/shutdown.target.wants/alsa-store.service
|
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
|