Blame SPECS/alsa-lib.spec

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