Summary: Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer
Name: ghc-%{pkgname}
Version: 1.9.6
-Release: 3
+Release: 4
License: BSD
Group: Development/Languages
Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
BuildRequires: ghc >= 6.12.3
BuildRequires: rpmbuild(macros) >= 1.608
Requires: cpphs
-%requires_releq ghc
+%requires_eq ghc
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+# debuginfo is not useful for ghc
+%define _enable_debug_packages 0
+
%description
Haskell-Source with Extensions (HSE, haskell-src-exts) is an extension
of the standard haskell-src package, and handles most registered
Apart from these standard extensions, it also handles regular patterns
as per the HaRP extension as well as HSX-style embedded XML syntax.
+%package doc
+Summary: HTML documentation for %{pkgname}
+Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
+Group: Documentation
+
+%description doc
+HTML documentation for %{pkgname}.
+
+%description doc -l pl.UTF-8
+Dokumentacja w formacie HTML dla %{pkgname}.
+
%prep
%setup -q -n %{pkgname}-%{version}
# work around automatic haddock docs installation
rm -rf %{name}-%{version}-doc
-cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
+cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{name}-%{version}-doc
runhaskell Setup.hs register \
--gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
%files
%defattr(644,root,root,755)
%doc CHANGELOG
-%doc %{name}-%{version}-doc/html
%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}
+
+%files doc
+%defattr(644,root,root,755)
+%doc %{name}-%{version}-doc/*