diff --git a/alsa-lib.spec b/alsa-lib.spec index 9f05775a9fa21ef5628690ca2fc72d8dca7d1900..6be4e692227f949428f85aad9e0dac01cb798e49 100644 --- a/alsa-lib.spec +++ b/alsa-lib.spec @@ -1,12 +1,18 @@ Name: alsa-lib Version: 1.2.2 -Release: 1 +Release: 2 Summary: the user space library that developers compile ALSA applications against +%define alsa_ucm_version 1.2.2 +%define alsa_tplg_version 1.2.2 + 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-%{alsa_ucm_version}.tar.bz2 +Source2: ftp://ftp.alsa-project.org/pub/lib/alsa-topology-conf-%{alsa_tplg_version}.tar.bz2 Source10: asound.conf +Source11: alsa-ucm-conf.patch BuildRequires: autoconf, automake, libtool, doxygen Requires: coreutils @@ -26,6 +32,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 +Group: System Environment/Libraries +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%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 +Group: System Environment/Libraries +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%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 +73,20 @@ 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 < %{SOURCE11} + +# 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 +97,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 +111,21 @@ install -p -m 0644 %{SOURCE10} %{buildroot}%{_sysconfdir} %{_includedir}/* %{_datadir}/aclocal/*.m4 +%files -n alsa-ucm +%{_datadir}/alsa/ucm +%{_datadir}/alsa/ucm2 + +%files -n alsa-topology +%{_datadir}/alsa/topology + %changelog +* Fri May 29 2020 gaoch_100 - 1.2.2-2 +- Type:NA +- ID:NA +- SUG:NA +- DESC:add alsa-ucm alsa-topology + * Fri Apr 24 2020 SuperHugePan - 1.2.2-1 - update to 1.2.2 diff --git a/alsa-topology-conf-1.2.2.tar.bz2 b/alsa-topology-conf-1.2.2.tar.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..ec13671f6cc560870a069bba7a985c31bf958ec8 Binary files /dev/null and b/alsa-topology-conf-1.2.2.tar.bz2 differ diff --git a/alsa-ucm-conf-1.2.2.tar.bz2 b/alsa-ucm-conf-1.2.2.tar.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..e6284f1ad2954e0527d29fb3132e1f7288bfa27a Binary files /dev/null and b/alsa-ucm-conf-1.2.2.tar.bz2 differ diff --git a/alsa-ucm-conf.patch b/alsa-ucm-conf.patch new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391