[packages/ghc-conduit] - new

qboosh qboosh at pld-linux.org
Sat Dec 21 16:44:13 CET 2013


commit 5c44ed1b11d574ad1abd79c7b67b844dc24b63ae
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Dec 21 16:44:10 2013 +0100

    - new

 ghc-conduit.spec | 206 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 206 insertions(+)
---
diff --git a/ghc-conduit.spec b/ghc-conduit.spec
new file mode 100644
index 0000000..0ec4686
--- /dev/null
+++ b/ghc-conduit.spec
@@ -0,0 +1,206 @@
+#
+# Conditional build:
+%bcond_without	prof	# profiling library
+#
+%define		pkgname	conduit
+Summary:	Streaming data processing library
+Summary(pl.UTF-8):	Biblioteka przetwarzania danych strumieniowych
+Name:		ghc-%{pkgname}
+Version:	1.0.9.3
+Release:	1
+License:	BSD
+Group:		Development/Languages
+#Source0Download: http://hackage.haskell.org/package/conduit
+Source0:	http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5:	29313bacd0463b86ed04104cce355aba
+URL:		http://hackage.haskell.org/package/conduit
+BuildRequires:	ghc >= 6.12.3
+BuildRequires:	ghc-base >= 4.3
+BuildRequires:	ghc-base < 5
+BuildRequires:	ghc-bytestring >= 0.9
+BuildRequires:	ghc-containers
+BuildRequires:	ghc-directory
+BuildRequires:	ghc-lifted-base >= 0.1
+BuildRequires:	ghc-mmorph
+BuildRequires:	ghc-monad-control >= 0.3.1
+BuildRequires:	ghc-monad-control < 0.4
+BuildRequires:	ghc-mtl
+BuildRequires:	ghc-resourcet >= 0.4.3
+BuildRequires:	ghc-resourcet < 0.5
+BuildRequires:	ghc-text >= 0.11
+BuildRequires:	ghc-transformers >= 0.2.2
+BuildRequires:	ghc-transformers < 0.4
+BuildRequires:	ghc-transformers-base >= 0.4.1
+BuildRequires:	ghc-transformers-base < 0.5
+BuildRequires:	ghc-void >= 0.5.5
+%if %{with prof}
+BuildRequires:	ghc-prof >= 6.12.3
+BuildRequires:	ghc-base-prof >= 4.3
+BuildRequires:	ghc-base-prof < 5
+BuildRequires:	ghc-bytestring-prof >= 0.9
+BuildRequires:	ghc-containers-prof
+BuildRequires:	ghc-directory-prof
+BuildRequires:	ghc-lifted-base-prof >= 0.1
+BuildRequires:	ghc-mmorph-prof
+BuildRequires:	ghc-monad-control-prof >= 0.3.1
+BuildRequires:	ghc-monad-control-prof < 0.4
+BuildRequires:	ghc-mtl-prof
+BuildRequires:	ghc-resourcet-prof >= 0.4.3
+BuildRequires:	ghc-resourcet-prof < 0.5
+BuildRequires:	ghc-text-prof >= 0.11
+BuildRequires:	ghc-transformers-prof >= 0.2.2
+BuildRequires:	ghc-transformers-prof < 0.4
+BuildRequires:	ghc-transformers-base-prof >= 0.4.1
+BuildRequires:	ghc-transformers-base-prof < 0.5
+BuildRequires:	ghc-void-prof >= 0.5.5
+%endif
+BuildRequires:	rpmbuild(macros) >= 1.608
+Requires(post,postun):	/usr/bin/ghc-pkg
+%requires_eq	ghc
+Requires:	ghc-base >= 4.3
+Requires:	ghc-base < 5
+Requires:	ghc-bytestring >= 0.9
+Requires:	ghc-containers
+Requires:	ghc-directory
+Requires:	ghc-lifted-base >= 0.1
+Requires:	ghc-mmorph
+Requires:	ghc-monad-control >= 0.3.1
+Requires:	ghc-monad-control < 0.4
+Requires:	ghc-mtl
+Requires:	ghc-resourcet >= 0.4.3
+Requires:	ghc-resourcet < 0.5
+Requires:	ghc-text >= 0.11
+Requires:	ghc-transformers >= 0.2.2
+Requires:	ghc-transformers < 0.4
+Requires:	ghc-transformers-base >= 0.4.1
+Requires:	ghc-transformers-base < 0.5
+Requires:	ghc-void >= 0.5.5
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# debuginfo is not useful for ghc
+%define		_enable_debug_packages	0
+
+# don't compress haddock files
+%define		_noautocompressdoc	*.haddock
+
+%description
+conduit is a solution to the streaming data problem, allowing for
+production, transformation, and consumption of streams of data in
+constant memory. It is an alternative to lazy I/O which guarantees
+deterministic resource handling, and fits in the same general solution
+space as enumerator/iteratee and pipes.
+
+%description -l pl.UTF-8
+conduit to rozwiązanie problemu danych strumieniowych, pozwalające na
+produkcję, przekształcanie oraz konsumpcję strumieni danych ze stałą
+złożonością pamięciową. Jest to alternatywa dla leniwego we/wy,
+gwarantująca deterministyczną obsługę zasobów, mieszcząca się w tej
+samej przestrzeni rozwiązań ogólnych, co enumerator/iteratee oraz
+potoki.
+
+%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.3
+Requires:	ghc-base-prof < 5
+Requires:	ghc-bytestring-prof >= 0.9
+Requires:	ghc-containers-prof
+Requires:	ghc-directory-prof
+Requires:	ghc-lifted-base-prof >= 0.1
+Requires:	ghc-mmorph-prof
+Requires:	ghc-monad-control-prof >= 0.3.1
+Requires:	ghc-monad-control-prof < 0.4
+Requires:	ghc-mtl-prof
+Requires:	ghc-resourcet-prof >= 0.4.3
+Requires:	ghc-resourcet-prof < 0.5
+Requires:	ghc-text-prof >= 0.11
+Requires:	ghc-transformers-prof >= 0.2.2
+Requires:	ghc-transformers-prof < 0.4
+Requires:	ghc-transformers-base-prof >= 0.4.1
+Requires:	ghc-transformers-base-prof < 0.5
+Requires:	ghc-void-prof >= 0.5.5
+
+%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 ghc %{pkgname} package
+Summary(pl.UTF-8):	Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}
+Group:		Documentation
+
+%description doc
+HTML documentation for ghc %{pkgname} 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 \
+	%{?with_prof:--enable-library-profiling} \
+	--prefix=%{_prefix} \
+	--libdir=%{_libdir} \
+	--libexecdir=%{_libexecdir} \
+	--docdir=%{_docdir}/%{name}-%{version}
+
+runhaskell Setup.lhs build
+runhaskell Setup.lhs haddock --executables
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
+
+runhaskell Setup.lhs 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} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+
+runhaskell Setup.lhs register \
+	--gen-pkg-config=$RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%ghc_pkg_recache
+
+%postun
+%ghc_pkg_recache
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE
+%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/HSconduit-%{version}.o
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSconduit-%{version}.a
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Conduit.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Conduit
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Conduit/*.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/System
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/System/PosixFile.hi
+
+%if %{with prof}
+%files prof
+%defattr(644,root,root,755)
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSconduit-%{version}_p.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Conduit.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Conduit/*.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/System/PosixFile.p_hi
+%endif
+
+%files doc
+%defattr(644,root,root,755)
+%doc %{name}-%{version}-doc/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ghc-conduit.git/commitdiff/5c44ed1b11d574ad1abd79c7b67b844dc24b63ae



More information about the pld-cvs-commit mailing list