-%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
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)