[packages/ghc-network] - updated to 2.4.2.1 - unified, added -prof package

qboosh qboosh at pld-linux.org
Tue Dec 10 20:44:43 CET 2013


commit 9a8589aca90e1cd103730420e51f508de869c5c8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Dec 10 20:46:13 2013 +0100

    - updated to 2.4.2.1
    - unified, added -prof package

 ghc-network.spec | 76 +++++++++++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 62 insertions(+), 14 deletions(-)
---
diff --git a/ghc-network.spec b/ghc-network.spec
index cfbe9df..629c64a 100644
--- a/ghc-network.spec
+++ b/ghc-network.spec
@@ -1,15 +1,23 @@
+#
+# Conditional build:
+%bcond_without	prof	# profiling library
+#
 %define		pkgname	network
-Summary:	A Haskell binding to the network graphics library
+Summary:	Low-level networking interface
+Summary(pl.UTF-8):	Niskopoziomowy interfejs do operacji sieciowych
 Name:		ghc-%{pkgname}
-Version:	2.4.1.2
-Release:	0.1
+Version:	2.4.2.1
+Release:	1
 License:	BSD
 Group:		Development/Languages
-Source0:	http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
-# Source0-md5:	032075c35dea5d23923af3928f9a5511
-URL:		http://hackage.haskell.org/package/network/
+#Source0Download: http://hackage.haskell.org/package/network
+Source0:	http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5:	ed1ec6ecd7eb71bd7239a872f3aebeb5
+URL:		http://hackage.haskell.org/package/network
 BuildRequires:	ghc >= 6.12.3
+%{?with_prof:BuildRequires:	ghc-prof >= 6.12.3}
 BuildRequires:	ghc-parsec >= 3.0
+%{?with_prof:BuildRequires:	ghc-parsec-prof >= 3.0}
 BuildRequires:	rpmbuild(macros) >= 1.608
 %requires_eq	ghc
 Requires:	ghc-parsec >= 3.0
@@ -19,24 +27,43 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define		_enable_debug_packages	0
 
 %description
-A Haskell binding to the network graphics library.
+Low-level networking interface.
+
+%description -l pl.UTF-8
+Niskopoziomowy interfejs do operacji sieciowych.
+
+%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-parsec-prof >= 3.0
+
+%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} \
@@ -52,12 +79,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
@@ -70,8 +97,29 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc LICENSE README
 %{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/HSnetwork-%{version}.o
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSnetwork-%{version}.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Network.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Network
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Network/*.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Network/Socket
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Network/Socket/*.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Network/Socket/ByteString
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Network/Socket/ByteString/*.hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/include
+
+%if %{with prof}
+%files prof
+%defattr(644,root,root,755)
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSnetwork-%{version}_p.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Network.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Network/*.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Network/Socket/*.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Network/Socket/ByteString/*.p_hi
+%endif
 
 %files doc
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ghc-network.git/commitdiff/9a8589aca90e1cd103730420e51f508de869c5c8



More information about the pld-cvs-commit mailing list