SHA256
1
0
forked from pool/alsa-utils

Accepting request 594625 from home:tiwai:branches:multimedia:libs

- Avoid %license tag for old distros to fix builds

OBS-URL: https://build.opensuse.org/request/show/594625
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa-utils?expand=0&rev=146
This commit is contained in:
Tomáš Chvátal 2018-04-08 10:17:08 +00:00 committed by Git OBS Bridge
parent 7fff7ef91f
commit bc2195ce16
2 changed files with 15 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Apr 4 14:57:35 CEST 2018 - tiwai@suse.de
- Avoid %license tag for old distros to fix builds
-------------------------------------------------------------------
Wed Apr 4 08:39:33 CEST 2018 - tiwai@suse.de

View File

@ -16,8 +16,6 @@
#
%define package_version 1.1.6
#
%if 0%{?suse_version} > 1130
%define use_systemd 1
%define use_varlib 1
@ -41,7 +39,7 @@ Summary: Advanced Linux Sound Architecture Utilities
License: GPL-2.0-or-later
Group: Productivity/Multimedia/Sound/Players
Url: http://www.alsa-project.org/
Source: ftp://ftp.alsa-project.org/pub/utils/alsa-utils-%{package_version}.tar.bz2
Source: ftp://ftp.alsa-project.org/pub/utils/alsa-utils-%{version}.tar.bz2
Source1: 01beep.conf
BuildRequires: alsa-devel
BuildRequires: automake
@ -76,7 +74,7 @@ interaction. BAT can be used to test audio quality, stress test features
and test audio before and after PM state changes.
%prep
%setup -q -n %{name}-%{package_version}
%setup -q
# fix stupid automake's automatic action
sed -i -e's/EXTRA_DIST= config.rpath /EXTRA_DIST=/' Makefile.am
@ -111,7 +109,11 @@ mkdir -p %{buildroot}%{_localstatedir}/lib/alsa
%files -f %{name}.lang
%defattr(-, root, root)
%if 0%{?suse_version} >= 1200
%license COPYING
%else
%doc COPYING
%endif
%doc ChangeLog INSTALL README TODO
%doc seq/aconnect/README*
%doc seq/aseqnet/README*
@ -134,7 +136,11 @@ mkdir -p %{buildroot}%{_localstatedir}/lib/alsa
%files -n alsabat
%defattr(-, root, root)
%if 0%{?suse_version} >= 1200
%license COPYING
%else
%doc COPYING
%endif
%{_bindir}/alsabat
%{_mandir}/man*/alsabat.*