Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ghc-bech32 for openSUSE:Factory checked in at 2021-07-05 22:22:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-bech32 (Old) and /work/SRC/openSUSE:Factory/.ghc-bech32.new.2625 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-bech32" Mon Jul 5 22:22:37 2021 rev:3 rq:903723 version:1.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-bech32/ghc-bech32.changes 2020-12-22 11:35:42.165273106 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-bech32.new.2625/ghc-bech32.changes 2021-07-05 22:22:51.797776123 +0200 @@ -1,0 +2,15 @@ +Wed Jun 23 08:50:40 UTC 2021 - [email protected] + +- Update bech32 to version 1.1.1. + ## [1.1.1] - 2021-06-11 + + ### Added + + - Added `--version` switch for the `bech32` command. + + ### Changed + + - Upgraded CI to build with Cabal 3.4.0.0 and GHC 8.10.4. + - Update version constraints for GHC 9.0.1. + +------------------------------------------------------------------- Old: ---- bech32-1.1.0.tar.gz New: ---- bech32-1.1.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-bech32.spec ++++++ --- /var/tmp/diff_new_pack.V9SizA/_old 2021-07-05 22:22:52.233772748 +0200 +++ /var/tmp/diff_new_pack.V9SizA/_new 2021-07-05 22:22:52.237772717 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-bech32 # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %global pkg_name bech32 %bcond_with tests Name: ghc-%{pkg_name} -Version: 1.1.0 +Version: 1.1.1 Release: 0 Summary: Implementation of the Bech32 cryptocurrency address format (BIP 0173) License: Apache-2.0 ++++++ bech32-1.1.0.tar.gz -> bech32-1.1.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bech32-1.1.0/ChangeLog.md new/bech32-1.1.1/ChangeLog.md --- old/bech32-1.1.0/ChangeLog.md 2020-07-08 13:12:15.000000000 +0200 +++ new/bech32-1.1.1/ChangeLog.md 2001-09-09 03:46:40.000000000 +0200 @@ -2,12 +2,23 @@ <!-- This ChangeLog follows a format specified by: https://keepachangelog.com/en/1.0.0/ --> +## [1.1.1] - 2021-06-11 + +### Added + +- Added `--version` switch for the `bech32` command. + +### Changed + +- Upgraded CI to build with Cabal 3.4.0.0 and GHC 8.10.4. +- Update version constraints for GHC 9.0.1. + ## [1.1.0] - 2020-07-08 -### Added +### Added - Added `bech32` command-line for easy conversions in the console. - + ```console Usage: bech32 [PREFIX] Convert to and from bech32 strings. Data are read from standard input. @@ -60,6 +71,6 @@ ## [1.0.0] - 2019-09-27 -### Added +### Added - Initial release pulled from https://github.com/input-output-hk/cardano-wallet diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bech32-1.1.0/app/Main.hs new/bech32-1.1.1/app/Main.hs --- old/bech32-1.1.0/app/Main.hs 2020-07-08 13:12:15.000000000 +0200 +++ new/bech32-1.1.1/app/Main.hs 2001-09-09 03:46:40.000000000 +0200 @@ -11,7 +11,7 @@ import Control.Arrow ( left, right ) import Control.Monad - ( guard ) + ( guard, void ) import Data.ByteArray.Encoding ( convertFromBase, convertToBase ) import Data.ByteString.Base58 @@ -22,25 +22,34 @@ ( maybeToEither ) import Data.Maybe ( fromJust ) +import Data.Version + ( showVersion ) import Options.Applicative ( Parser , ParserInfo , argument , customExecParser , eitherReader + , flag , footerDoc + , help , helpDoc , helper + , hidden , info + , long , metavar , optional , prefs , progDesc + , short , showHelpOnEmpty , (<|>) ) import Options.Applicative.Help.Pretty ( bold, hsep, indent, text, underline, vsep ) +import Paths_bech32 + ( version ) import System.IO ( BufferMode (..), Handle, hSetBuffering, stderr, stdin, stdout ) @@ -54,9 +63,12 @@ main :: IO () main = setup >> parse >>= run -newtype Cmd = Cmd - { prefix :: Maybe HumanReadablePart - } deriving (Show) +data Cmd + = RunCmd + { prefix :: Maybe HumanReadablePart + } + | VersionCmd + deriving (Show) -- | Enable ANSI colors on Windows and correct output buffering setup :: IO () @@ -100,7 +112,15 @@ ] cmd :: Parser Cmd - cmd = Cmd <$> optional hrpArgument + cmd = (RunCmd <$> optional hrpArgument) <|> (VersionCmd <$ versionFlag) + +versionFlag :: Parser () +versionFlag = void . flag False True $ mconcat + [ long "version" + , short 'v' + , help "output version information and exit" + , hidden + ] -- | Parse a 'HumanReadablePart' as an argument. hrpArgument :: Parser HumanReadablePart @@ -121,11 +141,13 @@ -- | Run a Command in IO run :: Cmd -> IO () -run Cmd{prefix} = do - source <- T.decodeUtf8 . B8.filter (/= '\n') <$> B8.hGetContents stdin - case prefix of - Nothing -> runDecode source - Just hrp -> runEncode hrp source +run cmd = case cmd of + VersionCmd -> putStrLn $ showVersion version + RunCmd {prefix} -> do + source <- T.decodeUtf8 . B8.filter (/= '\n') <$> B8.hGetContents stdin + case prefix of + Nothing -> runDecode source + Just hrp -> runEncode hrp source where runDecode source = case Bech32.decodeLenient source of diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bech32-1.1.0/bech32.cabal new/bech32-1.1.1/bech32.cabal --- old/bech32-1.1.0/bech32.cabal 2020-07-08 13:12:15.000000000 +0200 +++ new/bech32-1.1.1/bech32.cabal 2001-09-09 03:46:40.000000000 +0200 @@ -1,5 +1,5 @@ name: bech32 -version: 1.1.0 +version: 1.1.1 synopsis: Implementation of the Bech32 cryptocurrency address format (BIP 0173). description: Implementation of the Bech32 cryptocurrency address format documented in the BIP (Bitcoin Improvement Proposal) 0173. @@ -19,15 +19,15 @@ type: git location: https://github.com/input-output-hk/bech32.git -flag werror - description: Enable `-Werror` - default: False - manual: True - flag release - description: Compile executables for a release. + description: Strict compiler warning checks. + default: False manual: True + +flag static + description: Try to build a static executable. default: False + manual: True library default-language: @@ -36,15 +36,12 @@ NoImplicitPrelude OverloadedStrings ghc-options: - -Wall - -Wcompat - -fwarn-redundant-constraints - if (flag(werror)) - ghc-options: - -Werror + -Wall -Wcompat -fwarn-redundant-constraints + if flag(release) + ghc-options: -Werror build-depends: array - , base >= 4.11.1.0 && < 4.15 + , base >= 4.11.1.0 && <5 , bytestring , containers , extra @@ -61,9 +58,8 @@ Paths_bech32 hs-source-dirs: app - ghc-options: -Wall -Wcompat -fwarn-redundant-constraints -threaded -rtsopts -with-rtsopts=-N build-depends: - base >=4.7 && <5 + base , base58-bytestring , bech32 , bytestring @@ -71,8 +67,13 @@ , memory , optparse-applicative , text + ghc-options: + -Wall -Wcompat -fwarn-redundant-constraints + -threaded -rtsopts -with-rtsopts=-N if flag(release) - ghc-options: -Werror -static -O2 + ghc-options: -Werror + if flag(static) + ghc-options: -static cc-options: -static ld-options: -static -pthread default-language: Haskell2010 @@ -85,11 +86,10 @@ hs-source-dirs: test ghc-options: - -threaded -rtsopts -with-rtsopts=-N -Wall - if (flag(werror)) - ghc-options: - -Werror + -threaded -rtsopts -with-rtsopts=-N + if flag(release) + ghc-options: -Werror build-depends: base , base58-bytestring
