From 856d8134b61fac816c6efca17f4f6a81c3ce2fcf Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 22 Jan 2015 13:46:10 +0900 Subject: [PATCH] version ghcpkgdocdir and add new html doc dir names (ghcpkgdocdir used by JuicyPixels) in future: %ghcdocbasedir -> %ghc_html_dir %ghclibdocdir -> %ghc_html_libraries_dir %ghcpkgdocdir -> %ghc_html_libraries_dir Hopefully the new names should be clearer --- ghc-rpm-macros.spec | 6 +++++- macros.ghc | 15 ++++++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/ghc-rpm-macros.spec b/ghc-rpm-macros.spec index ba7c27a..2ce1e68 100644 --- a/ghc-rpm-macros.spec +++ b/ghc-rpm-macros.spec @@ -6,7 +6,7 @@ #%%global without_hscolour 1 Name: ghc-rpm-macros -Version: 1.4.2 +Version: 1.4.3 Release: 1%{?dist} Summary: RPM macros for building packages for GHC @@ -88,6 +88,10 @@ install -p -D -m 0755 %{SOURCE5} %{buildroot}/%{_bindir}/cabal-tweak-flag %changelog +* Thu Jan 22 2015 Jens Petersen - 1.4.3-1 +- version ghcpkgdocdir +- add new names ghc_html_dir, ghc_html_libraries_dir, and ghc_html_pkg_dir + * Thu Jan 22 2015 Jens Petersen - 1.4.2-1 - correct cabal-tweak-flag error message for missing flag (#1184508) diff --git a/macros.ghc b/macros.ghc index 6ae05eb..4e3ecf3 100644 --- a/macros.ghc +++ b/macros.ghc @@ -28,12 +28,21 @@ LDFLAGS="${LDFLAGS:-%__global_ldflags}"; export LDFLAGS\ # install %cabal_install %cabal copy --destdir=%{buildroot} -v -# root dir for ghc docs +# root dir for ghc docs (used by ghc.spec) +%ghc_html_dir %{_docdir}/ghc/html +# deprecates %ghcdocbasedir %{_docdir}/ghc/html -# libraries doc dir + +# libraries doc dir (internal) +%ghc_html_libraries_dir %{ghc_html_dir}/libraries +# deprecates %ghclibdocdir %{ghcdocbasedir}/libraries + # pkg doc dir -%ghcpkgdocdir %{ghcdocbasedir}/libraries/%{pkg_name} +%ghc_html_pkg_dir %{ghc_html_libraries_dir}/%{pkg_name}-%{version} +# deprecates +%ghcpkgdocdir %{ghclibdocdir}/%{pkg_name}-%{version} + # top library dir %ghclibdir %{_libdir}/ghc-%{ghc_version}