diff --git a/alsa-utils.spec b/alsa-utils.spec index 83bd01ecd6738e33312abe40d3a5cace049cbce7..1f8a7711c67ed0f84d1f33633afbb5e6446274f8 100644 --- a/alsa-utils.spec +++ b/alsa-utils.spec @@ -1,9 +1,13 @@ %define anolis_release .0.1 - -%define baseversion 1.2.6 +%define baseversion 1.2.8 #define fixversion .2 %global _hardened_build 1 +%if 0%{?rhel} +%global _without_ucm 1 +%global _without_topology 1 +%endif + Summary: Advanced Linux Sound Architecture (ALSA) utilities Name: alsa-utils Version: %{baseversion}%{?fixversion} @@ -55,23 +59,31 @@ Provides: /usr/bin/speaker-test This package contains command line utilities for the Advanced Linux Sound Architecture (ALSA). +%if 0%{!?_without_ucm:1} %package -n alsa-ucm-utils 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 This package contains Use Case Manager tools for Advanced Linux Sound Architecture (ALSA) framework. +%endif +%if 0%{!?_without_topology:1} %package -n alsa-topology-utils Summary: Advanced Linux Sound Architecture (ALSA) - Topology Group: Applications/Multimedia Requires: alsa-topology >= %{baseversion} +%endif +%if 0%{!?_without_topology:1} %description -n alsa-topology-utils This package contains topology tools for Advanced Linux Sound Architecture (ALSA) framework. +%endif %package alsabat Summary: Advanced Linux Sound Architecture (ALSA) - Basic Audio Tester @@ -132,6 +144,18 @@ install -p -m 644 %{SOURCE11} %{buildroot}/etc/alsa # Create /var/lib/alsa tree mkdir -p -m 755 %{buildroot}/var/lib/alsa +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 %config /etc/alsa/* %{_prefix}/lib/udev/rules.d/* @@ -182,13 +206,18 @@ mkdir -p -m 755 %{buildroot}/var/lib/alsa %dir %{_prefix}/lib/alsa/init/ %dir /var/lib/alsa/ +%if 0%{!?_without_ucm:1} %files -n alsa-ucm-utils %{_bindir}/alsaucm %{_mandir}/man1/alsaucm.1.gz +%endif +%if 0%{!?_without_topology:1} %files -n alsa-topology-utils %{_bindir}/alsatplg %{_mandir}/man1/alsatplg.1.gz +%{_libdir}/alsa-topology/libalsatplg_module_* +%endif %files alsabat %{_bindir}/alsabat @@ -196,7 +225,7 @@ mkdir -p -m 755 %{buildroot}/var/lib/alsa %{_mandir}/man1/alsabat.1.gz %files doc -%doc COPYING ChangeLog README.md TODO +%doc COPYING ChangeLog README.md TODO alsamixer/alsamixer.rc.example %pre if [ ! -r %{_unitdir}/alsa-state.service ]; then @@ -221,11 +250,18 @@ fi %systemd_postun_with_restart alsa-state.service %changelog -* Sat Jul 16 2022 Zhao Hang - 1.2.6-1.0.1 +* Mon May 22 2023 Zhao Hang - 1.2.8-1.0.1 - Add doc sub package +* Tue Oct 25 2022 Jaroslav Kysela - 1.2.8-1 +- Updated to 1.2.8 +- Do not build alsa-ucm-utils and alsa-topology-utils subpackages for RHEL + +* Fri Jul 8 2022 Jaroslav Kysela - 1.2.7-1 +- Updated to 1.2.7 + * Mon Dec 20 2021 Jaroslav Kysela - 1.2.6-1 -* Updated to 1.2.6 +- Updated to 1.2.6 * Mon Jun 14 2021 Jaroslav Kysela - 1.2.5-3 - Updated to 1.2.5 diff --git a/dist b/dist new file mode 100644 index 0000000000000000000000000000000000000000..9c0e36ec42a2d9bfefacb21ac6354c9ddd910533 --- /dev/null +++ b/dist @@ -0,0 +1 @@ +an8 diff --git a/download b/download index 7b329a7813d973a969809ba0b07e5bcb5cdffdcb..8a9b0fbba6c061a39cb7610ae7ca0eb274c37c97 100644 --- a/download +++ b/download @@ -1 +1 @@ -fc109b2fa4517caeae1697d936ca78ff alsa-utils-1.2.6.tar.bz2 +51175f5cd413daf7009a80684c65113d alsa-utils-1.2.8.tar.bz2