diff --git a/ghc-aeson.spec b/ghc-aeson.spec index 27086f4..5eb5db9 100644 --- a/ghc-aeson.spec +++ b/ghc-aeson.spec @@ -5,6 +5,7 @@ %global pkgver %{pkg_name}-%{version} %global timelocalecompat time-locale-compat-0.1.1.3 +%global subpkgs %{timelocalecompat} %bcond_with tests @@ -16,7 +17,7 @@ Summary: Fast JSON parsing and encoding License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz -Source1: https://hackage.haskell.org/package/%{timelocalecompat}/%{timelocalecompat}.tar.gz +Source1: https://hackage.haskell.org/package/%{subpkgs}/%{subpkgs}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros-extra @@ -70,7 +71,7 @@ This package provides the Haskell %{pkg_name} library development files. %global main_version %{version} %if %{defined ghclibdir} -%ghc_lib_subpackage %{timelocalecompat} +%ghc_lib_subpackage %{subpkgs} %endif %global version %{main_version} @@ -81,13 +82,14 @@ This package provides the Haskell %{pkg_name} library development files. %build -%ghc_libs_build %{timelocalecompat} +%ghc_libs_build %{subpkgs} %ghc_lib_build %install -%ghc_libs_install %{timelocalecompat} +%ghc_libs_install %{subpkgs} %ghc_lib_install +%ghc_fix_rpath %{subpkgs} %check