Compare commits

...

59 Commits
f20 ... rawhide

Author SHA1 Message Date
Jens Petersen
d6f6c1b016 really bump release 2023-02-17 18:40:24 +08:00
Jens Petersen
bc33b275cc bump release 2023-02-17 16:06:57 +08:00
Jens Petersen
8cad6df585 ghc-9.2 tweaks: fix parseTime error and bytestring for readable 2023-01-29 23:18:43 +08:00
Jens Petersen
14f46f6c78 refresh to cabal-rpm-2.1.0 with SPDX migration 2023-01-24 23:54:58 +08:00
Fedora Release Engineering
e4132f15fb Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-21 05:48:52 +00:00
Jens Petersen
ee07e85326 update to 1.0.5.0 2022-06-18 00:09:06 +08:00
Fedora Release Engineering
ce66b60698 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 05:33:20 +00:00
Jens Petersen
c639bb983f refresh to cabal-rpm-2.0.10 2021-08-05 22:23:05 +08:00
Jens Petersen
ee8706a39a update to 1.0.4.2 2021-08-05 22:23:05 +08:00
Fedora Release Engineering
b786a99726 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-22 01:15:53 +00:00
Fedora Release Engineering
80f647306b - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 07:44:29 +00:00
Fedora Release Engineering
0013ffd465 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-08-01 01:29:54 +00:00
Fedora Release Engineering
ecb2ed7263 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-27 19:40:33 +00:00
Jens Petersen
9f20ff84f1 bump release 2020-07-17 18:38:19 +08:00
Jens Petersen
0972e7b58d add revision 2020-07-17 16:38:02 +08:00
Jens Petersen
a7ecedb544 refresh to cabal-rpm-2.0.6 2020-06-19 16:56:57 +08:00
Jens Petersen
9cf1cbd025 refresh to cabal-rpm-2.0.5 2020-06-04 19:28:19 +08:00
Jens Petersen
8b142b29ce update to 1.0.4.1 2020-02-20 00:08:16 +08:00
Jens Petersen
5be5eef36c refresh to cabal-rpm-2.0.2 2020-02-07 00:11:11 +08:00
Fedora Release Engineering
4064c35cd4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-28 21:23:55 +00:00
Jens Petersen
cffd56b59f BR prof for lib and static for executable 2019-08-05 18:31:54 +08:00
Jens Petersen
e80e667897 update to 1.0.4.0 2019-07-25 16:39:31 +00:00
Jens Petersen
880417b9e2 refresh to cabal-rpm-1.0.0: lib doc/prof subpkgs and bin static BRs 2019-07-25 06:39:44 +00:00
Fedora Release Engineering
9edcf9eb0a - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-25 03:00:54 +00:00
Jens Petersen
6970c8b055 refresh to cabal-rpm-0.13 2019-02-17 22:47:10 +08:00
Fedora Release Engineering
e67335dc70 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-01-31 22:01:07 +00:00
Jens Petersen
8a6ed6a641 update to 1.0.3.2 2018-07-23 00:08:03 +09:00
Jens Petersen
fea0c3d422 move patch field up 2018-07-22 17:58:26 +09:00
Jens Petersen
e6cce83b59 newline after %setup for easier patching 2018-07-22 00:47:19 +09:00
Fedora Release Engineering
b1db1d8ebf - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-13 02:08:16 +00:00
Fedora Release Engineering
7139b23401 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-07 12:09:41 +00:00
Jens Petersen
aebe2d9588 drop ldconfig scriptlets 2018-02-04 01:03:27 +09:00
Jens Petersen
7761920f0d add readable source back 2018-02-02 18:51:06 +09:00
Jens Petersen
0d774dc88b update to 1.0.3.1 2018-01-26 00:07:29 +01:00
Jens Petersen
f0bf771abe refresh to cabal-rpm-0.12.1 2018-01-24 14:12:01 +01:00
Jens Petersen
ca094dcda7 drop %ghc_fix_rpath 2017-11-15 14:43:39 +09:00
Fedora Release Engineering
e51fb042e3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-02 21:32:31 +00:00
Fedora Release Engineering
190e70d040 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-26 09:56:40 +00:00
Jens Petersen
e6b4fa9633 subpackage readable 2017-02-28 23:08:34 +09:00
Jens Petersen
d062657483 update to 1.0.1.0
time-locale-compat moved to aeson
2017-02-24 16:40:42 +09:00
Fedora Release Engineering
12fd8bc4f4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-10 10:49:28 +00:00
Jens Petersen
baf4b30a45 build subpackage in main package dir 2017-02-10 16:24:20 +09:00
Jens Petersen
d65b8be2bd drop build topdir 2017-01-29 14:29:20 +01:00
Jens Petersen
91f47a8f40 rebuild 2016-09-27 17:32:38 +09:00
Jens Petersen
3d04b8a42a fix changelog version entry 2016-09-26 12:07:42 +09:00
Jens Petersen
ebf345b89f add RR link for time-locale-compat 2016-09-08 13:01:50 +09:00
Jens Petersen
847a4665f4 use subpkgver and pkgver macros 2016-09-01 19:48:17 +09:00
Jens Petersen
66f1a244dc 0.9.8.0 tarball 2016-08-25 21:51:51 +02:00
Jens Petersen
353fd3c45c apply patch in subdir 2016-08-25 19:26:36 +02:00
Jens Petersen
6e2706d35d add time-locale-compat tarball 2016-08-25 19:24:45 +02:00
Jens Petersen
e81081af66 update to 0.9.8.0 and subpackage time-locale-compat 2016-08-25 19:21:35 +02:00
Dennis Gilmore
5f16589c3c - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-03 21:44:38 +00:00
Jens Petersen
0bb1c16df6 Reverting "update to 0.9.8.0"
This reverts commit b546267520.
2016-02-02 00:29:48 +09:00
Jens Petersen
b546267520 update to 0.9.8.0 2015-09-29 18:17:11 +09:00
Dennis Gilmore
16a6ce218c - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-17 07:59:25 +00:00
Jens Petersen
b4e490fce2 update to 0.9.6.4 2015-01-20 22:11:02 +09:00
Jens Petersen
991ead50ce update to 0.9.6.3 2014-09-01 18:38:17 +09:00
Peter Robinson
3628a45424 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-16 15:52:31 +00:00
Dennis Gilmore
91096d7c49 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 10:17:42 -05:00
5 changed files with 581 additions and 40 deletions

12
.gitignore vendored
View File

@ -5,3 +5,15 @@
/snap-core-0.9.2.2.tar.gz
/snap-core-0.9.3.1.tar.gz
/snap-core-0.9.4.0.tar.gz
/snap-core-0.9.6.3.tar.gz
/snap-core-0.9.6.4.tar.gz
/snap-core-0.9.8.0.tar.gz
/time-locale-compat-0.1.1.3.tar.gz
/snap-core-1.0.1.0.tar.gz
/readable-0.3.1.tar.gz
/snap-core-1.0.3.1.tar.gz
/snap-core-1.0.3.2.tar.gz
/snap-core-1.0.4.0.tar.gz
/snap-core-1.0.4.1.tar.gz
/snap-core-1.0.4.2.tar.gz
/snap-core-1.0.5.0.tar.gz

View File

@ -1,45 +1,89 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
# generated by cabal-rpm-2.1.0 --subpackage
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
%global pkg_name snap-core
%global pkgver %{pkg_name}-%{version}
%global readable readable-0.3.1
%global subpkgs %{readable}
# testsuite missing deps: test-framework test-framework-hunit test-framework-quickcheck2
Name: ghc-%{pkg_name}
Version: 0.9.4.0
Release: 2%{?dist}
Version: 1.0.5.0
# can only be reset when all subpkgs bumped
Release: 23%{?dist}
Summary: Snap web framework core library
License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name}
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
License: BSD-3-Clause
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/%{readable}/%{readable}.tar.gz
Source2: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
# End cabal-rpm sources
Patch0: snap-core-0.9.2.2-portable-flag.patch
Patch1: snap-core-parseTime.patch
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
BuildRequires: dos2unix
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros-extra
BuildRequires: ghc-HUnit-devel
BuildRequires: ghc-MonadCatchIO-transformers-devel
BuildRequires: ghc-attoparsec-devel
BuildRequires: ghc-attoparsec-enumerator-devel
BuildRequires: ghc-blaze-builder-devel
BuildRequires: ghc-blaze-builder-enumerator-devel
BuildRequires: ghc-base-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-case-insensitive-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-deepseq-devel
BuildRequires: ghc-directory-devel
BuildRequires: ghc-enumerator-devel
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-hashable-devel
BuildRequires: ghc-io-streams-devel
BuildRequires: ghc-lifted-base-devel
BuildRequires: ghc-monad-control-devel
BuildRequires: ghc-mtl-devel
BuildRequires: ghc-old-locale-devel
BuildRequires: ghc-network-devel
BuildRequires: ghc-network-uri-devel
BuildRequires: ghc-random-devel
#BuildRequires: ghc-readable-devel
BuildRequires: ghc-regex-posix-devel
BuildRequires: ghc-text-devel
BuildRequires: ghc-time-devel
BuildRequires: ghc-time-locale-compat-devel
BuildRequires: ghc-transformers-devel
BuildRequires: ghc-transformers-base-devel
BuildRequires: ghc-unix-compat-devel
BuildRequires: ghc-unordered-containers-devel
BuildRequires: ghc-vector-devel
BuildRequires: ghc-zlib-enum-devel
%if %{with ghc_prof}
BuildRequires: ghc-HUnit-prof
BuildRequires: ghc-attoparsec-prof
BuildRequires: ghc-base-prof
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-case-insensitive-prof
BuildRequires: ghc-containers-prof
BuildRequires: ghc-directory-prof
BuildRequires: ghc-filepath-prof
BuildRequires: ghc-hashable-prof
BuildRequires: ghc-io-streams-prof
BuildRequires: ghc-lifted-base-prof
BuildRequires: ghc-monad-control-prof
BuildRequires: ghc-mtl-prof
BuildRequires: ghc-network-prof
BuildRequires: ghc-network-uri-prof
BuildRequires: ghc-random-prof
#BuildRequires: ghc-readable-prof
BuildRequires: ghc-regex-posix-prof
BuildRequires: ghc-text-prof
BuildRequires: ghc-time-prof
BuildRequires: ghc-time-locale-compat-prof
BuildRequires: ghc-transformers-prof
BuildRequires: ghc-transformers-base-prof
BuildRequires: ghc-unix-compat-prof
BuildRequires: ghc-unordered-containers-prof
BuildRequires: ghc-vector-prof
%endif
# End cabal-rpm deps
Patch1: snap-core-0.9.2.2-portable-flag.patch
%description
Snap is a simple and fast web development framework and server written
@ -49,53 +93,201 @@ the Snap framework.
%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}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
Requires: %{name} = %{version}-%{release}
%endif
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package provides the Haskell %{pkg_name} library development files.
%if %{with haddock}
%package doc
Summary: Haskell %{pkg_name} library documentation
BuildArch: noarch
Requires: ghc-filesystem
%description doc
This package provides the Haskell %{pkg_name} library documentation.
%endif
%if %{with ghc_prof}
%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.
%endif
%global main_version %{version}
%if %{defined ghclibdir}
%ghc_lib_subpackage -l BSD-3-Clause %{readable}
%endif
%global version %{main_version}
%prep
%setup -q -n %{pkg_name}-%{version}
# Begin cabal-rpm setup:
%setup -q -n %{pkgver} -a1
dos2unix -k -n %{SOURCE2} %{pkg_name}.cabal
# End cabal-rpm setup
%patch0 -p1 -b .orig
%patch1 -p1 -b .orig
cabal-tweak-drop-dep bytestring-builder
(
cd %{readable}
cabal-tweak-dep-ver bytestring '< 0.11' '< 0.12'
)
%build
# Begin cabal-rpm build:
%ghc_libs_build %{subpkgs}
%ghc_lib_build
# requires pureMD5 and test-framework*
#%%check
#cd test
#../Setup configure
#../Setup build
#./runTestsAndCoverage.sh
# End cabal-rpm build
%install
# Begin cabal-rpm install
%ghc_libs_install %{subpkgs}
%ghc_lib_install
%post devel
%ghc_pkg_recache
%postun devel
%ghc_pkg_recache
# End cabal-rpm install
%files -f %{name}.files
%doc LICENSE
# Begin cabal-rpm files:
%license LICENSE
# End cabal-rpm files
%files devel -f %{name}-devel.files
%doc CONTRIBUTORS README*.md
%doc CONTRIBUTORS README.SNAP.md README.md
%if %{with haddock}
%files doc -f %{name}-doc.files
%license LICENSE
%endif
%if %{with ghc_prof}
%files prof -f %{name}-prof.files
%endif
%changelog
* Fri Feb 17 2023 Jens Petersen <petersen@redhat.com> - 1.0.5.0-23
- refresh to cabal-rpm-2.1.0 with SPDX migration
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5.0-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Tue Jun 07 2022 Jens Petersen <petersen@redhat.com> - 1.0.5.0-21
- https://hackage.haskell.org/package/snap-core-1.0.5.0/changelog
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4.2-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Aug 5 2021 Jens Petersen <petersen@redhat.com> - 1.0.4.2-19
- update to 1.0.4.2
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4.1-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4.1-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4.1-16
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4.1-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jul 17 2020 Jens Petersen <petersen@redhat.com> - 1.0.4.1-14
- refresh to cabal-rpm-2.0.6
* Fri Feb 14 2020 Jens Petersen <petersen@redhat.com> - 1.0.4.1-13
- update to 1.0.4.1
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4.0-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jul 25 2019 Jens Petersen <petersen@redhat.com> - 1.0.4.0-11
- update to 1.0.4.0
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3.2-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 1.0.3.2-9
- refresh to cabal-rpm-0.13
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3.2-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sun Jul 22 2018 Jens Petersen <petersen@redhat.com> - 1.0.3.2-7
- update to 1.0.3.2
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Jan 24 2018 Jens Petersen <petersen@redhat.com> - 1.0.3.1-4
- update to 1.0.3.1
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Thu Feb 23 2017 Jens Petersen <petersen@redhat.com> - 1.0.1.0-1
- update to 1.0.1.0
- subpackage readable
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.8.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Thu Feb 9 2017 Jens Petersen <petersen@redhat.com> - 0.9.8.0-3
- build subpackage in main package dir
* Tue Sep 27 2016 Jens Petersen <petersen@redhat.com> - 0.9.8.0-2
- rebuild
* Thu Aug 25 2016 Jens Petersen <petersen@redhat.com> - 0.9.8.0-1
- update to 0.9.8.0
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.6.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Tue Jan 20 2015 Jens Petersen <petersen@redhat.com> - 0.9.6.4-1
- update to 0.9.6.4
* Mon Sep 01 2014 Jens Petersen <petersen@redhat.com> - 0.9.6.3-1
- update to 0.9.6.3
- refresh to clrpm-0.8.11
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

324
snap-core-1.0.5.0.cabal Normal file
View File

@ -0,0 +1,324 @@
name: snap-core
version: 1.0.5.0
x-revision: 3
synopsis: Snap: A Haskell Web Framework (core interfaces and types)
description:
Snap is a simple and fast web development framework and server written in
Haskell. For more information or to download the latest version, you can
visit the Snap project website at <http://snapframework.com/>.
.
This library contains the core definitions and types for the Snap framework,
including:
.
1. Primitive types and functions for HTTP (requests, responses, cookies,
post/query parameters, etc)
.
2. A monad for programming web handlers called \"Snap\", which allows:
.
* Stateful access to the HTTP request and response objects
.
* Monadic failure (i.e. MonadPlus/Alternative instances) for declining
to handle requests and chaining handlers together
.
* Early termination of the computation if you know early what you want
to return and want to prevent further monadic processing
.
/Quick start/: The 'Snap' monad and HTTP definitions are in "Snap.Core".
license: BSD3
license-file: LICENSE
author: Snap Framework Authors (see CONTRIBUTORS)
maintainer: snap@snapframework.com
build-type: Simple
cabal-version: >= 1.10
homepage: http://snapframework.com/
bug-reports: https://github.com/snapframework/snap-core/issues
category: Web, Snap, IO-Streams
Tested-With: GHC == 7.4.2, GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3,
GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.5,
GHC == 8.8.4, GHC == 8.10.7, GHC == 9.0.2, GHC == 9.2.1
extra-source-files:
test/TestSuite.hs,
cbits/timefuncs.c,
CONTRIBUTORS,
extra/haddock.css,
extra/hscolour.css,
extra/logo.gif,
haddock.sh,
LICENSE,
README.md,
README.SNAP.md,
Setup.hs,
runTestsAndCoverage.sh,
test/data/fileServe/foo.bin,
test/data/fileServe/foo.bin.bin.bin,
test/data/fileServe/foo.html,
test/data/fileServe/foo.txt,
test/data/fileServe/mydir1/index.txt,
test/data/fileServe/mydir2/dir/foo.txt,
test/data/fileServe/mydir2/foo.txt,
test/data/fileServe/mydir3/altindex.html,
test/Snap/Core/Tests.hs,
test/Snap/Internal/Http/Types/Tests.hs,
test/Snap/Internal/Parsing/Tests.hs,
test/Snap/Internal/Routing/Tests.hs,
test/Snap/Test/Common.hs,
test/Snap/Types/Headers/Tests.hs,
test/Snap/Util/FileServe/Tests.hs,
test/Snap/Util/FileUploads/Tests.hs,
test/Snap/Util/GZip/Tests.hs,
test/Snap/Util/Proxy/Tests.hs
Flag portable
Description: Compile in cross-platform mode. No platform-specific code or
optimizations such as C routines will be used.
Default: False
Flag debug
Description: Enable debug logging code. With this flag, Snap will
test the DEBUG environment variable to decide whether to do
logging, and this introduces a tiny amount of overhead
(a call into a function pointer) because the calls to 'debug'
cannot be inlined.
Default: False
Flag network-uri
Description: Get Network.URI from the network-uri package
Default: True
Library
Default-language: Haskell2010
hs-source-dirs: src
if !flag(debug)
cpp-options: -DNODEBUG
if flag(portable) || os(windows)
cpp-options: -DPORTABLE
build-depends: time-locale-compat == 0.1.*
else
c-sources: cbits/timefuncs.c
include-dirs: cbits
build-depends: old-locale >= 1 && <2
exposed-modules:
Snap.Core,
Snap.Internal.Core,
Snap.Internal.Debug,
Snap.Internal.Http.Types,
Snap.Internal.Parsing,
Snap.Internal.Util.FileServe,
Snap.Test,
Snap.Types.Headers,
Snap.Util.CORS,
Snap.Util.FileServe,
Snap.Util.FileUploads,
Snap.Util.GZip,
Snap.Util.Proxy
other-modules:
Snap.Internal.Instances,
Snap.Internal.Routing,
Snap.Internal.Test.RequestBuilder,
Snap.Internal.Test.Assertions,
Snap.Internal.Util.FileUploads
build-depends:
HUnit >= 1.2 && < 2,
attoparsec >= 0.12 && < 0.15,
base >= 4 && < 5,
bytestring >= 0.9 && < 0.12,
bytestring-builder >= 0.10.4 && < 0.11,
case-insensitive >= 1.1 && < 1.3,
containers >= 0.3 && < 1.0,
directory >= 1 && < 2,
filepath >= 1.1 && < 2.0,
lifted-base >= 0.1 && < 0.3,
io-streams >= 1.3 && < 1.6,
hashable >= 1.2.0.6 && < 1.5,
monad-control >= 1.0 && < 1.1,
mtl >= 2.0 && < 2.3,
random >= 1 && < 2,
readable >= 0.1 && < 0.4,
regex-posix >= 0.95 && < 1,
text >= 0.11 && < 2.1,
time >= 1.0 && < 1.14,
transformers >= 0.3 && < 0.6,
transformers-base >= 0.4 && < 0.5,
unix-compat >= 0.3 && < 0.7,
-- allow unix-compat-0.6, see https://github.com/snapframework/snap-core/pull/317
unordered-containers >= 0.1.4.3 && < 0.3,
vector >= 0.6 && < 0.14
other-extensions:
BangPatterns,
CPP,
DeriveDataTypeable,
EmptyDataDecls,
ExistentialQuantification,
FlexibleContexts,
FlexibleInstances,
ForeignFunctionInterface,
GeneralizedNewtypeDeriving,
MultiParamTypeClasses,
OverloadedStrings,
OverloadedStrings,
PackageImports,
Rank2Types,
ScopedTypeVariables,
TypeSynonymInstances
if impl(ghc >= 6.12.0)
ghc-options: -Wall -fwarn-tabs -fno-warn-unused-do-bind
else
ghc-options: -Wall -fwarn-tabs
-- See https://ghc.haskell.org/trac/ghc/wiki/Migration/8.0#base-4.9.0.0
if impl(ghc < 8.8)
if impl(ghc >= 8.0)
ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances
else
build-depends: fail == 4.9.*, semigroups >= 0.18 && < 0.20
if flag(network-uri)
-- Leaving network-uri-2.7.0.0 out for now because it is marked deprecated
build-depends: network-uri >= 2.6 && < 2.7,
network >= 2.6 && < 3.2
else
build-depends: network-uri >= 2.5 && < 2.6,
network >= 2.3 && < 2.6
if impl(ghc >= 7.6)
build-depends: unix-compat >= 0.3
else
build-depends: unix-compat >= 0.3 && < 0.5.3
Test-suite testsuite
hs-source-dirs: src test
Type: exitcode-stdio-1.0
Main-is: TestSuite.hs
Default-language: Haskell2010
if flag(portable) || os(windows)
cpp-options: -DPORTABLE
build-depends: time-locale-compat == 0.1.*
else
c-sources: cbits/timefuncs.c
include-dirs: cbits
build-depends: old-locale >= 1 && <2
other-modules:
Snap.Core,
Snap.Internal.Debug,
Snap.Internal.Http.Types,
Snap.Internal.Parsing,
Snap.Test,
Snap.Types.Headers,
Snap.Util.CORS,
Snap.Util.FileServe,
Snap.Util.FileUploads,
Snap.Util.GZip,
Snap.Util.Proxy,
Snap.Internal.Core,
Snap.Internal.Instances,
Snap.Internal.Routing,
Snap.Internal.Test.RequestBuilder,
Snap.Internal.Test.Assertions,
Snap.Internal.Util.FileServe,
Snap.Internal.Util.FileUploads,
--------------------------------------------------------------------------
Snap.Core.Tests,
Snap.Internal.Http.Types.Tests,
Snap.Internal.Parsing.Tests,
Snap.Internal.Routing.Tests,
Snap.Test.Common,
Snap.Test.Tests,
Snap.Types.Headers.Tests,
Snap.Util.CORS.Tests,
Snap.Util.FileServe.Tests,
Snap.Util.FileUploads.Tests,
Snap.Util.GZip.Tests,
Snap.Util.Proxy.Tests
build-depends:
HUnit,
attoparsec,
base,
bytestring,
bytestring-builder,
case-insensitive,
containers,
directory,
filepath,
hashable,
lifted-base,
io-streams,
monad-control,
mtl,
random,
readable,
regex-posix,
text,
time,
transformers,
transformers-base,
unix-compat,
unordered-containers,
vector,
--------------------------------------------------------------------------
QuickCheck >= 2.3.0.2 && <3,
deepseq >= 1.1 && < 1.5,
parallel >= 3 && <4,
test-framework >= 0.8.0.3 && <0.9,
test-framework-hunit >= 0.2.7 && <0.4,
test-framework-quickcheck2 >= 0.2.12.1 && <0.4,
zlib >= 0.5 && <0.7
if flag(network-uri)
build-depends: network-uri,
network
else
build-depends: network-uri,
network
ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -threaded
-fno-warn-unused-do-bind
-- See https://ghc.haskell.org/trac/ghc/wiki/Migration/8.0#base-4.9.0.0
if impl(ghc < 8.8)
if impl(ghc >= 8.0)
ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances
else
build-depends: fail == 4.9.*, semigroups >= 0.18 && < 0.20
other-extensions:
BangPatterns,
CPP,
DeriveDataTypeable,
EmptyDataDecls,
ExistentialQuantification,
FlexibleContexts,
FlexibleInstances,
ForeignFunctionInterface,
GeneralizedNewtypeDeriving,
MagicHash,
MultiParamTypeClasses,
OverloadedStrings,
Rank2Types,
ScopedTypeVariables,
StandaloneDeriving,
TypeFamilies,
TypeSynonymInstances
source-repository head
type: git
location: git://github.com/snapframework/snap-core.git

12
snap-core-parseTime.patch Normal file
View File

@ -0,0 +1,12 @@
diff -up snap-core-1.0.5.0/src/Snap/Internal/Http/Types.hs~ snap-core-1.0.5.0/src/Snap/Internal/Http/Types.hs
--- snap-core-1.0.5.0/src/Snap/Internal/Http/Types.hs~ 2001-09-09 09:46:40.000000000 +0800
+++ snap-core-1.0.5.0/src/Snap/Internal/Http/Types.hs 2023-01-26 17:11:45.155960424 +0800
@@ -1282,7 +1282,7 @@ formatLogTime ctime = do
parseHttpTime = return . toCTime . prs . S.unpack
where
prs :: String -> Maybe UTCTime
- prs = parseTime defaultTimeLocale "%a, %d %b %Y %H:%M:%S GMT"
+ prs = parseTimeM True defaultTimeLocale "%a, %d %b %Y %H:%M:%S GMT"
toCTime :: Maybe UTCTime -> CTime
toCTime (Just t) = fromInteger $ truncate $ utcTimeToPOSIXSeconds t

View File

@ -1 +1,2 @@
a4fb9ae2b77f341507d3c41fb080534c snap-core-0.9.4.0.tar.gz
SHA512 (readable-0.3.1.tar.gz) = 237467c4b6dfef9fe090c53e45a1f4261e34fc947b16878575c2b1d2b93400a67678bfde3ad8500f82c56a4b87c5b45e561304c9936572a033d7b295740fb3be
SHA512 (snap-core-1.0.5.0.tar.gz) = 4873382625715703531c7cbc61343a29cf7606384e64b92fb2026016018258f5c959ac7dccf0b1093eca39f5b750c19416afc691bec93161fa76ef79a1369b7b