ghc-rpm-macros/ghc.attr
Jens Petersen f6aa817b92 ghc-deps.sh: split off buildroot from the ghclibdir arg for more precise paths
This allows using the ghclibdir for checking for prof libs,
avoiding collisions with other ghcX.Y-*-prof files:

Processing files: ghc-doctemplates-prof-0.9-7.fc37.x86_64
/usr/lib/rpm/ghc-deps.sh: line 60: [: too many arguments
/usr/lib/rpm/ghc-deps.sh: line 60: [: too many arguments
/usr/lib/rpm/ghc-deps.sh: line 60: [: too many arguments
2022-06-10 14:36:23 +08:00

4 lines
315 B
Plaintext

%__ghc_provides %{_rpmconfigdir}/ghc-deps.sh --provides %{buildroot} %{ghclibdir} %{?ghc_name:ghc-%{ghc_version}}
%__ghc_requires %{_rpmconfigdir}/ghc-deps.sh --requires %{buildroot} %{ghclibdir} %{?ghc_name:ghc-%{ghc_version}}
%__ghc_path ^(%{ghcliblib}/package.conf.d/.*\.conf|%{ghclibplatform}/.*/libHS.*_p\.a)$