diff --git a/cabal-install.spec b/cabal-install.spec index 72c7a86..96d63b4 100644 --- a/cabal-install.spec +++ b/cabal-install.spec @@ -4,6 +4,7 @@ %global ed25519 ed25519-0.0.5.0 %global cryptohashsha256 cryptohash-sha256-0.11.100.1 %global hackagesecurity hackage-security-0.5.2.2 +%global subpkgs %{ed25519} %{cryptohashsha256} %{hackagesecurity} %bcond_with tests @@ -97,15 +98,14 @@ cabal-tweak-dep-ver ghc-prim '< 0.5' '< 0.6' %build -%ghc_libs_build %{ed25519} %{cryptohashsha256} %{hackagesecurity} +%ghc_libs_build %{subpkgs} %ghc_bin_build %install -%ghc_libs_install %{ed25519} %{cryptohashsha256} %{hackagesecurity} +%ghc_libs_install %{subpkgs} %ghc_bin_install - -%ghc_fix_rpath %{ed25519} %{cryptohashsha256} %{hackagesecurity} +%ghc_fix_rpath %{subpkgs} mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d cp -p bash-completion/cabal $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d