[packages/ghc-attoparsec] - updated to 0.10.4.0 - added prof bcond, html docs moved to -doc
qboosh
qboosh at pld-linux.org
Sun Dec 8 18:00:41 CET 2013
commit 63614f3923e38a82cd346c23ababf4fc7406fc88
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Dec 8 18:02:07 2013 +0100
- updated to 0.10.4.0
- added prof bcond, html docs moved to -doc
ghc-attoparsec.spec | 63 ++++++++++++++++++++++++++++++++++++++---------------
1 file changed, 46 insertions(+), 17 deletions(-)
---
diff --git a/ghc-attoparsec.spec b/ghc-attoparsec.spec
index a5093d9..98b1a47 100644
--- a/ghc-attoparsec.spec
+++ b/ghc-attoparsec.spec
@@ -1,15 +1,23 @@
+#
+# Conditional build:
+%bcond_without prof # profiling library
+#
%define pkgname attoparsec
Summary: Fast combinator parsing for bytestrings
+Summary(pl.UTF-8): Szybki kombinator analizujący łańcuchy bajtów
Name: ghc-%{pkgname}
-Version: 0.10.2.0
-Release: 3
-License: BSD3
+Version: 0.10.4.0
+Release: 1
+License: BSD
Group: Development/Languages
-Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
-# Source0-md5: 2829428e242ae4ddde54cbb08f8a7ab6
-URL: http://hackage.haskell.org/package/attoparsec/
+#Source0Download: http://hackage.haskell.org/package/attoparsec
+Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5: 2b9ec5768797e8c649bf36efa9ef97e2
+URL: http://hackage.haskell.org/package/attoparsec
BuildRequires: ghc >= 6.12.3
-BuildRequires: ghc-prof
+%{?with_prof:BuildRequires: ghc-prof}
+BuildRequires: ghc-text >= 0.11.1.5
+%{?with_prof:BuildRequires: ghc-text-prof >= 0.11.1.5}
BuildRequires: rpmbuild(macros) >= 1.608
%requires_releq ghc
Requires(post,postun): /usr/bin/ghc-pkg
@@ -26,25 +34,42 @@ A fast parser combinator library, aimed particularly at dealing
efficiently with network protocols and complicated text/binary file
formats.
+%description -l pl.UTF-8
+Biblioteka szybkiego kombinatora analizatorów, przeznaczona
+szczególnie do efektywnej obsługi protokołów sieciowych oraz
+skomplikowanych formatów plików tekstowo-binarnych.
+
%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}
%description prof
-Profiling %{pkgname} library for GHC. Should be installed when
+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
kiedy potrzebujemy systemu profilującego z GHC.
+%package doc
+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} ghc package.
+
+%description doc -l pl.UTF-8
+Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}.
+
%prep
%setup -q -n %{pkgname}-%{version}
%build
-runhaskell Setup.lhs configure -v2 --enable-library-profiling \
+runhaskell Setup.lhs configure -v2 \
+ %{?with_prof:--enable-library-profiling} \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--libexecdir=%{_libexecdir} \
@@ -65,7 +90,7 @@ cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
%{__rm} -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
runhaskell Setup.lhs 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
@@ -78,13 +103,11 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc %{name}-%{version}-doc/*
+%doc LICENSE README.markdown
%{_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}/HSattoparsec-%{version}.o
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSattoparsec-%{version}.a
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/*.hi
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Attoparsec
@@ -96,11 +119,17 @@ rm -rf $RPM_BUILD_ROOT
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Attoparsec/Text
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Attoparsec/Text/*.hi
+%if %{with prof}
%files prof
%defattr(644,root,root,755)
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSattoparsec-%{version}_p.a
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/*.p_hi
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Attoparsec/*.p_hi
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Attoparsec/ByteString/*.p_hi
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Attoparsec/Internal/*.p_hi
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Attoparsec/Text/*.p_hi
+%endif
+
+%files doc
+%defattr(644,root,root,755)
+%doc %{name}-%{version}-doc/*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ghc-attoparsec.git/commitdiff/63614f3923e38a82cd346c23ababf4fc7406fc88
More information about the pld-cvs-commit
mailing list