fix %license path when not subpackaging

epel9
Jens Petersen 8 years ago
parent 64dfda4d2c
commit 452a250213

@ -81,7 +81,7 @@ if [ -d "%{buildroot}%{docdir}" ]; then\
echo "%{docdir}" >> %{basepkg}-devel.files\ echo "%{docdir}" >> %{basepkg}-devel.files\
fi\ fi\
for i in $(ls %{buildroot}%{_docdir}/%{basepkg}/); do\ for i in $(ls %{buildroot}%{_docdir}/%{basepkg}/); do\
echo "%%license %{pkgnamever}/$i" >> %{basepkg}.files\ echo "%%license %{?1:%{pkgnamever}/}$i" >> %{basepkg}.files\
mkdir -p %{buildroot}%{_defaultlicensedir}/%{basepkg}\ mkdir -p %{buildroot}%{_defaultlicensedir}/%{basepkg}\
mv %{buildroot}%{_docdir}/%{basepkg}/$i %{buildroot}%{_defaultlicensedir}/%{basepkg}/\ mv %{buildroot}%{_docdir}/%{basepkg}/$i %{buildroot}%{_defaultlicensedir}/%{basepkg}/\
done\ done\
@ -142,7 +142,7 @@ find %{buildroot} -type f -exec sh -c "file {} | grep -q 'dynamically linked'" \
%{!?_fileattrsdir:%global __find_requires %{_rpmconfigdir}/ghc-deps.sh %{buildroot}%{ghclibdir}}\ %{!?_fileattrsdir:%global __find_requires %{_rpmconfigdir}/ghc-deps.sh %{buildroot}%{ghclibdir}}\
%cabal_install\ %cabal_install\
mkdir -p %{buildroot}%{_defaultlicensedir}/%{name}\ mkdir -p %{buildroot}%{_defaultlicensedir}/%{name}\
mv %{buildroot}%ghc_pkgdocdir/* %{buildroot}%{_defaultlicensedir}/%{name}/\ mv %{buildroot}%{ghc_pkgdocdir}/* %{buildroot}%{_defaultlicensedir}/%{name}/\
%{!?1:%ghc_strip_dynlinked}\ %{!?1:%ghc_strip_dynlinked}\
%{nil} %{nil}

Loading…
Cancel
Save