Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-wai-app-static for 
openSUSE:Factory checked in at 2026-11-24 12:37:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-wai-app-static (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-wai-app-static.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-wai-app-static"

Tue Nov 24 12:37:25 2026 rev:11 rq:1399405 version:3.2.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-wai-app-static/ghc-wai-app-static.changes    
2026-06-10 16:14:47.542521821 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-wai-app-static.new.1340718/ghc-wai-app-static.changes
       2026-11-24 12:44:07.286422088 +0100
@@ -1,0 +2,9 @@
+Mon Mar  9 18:37:54 UTC 2026 - Peter Simons <[email protected]>
+
+- Update wai-app-static to version 3.2.1.
+  Upstream has edited the change log file since the last release in
+  a non-trivial way, i.e. they did more than just add a new entry
+  at the top. You can review the file at:
+  http://hackage.haskell.org/package/wai-app-static-3.2.1/src/ChangeLog.md
+
+-------------------------------------------------------------------

Old:
----
  wai-app-static-3.1.9.1.tar.gz

New:
----
  wai-app-static-3.2.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-wai-app-static.spec ++++++
--- /var/tmp/diff_new_pack.7TfR9P/_old  2026-11-24 12:44:09.020495580 +0100
+++ /var/tmp/diff_new_pack.7TfR9P/_new  2026-11-24 12:44:09.021495622 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-wai-app-static
 #
-# Copyright (c) 2026 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,77 +17,82 @@
 
 
 %global pkg_name wai-app-static
-%global pkgver %{pkg_name}-%{version}
+%bcond_with ghc_prof
 %bcond_with tests
-Name:           ghc-%{pkg_name}
-Version:        3.1.9.1
+Name:           ghc-%pkg_name
+Version:        3.2.1
 Release:        0
+%global pkgver %pkg_name-%{version}
 Summary:        WAI application for static serving
 License:        MIT
-URL:            https://hackage.haskell.org/package/%{pkg_name}
-Source0:        
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
+URL:            https://hackage.haskell.org/package/%pkg_name
+Source0:        
https://hackage.haskell.org/package/%pkg_name-%{version}/%pkg_name-%{version}.tar.gz
 BuildRequires:  chrpath
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-base-devel
-BuildRequires:  ghc-base-prof
 BuildRequires:  ghc-base64-bytestring-devel
-BuildRequires:  ghc-base64-bytestring-prof
 BuildRequires:  ghc-blaze-html-devel
-BuildRequires:  ghc-blaze-html-prof
 BuildRequires:  ghc-blaze-markup-devel
-BuildRequires:  ghc-blaze-markup-prof
 BuildRequires:  ghc-bytestring-devel
-BuildRequires:  ghc-bytestring-prof
 BuildRequires:  ghc-containers-devel
-BuildRequires:  ghc-containers-prof
 BuildRequires:  ghc-cryptohash-md5-devel
-BuildRequires:  ghc-cryptohash-md5-prof
 BuildRequires:  ghc-directory-devel
-BuildRequires:  ghc-directory-prof
 BuildRequires:  ghc-file-embed-devel
-BuildRequires:  ghc-file-embed-prof
 BuildRequires:  ghc-filepath-devel
-BuildRequires:  ghc-filepath-prof
 BuildRequires:  ghc-http-date-devel
-BuildRequires:  ghc-http-date-prof
 BuildRequires:  ghc-http-types-devel
-BuildRequires:  ghc-http-types-prof
 BuildRequires:  ghc-mime-types-devel
-BuildRequires:  ghc-mime-types-prof
 BuildRequires:  ghc-old-locale-devel
-BuildRequires:  ghc-old-locale-prof
 BuildRequires:  ghc-optparse-applicative-devel
-BuildRequires:  ghc-optparse-applicative-prof
-BuildRequires:  ghc-rpm-macros
+BuildRequires:  ghc-rpm-macros >= 2.9.2
 BuildRequires:  ghc-template-haskell-devel
-BuildRequires:  ghc-template-haskell-prof
 BuildRequires:  ghc-text-devel
-BuildRequires:  ghc-text-prof
 BuildRequires:  ghc-time-devel
-BuildRequires:  ghc-time-prof
 BuildRequires:  ghc-transformers-devel
-BuildRequires:  ghc-transformers-prof
 BuildRequires:  ghc-unix-compat-devel
-BuildRequires:  ghc-unix-compat-prof
 BuildRequires:  ghc-unordered-containers-devel
-BuildRequires:  ghc-unordered-containers-prof
 BuildRequires:  ghc-wai-devel
 BuildRequires:  ghc-wai-extra-devel
+BuildRequires:  ghc-warp-devel
+BuildRequires:  ghc-zlib-devel
+ExcludeArch:    %{ix86}
+%if %{with ghc_prof}
+BuildRequires:  ghc-base-prof
+BuildRequires:  ghc-base64-bytestring-prof
+BuildRequires:  ghc-blaze-html-prof
+BuildRequires:  ghc-blaze-markup-prof
+BuildRequires:  ghc-bytestring-prof
+BuildRequires:  ghc-containers-prof
+BuildRequires:  ghc-cryptohash-md5-prof
+BuildRequires:  ghc-directory-prof
+BuildRequires:  ghc-file-embed-prof
+BuildRequires:  ghc-filepath-prof
+BuildRequires:  ghc-http-date-prof
+BuildRequires:  ghc-http-types-prof
+BuildRequires:  ghc-mime-types-prof
+BuildRequires:  ghc-old-locale-prof
+BuildRequires:  ghc-optparse-applicative-prof
+BuildRequires:  ghc-template-haskell-prof
+BuildRequires:  ghc-text-prof
+BuildRequires:  ghc-time-prof
+BuildRequires:  ghc-transformers-prof
+BuildRequires:  ghc-unix-compat-prof
+BuildRequires:  ghc-unordered-containers-prof
 BuildRequires:  ghc-wai-extra-prof
 BuildRequires:  ghc-wai-prof
-BuildRequires:  ghc-warp-devel
 BuildRequires:  ghc-warp-prof
-BuildRequires:  ghc-zlib-devel
 BuildRequires:  ghc-zlib-prof
-ExcludeArch:    %{ix86}
+%endif
 %if %{with tests}
 BuildRequires:  ghc-hspec-devel
-BuildRequires:  ghc-hspec-prof
 BuildRequires:  ghc-mockery-devel
-BuildRequires:  ghc-mockery-prof
 BuildRequires:  ghc-temporary-devel
+%if %{with ghc_prof}
+BuildRequires:  ghc-hspec-prof
+BuildRequires:  ghc-mockery-prof
 BuildRequires:  ghc-temporary-prof
 %endif
+%endif
 
 %description
 API docs and the README are available at
@@ -103,31 +108,34 @@
 %description devel
 This package provides the Haskell %{pkg_name} library development files.
 
-%package -n ghc-%{pkg_name}-doc
+%package -n ghc-%pkg_name-doc
 Summary:        Haskell %{pkg_name} library documentation
 Requires:       ghc-filesystem
 BuildArch:      noarch
 
-%description -n ghc-%{pkg_name}-doc
+%description -n ghc-%pkg_name-doc
 This package provides the Haskell %{pkg_name} library documentation.
 
-%package -n ghc-%{pkg_name}-prof
+%if %{with ghc_prof}
+%package -n ghc-%pkg_name-prof
 Summary:        Haskell %{pkg_name} profiling library
-Requires:       ghc-%{pkg_name}-devel = %{version}-%{release}
-Supplements:    (ghc-%{pkg_name}-devel and ghc-prof)
+Requires:       ghc-%pkg_name-devel = %{version}-%{release}
+Supplements:    (ghc-%pkg_name-devel and ghc-prof)
 
-%description -n ghc-%{pkg_name}-prof
+%description -n ghc-%pkg_name-prof
 This package provides the Haskell %{pkg_name} profiling library.
+%endif
+
 
 %prep
-%autosetup -n %{pkg_name}-%{version}
+%autosetup -p1 -n %pkg_name-%{version}
 
 %build
 %ghc_lib_build
 
 %install
 %ghc_lib_install
-%ghc_fix_rpath %{pkg_name}-%{version}
+%ghc_fix_rpath %pkg_name-%{version}
 
 %check
 %cabal_test
@@ -145,8 +153,10 @@
 %files devel -f %{name}-devel.files
 %doc ChangeLog.md README.md
 
-%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
+%files -n ghc-%pkg_name-doc -f ghc-%pkg_name-doc.files
 %license LICENSE
 
-%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
+%if %{with ghc_prof}
+%files -n ghc-%pkg_name-prof -f ghc-%pkg_name-prof.files
+%endif
 

++++++ wai-app-static-3.1.9.1.tar.gz -> wai-app-static-3.2.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wai-app-static-3.1.9.1/ChangeLog.md 
new/wai-app-static-3.2.1/ChangeLog.md
--- old/wai-app-static-3.1.9.1/ChangeLog.md     2026-03-09 19:33:14.000000000 
+0100
+++ new/wai-app-static-3.2.1/ChangeLog.md       2001-09-09 03:46:40.000000000 
+0200
@@ -1,9 +1,12 @@
 # wai-app-static changelog
 
-## 3.1.9.1
+## 3.2.1
 
-* Backported a patch to not need `crypton` as a dependency.
-  Instead, just depend on `base64-bytestring` and `cryptohash-md5`.
+* Removing the dependency to "crypton".
+
+## 3.2.0
+
+* Using "ram" instead of "memory".
 
 ## 3.1.9
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wai-app-static-3.1.9.1/WaiAppStatic/CmdLine.hs 
new/wai-app-static-3.2.1/WaiAppStatic/CmdLine.hs
--- old/wai-app-static-3.1.9.1/WaiAppStatic/CmdLine.hs  2026-03-09 
17:53:05.000000000 +0100
+++ new/wai-app-static-3.2.1/WaiAppStatic/CmdLine.hs    2001-09-09 
03:46:40.000000000 +0200
@@ -132,7 +132,7 @@
             port
             (if noindex then "no" else show index)
     let middle =
-            gzip def{gzipFiles = GzipCompress}
+            gzip defaultGzipSettings{gzipFiles = GzipCompress}
                 . (if verbose then logStdout else id)
                 . middleware clArgs
     runSettings
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/wai-app-static-3.1.9.1/WaiAppStatic/Storage/Embedded/Runtime.hs 
new/wai-app-static-3.2.1/WaiAppStatic/Storage/Embedded/Runtime.hs
--- old/wai-app-static-3.1.9.1/WaiAppStatic/Storage/Embedded/Runtime.hs 
2026-03-09 18:50:59.000000000 +0100
+++ new/wai-app-static-3.2.1/WaiAppStatic/Storage/Embedded/Runtime.hs   
2001-09-09 03:46:40.000000000 +0200
@@ -17,8 +17,13 @@
 import qualified Data.Text as T
 import qualified Network.Wai as W
 import WaiAppStatic.Types
+#ifdef MIN_VERSION_crypton
+import Crypto.Hash (hash, MD5, Digest)
+import Data.ByteArray.Encoding
+#else
 import Crypto.Hash.MD5 (hash)
 import Data.ByteString.Base64 (encode)
+#endif
 import System.FilePath (isPathSeparator)
 import WaiAppStatic.Storage.Filesystem (defaultFileServerSettings)
 
@@ -57,7 +62,7 @@
             { fileGetSize = fromIntegral $ S.length bs
             , fileToResponse = \s h -> W.responseBuilder s h $ byteString bs
             , fileName = name
-            , fileGetHash = return $ Just $ encode $ hash bs
+            , fileGetHash = return $ Just $ runHash bs
             , fileGetModified = Nothing
             }
 
@@ -95,6 +100,13 @@
         { fileGetSize = fromIntegral $ S.length bs
         , fileToResponse = \s h -> W.responseBuilder s h $ byteString bs
         , fileName = name
-        , fileGetHash = return $ Just $ encode $ hash bs
+        , fileGetHash = return $ Just $ runHash bs
         , fileGetModified = Nothing
         }
+
+runHash :: ByteString -> ByteString
+#ifdef MIN_VERSION_crypton
+runHash = convertToBase Base64 . (hash :: S.ByteString -> Digest MD5)
+#else
+runHash = encode . hash
+#endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/wai-app-static-3.1.9.1/WaiAppStatic/Storage/Filesystem.hs 
new/wai-app-static-3.2.1/WaiAppStatic/Storage/Filesystem.hs
--- old/wai-app-static-3.1.9.1/WaiAppStatic/Storage/Filesystem.hs       
2026-03-09 18:50:08.000000000 +0100
+++ new/wai-app-static-3.2.1/WaiAppStatic/Storage/Filesystem.hs 2001-09-09 
03:46:40.000000000 +0200
@@ -37,8 +37,13 @@
 import Util
 import WaiAppStatic.Listing
 import WaiAppStatic.Types
+#ifdef MIN_VERSION_crypton
+import Data.ByteArray.Encoding
+import Crypto.Hash (hashlazy, MD5, Digest)
+#else
 import Data.ByteString.Base64 (encode)
 import Crypto.Hash.MD5 (hashlazy)
+#endif
 import qualified Data.ByteString.Lazy as BL (hGetContents)
 import qualified Data.Text as T
 
@@ -152,8 +157,13 @@
 hashFile :: FilePath -> IO ByteString
 hashFile fp = withBinaryFile fp ReadMode $ \h -> do
     f <- BL.hGetContents h
+#ifdef MIN_VERSION_crypton
+    let !hash = hashlazy f :: Digest MD5
+    return $ convertToBase Base64 hash
+#else
     let !hash = hashlazy f
     return . encode $ hash
+#endif
 
 hashFileIfExists :: ETagLookup
 hashFileIfExists fp = do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wai-app-static-3.1.9.1/test/tests.hs 
new/wai-app-static-3.2.1/test/tests.hs
--- old/wai-app-static-3.1.9.1/test/tests.hs    1970-01-01 01:00:00.000000000 
+0100
+++ new/wai-app-static-3.2.1/test/tests.hs      2001-09-09 03:46:40.000000000 
+0200
@@ -0,0 +1,6 @@
+import Test.Hspec
+import WaiAppEmbeddedTest (embSpec)
+import WaiAppStaticTest (spec)
+
+main :: IO ()
+main = hspec $ spec >> embSpec
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wai-app-static-3.1.9.1/tests.hs 
new/wai-app-static-3.2.1/tests.hs
--- old/wai-app-static-3.1.9.1/tests.hs 2026-03-09 17:53:05.000000000 +0100
+++ new/wai-app-static-3.2.1/tests.hs   1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +0,0 @@
-import Test.Hspec
-import WaiAppEmbeddedTest (embSpec)
-import WaiAppStaticTest (spec)
-
-main :: IO ()
-main = hspec $ spec >> embSpec
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wai-app-static-3.1.9.1/wai-app-static.cabal 
new/wai-app-static-3.2.1/wai-app-static.cabal
--- old/wai-app-static-3.1.9.1/wai-app-static.cabal     2026-03-09 
19:37:28.000000000 +0100
+++ new/wai-app-static-3.2.1/wai-app-static.cabal       2001-09-09 
03:46:40.000000000 +0200
@@ -1,5 +1,5 @@
 name:            wai-app-static
-version:         3.1.9.1
+version:         3.2.1
 license:         MIT
 license-file:    LICENSE
 author:          Michael Snoyman <[email protected]>
@@ -14,9 +14,7 @@
 Extra-source-files:
   images/folder.png
   images/haskell.png
-  test/*.hs
   test/a/b
-  tests.hs
   README.md
   ChangeLog.md
 
@@ -79,7 +77,7 @@
     other-modules:  EmbeddedTestEntries
                   , WaiAppEmbeddedTest
                   , WaiAppStaticTest
-    main-is: ../tests.hs
+    main-is: tests.hs
     type: exitcode-stdio-1.0
 
     build-depends:   base                      >= 4        && < 5
@@ -103,3 +101,4 @@
 source-repository head
   type:     git
   location: https://github.com/yesodweb/wai.git
+  subdir:   wai-app-static

Reply via email to