[packages/ghc-streaming-commons] - new

baggins baggins at pld-linux.org
Sat May 30 21:02:53 CEST 2020


commit 44364ee64c32986a8fc8bfc322d0f072761481ab
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat May 30 21:02:35 2020 +0200

    - new

 ghc-streaming-commons.spec | 155 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 155 insertions(+)
---
diff --git a/ghc-streaming-commons.spec b/ghc-streaming-commons.spec
new file mode 100644
index 0000000..4bd8af6
--- /dev/null
+++ b/ghc-streaming-commons.spec
@@ -0,0 +1,155 @@
+#
+# Conditional build:
+%bcond_without	prof	# profiling library
+#
+%define		pkgname	streaming-commons
+Summary:	Common lower-level functions needed by various streaming data libraries
+Name:		ghc-%{pkgname}
+Version:	0.2.1.2
+Release:	1
+License:	MIT
+Group:		Development/Languages
+#Source0Download: http://hackage.haskell.org/package/streaming-commons
+Source0:	http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5:	ce7f307504236140535e61408c000e63
+URL:		http://hackage.haskell.org/package/streaming-commons
+BuildRequires:	ghc >= 6.12.3
+BuildRequires:	ghc-async
+BuildRequires:	ghc-network >= 2.4.0.0
+BuildRequires:	ghc-random
+BuildRequires:	ghc-transformers
+BuildRequires:	ghc-zlib
+%if %{with prof}
+BuildRequires:	ghc-prof
+BuildRequires:	ghc-async-prof
+BuildRequires:	ghc-network-prof >= 2.4.0.0
+BuildRequires:	ghc-random-prof
+BuildRequires:	ghc-transformers-prof
+BuildRequires:	ghc-zlib-prof
+%endif
+BuildRequires:	rpmbuild(macros) >= 1.608
+%requires_eq	ghc
+Requires(post,postun):	/usr/bin/ghc-pkg
+Requires:	ghc-async
+Requires:	ghc-network >= 2.4.0.0
+Requires:	ghc-random
+Requires:	ghc-transformers
+Requires:	ghc-zlib
+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
+Provides low-dependency functionality commonly needed by various
+streaming data libraries, such as conduit and pipes.
+
+%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-async-prof
+Requires:	ghc-network-prof >= 2.4.0.0
+Requires:	ghc-random-prof
+Requires:	ghc-transformers-prof
+Requires:	ghc-zlib-prof
+
+%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.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+%build
+runhaskell Setup.hs configure -v2 \
+	%{?with_prof:--enable-library-profiling} \
+	--prefix=%{_prefix} \
+	--libdir=%{_libdir} \
+	--libexecdir=%{_libexecdir} \
+	--docdir=%{_docdir}/%{name}-%{version}
+
+runhaskell Setup.hs build
+runhaskell Setup.hs haddock --executables
+
+%install
+rm -rf $RPM_BUILD_ROOT
+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
+cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{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
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%ghc_pkg_recache
+
+%postun
+%ghc_pkg_recache
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog.md README.md %{name}-%{version}-doc/*
+%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.so
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.a
+%exclude %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
+
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Streaming
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Streaming/*.hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Streaming/*.dyn_hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Streaming/ByteString
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Streaming/ByteString/*.hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Streaming/ByteString/*.dyn_hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Streaming/ByteString/Builder
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Streaming/ByteString/Builder/*.hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Streaming/ByteString/Builder/*.dyn_hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Streaming/Network
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Streaming/Network/*.hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Streaming/Network/*.dyn_hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Streaming/Process
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Streaming/Process/*.hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Streaming/Process/*.dyn_hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Streaming/Zlib
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Streaming/Zlib/*.hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Streaming/Zlib/*.dyn_hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Text
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Text/Internal
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Text/Internal/Encoding
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Text/Internal/Encoding/*.hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Text/Internal/Encoding/*.dyn_hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Text/Internal/Unsafe
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Text/Internal/Unsafe/*.hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Text/Internal/Unsafe/*.dyn_hi
+
+%if %{with prof}
+%files prof
+%defattr(644,root,root,755)
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Streaming/*.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Streaming/ByteString/*.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Streaming/ByteString/Builder/*.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Streaming/Network/*.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Streaming/Process/*.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Streaming/Zlib/*.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Text/Internal/Encoding/*.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Text/Internal/Unsafe/*.p_hi
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ghc-streaming-commons.git/commitdiff/44364ee64c32986a8fc8bfc322d0f072761481ab



More information about the pld-cvs-commit mailing list