# # spec file for package alsa-utils (Version 1.0.21) # # Copyright (c) 2009 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 Name: alsa-utils BuildRequires: alsa-devel ncurses-devel xmlto %define package_version 1.0.21 License: GPL v2 or later Group: Productivity/Multimedia/Sound/Players Provides: alsa-conf Requires: dialog pciutils AutoReqProv: on Summary: Advanced Linux Sound Architecture Utilities Version: 1.0.21 Release: 1 Source: ftp://ftp.alsa-project.org/pub/util/alsa-utils-%{package_version}.tar.bz2 # Patch: alsa-utils-git-fixes.diff Patch1: alsa-utils-gettext-version-removal.diff # Patch2: 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 Takashi Iwai %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 # %patch2 -p1 # rm -f po/Makefile* po/*.gmo po/*.pot po/*.header po/stamp-* # %patch -p1 %if %suse_version < 1020 %patch1 -p1 %endif %build %if %suse_version < 1020 gettextize -f %endif autoreconf -fi %if %suse_version < 1030 %define moreopts --disable-xmlto %else %define moreopts %endif %configure --with-curses=ncursesw %moreopts make %{?jobs:-j %jobs} %install %makeinstall %find_lang %{name} --all-name %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 %changelog