Takashi Iwai
18baa7342b
skipping old sysv script OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa-utils?expand=0&rev=25
191 lines
6.1 KiB
RPMSpec
191 lines
6.1 KiB
RPMSpec
#
|
|
# spec file for package alsa-utils (Version 1.0.23)
|
|
#
|
|
# Copyright (c) 2010 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/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
%if %suse_version > 1130
|
|
%define use_systemd 1
|
|
%else
|
|
%define use_systemd 0
|
|
%endif
|
|
|
|
Name: alsa-utils
|
|
BuildRequires: alsa-devel ncurses-devel xmlto pkgconfig
|
|
%define package_version 1.0.23
|
|
License: GPLv2+
|
|
Group: Productivity/Multimedia/Sound/Players
|
|
Provides: alsa-conf
|
|
Requires: dialog pciutils
|
|
AutoReqProv: on
|
|
Summary: Advanced Linux Sound Architecture Utilities
|
|
Version: 1.0.23
|
|
Release: 4
|
|
Source: ftp://ftp.alsa-project.org/pub/util/alsa-utils-%{package_version}.tar.bz2
|
|
# Patch: alsa-utils-git-fixes.diff
|
|
Patch1: 0001-alsactl-use-snd_config_imake-functions.patch
|
|
Patch2: 0002-alsactl-move-alloca-out-of-loop.patch
|
|
Patch3: 0003-alsactl-remove-open-coded-search.patch
|
|
Patch4: 0004-alsactl-correctly-restore-dB-values-of-controls-with.patch
|
|
Patch5: 0005-alsactl-change-format-of-comment-node-in-state-file.patch
|
|
Patch6: 0006-Revert-wrong-parts-of-alsactl-use-snd_config_imake-f.patch
|
|
Patch7: 0007-aplay-arecord-Added-hardware-pause-support-press-SPA.patch
|
|
Patch8: 0008-aplay-fix-termio-settings-return-back-old-c_flag-val.patch
|
|
Patch9: 0009-speaker-test-add-test-pattern-for-PCM-layer-debuggin.patch
|
|
Patch10: 0010-aplay-arecord-term_c_lflag-variable-might-be-unitial.patch
|
|
Patch11: 0011-alsactl-init-Use-Found-hardware-instead-Unknown-hard.patch
|
|
Patch12: 0012-alsactl-init-use-generic-method-instead-guess-method.patch
|
|
Patch13: 0013-alsactl-Change-handling-of-inactive-controls.patch
|
|
Patch14: 0014-alsactl-init-Handle-Capture-Source-and-Mic-Boost-in-.patch
|
|
Patch15: 0015-alsactl-init-Initialize-also-Master-Front-Playback-V.patch
|
|
Patch16: 0016-amixer-fix-parsing-of-control-ID-name.patch
|
|
Patch17: 0017-Introduce-alsaloop-utility.patch
|
|
Patch18: 0018-alsaloop-Fix-loopbacks-pointer-initialization-and-al.patch
|
|
Patch19: 0019-alsaloop-Fix-thread-handling.patch
|
|
Patch20: 0020-alsaloop-fix-a-option-and-slave-mode-processing.patch
|
|
Patch21: 0021-alsaloop-fix-resample-argument-parsing.patch
|
|
Patch22: 0022-alsaloop-added-resampling-for-unsupported-soundcard-.patch
|
|
Patch23: 0023-alsaloop-Add-OSS-mixer-redirection-support.patch
|
|
Patch24: 0024-alsaloop-Fix-command-line-parsing-and-pollfd-initial.patch
|
|
Patch25: 0025-alsaloop-Fixes-and-added-workaround-option.patch
|
|
Patch26: 0026-alsaloop-add-pctl-and-cctl-options.patch
|
|
Patch27: 0027-alsaloop-add-pctl-and-cctl-options-to-man-page.patch
|
|
Patch28: 0028-alsaloop-added-xrun-profiling-support-U-xrun-added-S.patch
|
|
Patch29: 0029-alsaloop-add-U-xrun-to-alsaloop.1-man-page.patch
|
|
Patch30: 0030-alsaloop-fixes-added-W-wake-option.patch
|
|
Patch31: 0031-alsaloop-Fix-latency-print.patch
|
|
Patch32: 0032-speaker-test-Don-t-retry-after-fatal-errors.patch
|
|
Patch33: 0033-alsaloop-Delay-the-restart-a-bit-to-handle-snd-aloop.patch
|
|
Patch34: 0034-alsaloop-rework-the-ctl-event-handling-routine.patch
|
|
Patch35: 0035-alsamixer-remove-obsolete-e-mail.patch
|
|
Patch36: 0036-update-German-translations.patch
|
|
Patch37: 0037-alsactl-systemd-and-udev-hookup.patch
|
|
Patch38: 0038-alsactl-Move-asound.state-location-to-var-lib-alsa.patch
|
|
Patch39: 0039-configure.in-Fix-variable-name.patch
|
|
Patch99: alsa-utils-gettext-version-removal.diff
|
|
Patch100: alsa-utils-po-pre-patch.diff
|
|
Url: http://www.alsa-project.org/
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
This package contains utility programs supporting ALSA, Advanced Linux
|
|
Sound Architecture.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Jaroslav Kysela <perex@perex.cz>
|
|
Takashi Iwai <tiwai@suse.de>
|
|
|
|
%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
|
|
# fix po changes in tarball first
|
|
%patch100 -p1
|
|
# rm -f po/Makefile* po/*.gmo po/*.pot po/*.header po/stamp-*
|
|
# %%patch -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
%patch3 -p1
|
|
%patch4 -p1
|
|
%patch5 -p1
|
|
%patch6 -p1
|
|
%patch7 -p1
|
|
%patch8 -p1
|
|
%patch9 -p1
|
|
%patch10 -p1
|
|
%patch11 -p1
|
|
%patch12 -p1
|
|
%patch13 -p1
|
|
%patch14 -p1
|
|
%patch15 -p1
|
|
%patch16 -p1
|
|
%patch17 -p1
|
|
%patch18 -p1
|
|
%patch19 -p1
|
|
%patch20 -p1
|
|
%patch21 -p1
|
|
%patch22 -p1
|
|
%patch23 -p1
|
|
%patch24 -p1
|
|
%patch25 -p1
|
|
%patch26 -p1
|
|
%patch27 -p1
|
|
%patch28 -p1
|
|
%patch29 -p1
|
|
%patch30 -p1
|
|
%patch31 -p1
|
|
%patch32 -p1
|
|
%patch33 -p1
|
|
%patch34 -p1
|
|
%patch35 -p1
|
|
%patch36 -p1
|
|
%patch37 -p1
|
|
%patch38 -p1
|
|
%patch39 -p1
|
|
%if %suse_version < 1020
|
|
%patch99 -p1
|
|
%endif
|
|
|
|
%build
|
|
export AUTOMAKE_JOBS=%{?jobs:%jobs}
|
|
%if %suse_version < 1020
|
|
gettextize -f
|
|
%endif
|
|
autoreconf -fi
|
|
opts=""
|
|
%if %use_systemd
|
|
opts="$opts --with-systemdsystemunitdir=/lib/systemd/system"
|
|
%endif
|
|
%if %suse_version < 1140
|
|
opts="$opts --with-asound-state-dir=/etc"
|
|
%endif
|
|
%if %suse_version < 1030
|
|
opts="$opts --disable-xmlto"
|
|
%endif
|
|
%configure --with-curses=ncursesw $opts
|
|
make %{?jobs:-j %jobs}
|
|
|
|
%install
|
|
%makeinstall
|
|
%find_lang %{name} --all-name
|
|
%if %use_systemd
|
|
ln -s alsa-restore.service $RPM_BUILD_ROOT/lib/systemd/system/alsasound.service
|
|
%endif
|
|
|
|
%clean
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
%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
|
|
|
|
%changelog
|