commit ghc-web-routes for openSUSE:Factory

2017-09-15 Thread root
Hello community,

here is the log from the commit of package ghc-web-routes for openSUSE:Factory 
checked in at 2017-09-15 22:24:56

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


Package is "ghc-web-routes"

Fri Sep 15 22:24:56 2017 rev:5 rq:525683 version:0.27.12

Changes:

--- /work/SRC/openSUSE:Factory/ghc-web-routes/ghc-web-routes.changes
2017-07-27 11:12:28.971448791 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-web-routes.new/ghc-web-routes.changes   
2017-09-15 22:24:57.785123024 +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-web-routes.spec ++
--- /var/tmp/diff_new_pack.bqMfQm/_old  2017-09-15 22:24:59.032947229 +0200
+++ /var/tmp/diff_new_pack.bqMfQm/_new  2017-09-15 22:24:59.032947229 +0200
@@ -23,8 +23,8 @@
 Release:0
 Summary:Portable, type-safe URL routing
 License:BSD-3-Clause
-Group:  Development/Languages/Other
-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
 Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
@@ -38,7 +38,6 @@
 BuildRequires:  ghc-split-devel
 BuildRequires:  ghc-text-devel
 BuildRequires:  ghc-utf8-string-devel
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-HUnit-devel
 BuildRequires:  ghc-QuickCheck-devel
@@ -51,7 +50,7 @@
 
 %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}
@@ -80,10 +79,8 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%defattr(-,root,root,-)
 %doc LICENSE
 
 %files devel -f %{name}-devel.files
-%defattr(-,root,root,-)
 
 %changelog




commit ghc-web-routes for openSUSE:Factory

2017-07-27 Thread root
Hello community,

here is the log from the commit of package ghc-web-routes for openSUSE:Factory 
checked in at 2017-07-27 11:12:24

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


Package is "ghc-web-routes"

Thu Jul 27 11:12:24 2017 rev:4 rq:511523 version:0.27.12

Changes:

--- /work/SRC/openSUSE:Factory/ghc-web-routes/ghc-web-routes.changes
2017-07-12 19:36:19.537639432 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-web-routes.new/ghc-web-routes.changes   
2017-07-27 11:12:28.971448791 +0200
@@ -1,0 +2,5 @@
+Tue Jul 11 03:02:31 UTC 2017 - psim...@suse.com
+
+- Update to version 0.27.12 revision 1.
+
+---

Old:

  web-routes-0.27.11.tar.gz

New:

  web-routes-0.27.12.tar.gz



Other differences:
--
++ ghc-web-routes.spec ++
--- /var/tmp/diff_new_pack.yxzGJI/_old  2017-07-27 11:12:30.219272527 +0200
+++ /var/tmp/diff_new_pack.yxzGJI/_new  2017-07-27 11:12:30.219272527 +0200
@@ -19,7 +19,7 @@
 %global pkg_name web-routes
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.27.11
+Version:0.27.12
 Release:0
 Summary:Portable, type-safe URL routing
 License:BSD-3-Clause

++ web-routes-0.27.11.tar.gz -> web-routes-0.27.12.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/web-routes-0.27.11/Web/Routes/PathInfo.hs 
new/web-routes-0.27.12/Web/Routes/PathInfo.hs
--- old/web-routes-0.27.11/Web/Routes/PathInfo.hs   2016-07-26 
02:27:35.0 +0200
+++ new/web-routes-0.27.12/Web/Routes/PathInfo.hs   2017-07-03 
16:25:36.0 +0200
@@ -32,6 +32,7 @@
 import Control.Monad (msum)
 import Data.ByteString (ByteString)
 import qualified Data.ByteString.Char8 as B
+import Data.Int (Int64)
 import Data.List as List (stripPrefix, tails)
 import Data.Text as Text (Text, pack, unpack, null, tails, stripPrefix)
 import Data.Text.Encoding (decodeUtf8)
@@ -337,21 +338,20 @@
 
 instance PathInfo Int where
   toPathSegments i = [pack $ show i]
-  fromPathSegments = pToken (const "Int") checkInt
-   where checkInt txt =
-   case signed decimal txt of
- (Left e) -> Nothing
- (Right (n, r))
- | Text.null r -> Just n
- | otherwise -> Nothing
+  fromPathSegments = pToken (const "Int") checkIntegral
 
 instance PathInfo Integer where
   toPathSegments i = [pack $ show i]
-  fromPathSegments = pToken (const "Integer") checkInt
-   where checkInt txt =
-   case signed decimal txt of
- (Left e) -> Nothing
- (Right (n, r))
- | Text.null r -> Just n
- | otherwise -> Nothing
+  fromPathSegments = pToken (const "Integer") checkIntegral
 
+instance PathInfo Int64 where
+  toPathSegments i = [pack $ show i]
+  fromPathSegments = pToken (const "Int64") checkIntegral
+
+checkIntegral :: Integral a => Text -> Maybe a
+checkIntegral txt =
+  case signed decimal txt of
+(Left e) -> Nothing
+(Right (n, r))
+   | Text.null r -> Just n
+   | otherwise -> Nothing
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/web-routes-0.27.11/web-routes.cabal 
new/web-routes-0.27.12/web-routes.cabal
--- old/web-routes-0.27.11/web-routes.cabal 2016-07-26 02:27:35.0 
+0200
+++ new/web-routes-0.27.12/web-routes.cabal 2017-07-03 16:25:36.0 
+0200
@@ -1,5 +1,5 @@
 Name: web-routes
-Version:  0.27.11
+Version:  0.27.12
 License:  BSD3
 License-File: LICENSE
 Author:   jer...@seereason.com
@@ -10,7 +10,7 @@
 Homepage: 
http://www.happstack.com/docs/crashcourse/index.html#web-routes
 Cabal-Version:>= 1.8
 Build-type:   Simple
-tested-with:  GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3
+tested-with:  GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1
 
 test-suite Test
   type : exitcode-stdio-1.0

++ web-routes.cabal ++
--- /var/tmp/diff_new_pack.yxzGJI/_old  2017-07-27 11:12:30.311259533 +0200
+++ /var/tmp/diff_new_pack.yxzGJI/_new  2017-07-27 11:12:30.315258968 +0200
@@ -1,5 +1,5 @@
 Name: web-routes
-Version:  0.27.11
+Version:  0.27.12
 x-revision: 1
 License:  BSD3
 License-File: LICENSE
@@ -11,7 +11,7 @@
 Homepage: 
http://www.happstack.com/docs/crashcourse/index.html#web-routes
 Cabal-Version:>= 1.8
 Build-type:   Simple
-tested-with:  GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3
+tested-with:  GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1
 
 test-suite Test
   type : exitcode-stdio-1.0




commit ghc-web-routes for openSUSE:Factory

2017-07-12 Thread root
Hello community,

here is the log from the commit of package ghc-web-routes for openSUSE:Factory 
checked in at 2017-07-12 19:36:17

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


Package is "ghc-web-routes"

Wed Jul 12 19:36:17 2017 rev:3 rq:509600 version:0.27.11

Changes:

--- /work/SRC/openSUSE:Factory/ghc-web-routes/ghc-web-routes.changes
2017-02-03 17:40:32.676553098 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-web-routes.new/ghc-web-routes.changes   
2017-07-12 19:36:19.537639432 +0200
@@ -1,0 +2,5 @@
+Tue Jul  4 03:01:10 UTC 2017 - psim...@suse.com
+
+- Update to version 0.27.11 revision 1.
+
+---

New:

  web-routes.cabal



Other differences:
--
++ ghc-web-routes.spec ++
--- /var/tmp/diff_new_pack.ssLdpO/_old  2017-07-12 19:36:20.093560903 +0200
+++ /var/tmp/diff_new_pack.ssLdpO/_new  2017-07-12 19:36:20.097560338 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-web-routes
 #
-# 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
@@ -26,6 +26,7 @@
 Group:  Development/Languages/Other
 Url:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
+Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-blaze-builder-devel
 BuildRequires:  ghc-bytestring-devel
@@ -61,6 +62,7 @@
 
 %prep
 %setup -q -n %{pkg_name}-%{version}
+cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++ web-routes.cabal ++
Name: web-routes
Version:  0.27.11
x-revision: 1
License:  BSD3
License-File: LICENSE
Author:   jer...@seereason.com
Maintainer:   partn...@seereason.com
Category: Web, Language
Synopsis: portable, type-safe URL routing
Description:  A collection of types and functions that ensure that URLs 
generated by an application are valid. Need more properties here.
Homepage: 
http://www.happstack.com/docs/crashcourse/index.html#web-routes
Cabal-Version:>= 1.8
Build-type:   Simple
tested-with:  GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3

test-suite Test
  type : exitcode-stdio-1.0
  main-is  : Test.hs
  hs-source-dirs   : test
  build-depends: base == 4.*,
 HUnit,
 hspec,
 QuickCheck,
 text,
 web-routes

Library
Build-Depends:base  >= 4.6  && < 5,
  blaze-builder >= 0.2  && < 0.5,
  parsec>= 2&& < 4,
  bytestring>= 0.9  && < 0.11,
  http-types>= 0.6  && < 0.10,
  mtl   >= 2.0  && < 2.3,
  text  >= 0.11 && < 1.3,
  utf8-string   >= 0.3  && < 1.1,
  exceptions>= 0.6.1 && < 0.9
if impl(ghc >= 7.2)
  Build-Depends:  ghc-prim, split
Exposed-Modules:  Web.Routes
  Web.Routes.Base
  Web.Routes.PathInfo
  Web.Routes.QuickCheck
  Web.Routes.RouteT
  Web.Routes.Site

Extensions:   FlexibleContexts,
  CPP

source-repository head
type: git
location: https://github.com/Happstack/web-routes.git



commit ghc-web-routes for openSUSE:Factory

2017-02-03 Thread root
Hello community,

here is the log from the commit of package ghc-web-routes for openSUSE:Factory 
checked in at 2017-01-31 12:40:45

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


Package is "ghc-web-routes"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-web-routes/ghc-web-routes.changes
2017-01-18 21:40:10.650408808 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-web-routes.new/ghc-web-routes.changes   
2017-02-03 17:40:32.676553098 +0100
@@ -1,0 +2,5 @@
+Mon Aug  1 10:36:21 UTC 2016 - psim...@suse.com
+
+- Update to version 0.27.11 revision 0 with cabal2obs.
+
+---

Old:

  web-routes-0.27.10.tar.gz

New:

  web-routes-0.27.11.tar.gz



Other differences:
--
++ ghc-web-routes.spec ++
--- /var/tmp/diff_new_pack.wJwZuT/_old  2017-02-03 17:40:33.012505547 +0100
+++ /var/tmp/diff_new_pack.wJwZuT/_new  2017-02-03 17:40:33.012505547 +0100
@@ -19,15 +19,14 @@
 %global pkg_name web-routes
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.27.10
+Version:0.27.11
 Release:0
 Summary:Portable, type-safe URL routing
 License:BSD-3-Clause
-Group:  System/Libraries
+Group:  Development/Languages/Other
 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-devel
 BuildRequires:  ghc-exceptions-devel
@@ -44,7 +43,6 @@
 BuildRequires:  ghc-QuickCheck-devel
 BuildRequires:  ghc-hspec-devel
 %endif
-# End cabal-rpm deps
 
 %description
 A collection of types and functions that ensure that URLs generated by an
@@ -64,20 +62,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

++ web-routes-0.27.10.tar.gz -> web-routes-0.27.11.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/web-routes-0.27.10/Web/Routes/Base.hs 
new/web-routes-0.27.11/Web/Routes/Base.hs
--- old/web-routes-0.27.10/Web/Routes/Base.hs   2015-12-18 17:49:17.0 
+0100
+++ new/web-routes-0.27.11/Web/Routes/Base.hs   2016-07-26 02:27:35.0 
+0200
@@ -14,6 +14,7 @@
 module Web.Routes.Base
( encodePathInfo
, decodePathInfo
+   , decodePathInfoParams
) where
 
 import Blaze.ByteString.Builder (Builder, toByteString)
@@ -22,7 +23,7 @@
 import Data.List(intercalate, intersperse)
 import Data.Text(Text)
 import Data.Text.Encoding   as Text (encodeUtf8, decodeUtf8)
-import Network.HTTP.Types   (encodePath, decodePathSegments, 
queryTextToQuery)
+import Network.HTTP.Types   (Query, encodePath, decodePath, 
decodePathSegments, queryTextToQuery, queryToQueryText)
 
 {-
 
@@ -281,3 +282,13 @@
 -}
 decodePathInfo :: ByteString -> [Text]
 decodePathInfo = decodePathSegments
+
+-- | Returns path segments as well as possible query string components
+--
+-- For example:
+--
+-- > decodePathInfoParams "/home?q=1"
+-- (["home"],[("q",Just "1")])
+--
+decodePathInfoParams :: ByteString -> ([Text], [(Text, Maybe Text)])
+decodePathInfoParams = fmap queryToQueryText . decodePath
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/web-routes-0.27.10/Web/Routes/PathInfo.hs 
new/web-routes-0.27.11/Web/Routes/PathInfo.hs
--- old/web-routes-0.27.10/Web/Routes/PathInfo.hs   2015-12-18 
17:49:17.0 +0100
+++ new/web-routes-0.27.11/Web/Routes/PathInfo.hs   2016-07-26 
02:27:35.0 +0200
@@ -1,4 +1,4 @@
-{-# LANGUAGE CPP, FlexibleInstances, TypeSynonymInstances #-}
+{-# LANGUAGE CPP, FlexibleInstances, TypeSynonymInstances, TupleSections #-}
 
 #if __GLASGOW_HASKELL__ > 702
 {-# LANGUAGE DefaultSignatures, OverloadedStrings, ScopedTypeVariables, 
TypeOperators #-}
@@ -18,6 +18,7 @@
 , toPathInfo
 , toPathInfoParams
 , fromPathInfo
+, fromPathInfoParams
 , mkSitePI
 , showParseError
 #if __GLASGOW_HASKELL__ > 702
@@ -41,7 +42,7 @@
 import Text.ParserCombinators.Parsec.Error (ParseError, errorPos, 
errorMessages, showErrorMessages)
 import Text.ParserCombinators.Parsec.Pos   (incSourceLine, sourceName, 
sourceLine, sourceColumn)
 import Text.ParserCombinators.Parsec.Prim  ((), GenParser, getInput, 
setInput, getPosition, token, parse, many)
-import Web.Routes.Base (decodePathInfo, encodePathInfo)
+import