[packages/ghc-text] - added prof bcond
qboosh
qboosh at pld-linux.org
Sun Dec 8 18:02:12 CET 2013
commit c4f6ac363389c2e57b50a2a68b13512b3512c0e3
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Dec 8 18:03:39 2013 +0100
- added prof bcond
ghc-text.spec | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/ghc-text.spec b/ghc-text.spec
index b0fd38c..4914d28 100644
--- a/ghc-text.spec
+++ b/ghc-text.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without prof # profiling library
+#
%define pkgname text
Summary: A Haskell library for manipulation of Unicode text
Summary(pl.UTF-8): Biblioteka Haskella do operacji na tekście kodowanym w Unicode
@@ -11,7 +15,7 @@ Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{v
# Source0-md5: 6c76d0b7a6e5d2f4e0d0359b28e4a3e2
URL: http://hackage.haskell.org/package/text
BuildRequires: ghc >= 6.12.3
-BuildRequires: ghc-prof >= 6.12.3
+%{?with_prof:BuildRequires: ghc-prof >= 6.12.3}
BuildRequires: rpmbuild(macros) >= 1.608
%requires_eq ghc
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -58,7 +62,7 @@ Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}.
%build
runhaskell Setup.lhs configure -v2 \
- --enable-library-profiling \
+ %{?with_prof:--enable-library-profiling} \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--libexecdir=%{_libexecdir} \
@@ -122,6 +126,7 @@ rm -rf $RPM_BUILD_ROOT
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Text/Unsafe
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Text/Unsafe/*.hi
+%if %{with prof}
%files prof
%defattr(644,root,root,755)
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHStext-%{version}_p.a
@@ -137,6 +142,7 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Text/Lazy/Builder/RealFloat/*.p_hi
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Text/Lazy/Encoding/*.p_hi
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Text/Unsafe/*.p_hi
+%endif
%files doc
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ghc-text.git/commitdiff/c4f6ac363389c2e57b50a2a68b13512b3512c0e3
More information about the pld-cvs-commit
mailing list