[packages/ghc-enumerator] - updated to 0.4.20, pl, unified, added prof bcond
qboosh
qboosh at pld-linux.org
Mon Dec 23 16:22:33 CET 2013
commit 97d7f9962b77482697fe7f5a98c23708b4041673
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Dec 23 16:22:13 2013 +0100
- updated to 0.4.20, pl, unified, added prof bcond
ghc-enumerator.spec | 69 ++++++++++++++++++++++++++++++++++++++++-------------
1 file changed, 53 insertions(+), 16 deletions(-)
---
diff --git a/ghc-enumerator.spec b/ghc-enumerator.spec
index 2fa1c29..6d1fe24 100644
--- a/ghc-enumerator.spec
+++ b/ghc-enumerator.spec
@@ -1,35 +1,71 @@
+#
+# Conditional build:
+%bcond_without prof # profiling library
+#
%define pkgname enumerator
Summary: Reliable, high-performance processing with left-fold enumerators
+Summary(pl.UTF-8): Wiarygodne, wysoko wydajne enumeratory fold left
Name: ghc-%{pkgname}
-Version: 0.4.19
-Release: 3
+Version: 0.4.20
+Release: 1
License: MIT
Group: Development/Languages
-Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
-# Source0-md5: 0f7a3c97af5cc0b7901a7899fe22e867
-URL: http://hackage.haskell.org/package/enumerator/
+#Source0Download: http://hackage.haskell.org/package/enumerator
+Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5: 69ab1712b13571dfcc7ae4f8a1dcb616
+URL: http://hackage.haskell.org/package/enumerator
BuildRequires: ghc >= 6.12.3
-BuildRequires: ghc-prof
+BuildRequires: ghc-base >= 4.0
+BuildRequires: ghc-base < 5
+BuildRequires: ghc-bytestring >= 0.9
+BuildRequires: ghc-containers >= 0.1
+BuildRequires: ghc-text >= 0.7
+BuildRequires: ghc-transformers >= 0.2
+%if %{with prof}
+BuildRequires: ghc-prof >= 6.12.3
+BuildRequires: ghc-base-prof >= 4.0
+BuildRequires: ghc-base-prof < 5
+BuildRequires: ghc-bytestring-prof >= 0.9
+BuildRequires: ghc-containers-prof >= 0.1
+BuildRequires: ghc-text-prof >= 0.7
+BuildRequires: ghc-transformers-prof >= 0.2
+%endif
BuildRequires: rpmbuild(macros) >= 1.608
-%requires_releq ghc
Requires(post,postun): /usr/bin/ghc-pkg
+%requires_releq ghc
+Requires: ghc-base >= 4.0
+Requires: ghc-base < 5
+Requires: ghc-bytestring >= 0.9
+Requires: ghc-containers >= 0.1
+Requires: ghc-text >= 0.7
+Requires: ghc-transformers >= 0.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
This library contains an enumerator implementation for Haskell,
designed to be both simple and efficient.
+%description -l pl.UTF-8
+Ta biblioteka zawiera implementację enumeratorów dla Haskella,
+zaprojektowaną z myślą o prostocie i wydajności.
+
%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-base-prof >= 4.0
+Requires: ghc-base-prof < 5
+Requires: ghc-bytestring-prof >= 0.9
+Requires: ghc-containers-prof >= 0.1
+Requires: ghc-text-prof >= 0.7
+Requires: ghc-transformers-prof >= 0.2
%description prof
Profiling %{pkgname} library for GHC. Should be installed when
@@ -43,7 +79,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} \
@@ -61,10 +98,10 @@ runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
# work around automatic haddock docs installation
%{__rm} -rf %{name}-%{version}-doc
cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
-%{__rm} -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+%{__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
@@ -80,17 +117,17 @@ rm -rf $RPM_BUILD_ROOT
%doc %{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}/HSenumerator-%{version}.o
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSenumerator-%{version}.a
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/*.hi
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Enumerator
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Enumerator/*.hi
+%if %{with prof}
%files prof
%defattr(644,root,root,755)
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSenumerator-%{version}_p.a
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/*.p_hi
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Enumerator/*.p_hi
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ghc-enumerator.git/commitdiff/97d7f9962b77482697fe7f5a98c23708b4041673
More information about the pld-cvs-commit
mailing list