commit 2051a616a673df4f23e55f721276e8f68e8871a6
Author: Jakub Bogusz <[email protected]>
Date:   Tue Dec 10 20:07:44 2013 +0100

    - updated to 3.1.4
    - unified, added -prof package

 ghc-parsec.spec | 96 ++++++++++++++++++++++++++++++++++++++++++++++++---------
 1 file changed, 82 insertions(+), 14 deletions(-)
---
diff --git a/ghc-parsec.spec b/ghc-parsec.spec
index 517df64..e74c596 100644
--- a/ghc-parsec.spec
+++ b/ghc-parsec.spec
@@ -1,16 +1,27 @@
+#
+# Conditional build:
+%bcond_without prof    # profiling library
+#
 %define                pkgname parsec
-Summary:       A Haskell binding to the parsec graphics library
+Summary:       Monadic parser combinators
+Summary(pl.UTF-8):     Monadowe kombinatory analizatorów
 Name:          ghc-%{pkgname}
-Version:       3.1.3
-Release:       0.1
+Version:       3.1.4
+Release:       1
 License:       BSD
 Group:         Development/Languages
-Source0:       
http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
-# Source0-md5: d72fc94b81153132c61125a1ec52a4a5
-URL:           http://hackage.haskell.org/package/parsec/
+#Source0Download: http://hackage.haskell.org/package/parsec
+Source0:       
http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5: 22fe2b1ebaad74ae3d00d066c3046314
+URL:           http://hackage.haskell.org/package/parsec
 BuildRequires: ghc >= 6.12.3
 BuildRequires: ghc-mtl
 BuildRequires: ghc-text >= 0.2
+%if %{with prof}
+BuildRequires: ghc-prof >= 6.12.3
+BuildRequires: ghc-mtl-prof
+BuildRequires: ghc-text-prof >= 0.2
+%endif
 BuildRequires: rpmbuild(macros) >= 1.608
 %requires_eq   ghc
 Requires:      ghc-mtl
@@ -21,24 +32,54 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                _enable_debug_packages  0
 
 %description
-A Haskell binding to the parsec graphics library.
+Parsec is designed from scratch as an industrial-strength parser
+library. It is simple, safe, well documented (on the package
+homepage), has extensive libraries and good error messages, and is
+also fast. It is defined as a monad transformer that can be stacked on
+arbitrary monads, and it is also parametric in the input stream type.
+
+%description -l pl.UTF-8
+Parsec został zaprojektowany od początku jako biblioteka analizatorów
+o przemysłowych możliwościach. Jest prosta, bezpieczna, dobrze
+udokumentowana (na stronie domowej pakietu), ma obszerne biblioteki i
+dobre komunikaty błędów, a także jest szybka. Analizator jest
+zdefiniowany jako transformator monad, który można stosować na
+dowolnych monadach; jest także parametryzowany typem strumienia
+wejściowego.
+
+%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-mtl-prof
+Requires:      ghc-text-prof >= 0.2
+
+%description prof
+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}
-Summary(pl.UTF-8):     Dokumentacja w formacie HTML dla %{pkgname}
+Summary:       HTML documentation for ghc %{pkgname} package
+Summary(pl.UTF-8):     Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}
 Group:         Documentation
 
 %description doc
-HTML documentation for %{pkgname}.
+HTML documentation for ghc %{pkgname} package.
 
 %description doc -l pl.UTF-8
-Dokumentacja w formacie HTML dla %{pkgname}.
+Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}.
 
 %prep
 %setup -q -n %{pkgname}-%{version}
 
 %build
 runhaskell Setup.hs configure -v2 \
+       %{?with_prof:--enable-library-profiling} \
        --prefix=%{_prefix} \
        --libdir=%{_libdir} \
        --libexecdir=%{_libexecdir} \
@@ -54,12 +95,12 @@ install -d 
$RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
 runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
 
 # work around automatic haddock docs installation
-rm -rf %{name}-%{version}-doc
+%{__rm} -rf %{name}-%{version}-doc
 cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{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
@@ -72,8 +113,35 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc CHANGES LICENSE
 %{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/HSparsec-%{version}.o
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSparsec-%{version}.a
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Parsec.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Parsec
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Parsec/*.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Parsec/ByteString
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Parsec/ByteString/*.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Parsec/Text
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Parsec/Text/*.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/ParserCombinators
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/ParserCombinators/Parsec.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/ParserCombinators/Parsec
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/ParserCombinators/Parsec/*.hi
+
+%if %{with prof}
+%files prof
+%defattr(644,root,root,755)
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSparsec-%{version}_p.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Parsec.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Parsec/*.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Parsec/ByteString/*.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Parsec/Text/*.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/ParserCombinators/Parsec.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/ParserCombinators/Parsec/*.p_hi
+%endif
 
 %files doc
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ghc-parsec.git/commitdiff/2051a616a673df4f23e55f721276e8f68e8871a6

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to