2018-01-24 13:10:23 +00:00
|
|
|
# generated by cabal-rpm-0.12.1
|
2014-02-18 09:08:40 +00:00
|
|
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
|
|
|
|
|
%global pkg_name HTTP
|
2017-02-22 01:04:31 +00:00
|
|
|
%global pkgver %{pkg_name}-%{version}
|
2014-02-18 09:08:40 +00:00
|
|
|
|
2014-05-30 15:20:54 +00:00
|
|
|
%bcond_with tests
|
|
|
|
|
2014-02-18 09:08:40 +00:00
|
|
|
Name: ghc-%{pkg_name}
|
|
|
|
# part of haskell-platform
|
2018-01-24 14:16:42 +00:00
|
|
|
Version: 4000.3.9
|
|
|
|
Release: 1%{?dist}
|
2014-03-26 04:44:23 +00:00
|
|
|
Summary: A library for client-side HTTP
|
2014-02-18 09:08:40 +00:00
|
|
|
|
|
|
|
License: BSD
|
2015-01-26 06:44:23 +00:00
|
|
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
2017-02-22 01:04:31 +00:00
|
|
|
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
2014-03-26 04:44:23 +00:00
|
|
|
|
2014-02-18 09:08:40 +00:00
|
|
|
BuildRequires: ghc-Cabal-devel
|
2014-03-26 04:44:23 +00:00
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
# Begin cabal-rpm deps:
|
|
|
|
BuildRequires: ghc-array-devel
|
|
|
|
BuildRequires: ghc-bytestring-devel
|
|
|
|
BuildRequires: ghc-mtl-devel
|
|
|
|
BuildRequires: ghc-network-devel
|
2016-06-07 01:46:23 +00:00
|
|
|
BuildRequires: ghc-network-uri-devel
|
2014-03-26 04:44:23 +00:00
|
|
|
BuildRequires: ghc-parsec-devel
|
2016-06-27 03:56:19 +00:00
|
|
|
BuildRequires: ghc-time-devel
|
2014-05-30 15:20:54 +00:00
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-HUnit-devel
|
|
|
|
BuildRequires: ghc-case-insensitive-devel
|
|
|
|
BuildRequires: ghc-conduit-devel
|
2016-06-07 01:46:23 +00:00
|
|
|
BuildRequires: ghc-conduit-extra-devel
|
2014-05-30 15:20:54 +00:00
|
|
|
BuildRequires: ghc-deepseq-devel
|
|
|
|
BuildRequires: ghc-http-types-devel
|
|
|
|
BuildRequires: ghc-httpd-shed-devel
|
|
|
|
BuildRequires: ghc-pureMD5-devel
|
|
|
|
BuildRequires: ghc-split-devel
|
|
|
|
BuildRequires: ghc-test-framework-devel
|
|
|
|
BuildRequires: ghc-test-framework-hunit-devel
|
|
|
|
BuildRequires: ghc-wai-devel
|
|
|
|
BuildRequires: ghc-warp-devel
|
|
|
|
%endif
|
2014-03-26 04:44:23 +00:00
|
|
|
# End cabal-rpm deps
|
2014-02-18 09:08:40 +00:00
|
|
|
|
|
|
|
%description
|
2014-03-26 04:44:23 +00:00
|
|
|
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
|
2015-01-26 06:44:23 +00:00
|
|
|
best fits your use. Some pre-packaged, common instances are provided for
|
|
|
|
'ByteString' and 'String'.
|
2014-03-26 04:44:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Haskell %{pkg_name} library development files
|
|
|
|
Provides: %{name}-static = %{version}-%{release}
|
2018-01-24 13:10:23 +00:00
|
|
|
Provides: %{name}-doc = %{version}-%{release}
|
|
|
|
%if %{defined ghc_version}
|
2014-03-26 04:44:23 +00:00
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
2018-01-24 13:10:23 +00:00
|
|
|
%endif
|
2014-03-26 04:44:23 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides the Haskell %{pkg_name} library development files.
|
2014-02-18 09:08:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2017-02-22 01:04:31 +00:00
|
|
|
%setup -q -n %{pkgver}
|
2014-02-18 09:08:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%ghc_lib_install
|
|
|
|
|
|
|
|
|
2014-05-30 15:20:54 +00:00
|
|
|
%check
|
2016-09-27 10:15:23 +00:00
|
|
|
%cabal_test
|
2014-05-30 15:20:54 +00:00
|
|
|
|
|
|
|
|
2018-01-24 13:10:23 +00:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
2014-03-26 04:44:23 +00:00
|
|
|
%post devel
|
|
|
|
%ghc_pkg_recache
|
2014-02-18 09:08:40 +00:00
|
|
|
|
|
|
|
|
2014-03-26 04:44:23 +00:00
|
|
|
%postun devel
|
|
|
|
%ghc_pkg_recache
|
2014-02-18 09:08:40 +00:00
|
|
|
|
|
|
|
|
2014-03-26 04:44:23 +00:00
|
|
|
%files -f %{name}.files
|
2016-06-07 01:46:23 +00:00
|
|
|
%license LICENSE
|
2014-02-18 09:08:40 +00:00
|
|
|
|
2014-03-26 04:44:23 +00:00
|
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
2014-02-18 09:08:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2018-01-24 14:16:42 +00:00
|
|
|
* Wed Jan 24 2018 Jens Petersen <petersen@redhat.com> - 4000.3.9-1
|
|
|
|
- update to 4000.3.9
|
|
|
|
|
2017-08-02 21:09:51 +00:00
|
|
|
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4000.3.5-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 09:31:32 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4000.3.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-22 01:04:31 +00:00
|
|
|
* Wed Feb 22 2017 Jens Petersen <petersen@redhat.com> - 4000.3.5-1
|
|
|
|
- update to 4000.3.5
|
|
|
|
|
2017-02-10 10:30:55 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4000.3.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-06-27 03:56:19 +00:00
|
|
|
* Mon Jun 27 2016 Jens Petersen <petersen@redhat.com> - 4000.3.3-1
|
|
|
|
- update to 4000.3.3
|
|
|
|
|
2016-06-07 01:46:23 +00:00
|
|
|
* Tue Jun 7 2016 Jens Petersen <petersen@redhat.com> - 4000.2.20-1
|
|
|
|
- update to 4000.2.20
|
|
|
|
|
2016-02-03 21:22:36 +00:00
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4000.2.10-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-06-17 07:27:38 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4000.2.10-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2014-08-07 15:11:21 +00:00
|
|
|
* Thu Aug 7 2014 Jens Petersen <petersen@redhat.com> - 4000.2.10-1
|
|
|
|
- update to 4000.2.10
|
|
|
|
|
2014-07-08 05:19:38 +00:00
|
|
|
* Tue Jul 8 2014 Jens Petersen <petersen@redhat.com> - 4000.2.8-33
|
|
|
|
- f21 rebuild
|
|
|
|
|
2014-05-30 15:20:54 +00:00
|
|
|
|
2014-03-26 04:47:05 +00:00
|
|
|
* Wed Mar 26 2014 Jens Petersen <petersen@redhat.com> - 4000.2.8-32
|
|
|
|
- bump over haskell-platform
|
|
|
|
|
2014-03-26 04:44:23 +00:00
|
|
|
* 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
|
|
|
|
|
2014-02-18 09:08:40 +00:00
|
|
|
* Tue Mar 20 2012 Jens Petersen <petersen@redhat.com> - 4000.2.2-1
|
|
|
|
- update to 4000.2.2
|
|
|
|
|
|
|
|
* Mon Jan 23 2012 Jens Petersen <petersen@redhat.com> - 4000.1.2-3
|
|
|
|
- update url
|
|
|
|
|
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4000.1.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Dec 28 2011 Jens Petersen <petersen@redhat.com> - 4000.1.2-1
|
|
|
|
- update to 4000.1.2 for haskell-platform-2011.4.0.0
|
|
|
|
- update to cabal2spec-0.25.1
|
|
|
|
|
|
|
|
* Mon Oct 24 2011 Marcela Mašláňová <mmaslano@redhat.com> - 4000.1.1-8.3
|
|
|
|
- rebuild with new gmp without compat lib
|
|
|
|
|
|
|
|
* Fri Oct 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 4000.1.1-8.2
|
|
|
|
- rebuild with new gmp without compat lib
|
|
|
|
|
|
|
|
* Tue Oct 11 2011 Peter Schiffer <pschiffe@redhat.com> - 4000.1.1-8.1
|
|
|
|
- rebuild with new gmp
|
|
|
|
|
|
|
|
* Tue Jun 21 2011 Jens Petersen <petersen@redhat.com> - 4000.1.1-8
|
|
|
|
- ghc_arches replaces ghc_excluded_archs
|
|
|
|
|
|
|
|
* Mon Jun 20 2011 Jens Petersen <petersen@redhat.com> - 4000.1.1-7
|
|
|
|
- BR ghc-Cabal-devel and use ghc_excluded_archs
|
|
|
|
|
|
|
|
* Fri May 27 2011 Jens Petersen <petersen@redhat.com> - 4000.1.1-6
|
|
|
|
- update to cabal2spec-0.23: add ppc64
|
|
|
|
|
|
|
|
* Thu Mar 10 2011 Fabio M. Di Nitto <fdinitto@redhat.com> - 4000.1.1-5
|
|
|
|
- Enable build on sparcv9
|
|
|
|
|
|
|
|
* Tue Feb 15 2011 Jens Petersen <petersen@redhat.com> - 4000.1.1-4
|
|
|
|
- rebuild for haskell-platform-2011.1 updates
|
|
|
|
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4000.1.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sat Jan 15 2011 Jens Petersen <petersen@redhat.com> - 4000.1.1-2
|
|
|
|
- update to cabal2spec-0.22.4
|
|
|
|
|
|
|
|
* Sun Dec 5 2010 Jens Petersen <petersen@redhat.com> - 4000.1.1-1
|
|
|
|
- update to 4000.1.1
|
|
|
|
|
|
|
|
* Thu Nov 25 2010 Jens Petersen <petersen@redhat.com> - 4000.1.0-1
|
|
|
|
- update to 4000.1.0
|
|
|
|
|
|
|
|
* Thu Nov 25 2010 Jens Petersen <petersen@redhat.com> - 4000.0.9-6
|
|
|
|
- drop -o obsoletes
|
|
|
|
|
|
|
|
* Sat Jul 31 2010 Jens Petersen <petersen@redhat.com> - 4000.0.9-5
|
|
|
|
- ghc-rpm-macros-0.8.1 for doc obsoletes
|
|
|
|
- part of haskell-platform-2010.2.0.0
|
|
|
|
- add hscolour
|
|
|
|
|
|
|
|
* Sat Jun 26 2010 Jens Petersen <petersen@redhat.com> - 4000.0.9-4
|
|
|
|
- sync cabal2spec-0.22
|
|
|
|
|
|
|
|
* Tue Apr 27 2010 Jens Petersen <petersen@redhat.com> - 4000.0.9-3
|
|
|
|
- rebuild against ghc-6.12.2
|
|
|
|
|
|
|
|
* Wed Mar 24 2010 Jens Petersen <petersen@redhat.com> - 4000.0.9-2
|
|
|
|
- rebuild against network-2.2.1.7
|
|
|
|
|
|
|
|
* Tue Mar 23 2010 Jens Petersen <petersen@redhat.com> - 4000.0.9-1
|
|
|
|
- update to 4000.0.9 for haskell-platform-2010.1.0.0
|
|
|
|
|
|
|
|
* Tue Jan 12 2010 Jens Petersen <petersen@redhat.com> - 4000.0.8-2
|
|
|
|
- rebuild against ghc-mtl package
|
|
|
|
|
|
|
|
* Mon Jan 11 2010 Jens Petersen <petersen@redhat.com> - 4000.0.8-1
|
|
|
|
- update to 4000.0.8 (haskell-platform-2009.3.1)
|
|
|
|
- update to ghc-rpm-macros-0.5.1 and cabal2spec-0.21.1:
|
|
|
|
- drop doc and prof bcond
|
|
|
|
- use common_summary and common_description
|
|
|
|
- use ghc_lib_package and ghc_pkg_deps
|
|
|
|
- build shared library
|
|
|
|
- drop redundant buildroot and its install cleaning
|
|
|
|
- buildrequires mtl
|
|
|
|
|
|
|
|
* Mon Nov 16 2009 Jens Petersen <petersen@redhat.com> - 4000.0.6-6
|
|
|
|
- use %%ghc_pkg_ver for requires
|
|
|
|
|
|
|
|
* Mon Sep 28 2009 Jens Petersen <petersen@redhat.com> - 4000.0.6-5
|
|
|
|
- buildrequire the new ghc-network library
|
|
|
|
|
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4000.0.6-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sat May 30 2009 Jens Petersen <petersen@redhat.com> - 4000.0.6-3
|
|
|
|
- ppc workaround no longer needed with ghc-6.10.3
|
|
|
|
- provide ghc-HTTP (cabal2spec-0.17)
|
|
|
|
|
|
|
|
* Wed May 13 2009 Jens Petersen <petersen@redhat.com> - 4000.0.6-2
|
|
|
|
- rebuild with ghc-rpm-macros and ghc-6.10.3 (cabal2spec-0.16)
|
|
|
|
|
|
|
|
* Sat Apr 25 2009 Jens Petersen <petersen@redhat.com> - 4000.0.6-1
|
|
|
|
- update to 4000.0.6
|
|
|
|
- sync with cabal2spec-0.14
|
|
|
|
- compile Setup on ppc to workaround runghc failure
|
|
|
|
|
|
|
|
* Fri Feb 27 2009 Jens Petersen <petersen@redhat.com> - 4000.0.4-3
|
|
|
|
- update url
|
|
|
|
- update to cabal2spec-0.12:
|
|
|
|
- use ix86 in archs and add alpha
|
|
|
|
- add devel subpackage
|
|
|
|
- use global rather than define
|
|
|
|
- devel owns docdir
|
|
|
|
|
|
|
|
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4000.0.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon Feb 23 2009 Jens Petersen <petersen@redhat.com> - 4000.0.4-1
|
|
|
|
- update to 4000.0.4
|
|
|
|
|
|
|
|
* Fri Feb 13 2009 Jens Petersen <petersen@redhat.com> - 3001.1.5-2
|
|
|
|
- sync with latest template and add a doc subpackage
|
|
|
|
|
|
|
|
* Tue Dec 23 2008 Jens Petersen <petersen@redhat.com> - 3001.1.5-1
|
|
|
|
- update to 3001.1.5
|
|
|
|
- use bcond for doc and prof
|
|
|
|
- minor tweaks for latest packaging guidelines
|
|
|
|
|
|
|
|
* Fri Nov 28 2008 Jens Petersen <petersen@redhat.com> - 3001.1.4-4
|
|
|
|
- drop LICENSE from -prof subpackage
|
|
|
|
|
|
|
|
* Tue Nov 25 2008 Jens Petersen <petersen@redhat.com> - 3001.1.4-3
|
|
|
|
- add build_doc and build_prof switches
|
|
|
|
- provide -devel
|
|
|
|
- drop redundant pre script
|
|
|
|
- only regenerate doc index in postun if uninstalling
|
|
|
|
|
|
|
|
* Mon Nov 10 2008 Jens Petersen <petersen@redhat.com> - 3001.1.4-2
|
|
|
|
- only build on ghc archs
|
|
|
|
- version install script requires
|
|
|
|
|
|
|
|
* Mon Nov 10 2008 Jens Petersen <petersen@redhat.com> - 3001.1.4-1
|
|
|
|
- initial packaging for fedora
|