]> git.pld-linux.org Git - packages/ghc-blaze-builder-enumerator.git/commitdiff
- pl, unified, added prof bcond, release 2 auto/th/ghc-blaze-builder-enumerator-0.2.0.5-2
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 23 Dec 2013 16:43:47 +0000 (17:43 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 23 Dec 2013 16:43:47 +0000 (17:43 +0100)
ghc-blaze-builder-enumerator.spec

index 0c68c80624d228968b8a369400f508b4953218f5..8b01f81bf1a980ceb980789d410a6dd8958f98fe 100644 (file)
@@ -1,45 +1,95 @@
+#
+# Conditional build:
+%bcond_without prof    # profiling library
+#
 %define                pkgname blaze-builder-enumerator
 Summary:       Enumeratees for the incremental conversion of builders to bytestrings
+Summary(pl.UTF-8):     Funkcje enumeratee do przyrostowej konwersji builderów do łańcuchów bajtów
 Name:          ghc-%{pkgname}
 Version:       0.2.0.5
-Release:       1
+Release:       2
 License:       BSD
 Group:         Development/Languages
-Source0:       http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
+#Source0Download: http://hackage.haskell.org/package/blaze-builder-enumerator
+Source0:       http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
 # Source0-md5: 735b6422d93043554db61297e047a5f5
-URL:           http://hackage.haskell.org/package/PACKAGE_NAME/
+URL:           http://hackage.haskell.org/package/blaze-builder-enumerator
 BuildRequires: ghc >= 6.12.3
-BuildRequires: ghc-prof
-BuildRequires: ghc-blaze-builder
-BuildRequires: ghc-blaze-builder-prof
-BuildRequires: ghc-enumerator
-BuildRequires: ghc-enumerator-prof
+BuildRequires: ghc-base >= 4
+BuildRequires: ghc-base < 5
+BuildRequires: ghc-blaze-builder >= 0.2.1.4
+BuildRequires: ghc-blaze-builder < 0.4
+BuildRequires: ghc-bytestring >= 0.9
+BuildRequires: ghc-bytestring < 0.11
+BuildRequires: ghc-enumerator >= 0.4.3.1
+BuildRequires: ghc-enumerator < 0.5
+BuildRequires: ghc-transformers >= 0.2
+BuildRequires: ghc-transformers < 0.4
+%if %{with prof}
+BuildRequires: ghc-prof >= 6.12.3
+BuildRequires: ghc-base-prof >= 4
+BuildRequires: ghc-base-prof < 5
+BuildRequires: ghc-blaze-builder-prof >= 0.2.1.4
+BuildRequires: ghc-blaze-builder-prof < 0.4
+BuildRequires: ghc-bytestring-prof >= 0.9
+BuildRequires: ghc-bytestring-prof < 0.11
+BuildRequires: ghc-enumerator-prof >= 0.4.3.1
+BuildRequires: ghc-enumerator-prof < 0.5
+BuildRequires: ghc-transformers-prof >= 0.2
+BuildRequires: ghc-transformers-prof < 0.4
+%endif
 BuildRequires: rpmbuild(macros) >= 1.608
-%requires_releq        ghc
 Requires(post,postun): /usr/bin/ghc-pkg
-Requires:      ghc-blaze-builder
-Requires:      ghc-enumerator
+%requires_releq        ghc
+Requires:      ghc-base >= 4
+Requires:      ghc-base < 5
+Requires:      ghc-blaze-builder >= 0.2.1.4
+Requires:      ghc-blaze-builder < 0.4
+Requires:      ghc-bytestring >= 0.9
+Requires:      ghc-bytestring < 0.11
+Requires:      ghc-enumerator >= 0.4.3.1
+Requires:      ghc-enumerator < 0.5
+Requires:      ghc-transformers >= 0.2
+Requires:      ghc-transformers < 0.4
 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
+This package integrates the builders from the blaze-builder package
+with the enumerator package. It provides infrastructure and
+enumeratees for incrementally executing builders and pass the filled
+chunks to a bytestring iteratee.
+
+%description -l pl.UTF-8
+Ten pakiet integruje buildery z pakietu blaze-builder z pakietem
+enumerator. Dostarcza infrastrukturę i funkcje enumeratee do
+przyrostowego wywoływania builderów i przekazywania wypełnionych
+porcji do funkcji iteratee łańcucha bajtów.
 
 %package prof
 Summary:       Profiling %{pkgname} library for GHC
 Summary(pl.UTF-8):     Biblioteka profilująca %{pkgname} dla GHC.
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
-Requires:      ghc-blaze-builder-prof
-Requires:      ghc-enumerator-prof
+Requires:      ghc-base-prof >= 4
+Requires:      ghc-base-prof < 5
+Requires:      ghc-blaze-builder-prof >= 0.2.1.4
+Requires:      ghc-blaze-builder-prof < 0.4
+Requires:      ghc-bytestring-prof >= 0.9
+Requires:      ghc-bytestring-prof < 0.11
+Requires:      ghc-enumerator-prof >= 0.4.3.1
+Requires:      ghc-enumerator-prof < 0.5
+Requires:      ghc-transformers-prof >= 0.2
+Requires:      ghc-transformers-prof < 0.4
 
 %description prof
-Profiling %{pkgname} library for GHC.  Should be installed when
-GHC's profiling subsystem is needed.
+Profiling %{pkgname} library for GHC. Should be installed when GHC's
+profiling subsystem is needed.
 
 %description prof -l pl.UTF-8
 Biblioteka profilująca %{pkgname} dla GHC. Powinna być zainstalowana
@@ -49,7 +99,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 +121,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 +134,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc CHANGES
-%doc %{name}-%{version}-doc/*
+%doc CHANGES %{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-enumerator-%{version}.o
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSblaze-builder-enumerator-%{version}.a
 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Blaze
 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Blaze/ByteString
 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Blaze/ByteString/Builder
@@ -98,5 +146,5 @@ rm -rf $RPM_BUILD_ROOT
 
 %files prof
 %defattr(644,root,root,755)
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSblaze-builder-enumerator-%{version}_p.a
 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Blaze/ByteString/Builder/*.p_hi
This page took 0.102285 seconds and 4 git commands to generate.