commit ghc-wai for openSUSE:Factory

2020-08-28 Thread root
Hello community,

here is the log from the commit of package ghc-wai for openSUSE:Factory checked 
in at 2020-08-28 21:41:01

Comparing /work/SRC/openSUSE:Factory/ghc-wai (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-wai.new.3399 (New)


Package is "ghc-wai"

Fri Aug 28 21:41:01 2020 rev:2 rq:829487 version:3.2.2.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-wai/ghc-wai.changes  2020-06-19 
17:05:35.072853349 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-wai.new.3399/ghc-wai.changes
2020-08-28 21:41:04.624880609 +0200
@@ -1,0 +2,5 @@
+Tue Aug 18 10:46:35 UTC 2020 - Peter Simons 
+
+- Replace %setup -q with the more modern %autosetup macro.
+
+---



Other differences:
--
++ ghc-wai.spec ++
--- /var/tmp/diff_new_pack.BYs3BF/_old  2020-08-28 21:41:05.160880806 +0200
+++ /var/tmp/diff_new_pack.BYs3BF/_new  2020-08-28 21:41:05.164880808 +0200
@@ -54,7 +54,7 @@
 This package provides the Haskell %{pkg_name} library development files.
 
 %prep
-%setup -q -n %{pkg_name}-%{version}
+%autosetup -n %{pkg_name}-%{version}
 
 %build
 %ghc_lib_build




commit ghc-wai for openSUSE:Factory

2020-06-19 Thread root
Hello community,

here is the log from the commit of package ghc-wai for openSUSE:Factory checked 
in at 2020-06-19 17:05:32

Comparing /work/SRC/openSUSE:Factory/ghc-wai (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-wai.new.3606 (New)


Package is "ghc-wai"

Fri Jun 19 17:05:32 2020 rev:1 rq:814986 version:3.2.2.1

Changes:

New Changes file:

--- /dev/null   2020-05-28 02:28:09.919761697 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-wai.new.3606/ghc-wai.changes
2020-06-19 17:05:35.072853349 +0200
@@ -0,0 +1,5 @@
+---
+Tue Jun  9 09:26:20 UTC 2020 - psim...@suse.com
+
+- Add wai at version 3.2.2.1.
+

New:

  ghc-wai.changes
  ghc-wai.spec
  wai-3.2.2.1.tar.gz



Other differences:
--
++ ghc-wai.spec ++
#
# spec file for package ghc-wai
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


%global pkg_name wai
%bcond_with tests
Name:   ghc-%{pkg_name}
Version:3.2.2.1
Release:0
Summary:Web Application Interface
License:MIT
URL:https://hackage.haskell.org/package/%{pkg_name}
Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires:  ghc-Cabal-devel
BuildRequires:  ghc-bytestring-devel
BuildRequires:  ghc-http-types-devel
BuildRequires:  ghc-network-devel
BuildRequires:  ghc-rpm-macros
BuildRequires:  ghc-text-devel
BuildRequires:  ghc-transformers-devel
BuildRequires:  ghc-vault-devel
%if %{with tests}
BuildRequires:  ghc-hspec-devel
%endif

%description
Provides a common protocol for communication between web applications and web
servers.

API docs and the README are available at .

%package devel
Summary:Haskell %{pkg_name} library development files
Requires:   %{name} = %{version}-%{release}
Requires:   ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%prep
%setup -q -n %{pkg_name}-%{version}

%build
%ghc_lib_build

%install
%ghc_lib_install

%check
%cabal_test

%post devel
%ghc_pkg_recache

%postun devel
%ghc_pkg_recache

%files -f %{name}.files
%license LICENSE

%files devel -f %{name}-devel.files
%doc ChangeLog.md README.md

%changelog



commit ghc-wai for openSUSE:Factory

2017-09-15 Thread root
Hello community,

here is the log from the commit of package ghc-wai for openSUSE:Factory checked 
in at 2017-09-15 22:23:40

Comparing /work/SRC/openSUSE:Factory/ghc-wai (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-wai.new (New)


Package is "ghc-wai"

Fri Sep 15 22:23:40 2017 rev:9 rq:525651 version:3.2.1.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-wai/ghc-wai.changes  2016-07-20 
09:20:24.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-wai.new/ghc-wai.changes 2017-09-15 
22:23:41.895814535 +0200
@@ -1,0 +2,5 @@
+Thu Aug  3 15:38:38 UTC 2017 - psim...@suse.com
+
+- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf.
+
+---



Other differences:
--
++ ghc-wai.spec ++
--- /var/tmp/diff_new_pack.DNS1Ly/_old  2017-09-15 22:23:42.747694518 +0200
+++ /var/tmp/diff_new_pack.DNS1Ly/_new  2017-09-15 22:23:42.751693955 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-wai
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -23,11 +23,10 @@
 Release:0
 Summary:Web Application Interface
 License:MIT
-Group:  System/Libraries
-Url:https://hackage.haskell.org/package/%{pkg_name}
+Group:  Development/Libraries/Haskell
+URL:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
 BuildRequires:  ghc-Cabal-devel
-# Begin cabal-rpm deps:
 BuildRequires:  ghc-blaze-builder-devel
 BuildRequires:  ghc-bytestring-builder-devel
 BuildRequires:  ghc-bytestring-devel
@@ -37,18 +36,16 @@
 BuildRequires:  ghc-text-devel
 BuildRequires:  ghc-transformers-devel
 BuildRequires:  ghc-vault-devel
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-hspec-devel
 %endif
-# End cabal-rpm deps
 
 %description
 API docs and the README are available at .
 
 %package devel
 Summary:Haskell %{pkg_name} library development files
-Group:  Development/Libraries/Other
+Group:  Development/Libraries/Haskell
 Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
 Requires(post): ghc-compiler = %{ghc_version}
@@ -60,20 +57,14 @@
 %prep
 %setup -q -n %{pkg_name}-%{version}
 
-
 %build
 %ghc_lib_build
 
-
 %install
 %ghc_lib_install
 
-
 %check
-%if %{with tests}
-%{cabal} test
-%endif
-
+%cabal_test
 
 %post devel
 %ghc_pkg_recache
@@ -82,11 +73,9 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%defattr(-,root,root,-)
 %doc LICENSE
 
 %files devel -f %{name}-devel.files
-%defattr(-,root,root,-)
 %doc ChangeLog.md README.md
 
 %changelog




commit ghc-wai for openSUSE:Factory

2016-07-20 Thread h_root
Hello community,

here is the log from the commit of package ghc-wai for openSUSE:Factory checked 
in at 2016-07-20 09:20:19

Comparing /work/SRC/openSUSE:Factory/ghc-wai (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-wai.new (New)


Package is "ghc-wai"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-wai/ghc-wai.changes  2016-05-31 
12:24:40.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-wai.new/ghc-wai.changes 2016-07-20 
09:20:24.0 +0200
@@ -1,0 +2,6 @@
+Sun Jul 10 17:31:24 UTC 2016 - psim...@suse.com
+
+- Update to version 3.2.1.1 revision 0 with cabal2obs.
+  This update obsoletes remove-dep.patch.
+
+---

Old:

  remove-dep.patch



Other differences:
--
++ ghc-wai.spec ++
--- /var/tmp/diff_new_pack.FNlWOz/_old  2016-07-20 09:20:26.0 +0200
+++ /var/tmp/diff_new_pack.FNlWOz/_new  2016-07-20 09:20:26.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-wai
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,34 +17,27 @@
 
 
 %global pkg_name wai
-
 %bcond_with tests
-
-Name:   ghc-wai
+Name:   ghc-%{pkg_name}
 Version:3.2.1.1
 Release:0
 Summary:Web Application Interface
 License:MIT
 Group:  System/Libraries
-
 Url:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
-# PATCH-FIX-OPENSUSE remove-dep.path -- mimi...@gmail.com remove unused 
dependency
-Patch0: remove-dep.patch
-
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-
 BuildRequires:  ghc-Cabal-devel
-BuildRequires:  ghc-rpm-macros
 # Begin cabal-rpm deps:
 BuildRequires:  ghc-blaze-builder-devel
+BuildRequires:  ghc-bytestring-builder-devel
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-http-types-devel
 BuildRequires:  ghc-network-devel
+BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-text-devel
 BuildRequires:  ghc-transformers-devel
-BuildRequires:  ghc-unix-compat-devel
 BuildRequires:  ghc-vault-devel
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-hspec-devel
 %endif
@@ -53,34 +46,35 @@
 %description
 API docs and the README are available at .
 
-
 %package devel
 Summary:Haskell %{pkg_name} library development files
 Group:  Development/Libraries/Other
+Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
 Requires(post): ghc-compiler = %{ghc_version}
 Requires(postun): ghc-compiler = %{ghc_version}
-Requires:   %{name} = %{version}-%{release}
 
 %description devel
 This package provides the Haskell %{pkg_name} library development files.
 
-
 %prep
 %setup -q -n %{pkg_name}-%{version}
-%patch0 -p1
+
 
 %build
 %ghc_lib_build
 
+
 %install
 %ghc_lib_install
 
+
 %check
 %if %{with tests}
-%cabal test
+%{cabal} test
 %endif
 
+
 %post devel
 %ghc_pkg_recache
 
@@ -93,6 +87,6 @@
 
 %files devel -f %{name}-devel.files
 %defattr(-,root,root,-)
-%doc README.md
+%doc ChangeLog.md README.md
 
 %changelog




commit ghc-wai for openSUSE:Factory

2016-05-31 Thread h_root
Hello community,

here is the log from the commit of package ghc-wai for openSUSE:Factory checked 
in at 2016-05-31 12:24:38

Comparing /work/SRC/openSUSE:Factory/ghc-wai (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-wai.new (New)


Package is "ghc-wai"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-wai/ghc-wai.changes  2016-04-22 
16:25:30.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-wai.new/ghc-wai.changes 2016-05-31 
12:24:40.0 +0200
@@ -1,0 +2,7 @@
+Thu May 26 06:30:44 UTC 2016 - mimi...@gmail.com
+
+- update to 3.2.1.1
+- refreshed remove-dep.patch
+* Relax upper bound on bytestring-builder
+
+---

Old:

  wai-3.2.1.tar.gz

New:

  wai-3.2.1.1.tar.gz



Other differences:
--
++ ghc-wai.spec ++
--- /var/tmp/diff_new_pack.b2J9w6/_old  2016-05-31 12:24:41.0 +0200
+++ /var/tmp/diff_new_pack.b2J9w6/_new  2016-05-31 12:24:41.0 +0200
@@ -21,7 +21,7 @@
 %bcond_with tests
 
 Name:   ghc-wai
-Version:3.2.1
+Version:3.2.1.1
 Release:0
 Summary:Web Application Interface
 License:MIT

++ remove-dep.patch ++
--- /var/tmp/diff_new_pack.b2J9w6/_old  2016-05-31 12:24:41.0 +0200
+++ /var/tmp/diff_new_pack.b2J9w6/_new  2016-05-31 12:24:41.0 +0200
@@ -1,12 +1,12 @@
-Index: wai-3.0.5.0/wai.cabal
+Index: wai-3.2.1.1/wai.cabal
 ===
 wai-3.0.5.0.orig/wai.cabal
-+++ wai-3.0.5.0/wai.cabal
+--- wai-3.2.1.1.orig/wai.cabal
 wai-3.2.1.1/wai.cabal
 @@ -21,7 +21,6 @@ Source-repository head
  Library
Build-Depends: base  >= 4&& < 5
 , bytestring>= 0.10
--   , bytestring-builder>= 0.10.4.0 && < 0.10.7
+-   , bytestring-builder>= 0.10.4.0 && < 0.11
 , blaze-builder >= 0.2.1.4  && < 0.5
 , network   >= 2.2.1.5
 , http-types>= 0.7

++ wai-3.2.1.tar.gz -> wai-3.2.1.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wai-3.2.1/ChangeLog.md new/wai-3.2.1.1/ChangeLog.md
--- old/wai-3.2.1/ChangeLog.md  2016-04-15 10:55:29.0 +0200
+++ new/wai-3.2.1.1/ChangeLog.md2016-05-24 04:52:48.0 +0200
@@ -1,3 +1,7 @@
+## 3.2.1.1
+
+* Relax upper bound on bytestring-builder
+
 ## 3.2.1
 
 * add mapResponseStatus [#532](https://github.com/yesodweb/wai/pull/532)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wai-3.2.1/wai.cabal new/wai-3.2.1.1/wai.cabal
--- old/wai-3.2.1/wai.cabal 2016-04-15 10:55:29.0 +0200
+++ new/wai-3.2.1.1/wai.cabal   2016-05-24 04:52:48.0 +0200
@@ -1,5 +1,5 @@
 Name:wai
-Version: 3.2.1
+Version: 3.2.1.1
 Synopsis:Web Application Interface.
 Description: Provides a common protocol for communication between web 
applications and web servers.
 description: API docs and the README are available at 
.
@@ -21,7 +21,7 @@
 Library
   Build-Depends: base  >= 4&& < 5
, bytestring>= 0.10
-   , bytestring-builder>= 0.10.4.0 && < 0.10.7
+   , bytestring-builder>= 0.10.4.0 && < 0.11
, blaze-builder >= 0.2.1.4  && < 0.5
, network   >= 2.2.1.5
, http-types>= 0.7




commit ghc-wai for openSUSE:Factory

2016-04-22 Thread h_root
Hello community,

here is the log from the commit of package ghc-wai for openSUSE:Factory checked 
in at 2016-04-22 16:25:15

Comparing /work/SRC/openSUSE:Factory/ghc-wai (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-wai.new (New)


Package is "ghc-wai"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-wai/ghc-wai.changes  2016-04-03 
23:07:47.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-wai.new/ghc-wai.changes 2016-04-22 
16:25:30.0 +0200
@@ -1,0 +2,6 @@
+Sat Apr 16 07:45:49 UTC 2016 - mimi...@gmail.com
+
+- update to 3.2.1
+* add mapResponseStatus
+
+---

Old:

  wai-3.2.0.1.tar.gz

New:

  wai-3.2.1.tar.gz



Other differences:
--
++ ghc-wai.spec ++
--- /var/tmp/diff_new_pack.GXw03A/_old  2016-04-22 16:25:31.0 +0200
+++ /var/tmp/diff_new_pack.GXw03A/_new  2016-04-22 16:25:31.0 +0200
@@ -21,7 +21,7 @@
 %bcond_with tests
 
 Name:   ghc-wai
-Version:3.2.0.1
+Version:3.2.1
 Release:0
 Summary:Web Application Interface
 License:MIT

++ wai-3.2.0.1.tar.gz -> wai-3.2.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wai-3.2.0.1/ChangeLog.md new/wai-3.2.1/ChangeLog.md
--- old/wai-3.2.0.1/ChangeLog.md2016-03-29 08:31:37.0 +0200
+++ new/wai-3.2.1/ChangeLog.md  2016-04-15 10:55:29.0 +0200
@@ -1,3 +1,7 @@
+## 3.2.1
+
+* add mapResponseStatus [#532](https://github.com/yesodweb/wai/pull/532)
+
 ## 3.2.0.1
 
 * Add missing changelog entry
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wai-3.2.0.1/Network/Wai.hs 
new/wai-3.2.1/Network/Wai.hs
--- old/wai-3.2.0.1/Network/Wai.hs  2016-03-29 08:31:37.0 +0200
+++ new/wai-3.2.1/Network/Wai.hs2016-04-15 10:55:29.0 +0200
@@ -79,6 +79,7 @@
   -- ** Response modifiers
 , responseToStream
 , mapResponseHeaders
+, mapResponseStatus
   -- * Middleware composition
 , ifRequest
 , modifyResponse
@@ -239,6 +240,13 @@
 mapResponseHeaders f (ResponseStream s h b) = ResponseStream s (f h) b
 mapResponseHeaders _ r@(ResponseRaw _ _) = r
 
+-- | Apply the provided function to the response status of the Response.
+mapResponseStatus :: (H.Status -> H.Status) -> Response -> Response
+mapResponseStatus f (ResponseFile s h b1 b2) = ResponseFile (f s) h b1 b2
+mapResponseStatus f (ResponseBuilder s h b) = ResponseBuilder (f s) h b
+mapResponseStatus f (ResponseStream s h b) = ResponseStream (f s) h b
+mapResponseStatus _ r@(ResponseRaw _ _) = r
+
 
 
 -- | The WAI application.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wai-3.2.0.1/wai.cabal new/wai-3.2.1/wai.cabal
--- old/wai-3.2.0.1/wai.cabal   2016-03-29 08:31:37.0 +0200
+++ new/wai-3.2.1/wai.cabal 2016-04-15 10:55:29.0 +0200
@@ -1,5 +1,5 @@
 Name:wai
-Version: 3.2.0.1
+Version: 3.2.1
 Synopsis:Web Application Interface.
 Description: Provides a common protocol for communication between web 
applications and web servers.
 description: API docs and the README are available at 
.




commit ghc-wai for openSUSE:Factory

2016-04-03 Thread h_root
Hello community,

here is the log from the commit of package ghc-wai for openSUSE:Factory checked 
in at 2016-04-03 23:07:28

Comparing /work/SRC/openSUSE:Factory/ghc-wai (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-wai.new (New)


Package is "ghc-wai"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-wai/ghc-wai.changes  2016-01-28 
17:25:02.0 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-wai.new/ghc-wai.changes 2016-04-03 
23:07:47.0 +0200
@@ -1,0 +2,5 @@
+Thu Mar 31 08:44:31 UTC 2016 - mimi...@gmail.com
+
+- update to 3.2.0.1 
+
+---

Old:

  wai-3.2.0.tar.gz

New:

  wai-3.2.0.1.tar.gz



Other differences:
--
++ ghc-wai.spec ++
--- /var/tmp/diff_new_pack.bMCQKx/_old  2016-04-03 23:07:48.0 +0200
+++ /var/tmp/diff_new_pack.bMCQKx/_new  2016-04-03 23:07:48.0 +0200
@@ -21,7 +21,7 @@
 %bcond_with tests
 
 Name:   ghc-wai
-Version:3.2.0
+Version:3.2.0.1
 Release:0
 Summary:Web Application Interface
 License:MIT

++ wai-3.2.0.tar.gz -> wai-3.2.0.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wai-3.2.0/ChangeLog.md new/wai-3.2.0.1/ChangeLog.md
--- old/wai-3.2.0/ChangeLog.md  2015-12-30 01:24:47.0 +0100
+++ new/wai-3.2.0.1/ChangeLog.md2016-03-29 08:31:37.0 +0200
@@ -1,3 +1,17 @@
+## 3.2.0.1
+
+* Add missing changelog entry
+
+## 3.2.0
+
+* Major version up due to breaking changes. We chose 3.2.0, not 3.1.0
+  for consistency with Warp 3.2.0.
+* The Network.Wai.HTTP2 module was removed.
+* tryGetFileSize, hContentRange, hAcceptRanges, contentRangeHeader and
+  chooseFilePart, adjustForFilePart and parseByteRanges were removed
+  from the Network.Wai.Internal module.
+* New fields for Request:  requestHeaderReferer and requestHeaderUserAgent.
+
 ## 3.0.5.0
 
 * Avoid using the IsString Builder instance
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wai-3.2.0/wai.cabal new/wai-3.2.0.1/wai.cabal
--- old/wai-3.2.0/wai.cabal 2015-12-30 01:24:47.0 +0100
+++ new/wai-3.2.0.1/wai.cabal   2016-03-29 08:31:37.0 +0200
@@ -1,5 +1,5 @@
 Name:wai
-Version: 3.2.0
+Version: 3.2.0.1
 Synopsis:Web Application Interface.
 Description: Provides a common protocol for communication between web 
applications and web servers.
 description: API docs and the README are available at 
.




commit ghc-wai for openSUSE:Factory

2016-01-29 Thread h_root
Hello community,

here is the log from the commit of package ghc-wai for openSUSE:Factory checked 
in at 2016-01-28 17:24:10

Comparing /work/SRC/openSUSE:Factory/ghc-wai (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-wai.new (New)


Package is "ghc-wai"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-wai/ghc-wai.changes  2015-12-23 
08:49:27.0 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-wai.new/ghc-wai.changes 2016-01-28 
17:25:02.0 +0100
@@ -1,0 +2,12 @@
+Wed Jan 20 12:01:48 UTC 2016 - mimi...@gmail.com
+
+- update to 3.2.0
+* Major version up due to breaking changes. We chose 3.2.0, not 3.1.0 for 
+consistency with Warp 3.2.0.
+* The Network.Wai.HTTP2 module was removed.
+* tryGetFileSize, hContentRange, hAcceptRanges, contentRangeHeader and 
+chooseFilePart, adjustForFilePart and parseByteRanges were removed from 
+the Network.Wai.Internal module.
+* New fields for Request: requestHeaderReferer and requestHeaderUserAgent.
+
+---

Old:

  wai-3.0.5.0.tar.gz

New:

  wai-3.2.0.tar.gz



Other differences:
--
++ ghc-wai.spec ++
--- /var/tmp/diff_new_pack.aeeLVy/_old  2016-01-28 17:25:03.0 +0100
+++ /var/tmp/diff_new_pack.aeeLVy/_new  2016-01-28 17:25:03.0 +0100
@@ -21,7 +21,7 @@
 %bcond_with tests
 
 Name:   ghc-wai
-Version:3.0.5.0
+Version:3.2.0
 Release:0
 Summary:Web Application Interface
 License:MIT

++ wai-3.0.5.0.tar.gz -> wai-3.2.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wai-3.0.5.0/Network/Wai/HTTP2.hs 
new/wai-3.2.0/Network/Wai/HTTP2.hs
--- old/wai-3.0.5.0/Network/Wai/HTTP2.hs2015-12-07 10:08:37.0 
+0100
+++ new/wai-3.2.0/Network/Wai/HTTP2.hs  1970-01-01 01:00:00.0 +0100
@@ -1,272 +0,0 @@
-{-# LANGUAGE OverloadedStrings, RankNTypes #-}
-{-# LANGUAGE CPP #-}
-{-# LANGUAGE DeriveDataTypeable #-}
-
--- | An HTTP\/2-aware variant of the 'Network.Wai.Application' type.  Compared
--- to the original, this exposes the new functionality of server push and
--- trailers, allows stream fragments to be sent in the form of file ranges, and
--- allows the stream body to produce a value to be used in constructing the
--- trailers.  Existing @Applications@ can be faithfully upgraded to HTTP\/2
--- with 'promoteApplication' or served transparently over both protocols with
--- the normal Warp 'Network.Wai.Handler.Warp.run' family of functions.
---
--- An 'HTTP2Application' takes a 'Request' and a 'PushFunc' and produces a
--- 'Responder' that will push any associated resources and send the response
--- body.  The response is always a stream of 'Builder's and file chunks.
--- Equivalents of the 'Network.Wai.responseBuilder' family of functions are
--- provided for creating 'Responder's conveniently.
---
--- Pushed streams are handled by an IO action that triggers a server push.  It
--- returns @True@ if the @PUSH_PROMISE@ frame was sent, @False@ if not.  Note
--- this means it will still return @True@ if the client reset or ignored the
--- stream.  This gives handlers the freedom to implement their own heuristics
--- for whether to actually push a resource, while also allowing middleware and
--- frameworks to trigger server pushes automatically.
-
-module Network.Wai.HTTP2
-(
--- * Applications
-  HTTP2Application
--- * Responder
-, Responder(..)
-, RespondFunc
-, Body
-, Chunk(..)
-, Trailers
--- * Server push
-, PushFunc
-, PushPromise(..)
-, promiseHeaders
--- * Conveniences
-, promoteApplication
--- ** Responders
-, respond
-, respondCont
-, respondIO
-, respondFile
-, respondFilePart
-, respondNotFound
-, respondWith
--- ** Stream Bodies
-, streamFilePart
-, streamBuilder
-, streamSimple
-) where
-
-import   Blaze.ByteString.Builder (Builder)
-import   Blaze.ByteString.Builder.ByteString (fromByteString)
-import   Control.Exception (Exception, throwIO)
-import   Control.Monad.Trans.Cont (ContT(..))
-import   Data.ByteString (ByteString)
-#if __GLASGOW_HASKELL__ < 709
-import   Data.Functor ((<$>))
-#endif
-import   Data.IORef (newIORef, readIORef, writeIORef)
-#if __GLASGOW_HASKELL__ < 709
-import   Data.Monoid (mempty)
-#endif
-import   Data.Typeable (Typeable)
-import qualified Network.HTTP.Types as H
-
-import   Network.Wai (Application)
-import   Network.Wai.Internal
-( FilePart(..)
-, Request(requestHeaders)
-, Response(..)
-, ResponseReceived(..)
-, StreamingBody
-, adjustForFilePart

commit ghc-wai for openSUSE:Factory

2015-12-22 Thread h_root
Hello community,

here is the log from the commit of package ghc-wai for openSUSE:Factory checked 
in at 2015-12-23 08:49:26

Comparing /work/SRC/openSUSE:Factory/ghc-wai (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-wai.new (New)


Package is "ghc-wai"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-wai/ghc-wai.changes  2015-07-08 
06:59:52.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-wai.new/ghc-wai.changes 2015-12-23 
08:49:27.0 +0100
@@ -1,0 +2,9 @@
+Sun Dec 13 17:10:41 UTC 2015 - mimi...@gmail.com
+
+- update to 3.0.5.0
+* Avoid using the IsString Builder instance
+* A new module Network.Wai.HTTP2 is exported.
+* mapResponseHeaders, ifRequest and modifyResponse are exported.
+- add remove-dep.patch mimi...@gmail.com -- remove bytestring-builder dep
+
+---

Old:

  wai-3.0.3.0.tar.gz

New:

  remove-dep.patch
  wai-3.0.5.0.tar.gz



Other differences:
--
++ ghc-wai.spec ++
--- /var/tmp/diff_new_pack.XUTPAV/_old  2015-12-23 08:49:28.0 +0100
+++ /var/tmp/diff_new_pack.XUTPAV/_new  2015-12-23 08:49:28.0 +0100
@@ -21,7 +21,7 @@
 %bcond_with tests
 
 Name:   ghc-wai
-Version:3.0.3.0
+Version:3.0.5.0
 Release:0
 Summary:Web Application Interface
 License:MIT
@@ -29,6 +29,9 @@
 
 Url:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE remove-dep.path -- mimi...@gmail.com remove unused 
dependency
+Patch0: remove-dep.patch
+
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 BuildRequires:  ghc-Cabal-devel
@@ -39,6 +42,8 @@
 BuildRequires:  ghc-http-types-devel
 BuildRequires:  ghc-network-devel
 BuildRequires:  ghc-text-devel
+BuildRequires:  ghc-transformers-devel
+BuildRequires:  ghc-unix-compat-devel
 BuildRequires:  ghc-vault-devel
 %if %{with tests}
 BuildRequires:  ghc-hspec-devel
@@ -63,6 +68,7 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
+%patch0 -p1
 
 %build
 %ghc_lib_build

++ remove-dep.patch ++
Index: wai-3.0.5.0/wai.cabal
===
--- wai-3.0.5.0.orig/wai.cabal
+++ wai-3.0.5.0/wai.cabal
@@ -21,7 +21,6 @@ Source-repository head
 Library
   Build-Depends: base  >= 4&& < 5
, bytestring>= 0.10
-   , bytestring-builder>= 0.10.4.0 && < 0.10.7
, blaze-builder >= 0.2.1.4  && < 0.5
, network   >= 2.2.1.5
, http-types>= 0.7
++ wai-3.0.3.0.tar.gz -> wai-3.0.5.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wai-3.0.3.0/ChangeLog.md new/wai-3.0.5.0/ChangeLog.md
--- old/wai-3.0.3.0/ChangeLog.md2015-07-05 07:08:07.0 +0200
+++ new/wai-3.0.5.0/ChangeLog.md2015-12-07 10:08:37.0 +0100
@@ -1,6 +1,18 @@
+## 3.0.5.0
+
+* Avoid using the IsString Builder instance
+
+## 3.0.4.0
+
+* A new module Network.Wai.HTTP2 is exported.
+
+## 3.0.3.0
+
+* mapResponseHeaders, ifRequest and modifyResponse are exported.
+
 ## 3.0.2.3
 
-Allow blaze-builder 0.4
+* Allow blaze-builder 0.4
 
 ## 3.0.2.2
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wai-3.0.3.0/Network/Wai/HTTP2.hs 
new/wai-3.0.5.0/Network/Wai/HTTP2.hs
--- old/wai-3.0.3.0/Network/Wai/HTTP2.hs1970-01-01 01:00:00.0 
+0100
+++ new/wai-3.0.5.0/Network/Wai/HTTP2.hs2015-12-07 10:08:37.0 
+0100
@@ -0,0 +1,272 @@
+{-# LANGUAGE OverloadedStrings, RankNTypes #-}
+{-# LANGUAGE CPP #-}
+{-# LANGUAGE DeriveDataTypeable #-}
+
+-- | An HTTP\/2-aware variant of the 'Network.Wai.Application' type.  Compared
+-- to the original, this exposes the new functionality of server push and
+-- trailers, allows stream fragments to be sent in the form of file ranges, and
+-- allows the stream body to produce a value to be used in constructing the
+-- trailers.  Existing @Applications@ can be faithfully upgraded to HTTP\/2
+-- with 'promoteApplication' or served transparently over both protocols with
+-- the normal Warp 'Network.Wai.Handler.Warp.run' family of functions.
+--
+-- An 'HTTP2Application' takes a 'Request' and a 'PushFunc' and produces a
+-- 'Responder' that will push any associated resources and send the response
+-- body.  The response is always a stream of 'Builder's and file chunks.
+-- Equivalents of the 'Network.Wai.responseBuilder' family of functions are
+-- provided for creating 'Responder's conv

commit ghc-wai for openSUSE:Factory

2015-07-07 Thread h_root
Hello community,

here is the log from the commit of package ghc-wai for openSUSE:Factory checked 
in at 2015-07-08 06:59:49

Comparing /work/SRC/openSUSE:Factory/ghc-wai (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-wai.new (New)


Package is "ghc-wai"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-wai/ghc-wai.changes  2015-05-27 
12:47:30.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-wai.new/ghc-wai.changes 2015-07-08 
06:59:52.0 +0200
@@ -1,0 +2,5 @@
+Mon Jul  6 12:48:56 UTC 2015 - mimi...@gmail.com
+
+- update to 3.0.3.0
+
+---

Old:

  wai-3.0.2.3.tar.gz

New:

  wai-3.0.3.0.tar.gz



Other differences:
--
++ ghc-wai.spec ++
--- /var/tmp/diff_new_pack.h6Cb7o/_old  2015-07-08 06:59:53.0 +0200
+++ /var/tmp/diff_new_pack.h6Cb7o/_new  2015-07-08 06:59:53.0 +0200
@@ -15,17 +15,18 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
 %global pkg_name wai
 
 %bcond_with tests
 
-Name:   ghc-%{pkg_name}
-Version:3.0.2.3
+Name:   ghc-wai
+Version:3.0.3.0
 Release:0
 Summary:Web Application Interface
+License:MIT
 Group:  System/Libraries
 
-License:MIT
 Url:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -63,37 +64,29 @@
 %prep
 %setup -q -n %{pkg_name}-%{version}
 
-
 %build
 %ghc_lib_build
 
-
 %install
 %ghc_lib_install
 
-
 %check
 %if %{with tests}
 %cabal test
 %endif
 
-
 %post devel
 %ghc_pkg_recache
 
-
 %postun devel
 %ghc_pkg_recache
 
-
 %files -f %{name}.files
 %defattr(-,root,root,-)
 %doc LICENSE
 
-
 %files devel -f %{name}-devel.files
 %defattr(-,root,root,-)
 %doc README.md
 
-
 %changelog

++ wai-3.0.2.3.tar.gz -> wai-3.0.3.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wai-3.0.2.3/Network/Wai.hs 
new/wai-3.0.3.0/Network/Wai.hs
--- old/wai-3.0.2.3/Network/Wai.hs  2015-02-22 14:12:52.0 +0100
+++ new/wai-3.0.3.0/Network/Wai.hs  2015-07-05 07:08:07.0 +0200
@@ -71,10 +71,15 @@
 , responseLBS
 , responseStream
 , responseRaw
-  -- * Response accessors
+  -- ** Response accessors
 , responseStatus
 , responseHeaders
+  -- ** Response modifiers
 , responseToStream
+, mapResponseHeaders
+  -- * Middleware composition
+, ifRequest
+, modifyResponse
 ) where
 
 import   Blaze.ByteString.Builder (Builder, fromLazyByteString)
@@ -225,6 +230,13 @@
 (s, h, \withBody -> withBody $ \sendChunk _flush -> sendChunk b)
 responseToStream (ResponseRaw _ res) = responseToStream res
 
+-- | Apply the provided function to the response header list of the Response.
+mapResponseHeaders :: (H.ResponseHeaders -> H.ResponseHeaders) -> Response -> 
Response
+mapResponseHeaders f (ResponseFile s h b1 b2) = ResponseFile s (f h) b1 b2
+mapResponseHeaders f (ResponseBuilder s h b) = ResponseBuilder s (f h) b
+mapResponseHeaders f (ResponseStream s h b) = ResponseStream s (f h) b
+mapResponseHeaders _ r@(ResponseRaw _ _) = r
+
 
 
 -- | The WAI application.
@@ -242,21 +254,6 @@
 -- @
 type Application = Request -> (Response -> IO ResponseReceived) -> IO 
ResponseReceived
 
--- | Middleware is a component that sits between the server and application. It
--- can do such tasks as GZIP encoding or response caching. What follows is the
--- general definition of middleware, though a middleware author should feel
--- free to modify this.
---
--- As an example of an alternate type for middleware, suppose you write a
--- function to load up session information. The session information is simply a
--- string map \[(String, String)\]. A logical type signature for this 
middleware
--- might be:
---
--- @ loadSession :: ([(String, String)] -> Application) -> Application @
---
--- Here, instead of taking a standard 'Application' as its first argument, the
--- middleware takes a function which consumes the session information as well.
-type Middleware = Application -> Application
 
 -- | A default, blank request.
 --
@@ -279,6 +276,36 @@
 , requestHeaderRange = Nothing
 }
 
+
+-- | Middleware is a component that sits between the server and application. It
+-- can do such tasks as GZIP encoding or response caching. What follows is the
+-- general definition of middleware, though a middleware author should feel
+-- free to modify this.
+--
+-- As an example of an alternate type for middleware, supp