%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/")\ ver=$(echo $i | sed -e "s/.*-\\(.*\\)/\\1/")\
cd $name-$ver\ cd $name-$ver\
%ghc_lib_install $name $ver\ %ghc_lib_install $name $ver\
echo "%%license $name-$ver/LICENSE" >> ghc-$name.files\ LICENSE_FILE=$(ls %{buildroot}%{_docdir}/ghc-$name/)\
rm %{buildroot}%{_docdir}/ghc-$name/LICENSE\ echo "%%license $name-$ver/$LICENSE_FILE" >> ghc-$name.files\
rm %{buildroot}%{_docdir}/ghc-$name/$LICENSE_FILE\
mv *.files ..\ mv *.files ..\
cd ..\ cd ..\
done\ done\

Loading…
Cancel
Save