!6 add alsa-ucm and alsa-topology

Merge pull request !6 from orange-snn/openEuler-20.03-LTS
This commit is contained in:
openeuler-ci-bot 2020-05-30 11:21:56 +08:00 committed by Gitee
commit 28c8df95ba
3 changed files with 52 additions and 1 deletions

View File

@ -1,11 +1,16 @@
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
BuildRequires: autoconf, automake, libtool, doxygen
@ -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
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 +72,19 @@ 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"
# 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 +95,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 +109,18 @@ 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 <gaochao52@huawei.com> - 1.2.2-2
- DESC:add alsa-ucm alsa-topology
* Fri Apr 24 2020 SuperHugePan <zhangpan26@huawei.com> - 1.2.2-1
- update to 1.2.2

Binary file not shown.

BIN
alsa-ucm-conf-1.2.2.tar.bz2 Normal file

Binary file not shown.