From 025bb04cd1313f147115ddf8b1b5c9db91aaf435 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sep 28 2016 09:17:28 +0000 Subject: use %license --- diff --git a/ghc.spec b/ghc.spec index d0d41d1..9a7a104 100644 --- a/ghc.spec +++ b/ghc.spec @@ -344,7 +344,7 @@ for i in %{ghc_packages_list}; do name=$(echo $i | sed -e "s/\(.*\)-.*/\1/") ver=$(echo $i | sed -e "s/.*-\(.*\)/\1/") %ghc_gen_filelists $name $ver -echo "%doc libraries/$name/LICENSE" >> ghc-$name.files +echo "%license libraries/$name/LICENSE" >> ghc-$name.files done # ghc-base should own ghclibdir @@ -359,7 +359,7 @@ echo "%dir %{ghclibdir}" >> ghc-base.files cat ghc-%1.files >> ghc-%2.files\ cat ghc-%1-devel.files >> ghc-%2-devel.files\ cp -p libraries/%1/LICENSE libraries/LICENSE.%1\ -echo "%doc libraries/LICENSE.%1" >> ghc-%2.files +echo "%license libraries/LICENSE.%1" >> ghc-%2.files %merge_filelist integer-gmp base %merge_filelist ghc-prim base @@ -483,7 +483,8 @@ fi %files %files compiler -%doc ANNOUNCE LICENSE +%license LICENSE +%doc ANNOUNCE %{_bindir}/ghc %{_bindir}/ghc-%{version} %{_bindir}/ghc-pkg