2007-04-19 02:26:03 +00:00
|
|
|
#
|
2011-06-03 13:33:27 +00:00
|
|
|
# spec file for package alsa-utils
|
2007-04-19 02:26:03 +00:00
|
|
|
#
|
2015-02-02 10:43:14 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-04-19 02:26:03 +00:00
|
|
|
#
|
2008-08-06 23:09:36 +00: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 02:26:03 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2011-12-22 19:29:06 +00:00
|
|
|
|
2012-05-29 09:34:36 +00:00
|
|
|
|
2015-02-27 14:38:08 +00:00
|
|
|
%define package_version 1.0.29
|
2011-12-02 07:27:44 +00:00
|
|
|
#
|
2014-03-11 11:08:44 +00:00
|
|
|
%if 0%{?suse_version} > 1130
|
2010-11-26 08:10:21 +00:00
|
|
|
%define use_systemd 1
|
2010-11-30 07:53:23 +00:00
|
|
|
%define use_varlib 1
|
2014-03-11 11:08:44 +00:00
|
|
|
%if 0%{?suse_version} == 1140
|
2012-11-12 22:45:04 +00:00
|
|
|
%define _unitdir /lib/systemd/system
|
|
|
|
%endif
|
2014-03-11 11:08:44 +00:00
|
|
|
BuildRequires: systemd
|
2010-11-26 08:10:21 +00:00
|
|
|
%else
|
|
|
|
%define use_systemd 0
|
2010-11-30 07:53:23 +00:00
|
|
|
%define use_varlib 0
|
2010-11-26 08:10:21 +00:00
|
|
|
%endif
|
2014-03-11 11:08:44 +00:00
|
|
|
%if 0%{?suse_version} > 1200
|
2013-05-27 13:40:57 +00:00
|
|
|
%define _udevdir %(pkg-config --variable=udevdir udev)
|
|
|
|
%else
|
|
|
|
%define _udevdir /lib/udev
|
|
|
|
%endif
|
2007-04-19 02:26:03 +00:00
|
|
|
Name: alsa-utils
|
2015-02-27 14:38:08 +00:00
|
|
|
Version: 1.0.29
|
2014-03-11 11:08:44 +00:00
|
|
|
Release: 0
|
2007-04-19 02:26:03 +00:00
|
|
|
Summary: Advanced Linux Sound Architecture Utilities
|
2012-01-25 15:53:38 +00:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: Productivity/Multimedia/Sound/Players
|
2014-03-11 11:08:44 +00:00
|
|
|
Url: http://www.alsa-project.org/
|
2011-09-18 11:06:22 +00:00
|
|
|
Source: ftp://ftp.alsa-project.org/pub/utils/alsa-utils-%{package_version}.tar.bz2
|
2012-06-19 10:54:24 +00:00
|
|
|
Source1: 01beep.conf
|
2010-09-02 14:08:00 +00:00
|
|
|
# Patch: alsa-utils-git-fixes.diff
|
2013-04-15 13:03:06 +00:00
|
|
|
# upstream fix patches
|
2015-04-27 20:32:36 +00:00
|
|
|
Patch1: 0001-amixer-Don-t-set-only-the-first-item-in-sset_enum.patch
|
|
|
|
Patch2: 0002-amixer-expand-local-storage-for-item-name-according-.patch
|
|
|
|
Patch3: 0003-alsa-info-Don-t-try-update-when-wget-isn-t-available.patch
|
2013-04-15 13:03:06 +00:00
|
|
|
#
|
2010-09-03 14:46:03 +00:00
|
|
|
Patch99: alsa-utils-gettext-version-removal.diff
|
2014-03-11 11:08:44 +00:00
|
|
|
BuildRequires: alsa-devel
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libsamplerate-devel
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: xmlto
|
|
|
|
Requires: alsa
|
|
|
|
Requires: dialog
|
|
|
|
Requires: pciutils
|
|
|
|
Provides: alsa-conf
|
2007-04-19 02:26:03 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-03-11 11:08:44 +00:00
|
|
|
%if 0%{?suse_version} > 1200
|
|
|
|
BuildRequires: libudev-devel
|
|
|
|
%endif
|
2007-04-19 02:26:03 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains utility programs supporting ALSA, Advanced Linux
|
|
|
|
Sound Architecture.
|
|
|
|
|
|
|
|
%prep
|
2007-06-04 22:44:59 +00:00
|
|
|
%setup -q -n %{name}-%{package_version}
|
2009-02-16 15:03:39 +00:00
|
|
|
# fix stupid automake's automatic action
|
2009-06-02 16:42:15 +00:00
|
|
|
sed -i -e's/EXTRA_DIST= config.rpath /EXTRA_DIST=/' Makefile.am
|
2009-09-01 20:37:25 +00:00
|
|
|
# rm -f po/Makefile* po/*.gmo po/*.pot po/*.header po/stamp-*
|
2011-09-20 07:58:26 +00:00
|
|
|
# patch -p1
|
2015-04-27 20:32:36 +00:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
2013-04-15 13:03:06 +00:00
|
|
|
#
|
2014-03-11 11:08:44 +00:00
|
|
|
%if 0%{?suse_version} < 1020
|
2010-09-03 14:46:03 +00:00
|
|
|
%patch99 -p1
|
2009-06-02 16:42:15 +00:00
|
|
|
%endif
|
2007-04-19 02:26:03 +00:00
|
|
|
|
|
|
|
%build
|
2011-09-18 11:06:22 +00:00
|
|
|
export AUTOMAKE_JOBS="%{?_smp_mflags}"
|
2014-03-11 11:08:44 +00:00
|
|
|
%if 0%{?suse_version} < 1020
|
2015-02-27 14:38:08 +00:00
|
|
|
# gettextize -f
|
2009-06-02 16:42:15 +00:00
|
|
|
%endif
|
2015-02-27 14:38:08 +00:00
|
|
|
# autoreconf -fi
|
2010-11-26 08:10:21 +00:00
|
|
|
opts=""
|
2014-03-11 11:08:44 +00:00
|
|
|
%if %{use_systemd}
|
2012-11-03 18:49:47 +00:00
|
|
|
opts="$opts --with-systemdsystemunitdir=%{_unitdir}"
|
2010-11-26 08:21:50 +00:00
|
|
|
%endif
|
2014-03-11 11:08:44 +00:00
|
|
|
%if ! %{use_varlib}
|
2010-11-26 08:10:21 +00:00
|
|
|
opts="$opts --with-asound-state-dir=/etc"
|
|
|
|
%endif
|
2014-03-11 11:08:44 +00:00
|
|
|
%if 0%{?suse_version} < 1030
|
2010-11-26 08:10:21 +00:00
|
|
|
opts="$opts --disable-xmlto"
|
2009-06-02 16:42:15 +00:00
|
|
|
%endif
|
2013-05-27 13:40:57 +00:00
|
|
|
opts="$opts --with-udev-rules-dir=%{_udevdir}/rules.d"
|
2010-11-26 08:10:21 +00:00
|
|
|
%configure --with-curses=ncursesw $opts
|
2011-09-18 11:06:22 +00:00
|
|
|
make %{?_smp_mflags}
|
2007-04-19 02:26:03 +00:00
|
|
|
|
|
|
|
%install
|
2014-03-11 11:08:44 +00:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/alsa/init/preinit
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/alsa/init/postinit
|
2012-06-19 10:54:24 +00:00
|
|
|
for i in %{_sourcedir}/[0-9]*.conf; do
|
2014-03-11 11:08:44 +00:00
|
|
|
install -c -m 0644 $i %{buildroot}%{_datadir}/alsa/init/postinit
|
2012-06-19 10:54:24 +00:00
|
|
|
done
|
2007-05-24 22:39:40 +00:00
|
|
|
%find_lang %{name} --all-name
|
2014-03-11 11:08:44 +00:00
|
|
|
%if %{use_systemd}
|
2012-11-03 18:49:47 +00:00
|
|
|
ln -s alsa-restore.service %{buildroot}%{_unitdir}/alsasound.service
|
2010-11-26 11:56:49 +00:00
|
|
|
%endif
|
2014-03-11 11:08:44 +00:00
|
|
|
%if %{use_varlib}
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/alsa
|
2010-11-30 07:53:23 +00:00
|
|
|
%endif
|
2007-04-19 02:26:03 +00:00
|
|
|
|
2007-05-24 22:39:40 +00:00
|
|
|
%files -f %{name}.lang
|
2007-04-19 02:26:03 +00: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 13:40:57 +00:00
|
|
|
%{_udevdir}
|
2014-03-11 11:08:44 +00:00
|
|
|
%if %{use_systemd}
|
2012-11-03 18:49:47 +00:00
|
|
|
%{_unitdir}/*.service
|
2013-04-12 14:24:10 +00:00
|
|
|
%{_unitdir}/basic.target.wants/alsa-state.service
|
2012-11-03 18:49:47 +00:00
|
|
|
%{_unitdir}/basic.target.wants/alsa-restore.service
|
|
|
|
%{_unitdir}/shutdown.target.wants/alsa-store.service
|
2010-11-26 08:10:21 +00:00
|
|
|
%endif
|
2014-03-11 11:08:44 +00:00
|
|
|
%if %{use_varlib}
|
|
|
|
%{_localstatedir}/lib/alsa
|
2010-11-30 07:53:23 +00:00
|
|
|
%endif
|
2007-12-05 22:34:26 +00:00
|
|
|
|
2007-04-19 02:26:03 +00:00
|
|
|
%changelog
|