move license handling from %ghc_libs_install to %ghc_gen_filelists
This commit is contained in:
parent
40e1493069
commit
84a7696ad1
@ -10,7 +10,7 @@
|
|||||||
#%%global without_hscolour 1
|
#%%global without_hscolour 1
|
||||||
|
|
||||||
Name: ghc-rpm-macros
|
Name: ghc-rpm-macros
|
||||||
Version: 1.6.4
|
Version: 1.6.5
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: RPM macros for building packages for GHC
|
Summary: RPM macros for building packages for GHC
|
||||||
|
|
||||||
@ -135,6 +135,9 @@ EOF
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 25 2016 Jens Petersen <petersen@redhat.com> - 1.6.5-1
|
||||||
|
- ghc_gen_filelists now handles license files automatically
|
||||||
|
|
||||||
* Wed Aug 17 2016 Jens Petersen <petersen@redhat.com> - 1.6.4-1
|
* Wed Aug 17 2016 Jens Petersen <petersen@redhat.com> - 1.6.4-1
|
||||||
- add ghc_libs_build and ghc_libs_install to ease bundling libraries
|
- add ghc_libs_build and ghc_libs_install to ease bundling libraries
|
||||||
- drop _smp_mflags for now since it can overwhelm armv7hl
|
- drop _smp_mflags for now since it can overwhelm armv7hl
|
||||||
|
@ -80,6 +80,9 @@ fi\
|
|||||||
if [ -d "%{buildroot}%{docdir}" ]; then\
|
if [ -d "%{buildroot}%{docdir}" ]; then\
|
||||||
echo "%{docdir}" >> %{basepkg}-devel.files\
|
echo "%{docdir}" >> %{basepkg}-devel.files\
|
||||||
fi\
|
fi\
|
||||||
|
license_file=$(ls %{buildroot}%{_docdir}/%{basepkg}/)\
|
||||||
|
echo "%%license %{pkgnamever}/$license_file" >> %{basepkg}.files\
|
||||||
|
rm %{buildroot}%{_docdir}/ghc-$name/$license_file\
|
||||||
for i in %{basepkg}.files %{basepkg}-devel.files; do\
|
for i in %{basepkg}.files %{basepkg}-devel.files; do\
|
||||||
if [ -f "$i" ]; then\
|
if [ -f "$i" ]; then\
|
||||||
sed -i -e "s!%{buildroot}!!g" $i\
|
sed -i -e "s!%{buildroot}!!g" $i\
|
||||||
|
@ -85,9 +85,6 @@ 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\
|
||||||
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 ..\
|
mv *.files ..\
|
||||||
cd ..\
|
cd ..\
|
||||||
done\
|
done\
|
||||||
|
Loading…
Reference in New Issue
Block a user