2020-04-30 10:51:53 +08:00
|
|
|
Name: alsa-utils
|
|
|
|
|
Version: 1.2.2
|
|
|
|
|
Release: 2
|
|
|
|
|
Summary: Advanced linux sound architecture (ALSA) utility to the Linux operating system.
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
URL: http://www.alsa-project.org/
|
|
|
|
|
Source: ftp://ftp.alsa-project.org/pub/utils/alsa-utils-%{version}.tar.bz2
|
|
|
|
|
Source1: alsaunmute
|
|
|
|
|
Source2: alsaunmute.1
|
|
|
|
|
Source3: alsa.rules
|
|
|
|
|
Source4: alsactl.conf
|
|
|
|
|
Source5: alsa-restore.service
|
|
|
|
|
Source6: alsa-state.service
|
|
|
|
|
BuildRequires: gcc alsa-lib-devel >= %{version} libsamplerate-devel ncurses-devel
|
|
|
|
|
BuildRequires: gettext-devel xmlto python3-docutils systemd
|
|
|
|
|
Requires: systemd alsa-lib >= %{version} alsa-ucm >= %{version} alsa-topology >= %{version}
|
|
|
|
|
Provides: alsa-ucm-utils = %{version}-%{release}
|
|
|
|
|
Obsoletes: alsa-ucm-utils < %{version}-%{release}
|
|
|
|
|
Provides: alsa-topology-utils = %{version}-%{release}
|
|
|
|
|
Obsoletes: alsa-topology-utils < %{version}-%{release}
|
2020-02-14 11:02:48 +08:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This package provides command line utilities for audio and MIDI functionality
|
2020-04-30 10:51:53 +08:00
|
|
|
to the Linux operating system. In addition, it also contains Use Case Manager tools
|
|
|
|
|
and topology tools for Advanced Linux Sound Architecture (ALSA) framework.
|
2020-02-14 11:02:48 +08:00
|
|
|
|
|
|
|
|
%package devel
|
2020-04-30 10:51:53 +08:00
|
|
|
Summary: ALSA - Basic Audio Tester
|
|
|
|
|
BuildRequires: fftw-devel
|
|
|
|
|
Provides: %{name}-alsabat = %{version}-%{release}
|
|
|
|
|
Obsoletes: %{name}-alsabat < %{version}-%{release}
|
2020-02-14 11:02:48 +08:00
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This package contains tool for basic audio testing using ALSA framework
|
|
|
|
|
and Fast Fourier Transform library.
|
|
|
|
|
|
|
|
|
|
%package help
|
2020-04-30 10:51:53 +08:00
|
|
|
Summary: ALSA help
|
2020-02-14 11:02:48 +08:00
|
|
|
|
|
|
|
|
%description help
|
2020-04-30 10:51:53 +08:00
|
|
|
This package contains help docs for alsa-utils.
|
2020-02-14 11:02:48 +08:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure CFLAGS="$RPM_OPT_FLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" --disable-alsaconf \
|
|
|
|
|
--with-udev-rules-dir=%{_prefix}/lib/udev/rules.d --with-systemdsystemunitdir=%{_unitdir}
|
|
|
|
|
%make_build
|
2020-04-30 10:51:53 +08:00
|
|
|
|
2020-02-14 11:02:48 +08:00
|
|
|
cp %{SOURCE1} .
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
install -d %{buildroot}/%{_prefix}/lib/udev/rules.d
|
2020-04-30 10:51:53 +08:00
|
|
|
install -p -m 644 %{SOURCE3} %{buildroot}/%{_prefix}/lib/udev/rules.d/90-alsa-restore.rules
|
2020-02-14 11:02:48 +08:00
|
|
|
sed -e 's,@bindir@,%{_bindir},g' alsaucm/89-alsa-ucm.rules.in > alsaucm/89-alsa-ucm.rules
|
2020-04-30 10:51:53 +08:00
|
|
|
install -p -m 644 alsaucm/89-alsa-ucm.rules %{buildroot}/%{_prefix}/lib/udev/rules.d/89-alsa-ucm.rules
|
2020-02-14 11:02:48 +08:00
|
|
|
install -d %{buildroot}/%{_unitdir}
|
2020-04-30 10:51:53 +08:00
|
|
|
install -p -m 644 %{SOURCE5} %{buildroot}/%{_unitdir}/alsa-restore.service
|
|
|
|
|
install -p -m 644 %{SOURCE6} %{buildroot}/%{_unitdir}/alsa-state.service
|
|
|
|
|
install -d -m755 %{buildroot}/%{_bindir}
|
2020-02-14 11:02:48 +08:00
|
|
|
install -p -m 755 %{SOURCE1} %{buildroot}/%{_bindir}
|
2020-04-30 10:51:53 +08:00
|
|
|
install -d -m755 %{buildroot}/%{_mandir}/man1
|
|
|
|
|
install -p -m 644 %{SOURCE2} %{buildroot}/%{_mandir}/man1/alsaunmute.1
|
|
|
|
|
install -d -m 755 %{buildroot}%{_prefix}/lib/alsa
|
|
|
|
|
mv %{buildroot}%{_datadir}/alsa/init %{buildroot}%{_prefix}/lib/alsa
|
2020-02-14 11:02:48 +08:00
|
|
|
ln -s ../../lib/alsa/init %{buildroot}%{_datadir}/alsa/init
|
|
|
|
|
install -d -m 755 %{buildroot}/etc/alsa
|
2020-04-30 10:51:53 +08:00
|
|
|
install -p -m 644 %{SOURCE4} %{buildroot}/etc/alsa
|
|
|
|
|
install -d -m 755 %{buildroot}%{_sharedstatedir}/alsa
|
2020-02-14 11:02:48 +08:00
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
if [ ! -r %{_unitdir}/alsa-state.service ]; then
|
|
|
|
|
[ -d /etc/alsa ] || mkdir -m 0755 /etc/alsa
|
|
|
|
|
echo "# Remove this file to disable the alsactl daemon mode" > \
|
2020-04-30 10:51:53 +08:00
|
|
|
/etc/alsa/state-daemon.conf
|
2020-02-14 11:02:48 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%systemd_post alsa-state.service
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%systemd_preun alsa-state.service
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%systemd_postun_with_restart alsa-state.service
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
|
%doc COPYING ChangeLog
|
2020-04-30 10:51:53 +08:00
|
|
|
%config /etc/alsa/*
|
2020-02-14 11:02:48 +08:00
|
|
|
%{_prefix}/lib/udev/rules.d/*
|
2020-04-30 10:51:53 +08:00
|
|
|
%{_prefix}/lib/alsa/init/*
|
|
|
|
|
%{_prefix}/lib/udev/rules.d/*alsa-ucm*
|
2020-02-14 11:02:48 +08:00
|
|
|
%{_unitdir}/*
|
|
|
|
|
%{_unitdir}/sound.target.wants/*
|
|
|
|
|
%{_sbindir}/*
|
|
|
|
|
%{_datadir}/alsa/
|
|
|
|
|
%{_datadir}/sounds/*
|
2020-04-30 10:51:53 +08:00
|
|
|
%dir /etc/alsa/
|
2020-02-14 11:02:48 +08:00
|
|
|
%dir %{_prefix}/lib/alsa/
|
|
|
|
|
%dir %{_prefix}/lib/alsa/init/
|
|
|
|
|
%dir %{_sharedstatedir}/alsa/
|
2020-04-30 10:51:53 +08:00
|
|
|
%{_bindir}/*
|
|
|
|
|
%exclude %{_bindir}/alsabat
|
|
|
|
|
%exclude %{_sbindir}/alsabat-test.sh
|
|
|
|
|
%exclude %{_prefix}/lib/udev/rules.d/*alsa-ucm*
|
|
|
|
|
|
2020-02-14 11:02:48 +08:00
|
|
|
%files devel
|
|
|
|
|
%{_bindir}/alsabat
|
2020-04-30 10:51:53 +08:00
|
|
|
%{_sbindir}/alsabat-test.sh
|
2020-02-14 11:02:48 +08:00
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%{_mandir}/*/*
|
2020-04-30 10:51:53 +08:00
|
|
|
%doc README.md TODO
|
2020-02-14 11:02:48 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2020-04-30 10:51:53 +08:00
|
|
|
* Tue Apr 28 2020 Guoshuai Sun <sunguoshuai@huawei.com> - 1.2.2-2
|
|
|
|
|
- package init
|
|
|
|
|
|
2020-02-14 11:02:48 +08:00
|
|
|
* Fri Feb 14 2020 gulining<gulining1@huawei.com> - 1.1.6-8
|
|
|
|
|
- Package init
|