[packages/ghc-blaze-builder] - updated to 0.3.3.2, pl, added prof bcond
qboosh
qboosh at pld-linux.org
Sun Dec 15 20:43:54 CET 2013
commit f323c4d84f399e9b587fc814fa596b94ba2108b9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Dec 15 20:45:35 2013 +0100
- updated to 0.3.3.2, pl, added prof bcond
ghc-blaze-builder.spec | 77 +++++++++++++++++++++++++++++++++++++++-----------
1 file changed, 60 insertions(+), 17 deletions(-)
---
diff --git a/ghc-blaze-builder.spec b/ghc-blaze-builder.spec
index 302bcae..25ace12 100644
--- a/ghc-blaze-builder.spec
+++ b/ghc-blaze-builder.spec
@@ -1,24 +1,50 @@
+#
+# Conditional build:
+%bcond_without prof # profiling library
+#
%define pkgname blaze-builder
Summary: Efficient buffered output
+Summary(pl.UTF-8): Wydajne, buforowane wyjście
Name: ghc-%{pkgname}
-Version: 0.3.1.1
+Version: 0.3.3.2
Release: 1
License: BSD
Group: Development/Languages
-Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
-# Source0-md5: ca14afe9215dd44fe5dc4055a05ec560
-URL: http://hackage.haskell.org/package/PACKAGE_NAME/
+#Source0Download: http://hackage.haskell.org/package/blaze-builder
+Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5: e43342e3275f2cddf9a3e403786fc520
+URL: http://hackage.haskell.org/package/blaze-builder
BuildRequires: ghc >= 6.12.3
+BuildRequires: ghc-base >= 4
+BuildRequires: ghc-base < 5
+BuildRequires: ghc-bytestring >= 0.9
+BuildRequires: ghc-bytestring < 1
+BuildRequires: ghc-text >= 0.10
+BuildRequires: ghc-text < 1.2
+%if %{with prof}
BuildRequires: ghc-prof
+BuildRequires: ghc-base-prof >= 4
+BuildRequires: ghc-base-prof < 5
+BuildRequires: ghc-bytestring-prof >= 0.9
+BuildRequires: ghc-bytestring-prof < 1
+BuildRequires: ghc-text-prof >= 0.10
+BuildRequires: ghc-text-prof < 1.2
+%endif
BuildRequires: rpmbuild(macros) >= 1.608
-%requires_releq ghc
Requires(post,postun): /usr/bin/ghc-pkg
+%requires_releq ghc
+Requires: ghc-base >= 4
+Requires: ghc-base < 5
+Requires: ghc-bytestring >= 0.9
+Requires: ghc-bytestring < 1
+Requires: ghc-text >= 0.10
+Requires: ghc-text < 1.2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# debuginfo is not useful for ghc
%define _enable_debug_packages 0
-# don't compress haddoc files
+# don't compress haddock files
%define _noautocompressdoc *.haddock
%description
@@ -27,15 +53,32 @@ streams and several convenience functions to exploit it. For example,
it allows to efficiently serialize Haskell values to lazy bytestrings
with a large average chunk size. The large average chunk size allows
to make good use of cache prefetching in later processing steps
-(e.g. compression) and reduces the sytem call overhead when writing
+(e.g. compression) and reduces the system call overhead when writing
the resulting lazy bytestring to a file or sending it over the
network.
+%description -l pl.UTF-8
+Ta biblioteka zapewnia warstwę abstrakcji buforowanego wyjścia
+strumieni bajtów oraz kilka wygodnych funkcji do jej wykorzystania.
+Pozwala na przykład efektywnie serializować wartości haskellowe do
+leniwych łańcuchów bajtów o dużym przeciętnym rozmiarze bloku. Duży
+przeciętny rozmiar bloku pozwala na dobre wykorzystanie wypełniania
+pamięci podręcznej z wyprzedzeniem (prefetch) dla dalszych etapów
+przetwarzania (np. kompresji) i zmniejsza narzut wywołań systemowych
+przy zapisie wynikowych leniwych łańcuchów bajtów do pliku lub
+wysyłaniu ich przez sieć.
+
%package prof
Summary: Profiling %{pkgname} library for GHC
-Summary(pl.UTF-8): Biblioteka profilująca %{pkgname} dla GHC.
+Summary(pl.UTF-8): Biblioteka profilująca %{pkgname} dla GHC
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
+Requires: ghc-base-prof >= 4
+Requires: ghc-base-prof < 5
+Requires: ghc-bytestring-prof >= 0.9
+Requires: ghc-bytestring-prof < 1
+Requires: ghc-text-prof >= 0.10
+Requires: ghc-text-prof < 1.2
%description prof
Profiling %{pkgname} library for GHC. Should be installed when
@@ -49,7 +92,8 @@ kiedy potrzebujemy systemu profilującego z GHC.
%setup -q -n %{pkgname}-%{version}
%build
-runhaskell Setup.hs configure -v2 --enable-library-profiling \
+runhaskell Setup.hs configure -v2 \
+ %{?with_prof:--enable-library-profiling} \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--libexecdir=%{_libexecdir} \
@@ -70,7 +114,7 @@ cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{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
+ --gen-pkg-config=$RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
%clean
rm -rf $RPM_BUILD_ROOT
@@ -83,14 +127,11 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc CHANGES README* TODO
-%doc %{name}-%{version}-doc/*
+%doc CHANGES README* TODO %{name}-%{version}-doc/*
%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.o
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.a
-%exclude %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
-
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/HSblaze-builder-%{version}.o
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSblaze-builder-%{version}.a
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Blaze
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Blaze/ByteString
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Blaze/ByteString/*.hi
@@ -103,11 +144,13 @@ rm -rf $RPM_BUILD_ROOT
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Blaze/ByteString/Builder/Internal
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Blaze/ByteString/Builder/Internal/*.hi
+%if %{with prof}
%files prof
%defattr(644,root,root,755)
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSblaze-builder-%{version}_p.a
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Blaze/ByteString/*.p_hi
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Blaze/ByteString/Builder/*.p_hi
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Blaze/ByteString/Builder/Char/*.p_hi
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Blaze/ByteString/Builder/Html/*.p_hi
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Blaze/ByteString/Builder/Internal/*.p_hi
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ghc-blaze-builder.git/commitdiff/f323c4d84f399e9b587fc814fa596b94ba2108b9
More information about the pld-cvs-commit
mailing list