53d156
#define  prever     rc3
53d156
#define  prever_dot .rc3
53d156
#define  postver    a
53d156
db6034
%define version_alsa_lib  1.2.8
db6034
%define version_alsa_ucm  1.2.8
a39c3a
%define version_alsa_tplg 1.2.5
26e685
db6034
%if 0%{?rhel}
db6034
%global _without_topology 1
db6034
%endif
db6034
53d156
Summary:  The Advanced Linux Sound Architecture (ALSA) library
53d156
Name:     alsa-lib
26e685
Version:  %{version_alsa_lib}
db6034
Release:  2%{?prever_dot}%{?dist}
53d156
License:  LGPLv2+
53d156
Group:    System Environment/Libraries
53d156
URL:      http://www.alsa-project.org/
53d156
53d156
Source:   ftp://ftp.alsa-project.org/pub/lib/%{name}-%{version}%{?prever}%{?postver}.tar.bz2
26e685
Source1:  ftp://ftp.alsa-project.org/pub/lib/alsa-ucm-conf-%{version_alsa_ucm}.tar.bz2
db6034
%if 0%{!?_without_topology:1}
26e685
Source2:  ftp://ftp.alsa-project.org/pub/lib/alsa-topology-conf-%{version_alsa_tplg}.tar.bz2
db6034
%endif
53d156
Source10: asound.conf
53d156
Source11: modprobe-dist-alsa.conf
53d156
Source12: modprobe-dist-oss.conf
4c4e16
Source20: alsa-ucm-git.patch
d099e2
Patch0:   alsa-git.patch
208127
Patch1:   alsa-lib-1.2.3-config.patch
53d156
Patch2:   alsa-lib-1.0.14-glibc-open.patch
53d156
53d156
BuildRequires:  doxygen
53d156
BuildRequires:  autoconf automake libtool
53d156
Requires(post): /sbin/ldconfig, coreutils
53d156
53d156
%description
53d156
The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI
53d156
functionality to the Linux operating system.
53d156
53d156
This package includes the ALSA runtime libraries to simplify application
53d156
programming and provide higher level functionality as well as support for
53d156
the older OSS API, providing binary compatibility for most OSS programs.
53d156
53d156
%package  devel
53d156
Summary:  Development files from the ALSA library
53d156
Group:    Development/Libraries
53d156
Requires: %{name} = %{version}-%{release}
53d156
Requires: pkgconfig
53d156
53d156
%description devel
53d156
The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI
53d156
functionality to the Linux operating system.
53d156
53d156
This package includes the ALSA development libraries for developing
53d156
against the ALSA libraries and interfaces.
53d156
53d156
%package  -n alsa-ucm
d099e2
Summary:   ALSA Use Case Manager configuration
d099e2
Group:     System Environment/Libraries
d099e2
BuildArch: noarch
26e685
License:   BSD
23c64b
Requires:  %{name} >= %{version_alsa_lib}
53d156
53d156
%description -n alsa-ucm
53d156
The Advanced Linux Sound Architecture (ALSA) Universal Configuration 
53d156
Manager allows configuration of Audio input/output names and routing
53d156
db6034
%if 0%{!?_without_topology:1}
d099e2
%package  -n alsa-topology
d099e2
Summary:   ALSA Topology configuration
d099e2
Group:     System Environment/Libraries
d099e2
BuildArch: noarch
26e685
License:   BSD
23c64b
Requires:  %{name} >= %{version_alsa_lib}
db6034
%endif
d099e2
db6034
%if 0%{!?_without_topology:1}
d099e2
%description -n alsa-topology
d099e2
The Advanced Linux Sound Architecture (ALSA) topology configuration
d099e2
contains alsa-lib configuration of SoC topology
db6034
%endif
d099e2
53d156
%prep
53d156
%setup -q -n %{name}-%{version}%{?prever}%{?postver}
d099e2
%patch0 -p1 -b .alsa-git
53d156
%patch1 -p1 -b .config
53d156
%patch2 -p1 -b .glibc-open
53d156
53d156
%build
53d156
autoreconf -vif
53d156
%configure --disable-aload --with-plugindir=%{_libdir}/alsa-lib --disable-alisp
53d156
53d156
# Remove useless /usr/lib64 rpath on 64bit archs
53d156
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
53d156
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
53d156
53d156
make %{?_smp_mflags} V=1
53d156
make doc
53d156
53d156
%install
d099e2
%global sysmodprobedir %{_prefix}/lib/modprobe.d
d099e2
53d156
make DESTDIR=%{buildroot} install
53d156
53d156
# Install global configuration files
53d156
mkdir -p -m 755 %{buildroot}/etc
53d156
install -p -m 644 %{SOURCE10} %{buildroot}/etc
53d156
53d156
# Install the modprobe files for ALSA
d099e2
mkdir -p -m 755 %{buildroot}%{sysmodprobedir}
d099e2
install -p -m 644 %{SOURCE11} %{buildroot}%{sysmodprobedir}/dist-alsa.conf
53d156
# bug#926973, place this file to the doc directory
53d156
install -p -m 644 %{SOURCE12} .
53d156
26e685
# Create UCM directories
53d156
mkdir -p %{buildroot}/%{_datadir}/alsa/ucm
26e685
mkdir -p %{buildroot}/%{_datadir}/alsa/ucm2
26e685
26e685
# Unpack UCMs
208127
tar xvjf %{SOURCE1} -C %{buildroot}/%{_datadir}/alsa --strip-components=1 "*/ucm" "*/ucm2"
4c4e16
patch -d %{buildroot}/%{_datadir}/alsa -p1 < %{SOURCE20}
53d156
d099e2
# Create topology directory
d099e2
mkdir -p %{buildroot}/%{_datadir}/alsa/topology
d099e2
26e685
# Unpack topologies
db6034
%if 0%{!?_without_topology:1}
208127
tar xvjf %{SOURCE2} -C %{buildroot}/%{_datadir}/alsa --strip-components=1 "*/topology"
db6034
%endif
26e685
d099e2
# Remove libtool archives.
53d156
find %{buildroot} -name '*.la' -delete
53d156
d099e2
# Remove /usr/include/asoundlib.h
d099e2
rm %{buildroot}/%{_includedir}/asoundlib.h
d099e2
53d156
%post -p /sbin/ldconfig
53d156
53d156
%postun -p /sbin/ldconfig
53d156
53d156
%files
53d156
%{!?_licensedir:%global license %%doc}
53d156
%license COPYING
53d156
%doc doc/asoundrc.txt modprobe-dist-oss.conf
53d156
%config %{_sysconfdir}/asound.conf
208127
/%{_libdir}/libasound.so.*
208127
/%{_libdir}/libatopology.so.*
53d156
%{_bindir}/aserver
53d156
#{_libdir}/alsa-lib/
53d156
%{_datadir}/alsa/
53d156
%exclude %{_datadir}/alsa/ucm
26e685
%exclude %{_datadir}/alsa/ucm2
d099e2
%exclude %{_datadir}/alsa/topology
d099e2
%{sysmodprobedir}/dist-*
53d156
53d156
%files devel
53d156
%doc TODO doc/doxygen/
53d156
%{_includedir}/alsa/
53d156
%{_includedir}/sys/asoundlib.h
53d156
%{_libdir}/libasound.so
26e685
%{_libdir}/libatopology.so
53d156
%{_libdir}/pkgconfig/alsa.pc
26e685
%{_libdir}/pkgconfig/alsa-topology.pc
53d156
%{_datadir}/aclocal/alsa.m4
53d156
53d156
%files -n alsa-ucm
26e685
# BSD
53d156
%{_datadir}/alsa/ucm
26e685
%{_datadir}/alsa/ucm2
53d156
db6034
%if 0%{!?_without_topology:1}
d099e2
%files -n alsa-topology
26e685
# BSD
d099e2
%{_datadir}/alsa/topology
db6034
%endif
d099e2
53d156
%changelog
db6034
* Thu Jan  5 2023 Jaroslav Kysela <perex@perex.cz> - 1.2.8-2
db6034
- update to alsa-lib 1.2.8 and alsa-ucm-conf 1.2.8
db6034
- remove alsa-topology package for rhel
db6034
ab4f61
* Fri Jul  8 2022 Jaroslav Kysela <perex@perex.cz> - 1.2.7.2-1
ab4f61
- Updated to 1.2.7.2
ab4f61
23c64b
* Fri Feb 11 2022 Jaroslav Kysela <perex@perex.cz> - 1.2.6.1-3
23c64b
- import fixes from upstream (UCM: AMD ACP6x, HDA, sof-hda-dsp)
23c64b
23c64b
* Mon Dec 20 2021 Jaroslav Kysela <perex@perex.cz> - 1.2.6.1-1
23c64b
- Updated to alsa-lib 1.2.6.1 and alsa-ucm-conf 1.2.6.3
23c64b
a39c3a
* Mon Jun 14 2021 Jaroslav Kysela <perex@perex.cz> - 1.2.5-4
a39c3a
- Updated to 1.2.5
a39c3a
4c4e16
* Mon Feb  1 2021 Jaroslav Kysela <perex@perex.cz> - 1.2.4-5
4c4e16
- Apply fixes from upstream (alsa-lib, alsa-ucm-conf)
4c4e16
4c4e16
* Mon Oct 19 2020 Jaroslav Kysela <perex@perex.cz> - 1.2.4-3
4c4e16
- Updated to 1.2.4
4c4e16
208127
* Mon Jun 29 2020 Jaroslav Kysela <perex@perex.cz> - 1.2.3.2-1
208127
- update to 1.2.3.2
208127
26e685
* Tue Mar 17 2020 Jaroslav Kysela <perex@perex.cz> - 1.2.1.2-3
26e685
- Fix for HDA Intel dual codecs
26e685
26e685
* Tue Dec 10 2019 Jaroslav Kysela <perex@perex.cz> - 1.2.1.2-2
26e685
- Updated to 1.2.1.2
26e685
- UCM fixes
26e685
26e685
* Fri Nov 15 2019 Jaroslav Kysela <perex@perex.cz> - 1.2.1-2
26e685
- Updated to 1.2.1
26e685
d099e2
* Mon May 27 2019 Jaroslav Kysela <perex@perex.cz> - 1.1.9-4
d099e2
- Moved topology files to alsa-topology
d099e2
- Updated to 1.1.9
d099e2
53d156
* Fri Jan 25 2019 Jaroslav Kysela <jkysela@redhat.com> - 1.1.6-3
53d156
- Sync with the RHEL 7
53d156
- Add Dell WD15/WD19 Dock to USB-Audio.conf and create UCM configs
53d156
- Resolves: rhbz#1664247
53d156
53d156
* Wed Apr 04 2018 Jaroslav Kysela <perex@perex.cz> - 1.1.6-2
53d156
- Changed add-on directory to /etc/alsa/conf.d
53d156
53d156
* Tue Apr 03 2018 Jaroslav Kysela <perex@perex.cz> - 1.1.6-1
53d156
- Updated to 1.1.6
53d156
53d156
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-2
53d156
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
53d156
53d156
* Tue Nov 14 2017 Jaroslav Kysela <perex@perex.cz> - 1.1.5-1
53d156
- Updated to 1.1.5
53d156
53d156
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4.1-3
53d156
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
53d156
53d156
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4.1-2
53d156
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
53d156
53d156
* Tue Jun 13 2017 Jaroslav Kysela <perex@perex.cz> - 1.1.4.1-1
53d156
- Updated to 1.1.4.1
53d156
53d156
* Fri May 12 2017 Jaroslav Kysela <perex@perex.cz> - 1.1.4-1
53d156
- Updated to 1.1.4
53d156
53d156
* Mon Mar 20 2017 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.3-3
53d156
- Add upstream patch for Raspberry Pi HDMI audio
53d156
53d156
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-2
53d156
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
53d156
53d156
* Tue Dec 20 2016 Jaroslav Kysela <perex@perex.cz> - 1.1.3-1
53d156
- Updated to 1.1.3
53d156
53d156
* Tue Aug  2 2016 Jaroslav Kysela <perex@perex.cz> - 1.1.2-1
53d156
- Updated to 1.1.2
53d156
53d156
* Tue Jul 19 2016 Bastien Nocera <bnocera@redhat.com> - 1.1.1-2
53d156
- Add Surface 3 configuration file
53d156
53d156
* Thu Mar 31 2016 Jaroslav Kysela <perex@perex.cz> - 1.1.1-1
53d156
- Updated to 1.1.1
53d156
53d156
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
53d156
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
53d156
53d156
* Mon Nov  9 2015 Jaroslav Kysela <perex@perex.cz> - 1.1.0-3
53d156
- Replaced source files with the alsa-lib v1.1.0 final
53d156
53d156
* Thu Nov  5 2015 Jaroslav Kysela <perex@perex.cz> - 1.1.0-2
53d156
- Replaced source files with the alsa-lib v1.1.0 test2
53d156
53d156
* Tue Oct 27 2015 Jaroslav Kysela <perex@perex.cz> - 1.1.0-1
53d156
- Updated to 1.1.0 test1
53d156
53d156
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.29-2
53d156
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
53d156
53d156
* Thu Feb 26 2015 Jaroslav Kysela <perex@perex.cz> - 1.0.29-1
53d156
- Updated to 1.0.29
53d156
53d156
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 1.0.28-4
53d156
- Rebuilt for Fedora 23 Change
53d156
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
53d156
53d156
* Tue Feb  3 2015 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.28-3
53d156
- Add UCM sub package
53d156
- Use %%license
53d156
53d156
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.28-2
53d156
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
53d156
53d156
* Thu Jul 24 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.28-1
53d156
- Update to 1.0.28
53d156
53d156
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.27.2-3
53d156
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
53d156
53d156
* Thu Aug  1 2013 Ville Skyttä <ville.skytta@iki.fi> - 1.0.27.2-2
53d156
- Fix build with unversioned %%{_docdir_fmt}.
53d156
53d156
* Mon Jul 08 2013 Jaroslav Kysela <perex@perex.cz> - 1.0.27.2-1
53d156
- Updated to 1.0.27.2
53d156
53d156
* Thu May 30 2013 Jaroslav Kysela <perex@perex.cz> - 1.0.27.1-2
53d156
- Fixed bug#953352
53d156
53d156
* Tue May 21 2013 Jaroslav Kysela <perex@perex.cz> - 1.0.27.1-1
53d156
- Updated to 1.0.27.1
53d156
53d156
* Tue May 07 2013 Rex Dieter <rdieter@fedoraproject.org> 1.0.27-3
53d156
- pull in upstream fix for building in C90 mode
53d156
53d156
* Thu Apr 11 2013 Jaroslav Kysela <perex@perex.cz> - 1.0.27-2
53d156
- move dist-oss.conf to doc as modprobe-dist-oss.conf
53d156
53d156
* Thu Apr 11 2013 Jaroslav Kysela <perex@perex.cz> - 1.0.27-1
53d156
- Updated to 1.0.27
53d156
53d156
* Wed Apr 03 2013 Stephen Gallagher <sgallagh@redhat.com> - 1.0.26-4
53d156
- Add upstream patch to explicitly include sys/types.h
53d156
53d156
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.26-3
53d156
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
53d156
53d156
* Mon Dec  3 2012 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.26-2
53d156
- Create and own ucm directory so alsaucm doesn't crash.
53d156
- Cleanup and modernise spec
53d156
53d156
* Thu Sep  6 2012 Jaroslav Kysela <jkysela@redhat.com> - 1.0.26-1
53d156
- Updated to 1.0.26
53d156
53d156
* Thu Jul 26 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0.25-6
53d156
- Don't package ancient ChangeLog that ends at alsa-lib 0.2.0 (#510212).
53d156
53d156
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.25-5
53d156
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
53d156
53d156
* Wed May  2 2012 Josh Boyer <jwboyer@redhat.com> - 1.0.25-4
53d156
- Install ALSA related module conf files
53d156
53d156
* Wed Feb  1 2012 Jaroslav Kysela <jkysela@redhat.com> - 1.0.25-3
53d156
- Remove the pulse audio configuration from /etc/asound.conf
53d156
53d156
* Sat Jan 28 2012 Jaroslav Kysela <jkysela@redhat.com> - 1.0.25-1
53d156
- Updated to 1.0.25 final
53d156
53d156
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.24-3
53d156
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
53d156
53d156
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.24-2
53d156
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
53d156
53d156
* Fri Jan 28 2011 Jaroslav Kysela <jkysela@redhat.com> - 1.0.24-1
53d156
- Updated to 1.0.24 final
53d156
53d156
* Tue Nov  9 2010 Jochen Schmitt <Jochen herr-schmitt de> 1.0.23-2
53d156
- Set plugindir to %%{_libdir}/alsa-lib (bz#651507)
53d156
53d156
* Fri Apr 16 2010 Jaroslav Kysela <jkysela@redhat.com> - 1.0.23-1
53d156
- Updated to 1.0.23 final
53d156
53d156
* Mon Dec 28 2009 Jaroslav Kysela <jkysela@redhat.com> - 1.0.22-1
53d156
- Updated to 1.0.22 final
53d156
- Fix file descriptor leak in pcm_hw plugin
53d156
- Fix sound distortions for S24_LE - softvol plugin
53d156
53d156
* Wed Sep  9 2009 Jaroslav Kysela <jkysela@redhat.com> - 1.0.21-3
53d156
- Add Speaker and Beep control names to mixer weight list
53d156
- Fix redhat bug #521988
53d156
53d156
* Wed Sep  2 2009 Jaroslav Kysela <jkysela@redhat.com> - 1.0.21-1
53d156
- Updated to 1.0.21 final
53d156
53d156
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.20-2
53d156
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
53d156
53d156
* Wed May  6 2009 Jaroslav Kysela <jkysela@redhat.com> - 1.0.20-1
53d156
- Updated to 1.0.20 final
53d156
53d156
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.19-3
53d156
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
53d156
53d156
* Wed Feb  4 2009 Jaroslav Kysela <jkysela@redhat.com> - 1.0.19-2
53d156
- Make doxygen documentation same for all architectures (bz#465205)
53d156
53d156
* Tue Jan 20 2009 Jaroslav Kysela <jkysela@redhat.com> - 1.0.19-1
53d156
- Updated to 1.0.19 final