70cad00250
- Update to alsa-lib 1.1.4: including most of previous fixes, in addition to topology API updates - Upstream fix for building with old glibc: 0001-build-Define-__USE_UNIX98-for-old-glibc.patch - Obsoleted patches: 0001-ucm-Add-ATTRIBUTE_UNUSED-for-unused-parameters-of-ex.patch 0002-ucm-parser-needs-limits.h.patch 0003-pcm-direct-allow-users-to-configure-different-period.patch 0004-pcm-dshare-enable-silence.patch 0005-pcm-rate-fix-the-hw_ptr-update-until-the-boundary-av.patch 0006-plugin-dynamically-update-avail_min-on-slave.patch 0007-rate-dynamic-update-avail_min-on-slave.patch 0008-topology-fix-unused-const-variable-warning.patch 0009-seq-improve-documentation-about-new-get-pid-card-fun.patch 0010-pcm-direct-returning-semop-error-code-for-semaphore-.patch 0011-pcm-direct-Fix-for-sync-issue-on-xrun-recover.patch 0012-pcm-direct-check-state-before-enter-poll-on-timer.patch 0013-pcm-direct-don-t-return-bogus-buffer-levels-in-xrun-.patch 0014-conf-ucm-broxton-add-broxton-rt298-conf-files.patch 0015-pcm-direct-Fix-deadlock-in-poll_descriptors.patch 0016-ucm-Assure-the-user-input-card-name-not-to-exceed-ma.patch 0017-ucm-Load-device-specific-configuration-file-based-on.patch 0018-ucm-Add-command-get-_file-to-get-the-config-file-nam.patch 0019-topology-Fix-incorrect-license-in-source-comments.patch 0020-conf-cards-add-support-for-pistachio-card.patch 0021-pcm-multi-Drop-the-fixed-slave_map-in-snd_pcm_multi_.patch 0022-conf-Add-card-config-for-Intel-HDMI-DP-LPE-audio.patch 0023-pcm-Avoid-lock-for-snd_pcm_nonblock.patch 0024-pcm-Disable-locking-in-async-mode.patch 0025-pcm-dmix-Allow-disabling-x86-optimizations.patch OBS-URL: https://build.opensuse.org/request/show/495459 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa?expand=0&rev=215
264 lines
7.8 KiB
RPMSpec
264 lines
7.8 KiB
RPMSpec
#
|
|
# spec file for package alsa
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define package_version 1.1.4
|
|
%if 0%{?suse_version} < 1200
|
|
%define _udevrulesdir /lib/udev/rules.d/
|
|
%endif
|
|
Name: alsa
|
|
Version: 1.1.4
|
|
Release: 0
|
|
Summary: Advanced Linux Sound Architecture
|
|
License: LGPL-2.1+
|
|
Group: System/Libraries
|
|
Url: http://www.alsa-project.org/
|
|
Source: ftp://ftp.alsa-project.org/pub/lib/alsa-lib-%{package_version}.tar.bz2
|
|
Source2: baselibs.conf
|
|
Source8: 40-alsa.rules
|
|
Source9: 42-hd-audio-pm.rules
|
|
Source11: alsasound
|
|
Source12: sysconfig.sound
|
|
Source13: joystick
|
|
Source14: sysconfig.joystick
|
|
Source16: set_default_volume
|
|
Source17: test.wav
|
|
Source21: README.testwav
|
|
Source30: all_notes_off
|
|
Source31: all_notes_off.bin
|
|
Source32: all_notes_off.mid
|
|
Source34: alsa-init.sh
|
|
Source40: 50-alsa.conf
|
|
Source41: install-snd-module
|
|
# upstream fixes
|
|
Patch1: 0001-build-Define-__USE_UNIX98-for-old-glibc.patch
|
|
# rest suse patches
|
|
Patch98: 0098-dmix-Workaround-for-binary-incompatibility.patch
|
|
BuildRequires: doxygen
|
|
BuildRequires: libtool
|
|
BuildRequires: pkgconfig
|
|
Requires: alsa-utils
|
|
Requires(post): %fillup_prereq
|
|
Recommends: alsa-oss
|
|
Recommends: alsa-plugins
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%if 0%{?suse_version} <= 1310
|
|
Requires(post): %insserv_prereq
|
|
%endif
|
|
%if 0%{?suse_version} > 1200
|
|
BuildRequires: pkgconfig(udev)
|
|
%else
|
|
BuildRequires: udev
|
|
%endif
|
|
|
|
%description
|
|
ALSA stands for Advanced Linux Sound Architecture. It supports many
|
|
PCI, ISA PnP and USB sound cards.
|
|
|
|
This package contains the ALSA init scripts to start the sound system
|
|
on your Linux box. To set it up, run yast2 or alsaconf.
|
|
|
|
%package devel
|
|
Summary: Include Files and Libraries mandatory for Development
|
|
License: LGPL-2.1+
|
|
Group: Development/Libraries/C and C++
|
|
Requires: glibc-devel
|
|
Requires: libasound2 = %{version}
|
|
Obsoletes: alsadev < %{version}
|
|
Provides: alsa-lib-devel = %{version}
|
|
Provides: alsadev = %{version}
|
|
|
|
%description devel
|
|
This package contains all necessary include files and libraries needed
|
|
to develop applications that require these.
|
|
|
|
%package docs
|
|
Summary: Additional Package Documentation
|
|
License: GPL-2.0+
|
|
Group: Documentation/Other
|
|
%if 0%{?suse_version} > 1110
|
|
BuildArch: noarch
|
|
%endif
|
|
|
|
%description docs
|
|
This package contains optional documentation provided in addition to
|
|
this package's base documentation.
|
|
|
|
%package -n libasound2
|
|
Summary: Advanced Linux Sound Architecture Library
|
|
License: LGPL-2.1+
|
|
Group: System/Libraries
|
|
Provides: alsa-lib
|
|
|
|
%description -n libasound2
|
|
This package contains the library for ALSA, Advanced Linux Sound
|
|
Architecture.
|
|
|
|
%prep
|
|
%setup -q -n alsa-lib-%{package_version}
|
|
%patch1 -p1
|
|
%patch98 -p1
|
|
|
|
%build
|
|
export AUTOMAKE_JOBS="%{?_smp_mflags}"
|
|
# build alsa-lib
|
|
autoreconf -fi
|
|
%configure \
|
|
--disable-static \
|
|
--enable-symbolic-functions \
|
|
--disable-aload \
|
|
--disable-alisp \
|
|
--disable-python
|
|
make V=1 %{?_smp_mflags}
|
|
# run doxygen
|
|
make -C doc doc %{?_smp_mflags}
|
|
|
|
%install
|
|
# install shared library
|
|
%make_install
|
|
# clean up unneeded files
|
|
rm -f %{buildroot}%{_libdir}/*.*a
|
|
# rm -f %{buildroot}%{_libdir}/alsa-lib/smixer/*.*a
|
|
rm -f %{buildroot}%{_bindir}/aserver
|
|
#
|
|
# install helper scripts
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
mkdir -p %{buildroot}%{_sbindir}
|
|
install -c -m 0755 %{SOURCE16} %{buildroot}%{_bindir}
|
|
install -c -m 0755 %{SOURCE34} %{buildroot}%{_sbindir}/alsa-init
|
|
%if 0%{?suse_version} < 1140
|
|
sed -i -e 's@%{_localstatedir}/lib/alsa/asound.state@%{_sysconfdir}/asound.state@g' %{buildroot}%{_bindir}/set_default_volume
|
|
sed -i -e 's@%{_localstatedir}/lib/alsa/asound.state@%{_sysconfdir}/asound.state@g' %{buildroot}%{_sbindir}/alsa-init
|
|
%endif
|
|
# install test wave file
|
|
mkdir -p %{buildroot}%{_datadir}/sounds/alsa
|
|
install -c -m 0644 %{SOURCE17} %{buildroot}%{_datadir}/sounds/alsa/test.wav
|
|
# install all_notes_off stuff
|
|
install -c -m 0755 %{SOURCE30} %{buildroot}%{_bindir}
|
|
mkdir -p %{buildroot}%{_prefix}/lib
|
|
install -c -m 0644 %{SOURCE31} %{buildroot}%{_prefix}/lib
|
|
install -c -m 0644 %{SOURCE32} %{buildroot}%{_prefix}/lib
|
|
%if 0%{?suse_version} <= 1310
|
|
#
|
|
# install init scripts
|
|
#
|
|
mkdir -p %{buildroot}%{_sysconfdir}/init.d
|
|
install -c -m 0755 %{SOURCE11} %{buildroot}%{_sysconfdir}/init.d
|
|
install -c -m 0755 %{SOURCE13} %{buildroot}%{_sysconfdir}/init.d
|
|
%if 0%{?suse_version} < 1140
|
|
sed -i -e 's@%{_localstatedir}/lib/alsa/asound.state@%{_sysconfdir}/asound.state@g' %{buildroot}%{_initddir}/alsasound
|
|
%endif
|
|
rm -f %{buildroot}%{_sbindir}/rcalsasound
|
|
ln -s ../..%{_initddir}/alsasound %{buildroot}%{_sbindir}/rcalsasound
|
|
rm -f %{buildroot}%{_sbindir}/rcjoystick
|
|
ln -s ../..%{_initddir}/joystick %{buildroot}%{_sbindir}/rcjoystick
|
|
%endif
|
|
#
|
|
# udev rules (only for non-systemd)
|
|
#
|
|
mkdir -p %{buildroot}%{_udevrulesdir}
|
|
%if 0%{?suse_version} < 1140
|
|
install -c -m 0644 %{SOURCE8} %{buildroot}%{_udevrulesdir}
|
|
%endif
|
|
install -c -m 0644 %{SOURCE9} %{buildroot}%{_udevrulesdir}
|
|
#
|
|
# modprobe config and the module install script for loading OSS-emulation
|
|
# and sequencer modules automatically
|
|
%if 0%{?suse_version} > 1220
|
|
mkdir -p %{buildroot}%{_sysconfdir}/modprobe.d
|
|
install -c -m 0644 %{SOURCE40} %{buildroot}%{_sysconfdir}/modprobe.d
|
|
mkdir -p %{buildroot}/sbin
|
|
install -c -m 0755 %{SOURCE41} %{buildroot}/sbin
|
|
%endif
|
|
#
|
|
# install template to update rc.config and sysconfig files:
|
|
# (updating the actual files is done in the %post-script)
|
|
#
|
|
mkdir -p -m 755 %{buildroot}%{_localstatedir}/adm/fillup-templates
|
|
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/sysconfig
|
|
install -m 644 $RPM_SOURCE_DIR/sysconfig.sound %{buildroot}%{_localstatedir}/adm/fillup-templates
|
|
%if 0%{?suse_version} <= 1310
|
|
install -m 644 $RPM_SOURCE_DIR/sysconfig.joystick %{buildroot}%{_localstatedir}/adm/fillup-templates
|
|
%endif
|
|
#
|
|
# documents
|
|
#
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}
|
|
cp $RPM_SOURCE_DIR/README* %{buildroot}%{_docdir}/%{name}
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}/alsa-lib
|
|
cp COPYING ChangeLog INSTALL TODO MEMORY-LEAK %{buildroot}%{_docdir}/%{name}/alsa-lib
|
|
cp doc/asoundrc.txt %{buildroot}%{_docdir}/%{name}/alsa-lib
|
|
|
|
%post
|
|
%if 0%{?suse_version} > 1310
|
|
%{fillup_only -n sound}
|
|
%else
|
|
%{fillup_and_insserv -ny sound alsasound}
|
|
%{fillup_and_insserv -n joystick joystick}
|
|
%endif
|
|
exit 0
|
|
|
|
%if 0%{?suse_version} <= 1310
|
|
%preun
|
|
%stop_on_removal alsasound joystick
|
|
exit 0
|
|
|
|
%postun
|
|
%restart_on_update alsasound joystick
|
|
%insserv_cleanup
|
|
exit 0
|
|
%endif
|
|
|
|
%post -n libasound2 -p /sbin/ldconfig
|
|
%postun -n libasound2 -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%doc %{_docdir}/%{name}
|
|
%if 0%{?suse_version} <= 1310
|
|
%{_initddir}/*
|
|
%endif
|
|
%if 0%{?suse_version} > 1220
|
|
%{_sysconfdir}/modprobe.d
|
|
/sbin/*
|
|
%endif
|
|
%{_sbindir}/*
|
|
%{_bindir}/*
|
|
%{_prefix}/lib/all_notes_off.*
|
|
%{_datadir}/sounds/alsa
|
|
%{_localstatedir}/adm/fillup-templates/*
|
|
%{_udevrulesdir}*
|
|
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
%{_libdir}/libasound.so
|
|
%{_includedir}/sys/*
|
|
%{_includedir}/alsa
|
|
%{_datadir}/aclocal/*.m4
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%files docs
|
|
%defattr(-, root, root)
|
|
%doc doc/doxygen/html/*
|
|
|
|
%files -n libasound2
|
|
%defattr(-, root, root)
|
|
%{_libdir}/libasound.so.*
|
|
%{_datadir}/alsa
|
|
|
|
%changelog
|