Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package cabal2spec for openSUSE:Factory checked in at 2026-11-17 17:16:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/cabal2spec (Old) and /work/SRC/openSUSE:Factory/.cabal2spec.new.1251 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "cabal2spec" Tue Nov 17 17:16:54 2026 rev:18 rq:1397762 version:2.8.2 Changes: -------- --- /work/SRC/openSUSE:Factory/cabal2spec/cabal2spec.changes 2025-07-31 17:46:16.200327243 +0200 +++ /work/SRC/openSUSE:Factory/.cabal2spec.new.1251/cabal2spec.changes 2026-11-17 17:18:52.302745845 +0100 @@ -1,0 +2,6 @@ +Sun Nov 15 15:40:33 UTC 2026 - Peter Simons <[email protected]> + +- Update cabal2spec to version 2.8.2. + Upstream does not provide a change log file. + +------------------------------------------------------------------- Old: ---- cabal2spec-2.8.0.tar.gz New: ---- cabal2spec-2.8.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cabal2spec.spec ++++++ --- /var/tmp/diff_new_pack.7JRdIO/_old 2026-11-17 17:18:53.351790126 +0100 +++ /var/tmp/diff_new_pack.7JRdIO/_new 2026-11-17 17:18:53.353790210 +0100 @@ -1,7 +1,7 @@ # # spec file for package cabal2spec # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2026 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,7 +20,7 @@ %global pkgver %{pkg_name}-%{version} %bcond_with tests Name: %{pkg_name} -Version: 2.8.0 +Version: 2.8.2 Release: 0 Summary: Convert Cabal files into rpm spec files License: GPL-3.0-or-later ++++++ cabal2spec-2.8.0.tar.gz -> cabal2spec-2.8.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cabal2spec-2.8.0/cabal2spec.cabal new/cabal2spec-2.8.2/cabal2spec.cabal --- old/cabal2spec-2.8.0/cabal2spec.cabal 2001-09-09 03:46:40.000000000 +0200 +++ new/cabal2spec-2.8.2/cabal2spec.cabal 2001-09-09 03:46:40.000000000 +0200 @@ -1,5 +1,5 @@ name: cabal2spec -version: 2.8.0 +version: 2.8.2 synopsis: Convert Cabal files into rpm spec files description: Convert Cabal files into a @@ -14,7 +14,7 @@ license-file: LICENSE author: Peter Simons, Bryan O'Sullivan, Jens Petersen maintainer: [email protected] -tested-with: GHC == 9.2.8 || == 9.4.8 || == 9.6.7 || == 9.8.4 || == 9.10.2 || == 9.12.2 +tested-with: GHC == 9.2.8 || == 9.4.8 || == 9.6.7 || == 9.8.4 || == 9.10.3 || == 9.12.2 || == 9.14.1 category: Distribution homepage: https://github.com/peti/cabal2spec build-type: Simple @@ -30,7 +30,7 @@ library exposed-modules: Cabal2Spec hs-source-dirs: src - build-depends: base > 4.12 && < 5, Cabal >= 3.14 && < 3.15, filepath, time >= 1.5 + build-depends: base > 4.12 && < 5, Cabal == 3.14.* || == 3.16.* || == 3.18.*, filepath, time >= 1.5 default-language: Haskell2010 executable cabal2spec diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cabal2spec-2.8.0/src/Cabal2Spec.hs new/cabal2spec-2.8.2/src/Cabal2Spec.hs --- old/cabal2spec-2.8.0/src/Cabal2Spec.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/cabal2spec-2.8.2/src/Cabal2Spec.hs 2001-09-09 03:46:40.000000000 +0200 @@ -1,3 +1,5 @@ +{-# LANGUAGE CPP #-} + module Cabal2Spec ( cabal2spec, createSpecFile, ForceBinary, RunTests, CopyrightYear ) where import Control.Monad @@ -15,6 +17,9 @@ import Distribution.System import Distribution.Text import Distribution.Types.ComponentRequestedSpec +#if MIN_VERSION_Cabal(3,15,0) +import Distribution.Types.DependencySatisfaction ( DependencySatisfaction(Satisfied) ) +#endif import Distribution.Utils.Path ( getSymbolicPath, makeSymbolicPath ) import Distribution.Utils.ShortText ( fromShortText ) import Distribution.Verbosity @@ -29,11 +34,26 @@ cabal2spec :: Platform -> CompilerId -> FlagAssignment -> ForceBinary -> RunTests -> Maybe CopyrightYear -> FilePath -> FilePath -> IO () cabal2spec platform compilerId flags forceBinary runTests copyrightYear cabalFile specFile = do - gpd <- readGenericPackageDescription silent Nothing (makeSymbolicPath cabalFile) - case finalizePD flags requestedComponents (const True) platform (unknownCompilerInfo compilerId NoAbiTag) [] gpd of + gpd <- readGenericPackageDescription silentVerbosity Nothing (makeSymbolicPath cabalFile) + case finalizePD flags requestedComponents (const satisfied) platform (unknownCompilerInfo compilerId NoAbiTag) [] gpd of Left missing -> fail ("finalizePD: " ++ show missing) Right (pd,_) -> createSpecFile specFile pd forceBinary runTests flags copyrightYear +#if MIN_VERSION_Cabal(3,15,0) +satisfied :: DependencySatisfaction +satisfied = Satisfied +#else +satisfied :: Bool +satisfied = True +#endif + +silentVerbosity :: Verbosity +#if MIN_VERSION_Cabal(3,17,0) +silentVerbosity = mkVerbosity defaultVerbosityHandles silent +#else +silentVerbosity = silent +#endif + requestedComponents :: ComponentRequestedSpec requestedComponents = defaultComponentRequestedSpec @@ -305,7 +325,7 @@ findDocs :: [FilePath] -> [FilePath] -> IO [FilePath] findDocs contents licensefiles = do - let docs = filter likely (sort (nub (map (head . splitDirectories) contents))) + let docs = filter likely (sort (nub (concatMap (take 1 . splitDirectories) contents))) return $ if null licensefiles then docs else filter (`notElem` licensefiles) docs
