%define pkgname zlib
Summary: Compression and decompression in the gzip and zlib formats
+Summary(pl.UTF-8): Kompresja i dekompresja formatów gzip i zlib
Name: ghc-%{pkgname}
-Version: 0.5.3.1
+Version: 0.5.4.1
Release: 1
License: BSD
Group: Development/Languages
-Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
-# Source0-md5: 8fb2988b112e38d04a527b892f770507
-URL: http://hackage.haskell.org/package/zlib/
+#Source0Download: http://hackage.haskell.org/package/zlib
+Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5: d0d10786d2bbd1d401a8b28a83e88475
+URL: http://hackage.haskell.org/package/zlib
BuildRequires: ghc >= 6.12.3
BuildRequires: rpmbuild(macros) >= 1.608
%requires_eq ghc
%description
This package provides a pure interface for compressing and
-decompressing streams of data represented as lazy
-'ByteString's. It uses the zlib C library so it has high
-performance. It supports the "zlib", "gzip" and "raw"
-compression formats.
+decompressing streams of data represented as lazy 'ByteString's. It
+uses the zlib C library so it has high performance. It supports the
+"zlib", "gzip" and "raw" compression formats.
-It provides a convenient high level API suitable for most
-tasks and for the few cases where more control is needed it
-provides access to the full zlib feature set.
+It provides a convenient high level API suitable for most tasks and
+for the few cases where more control is needed it provides access to
+the full zlib feature set.
+
+%description -l pl.UTF-8
+Ten pakiet zapewnia czysty interfejs do kompresji i dekompresji
+strumieni danych reprezentowanych jako leniwe "ByteString"i.
+Wykorzystuje bibliotekę C zlib, więc ma dużą wydajność. Obsługuje
+formaty kompresji "zlib", "gzip" i "surowy".
+
+Udostępnia wygodne, wysokopoziomowe API, nadające się do większości
+zadań; dla nielicznych przypadków, gdzie potrzeba większej kontroli,
+daje dostęp do pełnych możliwości zliba.
%package doc
-Summary: HTML documentation for %{pkgname}
-Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
+Summary: HTML documentation for %{pkgname} ghc package
+Summary(pl.UTF-8): Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}
Group: Documentation
%description doc
-HTML documentation for %{pkgname}.
+HTML documentation for %{pkgname} ghc package.
%description doc -l pl.UTF-8
-Dokumentacja w formacie HTML dla %{pkgname}.
+Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}.
%prep
%setup -q -n %{pkgname}-%{version}
runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
# work around automatic haddock docs installation
-rm -rf %{name}-%{version}-doc
+%{__rm} -rf %{name}-%{version}-doc
cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{name}-%{version}-doc
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
runhaskell Setup.hs register \
--gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
%files
%defattr(644,root,root,755)
+%doc LICENSE
%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}