use %license
This commit is contained in:
parent
3374f6364c
commit
025bb04cd1
7
ghc.spec
7
ghc.spec
@ -344,7 +344,7 @@ for i in %{ghc_packages_list}; do
|
|||||||
name=$(echo $i | sed -e "s/\(.*\)-.*/\1/")
|
name=$(echo $i | sed -e "s/\(.*\)-.*/\1/")
|
||||||
ver=$(echo $i | sed -e "s/.*-\(.*\)/\1/")
|
ver=$(echo $i | sed -e "s/.*-\(.*\)/\1/")
|
||||||
%ghc_gen_filelists $name $ver
|
%ghc_gen_filelists $name $ver
|
||||||
echo "%doc libraries/$name/LICENSE" >> ghc-$name.files
|
echo "%license libraries/$name/LICENSE" >> ghc-$name.files
|
||||||
done
|
done
|
||||||
|
|
||||||
# ghc-base should own ghclibdir
|
# 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.files >> ghc-%2.files\
|
||||||
cat ghc-%1-devel.files >> ghc-%2-devel.files\
|
cat ghc-%1-devel.files >> ghc-%2-devel.files\
|
||||||
cp -p libraries/%1/LICENSE libraries/LICENSE.%1\
|
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 integer-gmp base
|
||||||
%merge_filelist ghc-prim base
|
%merge_filelist ghc-prim base
|
||||||
@ -483,7 +483,8 @@ fi
|
|||||||
%files
|
%files
|
||||||
|
|
||||||
%files compiler
|
%files compiler
|
||||||
%doc ANNOUNCE LICENSE
|
%license LICENSE
|
||||||
|
%doc ANNOUNCE
|
||||||
%{_bindir}/ghc
|
%{_bindir}/ghc
|
||||||
%{_bindir}/ghc-%{version}
|
%{_bindir}/ghc-%{version}
|
||||||
%{_bindir}/ghc-pkg
|
%{_bindir}/ghc-pkg
|
||||||
|
Loading…
Reference in New Issue
Block a user