[packages/ghc-curl] - pl, unified, release 3

qboosh qboosh at pld-linux.org
Wed Dec 25 11:17:33 CET 2013


commit 1b74357b153a08a395623b99e4a72ac9f23b373d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Dec 25 11:17:46 2013 +0100

    - pl, unified, release 3

 ghc-curl.spec | 74 ++++++++++++++++++++++++++++++++++++++++++-----------------
 1 file changed, 53 insertions(+), 21 deletions(-)
---
diff --git a/ghc-curl.spec b/ghc-curl.spec
index 6a782e2..91cbb55 100644
--- a/ghc-curl.spec
+++ b/ghc-curl.spec
@@ -1,25 +1,45 @@
+#
+# Conditional build:
+%bcond_without	prof	# profiling library
+#
 %define		pkgname	curl
 Summary:	Haskell binding to libcurl
+Summary(pl.UTF-8):	Wiązanie Haskella do biblioteki libcurl
 Name:		ghc-%{pkgname}
 Version:	1.3.8
-Release:	2
+Release:	3
 License:	BSD
 Group:		Development/Languages
-Source0:	http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
+#Source0Download: http://hackage.haskell.org/package/curl
+Source0:	http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
 # Source0-md5:	853113e2ac933e203894a4588150821d
-URL:		http://hackage.haskell.org/package/curl/
+URL:		http://hackage.haskell.org/package/curl
 BuildRequires:	curl-devel
 BuildRequires:	ghc >= 6.12.3
-BuildRequires:	ghc-prof
+BuildRequires:	ghc-base >= 3
+BuildRequires:	ghc-base < 5
+BuildRequires:	ghc-bytestring >= 0.9
+BuildRequires:	ghc-containers
+%if %{with prof}
+BuildRequires:	ghc-prof >= 6.12.3
+BuildRequires:	ghc-base-prof >= 3
+BuildRequires:	ghc-base-prof < 5
+BuildRequires:	ghc-bytestring-prof >= 0.9
+BuildRequires:	ghc-containers-prof
+%endif
 BuildRequires:	rpmbuild(macros) >= 1.608
-%requires_releq	ghc
 Requires(post,postun):	/usr/bin/ghc-pkg
+Requires:	ghc-base >= 3
+Requires:	ghc-base < 5
+Requires:	ghc-bytestring >= 0.9
+Requires:	ghc-containers
+%requires_releq	ghc
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # debuginfo is not useful for ghc
 %define		_enable_debug_packages	0
 
-# don't compress haddoc files
+# don't compress haddock files
 %define		_noautocompressdoc	*.haddock
 
 %description
@@ -32,6 +52,18 @@ http proxy tunneling and more!
 
 This package provides a Haskell binding to libcurl.
 
+%description -l pl.UTF-8
+libcurl to biblioteka kliencka do przesyłania danych wskazanych przez
+URL-e, obsługująca protokoły FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP,
+TELNET, DICT, LDAP, LDAPS oraz FILE. libcurl obsługuje certyfikaty
+SSL, wysyłanie danych przez HTTP POST, HTTP PUT i FTP, pobieranie
+danych w oparciu o formularze HTTP, a także serwery proxy, ciasteczka,
+uwierzytelnianie nazwą użytkownika i hasłem (metody Basic, Digest,
+NTLM, Negotiate, Kerberos4), wznawianie transmisji plików, tunelowanie
+proxy HTTP itd.
+
+Ten pakiet zapewnia wiązanie Haskella do biblioteki libcurl.
+
 %package prof
 Summary:	Profiling %{pkgname} library for GHC
 Summary(pl.UTF-8):	Biblioteka profilująca %{pkgname} dla GHC.
@@ -39,8 +71,8 @@ Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
 
 %description prof
-Profiling %{pkgname} library for GHC.  Should be installed when
-GHC's profiling subsystem is needed.
+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
@@ -51,7 +83,8 @@ kiedy potrzebujemy systemu profilującego z GHC.
 
 %build
 %configure
-runhaskell Setup.hs configure -v2 --enable-library-profiling \
+runhaskell Setup.hs configure -v2 \
+	%{?with_prof:--enable-library-profiling} \
 	--prefix=%{_prefix} \
 	--libdir=%{_libdir} \
 	--libexecdir=%{_libexecdir} \
@@ -67,12 +100,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} %{name}-%{version}-doc
-rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+%{__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
@@ -85,21 +118,20 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc CHANGES
-%doc %{name}-%{version}-doc/*
+%doc CHANGES %{name}-%{version}-doc/*
 %{_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}/HScurl-%{version}.o
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHScurl-%{version}.a
 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Network
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Network/*.hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Network/Curl.hi
 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Network/Curl
 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Network/Curl/*.hi
 
+%if %{with prof}
 %files prof
 %defattr(644,root,root,755)
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Network/*.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHScurl-%{version}_p.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Network/Curl.p_hi
 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Network/Curl/*.p_hi
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ghc-curl.git/commitdiff/1b74357b153a08a395623b99e4a72ac9f23b373d



More information about the pld-cvs-commit mailing list