]> git.pld-linux.org Git - projects/template-specs.git/commitdiff
- require ghc with haddock
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 8 Apr 2010 21:53:15 +0000 (21:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- work around automatic docs installation to docdir

Changed files:
    ghc-package.spec -> 1.8

ghc-package.spec

index 7c1872f4d0b5887e83422c966314ecc4cfa9952a..3c889465602faf083dad7d5af2fcf10f8734d3dc 100644 (file)
@@ -8,7 +8,7 @@ Group:          Development/Languages
 Source0:       http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
 # Source0-md5: -
 URL:           http://hackage.haskell.org/package/%{pkgname}/
-BuildRequires: ghc
+BuildRequires: ghc >= 6.10
 #BuildRequires:        ghc-OTHERMODULE
 %requires_eq   ghc
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -35,6 +35,11 @@ runhaskell Setup.hs haddock --executables
 rm -rf $RPM_BUILD_ROOT
 runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
 
+# work around automatic haddock docs installation
+rm -rf %{name}-%{version}/html
+mkdir %{name}-%{version}
+cp -a $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-%{version}/html %{name}-%{version}/
+
 runhaskell Setup.hs register \
        --gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{libsubdir}/%{pkgname}.conf
 
@@ -52,5 +57,5 @@ fi
 %files
 %defattr(644,root,root,755)
 %doc NEWS
-%doc %{_defaultdocdir}/%{name}-%{version}/html
+%doc %{name}-%{version}/html
 %{_libdir}/%{libsubdir}
This page took 0.04762 seconds and 4 git commands to generate.