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