Compare commits

...

No commits in common. "c9" and "c8" have entirely different histories.
c9 ... c8

6 changed files with 60 additions and 1915 deletions

View File

@ -1 +1 @@
ac85272e043435f20ac1f4d389e44482cd2e2fb3 SOURCES/alsa-utils-1.2.10.tar.bz2 d6cf080d84c96ab0904fe7f74edadac7d77d47c3 SOURCES/alsa-utils-1.2.8.tar.bz2

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/alsa-utils-1.2.10.tar.bz2 SOURCES/alsa-utils-1.2.8.tar.bz2

0
SOURCES/alsa-git.patch Normal file
View File

View File

@ -12,3 +12,4 @@ Type=oneshot
RemainAfterExit=true RemainAfterExit=true
ExecStart=-/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main restore ExecStart=-/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main restore
ExecStop=/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf store ExecStop=/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf store
StandardOutput=syslog

File diff suppressed because it is too large Load Diff

View File

@ -1,28 +1,33 @@
%define baseversion 1.2.10 %define baseversion 1.2.8
#define fixversion .2 #define fixversion .2
%global _hardened_build 1 %global _hardened_build 1
%if 0%{?rhel}
%global _without_ucm 1
%global _without_topology 1
%endif
Summary: Advanced Linux Sound Architecture (ALSA) utilities Summary: Advanced Linux Sound Architecture (ALSA) utilities
Name: alsa-utils Name: alsa-utils
Version: %{baseversion}%{?fixversion} Version: %{baseversion}%{?fixversion}
Release: 1%{?dist} Release: 1%{?dist}
License: GPLv2+ License: GPLv2+
Group: Applications/Multimedia
URL: http://www.alsa-project.org/ URL: http://www.alsa-project.org/
Source: ftp://ftp.alsa-project.org/pub/utils/alsa-utils-%{version}.tar.bz2 Source: ftp://ftp.alsa-project.org/pub/utils/alsa-utils-%{version}.tar.bz2
Patch1: alsa-utils-git.patch
Source4: alsaunmute Source4: alsaunmute
Source5: alsaunmute.1 Source5: alsaunmute.1
Source10: alsa.rules Source10: alsa.rules
Source11: alsactl.conf Source11: alsactl.conf
Source20: alsa-restore.service Source20: alsa-restore.service
Source22: alsa-state.service Source22: alsa-state.service
Patch1: alsa-git.patch
BuildRequires: gcc BuildRequires: gcc
BuildRequires: alsa-lib-devel >= %{baseversion} BuildRequires: alsa-lib-devel >= %{baseversion}
BuildRequires: libsamplerate-devel BuildRequires: libsamplerate-devel
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
BuildRequires: gettext-devel BuildRequires: gettext-devel
BuildRequires: autoconf automake libtool
BuildRequires: xmlto BuildRequires: xmlto
BuildRequires: python3-docutils BuildRequires: python3-docutils
BuildRequires: systemd BuildRequires: systemd
@ -31,33 +36,41 @@ Requires(preun): systemd
Requires(postun): systemd Requires(postun): systemd
# use latest alsa-lib - the executables in this package requires latest API # use latest alsa-lib - the executables in this package requires latest API
Requires: alsa-lib%{?_isa} >= %{baseversion} Requires: alsa-lib%{?_isa} >= %{baseversion}
%ifnarch s390x
Requires: alsa-ucm >= %{baseversion}
%endif
%description %description
This package contains command line utilities for the Advanced Linux Sound This package contains command line utilities for the Advanced Linux Sound
Architecture (ALSA). Architecture (ALSA).
%if 0%{!?_without_ucm:1}
%package -n alsa-ucm-utils %package -n alsa-ucm-utils
Summary: Advanced Linux Sound Architecture (ALSA) - Use Case Manager Summary: Advanced Linux Sound Architecture (ALSA) - Use Case Manager
Group: Applications/Multimedia
Requires: alsa-ucm >= %{baseversion}
%endif
%if 0%{!?_without_ucm:1}
%description -n alsa-ucm-utils %description -n alsa-ucm-utils
This package contains Use Case Manager tools for Advanced Linux Sound This package contains Use Case Manager tools for Advanced Linux Sound
Architecture (ALSA) framework. Architecture (ALSA) framework.
%endif
%if 0%{!?_without_topology:1}
%package -n alsa-topology-utils %package -n alsa-topology-utils
Summary: Advanced Linux Sound Architecture (ALSA) - Topology Summary: Advanced Linux Sound Architecture (ALSA) - Topology
Group: Applications/Multimedia
Requires: alsa-topology >= %{baseversion} Requires: alsa-topology >= %{baseversion}
%endif
%if 0%{!?_without_topology:1}
%description -n alsa-topology-utils %description -n alsa-topology-utils
This package contains topology tools for Advanced Linux Sound This package contains topology tools for Advanced Linux Sound
Architecture (ALSA) framework. Architecture (ALSA) framework.
%endif
%package alsabat %package alsabat
Summary: Advanced Linux Sound Architecture (ALSA) - Basic Audio Tester Summary: Advanced Linux Sound Architecture (ALSA) - Basic Audio Tester
Group: Applications/Multimedia
BuildRequires: fftw-devel BuildRequires: fftw-devel
BuildRequires: make
%description alsabat %description alsabat
This package contains tool for basic audio testing using Advanced Linux Sound This package contains tool for basic audio testing using Advanced Linux Sound
@ -68,7 +81,6 @@ Architecture (ALSA) framework and Fast Fourier Transform library.
%patch1 -p1 -b .alsa-git %patch1 -p1 -b .alsa-git
%build %build
autoreconf -vif
%configure CFLAGS="$RPM_OPT_FLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" --disable-alsaconf \ %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-udev-rules-dir=%{_prefix}/lib/udev/rules.d \
--with-systemdsystemunitdir=%{_unitdir} --with-systemdsystemunitdir=%{_unitdir}
@ -76,8 +88,6 @@ make %{?_smp_mflags}
cp %{SOURCE4} . cp %{SOURCE4} .
%install %install
%global alsacfgdir %{_prefix}/lib/alsa
make install DESTDIR=%{buildroot} make install DESTDIR=%{buildroot}
%find_lang %{name} %find_lang %{name}
@ -95,8 +105,8 @@ mkdir -p -m755 %{buildroot}/%{_mandir}/man1
install -p -m 644 %{SOURCE5} %{buildroot}/%{_mandir}/man1/alsaunmute.1 install -p -m 644 %{SOURCE5} %{buildroot}/%{_mandir}/man1/alsaunmute.1
# Move /usr/share/alsa/init to /usr/lib/alsa/init # Move /usr/share/alsa/init to /usr/lib/alsa/init
mkdir -p -m 755 %{buildroot}%{alsacfgdir} mkdir -p -m 755 %{buildroot}/%{_prefix}/lib/alsa
mv %{buildroot}%{_datadir}/alsa/init %{buildroot}%{alsacfgdir} mv %{buildroot}%{_datadir}/alsa/init %{buildroot}/%{_prefix}/lib/alsa
# Link /usr/lib/alsa/init to /usr/share/alsa/init back # Link /usr/lib/alsa/init to /usr/share/alsa/init back
ln -s ../../lib/alsa/init %{buildroot}%{_datadir}/alsa/init ln -s ../../lib/alsa/init %{buildroot}%{_datadir}/alsa/init
@ -106,17 +116,27 @@ mkdir -p -m 755 %{buildroot}/etc/alsa
install -p -m 644 %{SOURCE11} %{buildroot}/etc/alsa install -p -m 644 %{SOURCE11} %{buildroot}/etc/alsa
# Create /var/lib/alsa tree # Create /var/lib/alsa tree
mkdir -p -m 755 %{buildroot}%{_sharedstatedir}/alsa mkdir -p -m 755 %{buildroot}/var/lib/alsa
find %{buildroot} -name "*.la" -exec rm {} \; find %{buildroot} -name "*.la" -exec rm {} \;
%if 0%{?_without_ucm:1}
rm %{buildroot}%{_bindir}/alsaucm
rm %{buildroot}%{_mandir}/man1/alsaucm.1
%endif
%if 0%{?_without_topology:1}
rm %{buildroot}%{_bindir}/alsatplg
rm %{buildroot}%{_mandir}/man1/alsatplg.1
rm %{buildroot}%{_libdir}/alsa-topology/libalsatplg_module_*
%endif
%files -f %{name}.lang %files -f %{name}.lang
%doc COPYING ChangeLog README.md TODO alsamixer/alsamixer.rc.example %doc COPYING ChangeLog README.md TODO alsamixer/alsamixer.rc.example
%config /etc/alsa/* %config /etc/alsa/*
%{_prefix}/lib/udev/rules.d/* %{_prefix}/lib/udev/rules.d/*
%{_unitdir}/* %{_unitdir}/*
%{_unitdir}/sound.target.wants/* %{_unitdir}/sound.target.wants/*
%{alsacfgdir}/init/* %{_prefix}/lib/alsa/init/*
%{_bindir}/aconnect %{_bindir}/aconnect
%{_bindir}/alsaloop %{_bindir}/alsaloop
%{_bindir}/alsamixer %{_bindir}/alsamixer
@ -132,9 +152,7 @@ find %{buildroot} -name "*.la" -exec rm {} \;
%{_bindir}/axfer %{_bindir}/axfer
%{_bindir}/iecset %{_bindir}/iecset
%{_bindir}/speaker-test %{_bindir}/speaker-test
%{_bindir}/nhlt-dmic-info
%{_sbindir}/* %{_sbindir}/*
%exclude %{_sbindir}/alsabat-test.sh
%{_datadir}/alsa/ %{_datadir}/alsa/
%{_datadir}/sounds/* %{_datadir}/sounds/*
%{_mandir}/man7/* %{_mandir}/man7/*
@ -157,21 +175,24 @@ find %{buildroot} -name "*.la" -exec rm {} \;
%{_mandir}/man1/speaker-test.1.gz %{_mandir}/man1/speaker-test.1.gz
%{_mandir}/man1/aconnect.1.gz %{_mandir}/man1/aconnect.1.gz
%{_mandir}/man1/alsa-info.sh.1.gz %{_mandir}/man1/alsa-info.sh.1.gz
%{_mandir}/man1/nhlt-dmic-info.1.gz
%dir /etc/alsa/ %dir /etc/alsa/
%dir %{alsacfgdir}/ %dir %{_prefix}/lib/alsa/
%dir %{alsacfgdir}/init/ %dir %{_prefix}/lib/alsa/init/
%dir %{_sharedstatedir}/alsa/ %dir /var/lib/alsa/
%if 0%{!?_without_ucm:1}
%files -n alsa-ucm-utils %files -n alsa-ucm-utils
%{_bindir}/alsaucm %{_bindir}/alsaucm
%{_mandir}/man1/alsaucm.1.gz %{_mandir}/man1/alsaucm.1.gz
%endif
%if 0%{!?_without_topology:1}
%files -n alsa-topology-utils %files -n alsa-topology-utils
%{_bindir}/alsatplg %{_bindir}/alsatplg
%{_mandir}/man1/alsatplg.1.gz %{_mandir}/man1/alsatplg.1.gz
%{_libdir}/alsa-topology/libalsatplg_module_* %{_libdir}/alsa-topology/libalsatplg_module_*
%endif
%files alsabat %files alsabat
%{_bindir}/alsabat %{_bindir}/alsabat
@ -189,8 +210,8 @@ fi
if [ -s /etc/alsa/asound.state -a ! -s /etc/asound.state ] ; then if [ -s /etc/alsa/asound.state -a ! -s /etc/asound.state ] ; then
mv /etc/alsa/asound.state /etc/asound.state mv /etc/alsa/asound.state /etc/asound.state
fi fi
if [ -s /etc/asound.state -a ! -s %{_sharedstatedir}/alsa/asound.state ] ; then if [ -s /etc/asound.state -a ! -s /var/lib/alsa/asound.state ] ; then
mv /etc/asound.state %{_sharedstatedir}/alsa/asound.state mv /etc/asound.state /var/lib/alsa/asound.state
fi fi
%systemd_post alsa-state.service %systemd_post alsa-state.service
@ -201,88 +222,32 @@ fi
%systemd_postun_with_restart alsa-state.service %systemd_postun_with_restart alsa-state.service
%changelog %changelog
* Tue Dec 5 2023 Jaroslav Kysela <perex@perex.cz> - 1.2.10-1
* Updated to 1.2.10
* Wed May 17 2023 Jaroslav Kysela <perex@perex.cz> - 1.2.9-1
* Updated to 1.2.9
* Tue Oct 25 2022 Jaroslav Kysela <perex@perex.cz> - 1.2.8-1 * Tue Oct 25 2022 Jaroslav Kysela <perex@perex.cz> - 1.2.8-1
* Updated to 1.2.8 - Updated to 1.2.8
- Do not build alsa-ucm-utils and alsa-topology-utils subpackages for RHEL
* Fri Jul 8 2022 Jaroslav Kysela <perex@perex.cz> - 1.2.7-1 * Fri Jul 8 2022 Jaroslav Kysela <perex@perex.cz> - 1.2.7-1
* Updated to 1.2.7 - Updated to 1.2.7
* Mon Dec 20 2021 Jaroslav Kysela <perex@perex.cz> - 1.2.6-1 * Mon Dec 20 2021 Jaroslav Kysela <perex@perex.cz> - 1.2.6-1
* Updated to 1.2.6 - Updated to 1.2.6
* Tue Aug 10 2021 Jaroslav Kysela <perex@perex.cz> - 1.2.5.1-3 * Mon Jun 14 2021 Jaroslav Kysela <perex@perex.cz> - 1.2.5-3
* Fixes for 1.2.5.1 - Updated to 1.2.5
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.5.1-2 * Mon Jun 8 2020 Jaroslav Kysela <perex@perex.cz> - 1.2.4-2
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Updated to 1.2.4
Related: rhbz#1991688 - Apply fixes from recent upstream
* Mon Aug 9 2021 Jaroslav Kysela <perex@perex.cz> - 1.2.5.1-1 * Mon Jun 8 2020 Jaroslav Kysela <perex@perex.cz> - 1.2.3-1
* Updated to 1.2.5.1 - Updated to 1.2.3
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.4-3 * Fri Nov 15 2019 Jaroslav Kysela <perex@perex.cz> - 1.2.1-2
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Thu Oct 15 2020 Jaroslav Kysela <perex@perex.cz> - 1.2.4-1
* Updated to 1.2.4
* Fri Jul 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-6
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jul 3 2020 Jaroslav Kysela <perex@perex.cz> - 1.2.3-4
* Fix the .spec (changelog0)
* Sun Jun 7 2020 Jaroslav Kysela <perex@perex.cz> - 1.2.3-3
* Updated to 1.2.3
* Wed Feb 19 2020 Jaroslav Kysela <perex@perex.cz> - 1.2.2-1
* Updated to 1.2.2
* Sun Feb 9 2020 Jaroslav Kysela <perex@perex.cz> - 1.2.1-6
- UCM and topology fixes
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Nov 15 2019 Jaroslav Kysela <perex@perex.cz> - 1.2.1-4
- Updated to 1.2.1 - Updated to 1.2.1
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.9-2 * Wed May 22 2019 Jaroslav Kysela <perex@perex.cz> - 1.1.9-1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri May 10 2019 Jaroslav Kysela <perex@perex.cz> - 1.1.9-1
- Updated to 1.1.9 - Updated to 1.1.9
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Mon Jan 7 2019 Jaroslav Kysela <perex@perex.cz> - 1.1.8-2
- Updated to 1.1.8
* Tue Oct 16 2018 Jaroslav Kysela <perex@perex.cz> - 1.1.7-2
- Moved use case manager utility to alsa-ucm-utils
- Moved topology utility to alsa-topology-utils
- Updated to 1.1.7
* Fri Sep 07 2018 Jaroslav Kysela <perex@perex.cz> - 1.1.6-5
- Added udev rules for PAZ00
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Tue Apr 03 2018 Jaroslav Kysela <perex@perex.cz> - 1.1.6-1 * Tue Apr 03 2018 Jaroslav Kysela <perex@perex.cz> - 1.1.6-1
- Updated to 1.1.6 - Updated to 1.1.6