]> git.pld-linux.org Git - packages/ghc-haskell-src-exts.git/blobdiff - ghc-haskell-src-exts.spec
- use %ghc_pkg_recache macro; make url copyable; %ghcdir in rpmbuild macros
[packages/ghc-haskell-src-exts.git] / ghc-haskell-src-exts.spec
index 7925e2988313621b0785c9285e0aa77ae1d5bf77..49158fcce10d577cc015129cb7239f3684411218 100644 (file)
@@ -1,21 +1,20 @@
-%define        pkgname haskell-src-exts
+%define                pkgname haskell-src-exts
 Summary:       Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer
 Name:          ghc-%{pkgname}
 Version:       1.9.6
-Release:       1
+Release:       2
 License:       BSD
 Group:         Development/Languages
 Source0:       http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
 # Source0-md5: 5e73836ab3414ec029e93903b26563ca
-URL:           http://hackage.haskell.org/package/%{pkgname}/
+URL:           http://hackage.haskell.org/package/haskell-src-exts/
 BuildRequires: cpphs
 BuildRequires: ghc >= 6.12.3
+BuildRequires: rpmbuild(macros) >= 1.608
 Requires:      cpphs
 %requires_releq        ghc
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                ghcdir          ghc-%(/usr/bin/ghc --numeric-version)
-
 %description
 Haskell-Source with Extensions (HSE, haskell-src-exts) is an extension
 of the standard haskell-src package, and handles most registered
@@ -62,10 +61,10 @@ runhaskell Setup.hs register \
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/usr/bin/ghc-pkg recache
+%ghc_pkg_recache
 
 %postun
-/usr/bin/ghc-pkg recache
+%ghc_pkg_recache
 
 %files
 %defattr(644,root,root,755)
This page took 0.059253 seconds and 4 git commands to generate.