Blame SPECS/alsa-lib.spec

e11113
#define  prever     rc3
e11113
#define  prever_dot .rc3
e11113
#define  postver    a
e11113
87dbbc
%define version_alsa_lib  1.2.6.1
87dbbc
%define version_alsa_ucm  1.2.6.3
e11113
%define version_alsa_tplg 1.2.5
e11113
e11113
Summary:  The Advanced Linux Sound Architecture (ALSA) library
e11113
Name:     alsa-lib
e11113
Version:  %{version_alsa_lib}
1e947c
Release:  3%{?prever_dot}%{?dist}
e11113
License:  LGPLv2+
e11113
URL:      http://www.alsa-project.org/
e11113
e11113
Source:   ftp://ftp.alsa-project.org/pub/lib/%{name}-%{version}%{?prever}%{?postver}.tar.bz2
e11113
Source1:  ftp://ftp.alsa-project.org/pub/lib/alsa-ucm-conf-%{version_alsa_ucm}.tar.bz2
e11113
Source2:  ftp://ftp.alsa-project.org/pub/lib/alsa-topology-conf-%{version_alsa_tplg}.tar.bz2
e11113
Source10: asound.conf
e11113
Source11: modprobe-dist-alsa.conf
e11113
Source12: modprobe-dist-oss.conf
e11113
Source40: alsa-ucm-conf.patch
e11113
Patch0:   alsa-git.patch
e11113
Patch1:   alsa-lib-1.2.3.1-config.patch
e11113
Patch2:   alsa-lib-1.0.14-glibc-open.patch
e11113
e11113
BuildRequires:  doxygen
e11113
BuildRequires:  autoconf automake libtool
e11113
BuildRequires: make
e11113
e11113
%description
e11113
The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI
e11113
functionality to the Linux operating system.
e11113
e11113
This package includes the ALSA runtime libraries to simplify application
e11113
programming and provide higher level functionality as well as support for
e11113
the older OSS API, providing binary compatibility for most OSS programs.
e11113
e11113
%package  devel
e11113
Summary:  Development files from the ALSA library
e11113
Requires: %{name} = %{version}-%{release}
e11113
Requires: pkgconfig
e11113
e11113
%description devel
e11113
The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI
e11113
functionality to the Linux operating system.
e11113
e11113
This package includes the ALSA development libraries for developing
e11113
against the ALSA libraries and interfaces.
e11113
e11113
%package  -n alsa-ucm
e11113
Summary:   ALSA Use Case Manager configuration
e11113
BuildArch: noarch
e11113
License:   BSD
87dbbc
Requires:  %{name} >= %{version_alsa_lib}
e11113
e11113
%description -n alsa-ucm
e11113
The Advanced Linux Sound Architecture (ALSA) Use Case Manager configuration
e11113
contains alsa-lib configuration of Audio input/output names and routing
e11113
e11113
%package  -n alsa-topology
e11113
Summary:   ALSA Topology configuration
e11113
BuildArch: noarch
e11113
License:   BSD
87dbbc
Requires:  %{name} >= %{version_alsa_lib}
e11113
e11113
%description -n alsa-topology
e11113
The Advanced Linux Sound Architecture (ALSA) topology configuration
e11113
contains alsa-lib configuration of SoC topology
e11113
e11113
%prep
e11113
%setup -q -n %{name}-%{version}%{?prever}%{?postver}
e11113
%patch0 -p1 -b .alsa-git
e11113
%patch1 -p1 -b .config
e11113
%patch2 -p1 -b .glibc-open
e11113
e11113
%build
e11113
# This package uses top level ASM constructs which are incompatible with LTO.
e11113
# Top level ASMs are often used to implement symbol versioning.  gcc-10
e11113
# introduces a new mechanism for symbol versioning which works with LTO.
e11113
# Converting packages to use that mechanism instead of toplevel ASMs is
e11113
# recommended.
e11113
# Note: The v1.2.4 contains changes wich are compatible with gcc-10 LTO
e11113
# although using the old ASM constructs.
e11113
# Enable custom LTO flags
e11113
%define _lto_cflags -flto -ffat-lto-objects -flto-partition=none
e11113
e11113
autoreconf -vif
e11113
%configure --disable-aload --with-plugindir=%{_libdir}/alsa-lib --disable-alisp
e11113
e11113
# Remove useless /usr/lib64 rpath on 64bit archs
e11113
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
e11113
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
e11113
e11113
make %{?_smp_mflags} V=1
e11113
make doc
e11113
e11113
%install
e11113
%global sysmodprobedir %{_prefix}/lib/modprobe.d
e11113
e11113
make DESTDIR=%{buildroot} install
e11113
e11113
# Install global configuration files
e11113
mkdir -p -m 755 %{buildroot}/etc
e11113
install -p -m 644 %{SOURCE10} %{buildroot}/etc
e11113
e11113
# Install the modprobe files for ALSA
e11113
mkdir -p -m 755 %{buildroot}%{sysmodprobedir}
e11113
install -p -m 644 %{SOURCE11} %{buildroot}%{sysmodprobedir}/dist-alsa.conf
e11113
# bug#926973, place this file to the doc directory
e11113
install -p -m 644 %{SOURCE12} .
e11113
e11113
# Create UCM directories
e11113
mkdir -p %{buildroot}/%{_datadir}/alsa/ucm
e11113
mkdir -p %{buildroot}/%{_datadir}/alsa/ucm2
e11113
e11113
# Unpack UCMs
e11113
tar xvjf %{SOURCE1} -C %{buildroot}/%{_datadir}/alsa --strip-components=1 "*/ucm" "*/ucm2"
e11113
patch -d %{buildroot}/%{_datadir}/alsa -p1 < %{SOURCE40}
e11113
e11113
# Create topology directory
e11113
mkdir -p %{buildroot}/%{_datadir}/alsa/topology
e11113
e11113
# Unpack topologies
e11113
tar xvjf %{SOURCE2} -C %{buildroot}/%{_datadir}/alsa --strip-components=1 "*/topology"
e11113
e11113
# Remove libtool archives.
e11113
find %{buildroot} -name '*.la' -delete
e11113
e11113
# Remove /usr/include/asoundlib.h
e11113
rm %{buildroot}/%{_includedir}/asoundlib.h
e11113
e11113
%ldconfig_scriptlets
e11113
e11113
%files
e11113
%{!?_licensedir:%global license %%doc}
e11113
%license COPYING
e11113
%doc doc/asoundrc.txt modprobe-dist-oss.conf
e11113
%config %{_sysconfdir}/asound.conf
e11113
/%{_libdir}/libasound.so.*
e11113
/%{_libdir}/libatopology.so.*
e11113
%{_bindir}/aserver
e11113
#{_libdir}/alsa-lib/
e11113
%{_datadir}/alsa/
e11113
%exclude %{_datadir}/alsa/ucm
e11113
%exclude %{_datadir}/alsa/ucm2
e11113
%exclude %{_datadir}/alsa/topology
e11113
%{sysmodprobedir}/dist-*
e11113
e11113
%files devel
e11113
%doc TODO doc/doxygen/
e11113
%{_includedir}/alsa/
e11113
%{_includedir}/sys/asoundlib.h
e11113
%{_libdir}/libasound.so
e11113
%{_libdir}/libatopology.so
e11113
%{_libdir}/pkgconfig/alsa.pc
e11113
%{_libdir}/pkgconfig/alsa-topology.pc
e11113
%{_datadir}/aclocal/alsa.m4
e11113
e11113
%files -n alsa-ucm
e11113
# BSD
e11113
%{_datadir}/alsa/ucm
e11113
%{_datadir}/alsa/ucm2
e11113
e11113
%files -n alsa-topology
e11113
# BSD
e11113
%{_datadir}/alsa/topology
e11113
e11113
%changelog
1e947c
* Wed Feb  9 2022 Jaroslav Kysela <perex@perex.cz> - 1.2.6.1-3
1e947c
- import fixes from upstream (UCM: AMD ACP6x, HDA, sof-hda-dsp)
1e947c
87dbbc
* Mon Dec 20 2021 Jaroslav Kysela <perex@perex.cz> - 1.2.6.1-1
87dbbc
- update to alsa-lib 1.2.6.1 and alsa-ucm-conf 1.2.6.3
87dbbc
e11113
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.5.1-2
e11113
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
e11113
  Related: rhbz#1991688
e11113
e11113
* Thu Jul 29 2021 Jaroslav Kysela <perex@perex.cz> - 1.2.5.1-1
e11113
- update to 1.2.5.1
e11113
e11113
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.4-6
e11113
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
e11113
e11113
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-5
e11113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e11113
e11113
* Mon Oct 19 2020 Jaroslav Kysela <perex@perex.cz> - 1.2.4-4
e11113
- update to 1.2.4
e11113
- enable LTO
e11113
e11113
* Fri Jul 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3.2-5
e11113
- Second attempt - Rebuilt for
e11113
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e11113
e11113
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3.2-4
e11113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e11113
e11113
* Wed Jul  1 2020 Jeff Law <law@redhat.com> - 1.2.3.2-3
e11113
- Disable LTO
e11113
e11113
* Mon Jun 29 2020 Jaroslav Kysela <perex@perex.cz> - 1.2.3.2-2
e11113
- update to 1.2.3.2
e11113
e11113
* Thu Jun 18 2020 Jaroslav Kysela <perex@perex.cz> - 1.2.3.1-1
e11113
- update to 1.2.3.1
e11113
e11113
* Sun Jun  7 2020 Jaroslav Kysela <perex@perex.cz> - 1.2.3-8
e11113
- update to 1.2.3
e11113
e11113
* Mon Apr  6 2020 Jaroslav Kysela <perex@perex.cz> - 1.2.2-2
e11113
- UCM2 fixes (RemoveDevice), bug#1786723
e11113
e11113
* Wed Feb 19 2020 Jaroslav Kysela <perex@perex.cz> - 1.2.2-1
e11113
- Updated to 1.2.2
e11113
e11113
* Sun Feb  9 2020 Jaroslav Kysela <perex@perex.cz> - 1.2.1.2-6
e11113
- More UCM2 related fixes
e11113
e11113
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1.2-5
e11113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e11113
e11113
* Mon Dec  9 2019 Jaroslav Kysela <perex@perex.cz> - 1.2.1.2-4
e11113
- Fixes for sof-hda-dsp UCM2 configuration
e11113
e11113
* Tue Dec  3 2019 Jaroslav Kysela <perex@perex.cz> - 1.2.1.2-3
e11113
- Fixed more UCM2 related issues
e11113
e11113
* Fri Nov 29 2019 Jaroslav Kysela <perex@perex.cz> - 1.2.1.2-1
e11113
- Updated to 1.2.1.2
e11113
e11113
* Tue Nov 19 2019 Jaroslav Kysela <perex@perex.cz> - 1.2.1.1-1
e11113
- Updated to 1.2.1.1
e11113
e11113
* Wed Nov 13 2019 Jaroslav Kysela <perex@perex.cz> - 1.2.1-3
e11113
- Updated to 1.2.1
e11113
e11113
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.9-2
e11113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e11113
e11113
* Fri May 10 2019 Jaroslav Kysela <perex@perex.cz> - 1.1.9-1
e11113
- Updated to 1.1.9
e11113
e11113
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.8-2
e11113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e11113
e11113
* Mon Jan  7 2019 Jaroslav Kysela <perex@perex.cz> - 1.1.8-1
e11113
- Updated to 1.1.8
e11113
e11113
* Tue Dec 25 2018 Hans de Goede <hdegoede@redhat.com> - 1.1.7-3
e11113
- Fix broken chtrt5645 UCM profile, fixing mic input on chtrt5645 devices
e11113
e11113
* Wed Oct 24 2018 Jaroslav Kysela <perex@perex.cz> - 1.1.7-2
e11113
- Moved topology files to alsa-topology
e11113
- Updated to 1.1.7
e11113
e11113
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.6-3
e11113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e11113
e11113
* Wed Apr 04 2018 Jaroslav Kysela <perex@perex.cz> - 1.1.6-2
e11113
- Changed add-on directory to /etc/alsa/conf.d
e11113
e11113
* Tue Apr 03 2018 Jaroslav Kysela <perex@perex.cz> - 1.1.6-1
e11113
- Updated to 1.1.6
e11113
e11113
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-2
e11113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e11113
e11113
* Tue Nov 14 2017 Jaroslav Kysela <perex@perex.cz> - 1.1.5-1
e11113
- Updated to 1.1.5
e11113
e11113
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4.1-3
e11113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
e11113
e11113
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4.1-2
e11113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e11113
e11113
* Tue Jun 13 2017 Jaroslav Kysela <perex@perex.cz> - 1.1.4.1-1
e11113
- Updated to 1.1.4.1
e11113
e11113
* Fri May 12 2017 Jaroslav Kysela <perex@perex.cz> - 1.1.4-1
e11113
- Updated to 1.1.4
e11113
e11113
* Mon Mar 20 2017 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.3-3
e11113
- Add upstream patch for Raspberry Pi HDMI audio
e11113
e11113
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-2
e11113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e11113
e11113
* Tue Dec 20 2016 Jaroslav Kysela <perex@perex.cz> - 1.1.3-1
e11113
- Updated to 1.1.3
e11113
e11113
* Tue Aug  2 2016 Jaroslav Kysela <perex@perex.cz> - 1.1.2-1
e11113
- Updated to 1.1.2
e11113
e11113
* Tue Jul 19 2016 Bastien Nocera <bnocera@redhat.com> - 1.1.1-2
e11113
- Add Surface 3 configuration file
e11113
e11113
* Thu Mar 31 2016 Jaroslav Kysela <perex@perex.cz> - 1.1.1-1
e11113
- Updated to 1.1.1
e11113
e11113
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
e11113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e11113
e11113
* Mon Nov  9 2015 Jaroslav Kysela <perex@perex.cz> - 1.1.0-3
e11113
- Replaced source files with the alsa-lib v1.1.0 final
e11113
e11113
* Thu Nov  5 2015 Jaroslav Kysela <perex@perex.cz> - 1.1.0-2
e11113
- Replaced source files with the alsa-lib v1.1.0 test2
e11113
e11113
* Tue Oct 27 2015 Jaroslav Kysela <perex@perex.cz> - 1.1.0-1
e11113
- Updated to 1.1.0 test1
e11113
e11113
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.29-2
e11113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e11113
e11113
* Thu Feb 26 2015 Jaroslav Kysela <perex@perex.cz> - 1.0.29-1
e11113
- Updated to 1.0.29
e11113
e11113
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 1.0.28-4
e11113
- Rebuilt for Fedora 23 Change
e11113
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
e11113
e11113
* Tue Feb  3 2015 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.28-3
e11113
- Add UCM sub package
e11113
- Use %%license
e11113
e11113
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.28-2
e11113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
e11113
e11113
* Thu Jul 24 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.28-1
e11113
- Update to 1.0.28
e11113
e11113
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.27.2-3
e11113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e11113
e11113
* Thu Aug  1 2013 Ville Skyttä <ville.skytta@iki.fi> - 1.0.27.2-2
e11113
- Fix build with unversioned %%{_docdir_fmt}.
e11113
e11113
* Mon Jul 08 2013 Jaroslav Kysela <perex@perex.cz> - 1.0.27.2-1
e11113
- Updated to 1.0.27.2
e11113
e11113
* Thu May 30 2013 Jaroslav Kysela <perex@perex.cz> - 1.0.27.1-2
e11113
- Fixed bug#953352
e11113
e11113
* Tue May 21 2013 Jaroslav Kysela <perex@perex.cz> - 1.0.27.1-1
e11113
- Updated to 1.0.27.1
e11113
e11113
* Tue May 07 2013 Rex Dieter <rdieter@fedoraproject.org> 1.0.27-3
e11113
- pull in upstream fix for building in C90 mode
e11113
e11113
* Thu Apr 11 2013 Jaroslav Kysela <perex@perex.cz> - 1.0.27-2
e11113
- move dist-oss.conf to doc as modprobe-dist-oss.conf
e11113
e11113
* Thu Apr 11 2013 Jaroslav Kysela <perex@perex.cz> - 1.0.27-1
e11113
- Updated to 1.0.27
e11113
e11113
* Wed Apr 03 2013 Stephen Gallagher <sgallagh@redhat.com> - 1.0.26-4
e11113
- Add upstream patch to explicitly include sys/types.h
e11113
e11113
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.26-3
e11113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e11113
e11113
* Mon Dec  3 2012 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.26-2
e11113
- Create and own ucm directory so alsaucm doesn't crash.
e11113
- Cleanup and modernise spec
e11113
e11113
* Thu Sep  6 2012 Jaroslav Kysela <jkysela@redhat.com> - 1.0.26-1
e11113
- Updated to 1.0.26
e11113
e11113
* Thu Jul 26 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0.25-6
e11113
- Don't package ancient ChangeLog that ends at alsa-lib 0.2.0 (#510212).
e11113
e11113
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.25-5
e11113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e11113
e11113
* Wed May  2 2012 Josh Boyer <jwboyer@redhat.com> - 1.0.25-4
e11113
- Install ALSA related module conf files
e11113
e11113
* Wed Feb  1 2012 Jaroslav Kysela <jkysela@redhat.com> - 1.0.25-3
e11113
- Remove the pulse audio configuration from /etc/asound.conf
e11113
e11113
* Sat Jan 28 2012 Jaroslav Kysela <jkysela@redhat.com> - 1.0.25-1
e11113
- Updated to 1.0.25 final
e11113
e11113
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.24-3
e11113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e11113
e11113
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.24-2
e11113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e11113
e11113
* Fri Jan 28 2011 Jaroslav Kysela <jkysela@redhat.com> - 1.0.24-1
e11113
- Updated to 1.0.24 final
e11113
e11113
* Tue Nov  9 2010 Jochen Schmitt <Jochen herr-schmitt de> 1.0.23-2
e11113
- Set plugindir to %%{_libdir}/alsa-lib (bz#651507)
e11113
e11113
* Fri Apr 16 2010 Jaroslav Kysela <jkysela@redhat.com> - 1.0.23-1
e11113
- Updated to 1.0.23 final
e11113
e11113
* Mon Dec 28 2009 Jaroslav Kysela <jkysela@redhat.com> - 1.0.22-1
e11113
- Updated to 1.0.22 final
e11113
- Fix file descriptor leak in pcm_hw plugin
e11113
- Fix sound distortions for S24_LE - softvol plugin
e11113
e11113
* Wed Sep  9 2009 Jaroslav Kysela <jkysela@redhat.com> - 1.0.21-3
e11113
- Add Speaker and Beep control names to mixer weight list
e11113
- Fix redhat bug #521988
e11113
e11113
* Wed Sep  2 2009 Jaroslav Kysela <jkysela@redhat.com> - 1.0.21-1
e11113
- Updated to 1.0.21 final
e11113
e11113
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.20-2
e11113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e11113
e11113
* Wed May  6 2009 Jaroslav Kysela <jkysela@redhat.com> - 1.0.20-1
e11113
- Updated to 1.0.20 final
e11113
e11113
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.19-3
e11113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e11113
e11113
* Wed Feb  4 2009 Jaroslav Kysela <jkysela@redhat.com> - 1.0.19-2
e11113
- Make doxygen documentation same for all architectures (bz#465205)
e11113
e11113
* Tue Jan 20 2009 Jaroslav Kysela <jkysela@redhat.com> - 1.0.19-1
e11113
- Updated to 1.0.19 final