2022-04-17 00:57:18 +08:00
|
|
|
%define version_alsa_ucm 1.2.7.1
|
2021-11-29 19:41:31 +08:00
|
|
|
%define version_alsa_tplg 1.2.5.1
|
2019-12-25 15:41:27 +08:00
|
|
|
Name: alsa-lib
|
2023-07-21 11:47:52 +08:00
|
|
|
Version: 1.2.9
|
2023-08-09 15:27:07 +08:00
|
|
|
Release: 2
|
2019-12-25 15:41:27 +08:00
|
|
|
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
|
2020-08-10 15:31:32 +08:00
|
|
|
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
|
2019-12-25 15:41:27 +08:00
|
|
|
Source10: asound.conf
|
|
|
|
|
|
2020-08-10 15:31:32 +08:00
|
|
|
Source40: alsa-ucm-conf.patch
|
2022-08-15 09:56:56 +08:00
|
|
|
Patch1: alsa-lib-1.2.5.1-sw.patch
|
|
|
|
|
|
2023-02-09 14:45:13 +08:00
|
|
|
BuildRequires: autoconf, automake, libtool, doxygen, gtk3
|
2019-12-25 15:41:27 +08:00
|
|
|
Requires: coreutils
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The alsa-lib is a library to interface with ALSA in the Linux kernel
|
|
|
|
|
and virtual devices using a plugin system.
|
|
|
|
|
More detail: https://alsa.opensrc.org/Alsa-lib
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development header files
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
Provides: %{name}-devel = %{version}
|
|
|
|
|
Provides: pkgconfig(alsa)
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This package contains libraries and header files for the ALSA development.
|
|
|
|
|
|
2020-08-10 15:31:32 +08:00
|
|
|
%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
|
|
|
|
|
|
2019-12-25 15:41:27 +08:00
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
autoreconf -vif
|
|
|
|
|
%configure --disable-aload \
|
|
|
|
|
--with-plugindir=%{_libdir}/alsa-lib \
|
|
|
|
|
--disable-alisp
|
|
|
|
|
|
|
|
|
|
%disable_rpath
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags} VERBOSE=1
|
|
|
|
|
make doc %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
|
|
# the asound.conf configuration files are required for ALSA to work properly
|
|
|
|
|
mkdir -p -m 755 %{buildroot}%{_sysconfdir}
|
|
|
|
|
install -p -m 0644 %{SOURCE10} %{buildroot}%{_sysconfdir}
|
|
|
|
|
|
2020-08-10 15:31:32 +08:00
|
|
|
# Create UCM directories
|
|
|
|
|
mkdir -p %{buildroot}/%{_datadir}/alsa/ucm
|
|
|
|
|
mkdir -p %{buildroot}/%{_datadir}/alsa/ucm2
|
|
|
|
|
|
|
|
|
|
# Unpack UCMs
|
2023-08-09 15:27:07 +08:00
|
|
|
tar xvjf %{SOURCE1} -C %{buildroot}/%{_datadir}/alsa --strip-components=1 "alsa-ucm-conf-%{version_alsa_ucm}/ucm" "alsa-ucm-conf-%{version_alsa_ucm}/ucm2"
|
2020-08-10 15:31:32 +08:00
|
|
|
patch -d %{buildroot}/%{_datadir}/alsa -p1 < %{SOURCE40}
|
|
|
|
|
|
|
|
|
|
# Create topology directory
|
|
|
|
|
mkdir -p %{buildroot}/%{_datadir}/alsa/topology
|
|
|
|
|
|
|
|
|
|
# Unpack topologies
|
2023-08-09 15:27:07 +08:00
|
|
|
tar xvjf %{SOURCE2} -C %{buildroot}/%{_datadir}/alsa --strip-components=1 "alsa-topology-conf-%{version_alsa_tplg}/topology"
|
2020-08-10 15:31:32 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-12-25 15:41:27 +08:00
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license COPYING
|
|
|
|
|
%doc doc/asoundrc.txt
|
|
|
|
|
%{_sysconfdir}/*.conf
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
%{_libdir}/libasound.so.*
|
2020-05-12 11:17:30 +08:00
|
|
|
%{_libdir}/libatopology.so.*
|
2019-12-25 15:41:27 +08:00
|
|
|
%{_datadir}/alsa/*
|
2020-08-10 15:31:32 +08:00
|
|
|
%exclude %{_datadir}/alsa/ucm
|
|
|
|
|
%exclude %{_datadir}/alsa/ucm2
|
|
|
|
|
%exclude %{_datadir}/alsa/topology
|
2019-12-25 15:41:27 +08:00
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%doc doc/doxygen/ TODO
|
|
|
|
|
%{_libdir}/libasound.so
|
2020-05-12 11:17:30 +08:00
|
|
|
%{_libdir}/libatopology.so
|
2019-12-25 15:41:27 +08:00
|
|
|
%exclude %{_libdir}/libasound.la
|
2020-05-12 11:17:30 +08:00
|
|
|
%exclude %{_libdir}/libatopology.la
|
2019-12-25 15:41:27 +08:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
%{_includedir}/*
|
|
|
|
|
%{_datadir}/aclocal/*.m4
|
|
|
|
|
|
2020-08-10 15:31:32 +08:00
|
|
|
%files -n alsa-ucm
|
|
|
|
|
# BSD
|
|
|
|
|
%{_datadir}/alsa/ucm
|
|
|
|
|
%{_datadir}/alsa/ucm2
|
|
|
|
|
|
|
|
|
|
%files -n alsa-topology
|
|
|
|
|
# BSD
|
|
|
|
|
%{_datadir}/alsa/topology
|
2019-12-25 15:41:27 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2023-08-09 15:27:07 +08:00
|
|
|
* Wed Aug 9 2023 zhangnaichuan <zhangnaichuan@huawei.com> - 1.2.9-2
|
|
|
|
|
- fix: build failuer caused by tar upgrade
|
|
|
|
|
|
2023-07-21 11:47:52 +08:00
|
|
|
* Fri July 21 2023 lijianglin <lijianglin2@huawei.com> - 1.2.9-1
|
|
|
|
|
- Upgrade to 1.2.9
|
|
|
|
|
|
2023-02-09 14:45:13 +08:00
|
|
|
* Thu Feb 9 2023 lijianglin <lijianglin2@huawei.com> - 1.2.8-1
|
|
|
|
|
- Upgrade to 1.2.8
|
|
|
|
|
|
2022-08-15 09:56:56 +08:00
|
|
|
* Thu Aug 11 2022 wuzx<wuzx1226@qq.com> - 1.2.7.1-2
|
|
|
|
|
- add sw64 patch
|
|
|
|
|
|
2022-04-17 00:57:18 +08:00
|
|
|
* Wed Jun 29 2022 YukariChiba <i@0x7f.cc> - 1.2.7.1-1
|
|
|
|
|
- Upgrade alsa-lib to 1.2.7.1
|
|
|
|
|
- Upgrade alsa-ucm-conf to 1.2.7.1
|
|
|
|
|
|
2021-11-29 19:41:31 +08:00
|
|
|
* Mon Nov 29 2021 zhouwenpei <zhouwenpei1@huawei.com> - 1.2.5.1-1
|
|
|
|
|
- update to 1.2.5.1
|
|
|
|
|
|
2021-01-30 14:19:07 +08:00
|
|
|
* Sat Jan 30 2021 xinghe <xinghe1@huawei.com> - 1.2.4-1
|
|
|
|
|
- update to 1.2.4
|
|
|
|
|
|
2020-08-10 15:31:32 +08:00
|
|
|
* Mon Aug 10 2020 douyan <douyan@kylinos.cn> - 1.2.3-2
|
|
|
|
|
- add alsa-ucm and alsa-topology package
|
|
|
|
|
|
2020-07-23 03:26:30 +00:00
|
|
|
* Wed Jul 22 2020 jinzhimin <jinzhimin2@huawei.com> - 1.2.3-1
|
|
|
|
|
- update to 1.2.3
|
|
|
|
|
|
2020-05-12 11:17:30 +08:00
|
|
|
* Fri Apr 24 2020 SuperHugePan <zhangpan26@huawei.com> - 1.2.2-1
|
|
|
|
|
- update to 1.2.2
|
|
|
|
|
|
2020-01-10 21:25:08 +08:00
|
|
|
* Fri Jan 10 2020 SuperHugePan <zhangpan26@huawei.com> - 1.1.6-6
|
|
|
|
|
- remove useless code
|
|
|
|
|
|
2019-12-25 15:41:27 +08:00
|
|
|
* Thu Oct 24 2019 caomeng <caomeng5@huawei.com> - 1.1.6-5
|
|
|
|
|
- Type:NA
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:delete build requirement alsa-utils
|
|
|
|
|
|
|
|
|
|
* Mon Aug 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.1.6-4
|
|
|
|
|
- Package init
|