_defaultlicensedir not _licensedir

epel9
Jens Petersen 8 years ago
parent c43600a4a0
commit 64dfda4d2c

@ -82,8 +82,8 @@ 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 %{pkgnamever}/$i" >> %{basepkg}.files\
mkdir -p %{buildroot}%{_licensedir}/%{basepkg}\ mkdir -p %{buildroot}%{_defaultlicensedir}/%{basepkg}\
mv %{buildroot}%{_docdir}/%{basepkg}/$i %{buildroot}%{_licensedir}/%{basepkg}/\ mv %{buildroot}%{_docdir}/%{basepkg}/$i %{buildroot}%{_defaultlicensedir}/%{basepkg}/\
done\ done\
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\
@ -141,8 +141,8 @@ find %{buildroot} -type f -exec sh -c "file {} | grep -q 'dynamically linked'" \
%{!?_fileattrsdir:%global _use_internal_dependency_generator 0}\ %{!?_fileattrsdir:%global _use_internal_dependency_generator 0}\
%{!?_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}%{_licensedir}/%{name}\ mkdir -p %{buildroot}%{_defaultlicensedir}/%{name}\
mv %{buildroot}%ghc_pkgdocdir/* %{buildroot}%{_licensedir}/%{name}/\ mv %{buildroot}%ghc_pkgdocdir/* %{buildroot}%{_defaultlicensedir}/%{name}/\
%{!?1:%ghc_strip_dynlinked}\ %{!?1:%ghc_strip_dynlinked}\
%{nil} %{nil}

Loading…
Cancel
Save