diff --git a/alsa-lib.spec b/alsa-lib.spec index 7f134c53deb5c28b0ecad62032e3ee21f185ce16..5244f9e816cb212dbb4adf65f6878494144e6dbe 100644 --- a/alsa-lib.spec +++ b/alsa-lib.spec @@ -1,13 +1,18 @@ +%define version_alsa_ucm 1.2.3 +%define version_alsa_tplg 1.2.3 Name: alsa-lib Version: 1.2.3 -Release: 1 +Release: 2 Summary: the user space library that developers compile ALSA applications against License: LGPLv2+ URL: https://alsa-project.org/ Source0: https://www.alsa-project.org/files/pub/lib/%{name}-%{version}.tar.bz2 +Source1: ftp://ftp.alsa-project.org/pub/lib/alsa-ucm-conf-%{version_alsa_ucm}.tar.bz2 +Source2: ftp://ftp.alsa-project.org/pub/lib/alsa-topology-conf-%{version_alsa_tplg}.tar.bz2 Source10: asound.conf +Source40: alsa-ucm-conf.patch BuildRequires: autoconf, automake, libtool, doxygen Requires: coreutils @@ -26,6 +31,26 @@ Provides: pkgconfig(alsa) %description devel This package contains libraries and header files for the ALSA development. +%package -n alsa-ucm +Summary: ALSA Use Case Manager configuration +BuildArch: noarch +License: BSD +Requires: %{name} >= %{version_alsa_ucm} + +%description -n alsa-ucm +The Advanced Linux Sound Architecture (ALSA) Use Case Manager configuration +contains alsa-lib configuration of Audio input/output names and routing + +%package -n alsa-topology +Summary: ALSA Topology configuration +BuildArch: noarch +License: BSD +Requires: %{name} >= %{version_alsa_tplg} + +%description -n alsa-topology +The Advanced Linux Sound Architecture (ALSA) topology configuration +contains alsa-lib configuration of SoC topology + %prep %autosetup -n %{name}-%{version} -p1 @@ -47,6 +72,22 @@ make install DESTDIR=%{buildroot} mkdir -p -m 755 %{buildroot}%{_sysconfdir} install -p -m 0644 %{SOURCE10} %{buildroot}%{_sysconfdir} +# Create UCM directories +mkdir -p %{buildroot}/%{_datadir}/alsa/ucm +mkdir -p %{buildroot}/%{_datadir}/alsa/ucm2 + +# Unpack UCMs +tar xvjf %{SOURCE1} -C %{buildroot}/%{_datadir}/alsa --strip-components=1 "*/ucm" "*/ucm2" +patch -d %{buildroot}/%{_datadir}/alsa -p1 < %{SOURCE40} + +# Create topology directory +mkdir -p %{buildroot}/%{_datadir}/alsa/topology + +# Unpack topologies +tar xvjf %{SOURCE2} -C %{buildroot}/%{_datadir}/alsa --strip-components=1 "*/topology" + + + %ldconfig_scriptlets %files @@ -57,6 +98,9 @@ install -p -m 0644 %{SOURCE10} %{buildroot}%{_sysconfdir} %{_libdir}/libasound.so.* %{_libdir}/libatopology.so.* %{_datadir}/alsa/* +%exclude %{_datadir}/alsa/ucm +%exclude %{_datadir}/alsa/ucm2 +%exclude %{_datadir}/alsa/topology %files devel %doc doc/doxygen/ TODO @@ -68,8 +112,19 @@ install -p -m 0644 %{SOURCE10} %{buildroot}%{_sysconfdir} %{_includedir}/* %{_datadir}/aclocal/*.m4 +%files -n alsa-ucm +# BSD +%{_datadir}/alsa/ucm +%{_datadir}/alsa/ucm2 + +%files -n alsa-topology +# BSD +%{_datadir}/alsa/topology %changelog +* Mon Aug 10 2020 douyan - 1.2.3-2 +- add alsa-ucm and alsa-topology package + * Wed Jul 22 2020 jinzhimin - 1.2.3-1 - update to 1.2.3 diff --git a/alsa-topology-conf-1.2.3.tar.bz2 b/alsa-topology-conf-1.2.3.tar.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..911f8aac6eb228bad5deb2648b410fa4a6d903c6 Binary files /dev/null and b/alsa-topology-conf-1.2.3.tar.bz2 differ diff --git a/alsa-ucm-conf-1.2.3.tar.bz2 b/alsa-ucm-conf-1.2.3.tar.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..3fc982fb01c6a4d36548d9a252891c11e8033916 Binary files /dev/null and b/alsa-ucm-conf-1.2.3.tar.bz2 differ diff --git a/alsa-ucm-conf.patch b/alsa-ucm-conf.patch new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391