revert to pkgkey in libsubdir
with pkgid libsubdir, dynlibs still live in pkgkey dir
This commit is contained in:
parent
7b69982ffe
commit
6d99e4fb15
|
@ -10,7 +10,7 @@
|
|||
#%%global without_hscolour 1
|
||||
|
||||
Name: ghc-rpm-macros
|
||||
Version: 1.6.52
|
||||
Version: 1.6.53
|
||||
Release: 1%{?dist}
|
||||
Summary: RPM macros for building Haskell packages for GHC
|
||||
|
||||
|
@ -164,6 +164,9 @@ EOF
|
|||
|
||||
|
||||
%changelog
|
||||
* Thu Aug 30 2018 Jens Petersen <petersen@redhat.com> - 1.6.53-1
|
||||
- bring the hash to libsubdir
|
||||
|
||||
* Tue May 8 2018 Jens Petersen <petersen@redhat.com> - 1.6.52-1
|
||||
- drop hash from libsubdir
|
||||
- cabal-tweak-drop-dep: quote grep pattern to allow whitespace
|
||||
|
|
|
@ -39,7 +39,7 @@ export CFLAGS\
|
|||
%global _hardened_ldflags %{nil}\
|
||||
LDFLAGS="${LDFLAGS:-%{?__global_ldflags}}"; export LDFLAGS\
|
||||
%cabal --version\
|
||||
%cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_ghcdocdir} --libsubdir='$compiler/$pkgid' --datasubdir='$pkgid' --ghc %{!?ghc_without_dynamic:--enable-executable-dynamic} %{?with_tests:--enable-tests} %{?ghc_subpackaging:--user}%{!?ghc_subpackaging:--global} --ghc-options="${CFLAGS:+$(echo ' '$CFLAGS | sed -e 's/ / -optc/g')} ${LDFLAGS:+$(echo ' '$LDFLAGS | sed -e 's/ / -optl/g')}" %{?cabal_configure_options} $cabal_configure_extra_options
|
||||
%cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_ghcdocdir} --libsubdir='$compiler/$pkgkey' --datasubdir='$pkgid' --ghc %{!?ghc_without_dynamic:--enable-executable-dynamic} %{?with_tests:--enable-tests} %{?ghc_subpackaging:--user}%{!?ghc_subpackaging:--global} --ghc-options="${CFLAGS:+$(echo ' '$CFLAGS | sed -e 's/ / -optc/g')} ${LDFLAGS:+$(echo ' '$LDFLAGS | sed -e 's/ / -optl/g')}" %{?cabal_configure_options} $cabal_configure_extra_options
|
||||
|
||||
# install
|
||||
%cabal_install %cabal copy --destdir=%{buildroot} %{?cabal_install_options}
|
||||
|
@ -85,7 +85,8 @@ echo "%{buildroot}%{ghclibdir}/package.conf.d/%{pkgnamever}*.conf not found"\
|
|||
exit 1\
|
||||
fi\
|
||||
pkgconf=$(echo "%{ghclibdir}/package.conf.d/%{pkgnamever}*.conf")\
|
||||
pkgdir="%{ghclibdir}/%{pkgnamever}"\
|
||||
key=$(grep "key: " %{buildroot}${pkgconf} | sed -e "s/key: //")\
|
||||
pkgdir="%{ghclibdir}/${key}"\
|
||||
rm -f %{basepkg}.files %{basepkg}-devel.files\
|
||||
touch %{basepkg}.files %{basepkg}-devel.files\
|
||||
echo ${pkgconf} >> %{basepkg}-devel.files\
|
||||
|
|
Loading…
Reference in New Issue