|
|
|
@ -1,33 +1,57 @@
|
|
|
|
|
# cabal2spec-0.25.2
|
|
|
|
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
|
|
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
|
|
|
|
|
|
|
|
|
|
%global pkg_name HTTP
|
|
|
|
|
|
|
|
|
|
%global common_summary Haskell HTTP client library
|
|
|
|
|
|
|
|
|
|
%global common_description A Haskell library for client-side HTTP.
|
|
|
|
|
|
|
|
|
|
Name: ghc-%{pkg_name}
|
|
|
|
|
# part of haskell-platform
|
|
|
|
|
Version: 4000.2.2
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: %{common_summary}
|
|
|
|
|
Version: 4000.2.8
|
|
|
|
|
Release: 31%{?dist}
|
|
|
|
|
Summary: A library for client-side HTTP
|
|
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
License: BSD
|
|
|
|
|
# BEGIN cabal2spec
|
|
|
|
|
URL: http://hackage.haskell.org/package/%{pkg_name}
|
|
|
|
|
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
|
|
|
|
|
ExclusiveArch: %{ghc_arches}
|
|
|
|
|
Source0: http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
|
BuildRequires: ghc-rpm-macros %{!?without_hscolour:hscolour}
|
|
|
|
|
# END cabal2spec
|
|
|
|
|
BuildRequires: ghc-mtl-prof
|
|
|
|
|
BuildRequires: ghc-network-prof
|
|
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
|
# Begin cabal-rpm deps:
|
|
|
|
|
BuildRequires: ghc-array-devel
|
|
|
|
|
BuildRequires: ghc-bytestring-devel
|
|
|
|
|
BuildRequires: ghc-mtl-devel
|
|
|
|
|
BuildRequires: ghc-network-devel
|
|
|
|
|
BuildRequires: ghc-old-time-devel
|
|
|
|
|
BuildRequires: ghc-parsec-devel
|
|
|
|
|
# End cabal-rpm deps
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%{common_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.
|
|
|
|
|
|
|
|
|
|
A basic API for issuing single HTTP requests + receiving responses is provided.
|
|
|
|
|
On top of that, a session-level abstraction is also on offer (the
|
|
|
|
|
'BrowserAction' monad); it taking care of handling the management of persistent
|
|
|
|
|
connections, proxies, state (cookies) and authentication credentials required
|
|
|
|
|
to handle multi-step interactions with a web server.
|
|
|
|
|
|
|
|
|
|
The representation of the bytes flowing across is extensible via the use of a
|
|
|
|
|
type class, letting you pick the representation of requests and responses that
|
|
|
|
|
best fits your use. Some pre-packaged, common instances are provided for you
|
|
|
|
|
('ByteString', 'String').
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Haskell %{pkg_name} library development files
|
|
|
|
|
Provides: %{name}-static = %{version}-%{release}
|
|
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
|
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This package provides the Haskell %{pkg_name} library development files.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
@ -42,19 +66,27 @@ BuildRequires: ghc-network-prof
|
|
|
|
|
%ghc_lib_install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%ghc_devel_package
|
|
|
|
|
%post devel
|
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
|
|
%ghc_devel_description
|
|
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
|
|
%ghc_devel_post_postun
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
|
|
%ghc_files LICENSE
|
|
|
|
|
%doc CHANGES
|
|
|
|
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Feb 18 2014 Jens Petersen <petersen@redhat.com> - 4000.2.8-31
|
|
|
|
|
- update to 4000.2.8
|
|
|
|
|
- bump release over haskell-platform
|
|
|
|
|
- revive package with cblrpm-0.8.9
|
|
|
|
|
|
|
|
|
|
* Tue Mar 20 2012 Jens Petersen <petersen@redhat.com> - 4000.2.2-1
|
|
|
|
|
- update to 4000.2.2
|
|
|
|
|
|
|
|
|
|