Summary: Compression and decompression in the gzip and zlib formats
Name: ghc-%{pkgname}
Version: 0.5.2.0
-Release: 3
+Release: 4
License: BSD
Group: Development/Languages
Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
URL: http://hackage.haskell.org/package/zlib/
BuildRequires: ghc >= 6.12.3
BuildRequires: rpmbuild(macros) >= 1.608
-%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
This package provides a pure interface for compressing and
decompressing streams of data represented as lazy
tasks and for the few cases where more control is needed it
provides access to the full zlib feature set.
+%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 %{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/*