diff --git a/alsa-utils.changes b/alsa-utils.changes index a7b8d20..3a19a4d 100644 --- a/alsa-utils.changes +++ b/alsa-utils.changes @@ -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 diff --git a/alsa-utils.spec b/alsa-utils.spec index 670d795..eacb63e 100644 --- a/alsa-utils.spec +++ b/alsa-utils.spec @@ -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.*