From 1dbbbe5f35438d369d29f77f699d75bc2f21c821 Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Thu, 31 Aug 2017 11:04:14 +0000 Subject: [PATCH 01/33] Added the README --- README.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..9c9cd6d --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# ghc-http-client + +The ghc-http-client package \ No newline at end of file From 018b03a42003a92a8d0770aeabe0bd15c234ed0b Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Thu, 31 Aug 2017 15:49:13 -0400 Subject: [PATCH 02/33] Initial import (#1485762). --- .gitignore | 1 + README.md | 3 - ghc-http-client.spec | 137 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 139 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 ghc-http-client.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7f0ba52 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/http-client-0.5.7.0.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 9c9cd6d..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# ghc-http-client - -The ghc-http-client package \ No newline at end of file diff --git a/ghc-http-client.spec b/ghc-http-client.spec new file mode 100644 index 0000000..3dcbaf1 --- /dev/null +++ b/ghc-http-client.spec @@ -0,0 +1,137 @@ +# generated by cabal-rpm-0.11.2 +# https://fedoraproject.org/wiki/Packaging:Haskell + +%global pkg_name http-client +%global pkgver %{pkg_name}-%{version} + +%bcond_with tests + +Name: ghc-%{pkg_name} +Version: 0.5.7.0 +Release: 2.git.0.9f546a1%{?dist} +Summary: A basic HTTP client engine + +License: MIT +Url: https://hackage.haskell.org/package/%{pkg_name} +Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz + +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-rpm-macros +# Begin cabal-rpm deps: +BuildRequires: ghc-array-devel +BuildRequires: ghc-base64-bytestring-devel +BuildRequires: ghc-blaze-builder-devel +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-case-insensitive-devel +BuildRequires: ghc-containers-devel +BuildRequires: ghc-cookie-devel +BuildRequires: ghc-deepseq-devel +BuildRequires: ghc-exceptions-devel +BuildRequires: ghc-filepath-devel +BuildRequires: ghc-http-types-devel +BuildRequires: ghc-mime-types-devel +BuildRequires: ghc-network-devel +BuildRequires: ghc-network-uri-devel +BuildRequires: ghc-random-devel +BuildRequires: ghc-streaming-commons-devel +BuildRequires: ghc-text-devel +BuildRequires: ghc-time-devel +BuildRequires: ghc-transformers-devel +%if %{with tests} +BuildRequires: ghc-async-devel +BuildRequires: ghc-directory-devel +BuildRequires: ghc-hspec-devel +BuildRequires: ghc-monad-control-devel +BuildRequires: ghc-zlib-devel +%endif +# End cabal-rpm deps + +%description +An HTTP client engine, intended as a base layer for more user-friendly +packages, refactored from http-conduit. Note that, if you want to make HTTPS +secure connections, you should use http-client-tls in addition to this library. + + +%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. + + +%package devel-doc +Summary: Haskell %{pkg_name} library development documentation + +BuildArch: noarch + +%description devel-doc +This package provides the Haskell %{pkg_name} library development +documentation. + + +%prep +%setup -q -n %{pkgver} + + +%build +%ghc_lib_build + + +%install +%ghc_lib_install +grep -v "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-nodoc.files +grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-doc.files + + +%check +%cabal_test + + +%post devel +%ghc_pkg_recache + + +%postun devel +%ghc_pkg_recache + + +%files -f %{name}.files +%license LICENSE + + +%files devel -f %{name}-devel-nodoc.files +%doc ChangeLog.md README.md + + +%files devel-doc -f %{name}-devel-doc.files +%doc ChangeLog.md README.md + + +%changelog +* Tue Aug 29 2017 Elliott Sales de Andrade 0.5.7.0-2 +- Split docs into separate subpackage. +- Fix summary and description. +- Update to latest spec template. + +* Sat Jul 22 2017 Elliott Sales de Andrade 0.5.7.0-1 +- Update to latest version. + +* Mon Jul 17 2017 Elliott Sales de Andrade 0.4.28-8 +- Move things around based on their need. + +* Sat Dec 17 2016 Elliott Sales de Andrade - 0.4.28-7 +- Bump to rebuild against new dependencies + +* Fri Dec 16 2016 Elliott Sales de Andrade - 0.4.28-6 +- Bump to rebuild against new dependencies + +* Thu Dec 15 2016 Elliott Sales de Andrade - 0.4.28-5 +- Update release to be newer than previous builds + +* Thu Dec 15 2016 Fedora Haskell SIG - 0.4.28-1 +- spec file generated by cabal-rpm-0.10.0 diff --git a/sources b/sources new file mode 100644 index 0000000..62eed8f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (http-client-0.5.7.0.tar.gz) = 5a411fc6b709becdbdb727904851ff1348c39430d2358f780677fd00f154cc85d94f776f120f4435c2e9a89bb9f0a00858df0d5c7b250772c88c50179bd30275 From 8b608d3d4aeb6f1f3c11fdf92db2fcc421807ba7 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Thu, 31 Aug 2017 15:49:47 -0400 Subject: [PATCH 03/33] Fix release number. --- ghc-http-client.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index 3dcbaf1..b645378 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 0.5.7.0 -Release: 2.git.0.9f546a1%{?dist} +Release: 2%{?dist} Summary: A basic HTTP client engine License: MIT From 7b9efcf2b978b388886d9d2fe939ab3989e0a8c6 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 24 Jan 2018 14:11:22 +0100 Subject: [PATCH 04/33] refresh to cabal-rpm-0.12.1 --- ghc-http-client.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index b645378..2e63ad6 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.11.2 +# generated by cabal-rpm-0.12.1 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name http-client @@ -55,9 +55,12 @@ secure connections, you should use http-client-tls in addition to this library. %package devel Summary: Haskell %{pkg_name} library development files Provides: %{name}-static = %{version}-%{release} +Provides: %{name}-doc = %{version}-%{release} +%if %{defined ghc_version} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} +%endif Requires: %{name}%{?_isa} = %{version}-%{release} %description devel @@ -92,6 +95,12 @@ grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-dev %cabal_test +%post -p /sbin/ldconfig + + +%postun -p /sbin/ldconfig + + %post devel %ghc_pkg_recache From d9ae33926cdd461c3508b7b933b2bf98bf650534 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 24 Jan 2018 15:37:38 +0100 Subject: [PATCH 05/33] update to 0.5.7.1 --- .gitignore | 1 + ghc-http-client.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 7f0ba52..8c00528 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /http-client-0.5.7.0.tar.gz +/http-client-0.5.7.1.tar.gz diff --git a/ghc-http-client.spec b/ghc-http-client.spec index 2e63ad6..6ffcf23 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -7,8 +7,8 @@ %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.5.7.0 -Release: 2%{?dist} +Version: 0.5.7.1 +Release: 1%{?dist} Summary: A basic HTTP client engine License: MIT @@ -122,6 +122,9 @@ grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-dev %changelog +* Wed Jan 24 2018 Jens Petersen - 0.5.7.1-1 +- update to 0.5.7.1 + * Tue Aug 29 2017 Elliott Sales de Andrade 0.5.7.0-2 - Split docs into separate subpackage. - Fix summary and description. diff --git a/sources b/sources index 62eed8f..0a6ca66 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (http-client-0.5.7.0.tar.gz) = 5a411fc6b709becdbdb727904851ff1348c39430d2358f780677fd00f154cc85d94f776f120f4435c2e9a89bb9f0a00858df0d5c7b250772c88c50179bd30275 +SHA512 (http-client-0.5.7.1.tar.gz) = d4b6089f25bd7342f9873ce767e2c74036e55adf2aa163fc3ffa3895d57fff14af6d10c15439d7ae62e3c2772641b092226ca4b24e57a9f9ff9d4318fe6163b6 From edef020a68c17318fcee0b967fb49b7181759961 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 4 Feb 2018 01:02:46 +0900 Subject: [PATCH 06/33] drop ldconfig scriptlets --- ghc-http-client.spec | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index 6ffcf23..1785ead 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -95,12 +95,6 @@ grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-dev %cabal_test -%post -p /sbin/ldconfig - - -%postun -p /sbin/ldconfig - - %post devel %ghc_pkg_recache From 3cc58a1fa1b672dea4ca893f4273528a6c5da87f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 7 Feb 2018 11:46:19 +0000 Subject: [PATCH 07/33] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-http-client.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index 1785ead..4daf66a 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 0.5.7.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A basic HTTP client engine License: MIT @@ -116,6 +116,9 @@ grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-dev %changelog +* Wed Feb 07 2018 Fedora Release Engineering - 0.5.7.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Wed Jan 24 2018 Jens Petersen - 0.5.7.1-1 - update to 0.5.7.1 From 9d4a468214c973350e51149fea02b6b8479c3ca0 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Mon, 9 Jul 2018 01:02:06 -0400 Subject: [PATCH 08/33] update to 0.5.13.1 --- .gitignore | 1 + ghc-http-client.spec | 10 +++++++--- sources | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 8c00528..8758a70 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /http-client-0.5.7.0.tar.gz /http-client-0.5.7.1.tar.gz +/http-client-0.5.13.1.tar.gz diff --git a/ghc-http-client.spec b/ghc-http-client.spec index 4daf66a..786618e 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -7,8 +7,8 @@ %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.5.7.1 -Release: 2%{?dist} +Version: 0.5.13.1 +Release: 1%{?dist} Summary: A basic HTTP client engine License: MIT @@ -19,7 +19,6 @@ BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-array-devel -BuildRequires: ghc-base64-bytestring-devel BuildRequires: ghc-blaze-builder-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-case-insensitive-devel @@ -29,10 +28,12 @@ BuildRequires: ghc-deepseq-devel BuildRequires: ghc-exceptions-devel BuildRequires: ghc-filepath-devel BuildRequires: ghc-http-types-devel +BuildRequires: ghc-memory-devel BuildRequires: ghc-mime-types-devel BuildRequires: ghc-network-devel BuildRequires: ghc-network-uri-devel BuildRequires: ghc-random-devel +BuildRequires: ghc-stm-devel BuildRequires: ghc-streaming-commons-devel BuildRequires: ghc-text-devel BuildRequires: ghc-time-devel @@ -116,6 +117,9 @@ grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-dev %changelog +* Mon Jul 09 2018 Elliott Sales de Andrade - 0.5.13.1-1 +- update to 0.5.13.1 + * Wed Feb 07 2018 Fedora Release Engineering - 0.5.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild diff --git a/sources b/sources index 0a6ca66..9249215 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (http-client-0.5.7.1.tar.gz) = d4b6089f25bd7342f9873ce767e2c74036e55adf2aa163fc3ffa3895d57fff14af6d10c15439d7ae62e3c2772641b092226ca4b24e57a9f9ff9d4318fe6163b6 +SHA512 (http-client-0.5.13.1.tar.gz) = 135bbbbc32dbc1613308c55347f4d8a0ba577d6ca8b522eb3aac7b96df92577a3c101464e89fc77c348b18cf040104176036adee7710bd9b4ce31aa0e5012e0a From 840c44a7dcf1f806909b2355cf690c1bc2bd54c2 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 13 Jul 2018 01:53:21 +0000 Subject: [PATCH 09/33] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-http-client.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index 786618e..3abe106 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 0.5.13.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A basic HTTP client engine License: MIT @@ -117,6 +117,9 @@ grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-dev %changelog +* Fri Jul 13 2018 Fedora Release Engineering - 0.5.13.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Mon Jul 09 2018 Elliott Sales de Andrade - 0.5.13.1-1 - update to 0.5.13.1 From 95cd336847c94529c87dcc6ab7560f3153eb301e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 23 Jul 2018 13:41:35 +0200 Subject: [PATCH 10/33] Rebuilt for #1607054 --- ghc-http-client.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index 3abe106..5ba26fd 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 0.5.13.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A basic HTTP client engine License: MIT @@ -117,6 +117,9 @@ grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-dev %changelog +* Mon Jul 23 2018 Miro Hrončok - 0.5.13.1-3 +- Rebuilt for #1607054 + * Fri Jul 13 2018 Fedora Release Engineering - 0.5.13.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild From acfe38930cfea15a0d13a23a06538b41ac064a35 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 24 Jul 2018 23:00:14 +0900 Subject: [PATCH 11/33] note that Proxy.hs is marked BSD --- ghc-http-client.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index 5ba26fd..e0a4092 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -11,7 +11,8 @@ Version: 0.5.13.1 Release: 3%{?dist} Summary: A basic HTTP client engine -License: MIT +# Network/HTTP/Proxy.hs is BSD +License: MIT and BSD Url: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz From 73d35cd7d9c3e00bcaca8704b2e49ed166448389 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 29 Jul 2018 01:06:07 +0900 Subject: [PATCH 12/33] rebuild --- ghc-http-client.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index e0a4092..a0788ff 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.12.1 +# generated by cabal-rpm-0.12.5 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name http-client @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 0.5.13.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A basic HTTP client engine # Network/HTTP/Proxy.hs is BSD @@ -118,6 +118,9 @@ grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-dev %changelog +* Sat Jul 28 2018 Jens Petersen - 0.5.13.1-4 +- rebuild + * Mon Jul 23 2018 Miro Hrončok - 0.5.13.1-3 - Rebuilt for #1607054 From 1bdcd1db0e8b7c7f955ece2a91f70e94d60aa2a0 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 13 Sep 2018 18:52:18 +0900 Subject: [PATCH 13/33] fix build when haddock disabled --- ghc-http-client.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index a0788ff..82e07bd 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -90,7 +90,9 @@ documentation. %install %ghc_lib_install grep -v "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-nodoc.files +%if %{undefined without_haddock} grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-doc.files +%endif %check @@ -113,9 +115,10 @@ grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-dev %doc ChangeLog.md README.md +%if %{undefined without_haddock} %files devel-doc -f %{name}-devel-doc.files %doc ChangeLog.md README.md - +%endif %changelog * Sat Jul 28 2018 Jens Petersen - 0.5.13.1-4 From fed5e2f8874d1ba0b5aea6bf4b98c228218bbea8 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 31 Jan 2019 21:39:32 +0000 Subject: [PATCH 14/33] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-http-client.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index 82e07bd..45fc1a7 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 0.5.13.1 -Release: 4%{?dist} +Release: 5%{?dist} Summary: A basic HTTP client engine # Network/HTTP/Proxy.hs is BSD @@ -121,6 +121,9 @@ grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-dev %endif %changelog +* Thu Jan 31 2019 Fedora Release Engineering - 0.5.13.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Sat Jul 28 2018 Jens Petersen - 0.5.13.1-4 - rebuild From e3b7ce99591acd79950caad36661a805b5c7d130 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 17 Feb 2019 22:45:14 +0800 Subject: [PATCH 15/33] refresh to cabal-rpm-0.13 --- ghc-http-client.spec | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index 45fc1a7..6f03bd1 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.12.5 +# generated by cabal-rpm-0.13 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name http-client @@ -8,17 +8,19 @@ Name: ghc-%{pkg_name} Version: 0.5.13.1 -Release: 5%{?dist} +Release: 6%{?dist} Summary: A basic HTTP client engine # Network/HTTP/Proxy.hs is BSD License: MIT and BSD Url: https://hackage.haskell.org/package/%{pkg_name} +# Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +# End cabal-rpm sources +# Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros -# Begin cabal-rpm deps: BuildRequires: ghc-array-devel BuildRequires: ghc-blaze-builder-devel BuildRequires: ghc-bytestring-devel @@ -80,15 +82,21 @@ documentation. %prep +# Begin cabal-rpm setup: %setup -q -n %{pkgver} +# End cabal-rpm setup %build +# Begin cabal-rpm build: %ghc_lib_build +# End cabal-rpm build %install +# Begin cabal-rpm install %ghc_lib_install +# End cabal-rpm install grep -v "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-nodoc.files %if %{undefined without_haddock} grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-doc.files @@ -108,7 +116,9 @@ grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-dev %files -f %{name}.files +# Begin cabal-rpm files: %license LICENSE +# End cabal-rpm files %files devel -f %{name}-devel-nodoc.files @@ -121,6 +131,9 @@ grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-dev %endif %changelog +* Sun Feb 17 2019 Jens Petersen - 0.5.13.1-6 +- refresh to cabal-rpm-0.13 + * Thu Jan 31 2019 Fedora Release Engineering - 0.5.13.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild From 323f69c9bbd0da82e93b5c1d5707cc5d07b07b3d Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 21 Feb 2019 10:30:51 +0800 Subject: [PATCH 16/33] update to 0.5.14 --- .gitignore | 1 + ghc-http-client.spec | 9 ++- http-client-0.5.14.cabal | 142 +++++++++++++++++++++++++++++++++++++++ sources | 2 +- 4 files changed, 151 insertions(+), 3 deletions(-) create mode 100644 http-client-0.5.14.cabal diff --git a/.gitignore b/.gitignore index 8758a70..bc343b1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /http-client-0.5.7.0.tar.gz /http-client-0.5.7.1.tar.gz /http-client-0.5.13.1.tar.gz +/http-client-0.5.14.tar.gz diff --git a/ghc-http-client.spec b/ghc-http-client.spec index 6f03bd1..e5eed5e 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -7,8 +7,8 @@ %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.5.13.1 -Release: 6%{?dist} +Version: 0.5.14 +Release: 1%{?dist} Summary: A basic HTTP client engine # Network/HTTP/Proxy.hs is BSD @@ -16,6 +16,7 @@ License: MIT and BSD Url: https://hackage.haskell.org/package/%{pkg_name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal # End cabal-rpm sources # Begin cabal-rpm deps: @@ -84,6 +85,7 @@ documentation. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} +cp -bp %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup @@ -131,6 +133,9 @@ grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-dev %endif %changelog +* Thu Feb 21 2019 Jens Petersen - 0.5.14-1 +- update to 0.5.14 + * Sun Feb 17 2019 Jens Petersen - 0.5.13.1-6 - refresh to cabal-rpm-0.13 diff --git a/http-client-0.5.14.cabal b/http-client-0.5.14.cabal new file mode 100644 index 0000000..25dc9dc --- /dev/null +++ b/http-client-0.5.14.cabal @@ -0,0 +1,142 @@ +name: http-client +version: 0.5.14 +x-revision: 1 +synopsis: An HTTP client engine +description: Hackage documentation generation is not reliable. For up to date documentation, please see: . +homepage: https://github.com/snoyberg/http-client +license: MIT +license-file: LICENSE +author: Michael Snoyman +maintainer: michael@snoyman.com +category: Network +build-type: Simple +extra-source-files: README.md ChangeLog.md +cabal-version: >=1.10 + +flag network-uri + description: Get Network.URI from the network-uri package + default: True + +library + hs-source-dirs: ., publicsuffixlist + exposed-modules: Network.HTTP.Client + Network.HTTP.Client.MultipartFormData + Network.HTTP.Client.Internal + other-modules: Network.HTTP.Client.Body + Network.HTTP.Client.Connection + Network.HTTP.Client.Cookies + Network.HTTP.Client.Core + Network.HTTP.Client.Headers + Network.HTTP.Client.Manager + Network.HTTP.Client.Request + Network.HTTP.Client.Response + Network.HTTP.Client.Types + Network.HTTP.Client.Util + Network.HTTP.Proxy + Network.PublicSuffixList.Lookup + Network.PublicSuffixList.Types + Network.PublicSuffixList.Serialize + Network.PublicSuffixList.DataStructure + Data.KeyedPool + build-depends: base >= 4.6 && < 5 + , bytestring >= 0.10 + , text >= 0.11 + , http-types >= 0.8 + , blaze-builder >= 0.4.0.0 && < 0.5 + , time >= 1.2 + , network >= 2.4 + , streaming-commons >= 0.1.0.2 && < 0.3 + , containers >= 0.5 + , transformers + , deepseq >= 1.3 && <1.5 + , case-insensitive >= 1.0 + , memory >= 0.7 + , cookie + , exceptions >= 0.4 + , array + , random + , filepath + , mime-types + , ghc-prim + , stm >= 2.3 + if flag(network-uri) + build-depends: network >= 2.6, network-uri >= 2.6 + else + build-depends: network < 2.6 + + if !impl(ghc>=8.0) + build-depends: semigroups >= 0.16.1 + + -- See build failure at https://travis-ci.org/snoyberg/http-client/jobs/359573631 + if impl(ghc < 7.10) + -- Disable building with GHC before 8.0.2. + -- Due to a cabal bug, do not use buildable: False, + -- but instead give it an impossible constraint. + -- See: https://github.com/haskell-infra/hackage-trustees/issues/165 + build-depends: unsupported-ghc-version > 1 && < 1 + + + if os(mingw32) + build-depends: Win32, safe + + default-language: Haskell2010 + +test-suite spec + main-is: Spec.hs + type: exitcode-stdio-1.0 + hs-source-dirs: test + default-language: Haskell2010 + other-modules: Network.HTTP.ClientSpec + build-depends: base + , http-client + , hspec + , monad-control + , bytestring + , text + , http-types + , blaze-builder + , time + , network + , containers + , transformers + , deepseq + , case-insensitive + , zlib + , async + , streaming-commons >= 0.1.1 + + +test-suite spec-nonet + main-is: Spec.hs + type: exitcode-stdio-1.0 + hs-source-dirs: test-nonet + default-language: Haskell2010 + ghc-options: -threaded + if os(windows) + cpp-options: -DWINDOWS + other-modules: Network.HTTP.ClientSpec + Network.HTTP.Client.ResponseSpec + Network.HTTP.Client.BodySpec + Network.HTTP.Client.HeadersSpec + Network.HTTP.Client.RequestSpec + Network.HTTP.Client.RequestBodySpec + Network.HTTP.Client.CookieSpec + build-depends: base + , http-client + , hspec + , monad-control + , bytestring + , text + , http-types + , blaze-builder + , time + , network + , network-uri + , containers + , transformers + , deepseq + , case-insensitive + , zlib + , async + , streaming-commons >= 0.1.1 + , directory diff --git a/sources b/sources index 9249215..21c4e25 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (http-client-0.5.13.1.tar.gz) = 135bbbbc32dbc1613308c55347f4d8a0ba577d6ca8b522eb3aac7b96df92577a3c101464e89fc77c348b18cf040104176036adee7710bd9b4ce31aa0e5012e0a +SHA512 (http-client-0.5.14.tar.gz) = bf4a42572da5d5711e5feb4c8c285fafebe8563ae3b4eadba02a8f3d54fb33a1c1bf1085e9b2531ee9218151211910b4df9a0d8eb8dc73502c79f7db3be34ff9 From 1a584b07031c0e58484a00e869a4b7eb18911e81 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 25 Jul 2019 02:37:02 +0000 Subject: [PATCH 17/33] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-http-client.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index e5eed5e..b04795c 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 0.5.14 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A basic HTTP client engine # Network/HTTP/Proxy.hs is BSD @@ -133,6 +133,9 @@ grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-dev %endif %changelog +* Thu Jul 25 2019 Fedora Release Engineering - 0.5.14-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Thu Feb 21 2019 Jens Petersen - 0.5.14-1 - update to 0.5.14 From e1236c9d16d8da2dc8aba9070906f3be74893009 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 25 Jul 2019 04:24:01 +0000 Subject: [PATCH 18/33] cabal-rpm-1.0.0: add doc and prof subpkgs --- ghc-http-client.spec | 63 +++++++++++++++++++++++++------------------- 1 file changed, 36 insertions(+), 27 deletions(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index b04795c..e106fd2 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.13 +# generated by cabal-rpm-1.0.0 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name http-client @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 0.5.14 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A basic HTTP client engine # Network/HTTP/Proxy.hs is BSD @@ -21,6 +21,12 @@ Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal# # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel +%if %{with haddock} +BuildRequires: ghc-doc +%endif +%if %{with ghc_prof} +BuildRequires: ghc-prof +%endif BuildRequires: ghc-rpm-macros BuildRequires: ghc-array-devel BuildRequires: ghc-blaze-builder-devel @@ -60,11 +66,8 @@ secure connections, you should use http-client-tls in addition to this library. %package devel Summary: Haskell %{pkg_name} library development files Provides: %{name}-static = %{version}-%{release} -Provides: %{name}-doc = %{version}-%{release} %if %{defined ghc_version} Requires: ghc-compiler = %{ghc_version} -Requires(post): ghc-compiler = %{ghc_version} -Requires(postun): ghc-compiler = %{ghc_version} %endif Requires: %{name}%{?_isa} = %{version}-%{release} @@ -72,14 +75,24 @@ Requires: %{name}%{?_isa} = %{version}-%{release} This package provides the Haskell %{pkg_name} library development files. -%package devel-doc -Summary: Haskell %{pkg_name} library development documentation +%if %{with haddock} +%package doc +Summary: Haskell %{pkg_name} library documentation +Obsoletes: %{name}-devel-doc < %{version}-%{release} -BuildArch: noarch +%description doc +This package provides the Haskell %{pkg_name} library documentation. +%endif -%description devel-doc -This package provides the Haskell %{pkg_name} library development -documentation. + +%if %{with ghc_prof} +%package prof +Summary: Haskell %{pkg_name} profiling library +Requires: %{name}-devel%{?_isa} = %{version}-%{release} + +%description prof +This package provides the Haskell %{pkg_name} profiling library. +%endif %prep @@ -99,40 +112,36 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal # Begin cabal-rpm install %ghc_lib_install # End cabal-rpm install -grep -v "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-nodoc.files -%if %{undefined without_haddock} -grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-doc.files -%endif %check %cabal_test -%post devel -%ghc_pkg_recache - - -%postun devel -%ghc_pkg_recache - - %files -f %{name}.files # Begin cabal-rpm files: %license LICENSE # End cabal-rpm files -%files devel -f %{name}-devel-nodoc.files +%files devel -f %{name}-devel.files %doc ChangeLog.md README.md -%if %{undefined without_haddock} -%files devel-doc -f %{name}-devel-doc.files -%doc ChangeLog.md README.md +%if %{with haddock} +%files doc -f %{name}-doc.files +%endif + + +%if %{with ghc_prof} +%files prof -f %{name}-prof.files %endif + %changelog +* Fri Aug 02 2019 Jens Petersen - 0.5.14-3 +- add doc and prof subpackages (cabal-rpm-1.0.0) + * Thu Jul 25 2019 Fedora Release Engineering - 0.5.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From bdeb119daed80f4766751fbd80e30adcedd3ff98 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Mon, 5 Aug 2019 18:29:56 +0800 Subject: [PATCH 19/33] BR prof for lib and static for executable --- ghc-http-client.spec | 50 ++++++++++++++++++++------------------------ 1 file changed, 23 insertions(+), 27 deletions(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index e106fd2..2353c59 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-1.0.0 +# generated by cabal-rpm-1.0.1 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name http-client @@ -21,33 +21,28 @@ Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal# # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel -%if %{with haddock} -BuildRequires: ghc-doc -%endif -%if %{with ghc_prof} -BuildRequires: ghc-prof -%endif BuildRequires: ghc-rpm-macros -BuildRequires: ghc-array-devel -BuildRequires: ghc-blaze-builder-devel -BuildRequires: ghc-bytestring-devel -BuildRequires: ghc-case-insensitive-devel -BuildRequires: ghc-containers-devel -BuildRequires: ghc-cookie-devel -BuildRequires: ghc-deepseq-devel -BuildRequires: ghc-exceptions-devel -BuildRequires: ghc-filepath-devel -BuildRequires: ghc-http-types-devel -BuildRequires: ghc-memory-devel -BuildRequires: ghc-mime-types-devel -BuildRequires: ghc-network-devel -BuildRequires: ghc-network-uri-devel -BuildRequires: ghc-random-devel -BuildRequires: ghc-stm-devel -BuildRequires: ghc-streaming-commons-devel -BuildRequires: ghc-text-devel -BuildRequires: ghc-time-devel -BuildRequires: ghc-transformers-devel +BuildRequires: ghc-array-prof +BuildRequires: ghc-base-prof +BuildRequires: ghc-blaze-builder-prof +BuildRequires: ghc-bytestring-prof +BuildRequires: ghc-case-insensitive-prof +BuildRequires: ghc-containers-prof +BuildRequires: ghc-cookie-prof +BuildRequires: ghc-deepseq-prof +BuildRequires: ghc-exceptions-prof +BuildRequires: ghc-filepath-prof +BuildRequires: ghc-http-types-prof +BuildRequires: ghc-memory-prof +BuildRequires: ghc-mime-types-prof +BuildRequires: ghc-network-prof +BuildRequires: ghc-network-uri-prof +BuildRequires: ghc-random-prof +BuildRequires: ghc-stm-prof +BuildRequires: ghc-streaming-commons-prof +BuildRequires: ghc-text-prof +BuildRequires: ghc-time-prof +BuildRequires: ghc-transformers-prof %if %{with tests} BuildRequires: ghc-async-devel BuildRequires: ghc-directory-devel @@ -66,6 +61,7 @@ secure connections, you should use http-client-tls in addition to this library. %package devel Summary: Haskell %{pkg_name} library development files Provides: %{name}-static = %{version}-%{release} +Provides: %{name}-static%{?_isa} = %{version}-%{release} %if %{defined ghc_version} Requires: ghc-compiler = %{ghc_version} %endif From 673954d2c352d0b377a270eaeff15dd8454da10e Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 28 Jan 2020 20:53:54 +0000 Subject: [PATCH 20/33] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-http-client.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index 2353c59..7379838 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 0.5.14 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A basic HTTP client engine # Network/HTTP/Proxy.hs is BSD @@ -135,6 +135,9 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %changelog +* Tue Jan 28 2020 Fedora Release Engineering - 0.5.14-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Fri Aug 02 2019 Jens Petersen - 0.5.14-3 - add doc and prof subpackages (cabal-rpm-1.0.0) From dae183ba6807dc650d5cb27880522b4a3cfd7d50 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 6 Feb 2020 23:08:39 +0800 Subject: [PATCH 21/33] refresh to cabal-rpm-2.0.2 --- ghc-http-client.spec | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index 7379838..93c1d5f 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -1,9 +1,10 @@ -# generated by cabal-rpm-1.0.1 +# generated by cabal-rpm-2.0.2 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name http-client %global pkgver %{pkg_name}-%{version} +# requires net %bcond_with tests Name: ghc-%{pkg_name} @@ -74,6 +75,7 @@ This package provides the Haskell %{pkg_name} library development files. %if %{with haddock} %package doc Summary: Haskell %{pkg_name} library documentation +BuildArch: noarch Obsoletes: %{name}-devel-doc < %{version}-%{release} %description doc @@ -85,6 +87,7 @@ This package provides the Haskell %{pkg_name} library documentation. %package prof Summary: Haskell %{pkg_name} profiling library Requires: %{name}-devel%{?_isa} = %{version}-%{release} +Supplements: (%{name}-devel and ghc-prof) %description prof This package provides the Haskell %{pkg_name} profiling library. @@ -114,6 +117,16 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %cabal_test +%if 0%{?fedora} < 31 || 0%{?rhel} < 8 +%post devel +%ghc_pkg_recache + + +%postun devel +%ghc_pkg_recache +%endif + + %files -f %{name}.files # Begin cabal-rpm files: %license LICENSE @@ -126,6 +139,7 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %if %{with haddock} %files doc -f %{name}-doc.files +%license LICENSE %endif From 78162517f58f8a04fc137bda88dde1d095847d89 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 14 Feb 2020 11:39:15 +0800 Subject: [PATCH 22/33] update to 0.6.4 --- .gitignore | 1 + ghc-http-client.spec | 9 +-- http-client-0.5.14.cabal | 142 --------------------------------------- sources | 2 +- 4 files changed, 7 insertions(+), 147 deletions(-) delete mode 100644 http-client-0.5.14.cabal diff --git a/.gitignore b/.gitignore index bc343b1..779c498 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /http-client-0.5.7.1.tar.gz /http-client-0.5.13.1.tar.gz /http-client-0.5.14.tar.gz +/http-client-0.6.4.tar.gz diff --git a/ghc-http-client.spec b/ghc-http-client.spec index 93c1d5f..f2773cb 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -8,8 +8,8 @@ %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.5.14 -Release: 4%{?dist} +Version: 0.6.4 +Release: 1%{?dist} Summary: A basic HTTP client engine # Network/HTTP/Proxy.hs is BSD @@ -17,7 +17,6 @@ License: MIT and BSD Url: https://hackage.haskell.org/package/%{pkg_name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz -Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal # End cabal-rpm sources # Begin cabal-rpm deps: @@ -97,7 +96,6 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} -cp -bp %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup @@ -149,6 +147,9 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %changelog +* Fri Feb 14 2020 Jens Petersen - 0.6.4-1 +- update to 0.6.4 + * Tue Jan 28 2020 Fedora Release Engineering - 0.5.14-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/http-client-0.5.14.cabal b/http-client-0.5.14.cabal deleted file mode 100644 index 25dc9dc..0000000 --- a/http-client-0.5.14.cabal +++ /dev/null @@ -1,142 +0,0 @@ -name: http-client -version: 0.5.14 -x-revision: 1 -synopsis: An HTTP client engine -description: Hackage documentation generation is not reliable. For up to date documentation, please see: . -homepage: https://github.com/snoyberg/http-client -license: MIT -license-file: LICENSE -author: Michael Snoyman -maintainer: michael@snoyman.com -category: Network -build-type: Simple -extra-source-files: README.md ChangeLog.md -cabal-version: >=1.10 - -flag network-uri - description: Get Network.URI from the network-uri package - default: True - -library - hs-source-dirs: ., publicsuffixlist - exposed-modules: Network.HTTP.Client - Network.HTTP.Client.MultipartFormData - Network.HTTP.Client.Internal - other-modules: Network.HTTP.Client.Body - Network.HTTP.Client.Connection - Network.HTTP.Client.Cookies - Network.HTTP.Client.Core - Network.HTTP.Client.Headers - Network.HTTP.Client.Manager - Network.HTTP.Client.Request - Network.HTTP.Client.Response - Network.HTTP.Client.Types - Network.HTTP.Client.Util - Network.HTTP.Proxy - Network.PublicSuffixList.Lookup - Network.PublicSuffixList.Types - Network.PublicSuffixList.Serialize - Network.PublicSuffixList.DataStructure - Data.KeyedPool - build-depends: base >= 4.6 && < 5 - , bytestring >= 0.10 - , text >= 0.11 - , http-types >= 0.8 - , blaze-builder >= 0.4.0.0 && < 0.5 - , time >= 1.2 - , network >= 2.4 - , streaming-commons >= 0.1.0.2 && < 0.3 - , containers >= 0.5 - , transformers - , deepseq >= 1.3 && <1.5 - , case-insensitive >= 1.0 - , memory >= 0.7 - , cookie - , exceptions >= 0.4 - , array - , random - , filepath - , mime-types - , ghc-prim - , stm >= 2.3 - if flag(network-uri) - build-depends: network >= 2.6, network-uri >= 2.6 - else - build-depends: network < 2.6 - - if !impl(ghc>=8.0) - build-depends: semigroups >= 0.16.1 - - -- See build failure at https://travis-ci.org/snoyberg/http-client/jobs/359573631 - if impl(ghc < 7.10) - -- Disable building with GHC before 8.0.2. - -- Due to a cabal bug, do not use buildable: False, - -- but instead give it an impossible constraint. - -- See: https://github.com/haskell-infra/hackage-trustees/issues/165 - build-depends: unsupported-ghc-version > 1 && < 1 - - - if os(mingw32) - build-depends: Win32, safe - - default-language: Haskell2010 - -test-suite spec - main-is: Spec.hs - type: exitcode-stdio-1.0 - hs-source-dirs: test - default-language: Haskell2010 - other-modules: Network.HTTP.ClientSpec - build-depends: base - , http-client - , hspec - , monad-control - , bytestring - , text - , http-types - , blaze-builder - , time - , network - , containers - , transformers - , deepseq - , case-insensitive - , zlib - , async - , streaming-commons >= 0.1.1 - - -test-suite spec-nonet - main-is: Spec.hs - type: exitcode-stdio-1.0 - hs-source-dirs: test-nonet - default-language: Haskell2010 - ghc-options: -threaded - if os(windows) - cpp-options: -DWINDOWS - other-modules: Network.HTTP.ClientSpec - Network.HTTP.Client.ResponseSpec - Network.HTTP.Client.BodySpec - Network.HTTP.Client.HeadersSpec - Network.HTTP.Client.RequestSpec - Network.HTTP.Client.RequestBodySpec - Network.HTTP.Client.CookieSpec - build-depends: base - , http-client - , hspec - , monad-control - , bytestring - , text - , http-types - , blaze-builder - , time - , network - , network-uri - , containers - , transformers - , deepseq - , case-insensitive - , zlib - , async - , streaming-commons >= 0.1.1 - , directory diff --git a/sources b/sources index 21c4e25..c2d0d0f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (http-client-0.5.14.tar.gz) = bf4a42572da5d5711e5feb4c8c285fafebe8563ae3b4eadba02a8f3d54fb33a1c1bf1085e9b2531ee9218151211910b4df9a0d8eb8dc73502c79f7db3be34ff9 +SHA512 (http-client-0.6.4.tar.gz) = 0b7a16ca1932fa3a20d3f44f65a482277486af1319cf9ed3e138e0b9cc838816ee12aa677821a19e8c51f8bf675676233d8a648b3bf2c3c13f3c70a9348be90a From b48e9505855ae13533433de44670ef624a75cdff Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 4 Jun 2020 19:26:55 +0800 Subject: [PATCH 23/33] refresh to cabal-rpm-2.0.5 --- ghc-http-client.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index f2773cb..11e908f 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -1,5 +1,5 @@ -# generated by cabal-rpm-2.0.2 -# https://fedoraproject.org/wiki/Packaging:Haskell +# generated by cabal-rpm-2.0.5 +# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global pkg_name http-client %global pkgver %{pkg_name}-%{version} From 46fa0dffe0b59e7d39f0242134e495c50a6d68a1 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 10 Jun 2020 11:28:29 +0800 Subject: [PATCH 24/33] update to 0.6.4.1 --- .gitignore | 1 + ghc-http-client.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 779c498..c60ab43 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /http-client-0.5.13.1.tar.gz /http-client-0.5.14.tar.gz /http-client-0.6.4.tar.gz +/http-client-0.6.4.1.tar.gz diff --git a/ghc-http-client.spec b/ghc-http-client.spec index 11e908f..91b64d0 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -8,7 +8,7 @@ %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.6.4 +Version: 0.6.4.1 Release: 1%{?dist} Summary: A basic HTTP client engine @@ -147,6 +147,9 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog +* Wed Jun 10 2020 Jens Petersen - 0.6.4.1-1 +- update to 0.6.4.1 + * Fri Feb 14 2020 Jens Petersen - 0.6.4-1 - update to 0.6.4 diff --git a/sources b/sources index c2d0d0f..85ee20f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (http-client-0.6.4.tar.gz) = 0b7a16ca1932fa3a20d3f44f65a482277486af1319cf9ed3e138e0b9cc838816ee12aa677821a19e8c51f8bf675676233d8a648b3bf2c3c13f3c70a9348be90a +SHA512 (http-client-0.6.4.1.tar.gz) = b9595ebf3cb48c5ed288934976b78270a3092a35ae083853684c848301ee88a18e0e41534180033df071ab87dc9f9cbab99da37cbc74d538472409c13dcfce7d From 047f2182775838661608b287818c35cd0a10650c Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 19 Jun 2020 16:55:32 +0800 Subject: [PATCH 25/33] refresh to cabal-rpm-2.0.6 --- ghc-http-client.spec | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index 91b64d0..edd6b04 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-2.0.5 +# generated by cabal-rpm-2.0.6 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global pkg_name http-client @@ -115,16 +115,6 @@ This package provides the Haskell %{pkg_name} profiling library. %cabal_test -%if 0%{?fedora} < 31 || 0%{?rhel} < 8 -%post devel -%ghc_pkg_recache - - -%postun devel -%ghc_pkg_recache -%endif - - %files -f %{name}.files # Begin cabal-rpm files: %license LICENSE From d6ae8ad2f6748174f5bc1c1c50a73f542df2f8a2 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 27 Jul 2020 19:16:40 +0000 Subject: [PATCH 26/33] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-http-client.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index edd6b04..6c299ef 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -9,7 +9,7 @@ Name: ghc-%{pkg_name} Version: 0.6.4.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A basic HTTP client engine # Network/HTTP/Proxy.hs is BSD @@ -137,6 +137,9 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog +* Mon Jul 27 2020 Fedora Release Engineering - 0.6.4.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Wed Jun 10 2020 Jens Petersen - 0.6.4.1-1 - update to 0.6.4.1 From deb4b0cd403577ace4dfcca9e8939e8bbd584489 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 1 Aug 2020 01:11:54 +0000 Subject: [PATCH 27/33] - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-http-client.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index 6c299ef..d8c4bb9 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -9,7 +9,7 @@ Name: ghc-%{pkg_name} Version: 0.6.4.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A basic HTTP client engine # Network/HTTP/Proxy.hs is BSD @@ -137,6 +137,10 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog +* Sat Aug 01 2020 Fedora Release Engineering - 0.6.4.1-3 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Mon Jul 27 2020 Fedora Release Engineering - 0.6.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From c56a28b07f670b020386b4d8679d6fd1f028b6f5 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 26 Jan 2021 07:20:19 +0000 Subject: [PATCH 28/33] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-http-client.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index d8c4bb9..da8385f 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -9,7 +9,7 @@ Name: ghc-%{pkg_name} Version: 0.6.4.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A basic HTTP client engine # Network/HTTP/Proxy.hs is BSD @@ -137,6 +137,9 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog +* Tue Jan 26 2021 Fedora Release Engineering - 0.6.4.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Sat Aug 01 2020 Fedora Release Engineering - 0.6.4.1-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From 5dffe98662567d428d7219199598e248abe677ac Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 22 Jul 2021 00:49:01 +0000 Subject: [PATCH 29/33] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-http-client.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index da8385f..864065f 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -9,7 +9,7 @@ Name: ghc-%{pkg_name} Version: 0.6.4.1 -Release: 4%{?dist} +Release: 5%{?dist} Summary: A basic HTTP client engine # Network/HTTP/Proxy.hs is BSD @@ -137,6 +137,9 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog +* Thu Jul 22 2021 Fedora Release Engineering - 0.6.4.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Tue Jan 26 2021 Fedora Release Engineering - 0.6.4.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild From 8fa8ee037df9347fbad83bb5959596f8746256cb Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 8 Jul 2021 00:30:11 +0800 Subject: [PATCH 30/33] refresh to cabal-rpm-2.0.9 --- ghc-http-client.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index 864065f..2743d68 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-2.0.6 +# generated by cabal-rpm-2.0.9 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global pkg_name http-client @@ -75,6 +75,7 @@ This package provides the Haskell %{pkg_name} library development files. %package doc Summary: Haskell %{pkg_name} library documentation BuildArch: noarch +Requires: ghc-filesystem Obsoletes: %{name}-devel-doc < %{version}-%{release} %description doc @@ -112,7 +113,9 @@ This package provides the Haskell %{pkg_name} profiling library. %check +%if %{with tests} %cabal_test +%endif %files -f %{name}.files From 0b17cf9a7c53c9746b8cf05e32a2d7183da8e22e Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 6 Aug 2021 11:27:06 +0800 Subject: [PATCH 31/33] bump release --- ghc-http-client.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index 2743d68..e71bc04 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -9,7 +9,7 @@ Name: ghc-%{pkg_name} Version: 0.6.4.1 -Release: 5%{?dist} +Release: 6%{?dist} Summary: A basic HTTP client engine # Network/HTTP/Proxy.hs is BSD @@ -140,6 +140,9 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog +* Fri Aug 06 2021 Jens Petersen - 0.6.4.1-6 +- rebuild + * Thu Jul 22 2021 Fedora Release Engineering - 0.6.4.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From c71abcb9f51a0d90d9635fe57d1471a5d5ac0328 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 20 Jan 2022 05:03:07 +0000 Subject: [PATCH 32/33] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-http-client.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-http-client.spec b/ghc-http-client.spec index e71bc04..bb6a00c 100644 --- a/ghc-http-client.spec +++ b/ghc-http-client.spec @@ -9,7 +9,7 @@ Name: ghc-%{pkg_name} Version: 0.6.4.1 -Release: 6%{?dist} +Release: 7%{?dist} Summary: A basic HTTP client engine # Network/HTTP/Proxy.hs is BSD @@ -140,6 +140,9 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog +* Thu Jan 20 2022 Fedora Release Engineering - 0.6.4.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Fri Aug 06 2021 Jens Petersen - 0.6.4.1-6 - rebuild From d00563c54b862f2826d685f79d32da564427626d Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Mon, 30 Oct 2023 21:44:33 +0300 Subject: [PATCH 33/33] Remove unnecessary files --- sources | 1 - 1 file changed, 1 deletion(-) delete mode 100644 sources diff --git a/sources b/sources deleted file mode 100644 index 85ee20f..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (http-client-0.6.4.1.tar.gz) = b9595ebf3cb48c5ed288934976b78270a3092a35ae083853684c848301ee88a18e0e41534180033df071ab87dc9f9cbab99da37cbc74d538472409c13dcfce7d