From 64dfda4d2caef7b5d1be6bd1de2a4b194db9f44a Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 26 Aug 2016 18:16:55 +0200 Subject: [PATCH] _defaultlicensedir not _licensedir --- macros.ghc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/macros.ghc b/macros.ghc index 050a220..dac15f2 100644 --- a/macros.ghc +++ b/macros.ghc @@ -82,8 +82,8 @@ echo "%{docdir}" >> %{basepkg}-devel.files\ fi\ for i in $(ls %{buildroot}%{_docdir}/%{basepkg}/); do\ echo "%%license %{pkgnamever}/$i" >> %{basepkg}.files\ -mkdir -p %{buildroot}%{_licensedir}/%{basepkg}\ -mv %{buildroot}%{_docdir}/%{basepkg}/$i %{buildroot}%{_licensedir}/%{basepkg}/\ +mkdir -p %{buildroot}%{_defaultlicensedir}/%{basepkg}\ +mv %{buildroot}%{_docdir}/%{basepkg}/$i %{buildroot}%{_defaultlicensedir}/%{basepkg}/\ done\ for i in %{basepkg}.files %{basepkg}-devel.files; do\ 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 __find_requires %{_rpmconfigdir}/ghc-deps.sh %{buildroot}%{ghclibdir}}\ %cabal_install\ -mkdir -p %{buildroot}%{_licensedir}/%{name}\ -mv %{buildroot}%ghc_pkgdocdir/* %{buildroot}%{_licensedir}/%{name}/\ +mkdir -p %{buildroot}%{_defaultlicensedir}/%{name}\ +mv %{buildroot}%ghc_pkgdocdir/* %{buildroot}%{_defaultlicensedir}/%{name}/\ %{!?1:%ghc_strip_dynlinked}\ %{nil}