From 5540efdb25872f02d0e77ff2f9cf0df79c75fce5 Mon Sep 17 00:00:00 2001 From: Björn Esser Date: Jan 31 2019 20:00:26 +0000 Subject: %%license is supported on any active distribution --- diff --git a/dreamweb.spec b/dreamweb.spec index 8a3477d..83a0976 100644 --- a/dreamweb.spec +++ b/dreamweb.spec @@ -4,11 +4,6 @@ # Setup _pkgdocdir if not defined already. %{!?_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}-%{version}} -# Does license.txt go to %%license? -%if 0%{?fedora} >= 21 || 0%{?rhel} >= 8 -%global with_license 1 -%endif # 0%%{?fedora} >= 21 || 0%%{?rhel} >= 8 - # Define available languages. %global avail_langs us uk fr de it es %global lang_list %(echo "%{?avail_langs}" | %{__sed} -e 's! !,!g') @@ -361,9 +356,6 @@ popd # Install the documentation-files. %{__cp} -a license.txt doc/* %{buildroot}%{?_pkgdocdir} -%if 0%{?with_license} != 0 -%{__rm} -f %{buildroot}%{?_pkgdocdir}/license.txt -%endif # 0%%{?with_license} != 0 # Install the desktop-files. for _lang in %{?avail_langs} @@ -378,18 +370,12 @@ done %dir %{?destdir} %doc %dir %{?_pkgdocdir} %doc %{?_pkgdocdir}/common -%if 0%{?with_license} %license license.txt -%else # 0%%{?with_license} -%doc %{?_pkgdocdir}/license.txt -%endif # 0%%{?with_license} %{?destdir}/common %files doc %doc %{?_pkgdocdir} -%if 0%{?with_license} %license license.txt -%endif # 0%%{?with_license} %files us %doc %{?_pkgdocdir}/us