[packages/ghc-HTTP] - new
qboosh
qboosh at pld-linux.org
Sun Dec 15 19:42:34 CET 2013
commit 8609bcf8e90bb62d17bb32bc4ed87fbfa1c1d29a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Dec 15 19:44:04 2013 +0100
- new
ghc-HTTP.spec | 168 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 168 insertions(+)
---
diff --git a/ghc-HTTP.spec b/ghc-HTTP.spec
new file mode 100644
index 0000000..40d78e2
--- /dev/null
+++ b/ghc-HTTP.spec
@@ -0,0 +1,168 @@
+#
+# Conditional build:
+%bcond_without prof # profiling library
+#
+%define pkgname HTTP
+Summary: A library for client-side HTTP
+Summary(pl.UTF-8): Biblioteka kliencka HTTP
+Name: ghc-%{pkgname}
+Version: 4000.2.10
+Release: 1
+License: BSD
+Group: Development/Languages
+#Source0Download: http://hackage.haskell.org/package/HTTP
+Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5: 45d237b5fc81a325966a611a33b9b296
+URL: http://hackage.haskell.org/package/HTTP
+BuildRequires: ghc >= 6.12.3
+BuildRequires: ghc-array
+BuildRequires: ghc-base >= 3
+BuildRequires: ghc-base < 4.8
+BuildRequires: ghc-bytestring
+BuildRequires: ghc-mtl >= 2.0
+BuildRequires: ghc-mtl < 2.2
+BuildRequires: ghc-network < 2.5
+BuildRequires: ghc-old-time
+BuildRequires: ghc-parsec
+%if %{with prof}
+BuildRequires: ghc-prof >= 6.12.3
+BuildRequires: ghc-array-prof
+BuildRequires: ghc-base-prof >= 3
+BuildRequires: ghc-base-prof < 4.8
+BuildRequires: ghc-bytestring-prof
+BuildRequires: ghc-mtl-prof >= 2.0
+BuildRequires: ghc-mtl-prof < 2.2
+BuildRequires: ghc-network-prof < 2.5
+BuildRequires: ghc-old-time-prof
+BuildRequires: ghc-parsec-prof
+%endif
+BuildRequires: rpmbuild(macros) >= 1.608
+Requires(post,postun): /usr/bin/ghc-pkg
+%requires_eq ghc
+Requires: ghc-array
+Requires: ghc-base >= 3
+Requires: ghc-base < 4.8
+Requires: ghc-bytestring
+Requires: ghc-mtl >= 2.0
+Requires: ghc-mtl < 2.2
+Requires: ghc-network < 2.5
+Requires: ghc-old-time
+Requires: ghc-parsec
+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
+The HTTP package supports client-side web programming in Haskell. It
+lets you set up HTTP connections, transmitting requests and processing
+the responses coming back, all from within the comforts of Haskell.
+It's dependent on the network package to operate, but other than that,
+the implementation is all written in Haskell.
+
+%description -l pl.UTF-8
+Pakiet HTTP wspiera programowanie strony klienckiej WWW w Haskellu.
+Pozwala na ustanawianie połączeń HTTP, transmisję żądań i
+przetwarzanie nadchodzących odpowiedzi - wszystko z poziomu komfortu
+Haskella. Do operacji sieciowych używa pakietu network, ale cała
+reszta jest zaimplementowana w Haskellu.
+
+%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-array-prof
+Requires: ghc-base-prof >= 3
+Requires: ghc-base-prof < 4.8
+Requires: ghc-bytestring-prof
+Requires: ghc-mtl-prof >= 2.0
+Requires: ghc-mtl-prof < 2.2
+Requires: ghc-network-prof < 2.5
+Requires: ghc-old-time-prof
+Requires: ghc-parsec-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.
+
+%package doc
+Summary: HTML documentation for %{pkgname} ghc package
+Summary(pl.UTF-8): Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}
+Group: Documentation
+
+%description doc
+HTML documentation for %{pkgname} ghc 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} -rf $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 CHANGES LICENSE
+%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/HSHTTP-%{version}.o
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSHTTP-%{version}.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Paths_HTTP.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Network
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Network/*.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Network/HTTP
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Network/HTTP/*.hi
+
+%if %{with prof}
+%files prof
+%defattr(644,root,root,755)
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSHTTP-%{version}_p.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Paths_HTTP.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Network/*.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Network/HTTP/*.p_hi
+%endif
+
+%files doc
+%defattr(644,root,root,755)
+%doc %{name}-%{version}-doc/*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ghc-HTTP.git/commitdiff/8609bcf8e90bb62d17bb32bc4ed87fbfa1c1d29a
More information about the pld-cvs-commit
mailing list