%ghc_sublib_install: handle different license filenames

epel9
Jens Petersen 8 years ago
parent 0592593f31
commit 2d136c9538

@ -85,8 +85,9 @@ name=$(echo $i | sed -e "s/\\(.*\\)-.*/\\1/")\
ver=$(echo $i | sed -e "s/.*-\\(.*\\)/\\1/")\
cd $name-$ver\
%ghc_lib_install $name $ver\
echo "%%license $name-$ver/LICENSE" >> ghc-$name.files\
rm %{buildroot}%{_docdir}/ghc-$name/LICENSE\
LICENSE_FILE=$(ls %{buildroot}%{_docdir}/ghc-$name/)\
echo "%%license $name-$ver/$LICENSE_FILE" >> ghc-$name.files\
rm %{buildroot}%{_docdir}/ghc-$name/$LICENSE_FILE\
mv *.files ..\
cd ..\
done\

Loading…
Cancel
Save