Compare commits

...
Sign in to create a new pull request.

63 commits

Author SHA1 Message Date
Fedora Release Engineering
5cd21a1cab Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 18:01:27 +00:00
Jens Petersen
e4f28b3fe0 Bump release 2025-03-30 23:01:01 +08:00
Jens Petersen
1c0917c6f2 cabal-rpm-2.3.0 2025-02-23 20:39:55 +08:00
Jens Petersen
bc5f5a6c6d cabal-rpm-2.2.2 2025-02-01 16:39:18 +08:00
Fedora Release Engineering
07ffadc1b4 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 13:09:44 +00:00
Jens Petersen
dcaf424ec4 update to 3.10.3.0 2024-07-21 17:49:05 +08:00
Fedora Release Engineering
fc4f4931bc Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 18:49:48 +00:00
Jens Petersen
49d874e8cb refresh to cabal-rpm-2.2.1 2024-07-15 23:11:49 +08:00
Jens Petersen
328ada02f1 update Release subpkg comment 2024-07-14 14:51:37 +08:00
Jens Petersen
28cd4fabbc rebuild to fix s390x segfault (#2248097) 2024-02-15 13:20:28 +08:00
Fedora Release Engineering
1da05e57d6 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-23 01:05:01 +00:00
Fedora Release Engineering
fcc101b06c Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 14:55:44 +00:00
Jens Petersen
d9213885b1 dist-newstyle fix: use #8358 and #8627
instead of minimal backport
2024-01-06 15:30:01 +08:00
Jens Petersen
79b745317f fixup! backport #8627: prevent cabal update creating dist-newstyle/ 2024-01-06 15:04:25 +08:00
Jens Petersen
39d3b731bd backport #8627: prevent cabal update creating dist-newstyle/ 2024-01-06 13:51:23 +08:00
Jens Petersen
3f63b56d1c refresh to cabal-rpm-2.1.5 2024-01-06 13:46:18 +08:00
Jens Petersen
9de367cde0 fix pkgconfig-depends failing completely with pkgconf-1.9
Due to change of behaviour of --modversion
Behavior is reverted in pkgconf-2.0

cabal-install-solver: pkgconf-1.9 --modversion ignores multiple packages
2023-11-03 16:10:05 +08:00
Jens Petersen
d219f80be2 package library and subpackage cabal-install-resolver 2023-07-26 10:46:42 +08:00
Jens Petersen
bd380cacb5 Revert "Convert to %autorelease and %autochangelog"
This reverts commit da674c2eb1.
2023-07-26 10:08:48 +08:00
Jens Petersen
c594a52d24 https://hackage.haskell.org/package/cabal-install-3.8.1.0/changelog 2023-07-23 14:57:46 +08:00
Jens Petersen
da674c2eb1 Convert to %autorelease and %autochangelog
[skip changelog]
2023-07-18 17:31:10 +08:00
Jens Petersen
5032ed775f remove obsolete patch for sdist file perms 2023-07-18 17:28:19 +08:00
Jens Petersen
3f60711f84 update to 3.6.2.0
- drop old patches
- need to test if sdist doc files patch still needed
- manpage is gone
2023-01-29 22:51:38 +08:00
Jens Petersen
47a99e23e3 refresh to cabal-rpm-2.1.0 including SPDX migration 2023-01-21 18:09:56 +08:00
Jens Petersen
7b13f00f8e revert "recommend ghc or ghcX.Y's"
the behavior is too unpredictable
2022-09-16 21:31:19 +08:00
Fedora Release Engineering
c7c75c25b2 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-20 22:27:35 +00:00
Jens Petersen
e89192b10b bump release 2022-06-18 00:25:29 +08:00
Jens Petersen
e81403f2e3 recommend ghc or ghcX.Y's
not just ghc
2022-04-30 00:07:41 +08:00
Jens Petersen
2c9779fadc drop the strict requires on ghc-compiler to allow ghcX.Y-compiler-default 2022-04-21 00:12:56 +08:00
Fedora Release Engineering
33ac27c49d - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-19 22:46:47 +00:00
Jens Petersen
25bee64281 update sdist perm fix comments 2022-01-14 22:23:47 +08:00
Miro Hrončok
b6ee4849d5 Rebuilt for https://fedoraproject.org/wiki/Changes/LIBFFI34 2022-01-08 11:11:01 +01:00
Jens Petersen
41c04151a3 fix the sdist file permissions patch to compile again 2021-09-09 22:50:37 +08:00
Jens Petersen
f9364b74e0 recommends zlib-devel for convenience 2021-09-09 21:59:53 +08:00
Jens Petersen
dd65134068 fixes for base16 and ghc-8.10 from OpenSUSE
sdist patch breaks creates a type mismatch
2021-08-05 01:21:50 +08:00
Jens Petersen
fac96925a6 update to 3.2.0.0 2021-08-05 01:21:43 +08:00
Fedora Release Engineering
8f7687d1bb - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 19:02:40 +00:00
Fedora Release Engineering
b49151b14f - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 14:05:18 +00:00
Fedora Release Engineering
3be36cde45 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 01:33:00 +00:00
Jens Petersen
1dca4dc791 Recommends ghc (thanks Tristan de Cacqueray,#1) 2020-12-12 23:01:09 +08:00
Jens Petersen
cd4f33b574 drop cabal-dev obsoletes (from f21) 2020-12-12 23:00:34 +08:00
Fedora Release Engineering
5fb8995531 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-27 13:33:26 +00:00
Jens Petersen
f8023af9e8 refresh to cabal-rpm-2.0.6 2020-07-16 19:03:24 +08:00
Jens Petersen
c1454c468b update to 3.0.0.0 2020-06-24 00:26:30 +08:00
Jens Petersen
eb9df7f6a1 refresh to cabal-rpm-2.0.5 2020-06-04 21:18:52 +08:00
Jens Petersen
308e2aa058 backport v2-sdist fix for file permissions
https://github.com/haskell/cabal/issues/5813
2020-06-04 21:18:52 +08:00
Jens Petersen
9dea7bddd3 allow Cabal-2.4.0 2020-02-23 07:59:04 +08:00
Jens Petersen
e7549ee9a7 drop old cabal-tweak-dep-ver 2020-02-23 07:38:50 +08:00
Jens Petersen
d40c525728 update to 2.4.1.0 2020-02-09 21:41:08 +08:00
Jens Petersen
e0378c246f refresh to cabal-rpm-2.0.2 2020-02-08 22:48:30 +08:00
Fedora Release Engineering
a7068a66cd - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-28 13:30:15 +00:00
Jens Petersen
e7eb243fd0 tests: add 2 basic CI tests 2019-12-15 17:22:53 +08:00
Jens Petersen
1d1873bd8a BR prof for lib and static for executable 2019-08-05 18:26:52 +08:00
Jens Petersen
b41e6b566e update to 2.4.0.0 2019-08-01 19:33:59 +05:30
Fedora Release Engineering
72ed592830 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-24 19:46:34 +00:00
Jens Petersen
1555852dd6 rebuild 2019-05-09 23:42:08 +08:00
Jens Petersen
efc71a2751 resolv dep is now packaged 2019-04-09 19:27:07 +08:00
Jens Petersen
362f69476a better path quoting in profile.d cabal-install.sh (Chris King-Parra, #1683879) 2019-03-02 18:45:03 +08:00
Jens Petersen
5edb090cdf install bash-completion file under datadir (#1683879) 2019-02-28 12:08:55 +08:00
Jens Petersen
311a78fe22 subpackage resolv dep 2019-02-25 12:50:55 +08:00
Jens Petersen
de1e9376a6 update to 2.2.0.0 2019-02-21 09:56:31 +08:00
Jens Petersen
6df5ab9f7c refresh to cabal-rpm-0.13 2019-02-17 22:43:05 +08:00
Fedora Release Engineering
e8a7bfc6bc - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-01-31 15:07:26 +00:00
7 changed files with 751 additions and 1129 deletions

11
.gitignore vendored
View file

@ -16,3 +16,14 @@ cabal-install-0.8.2.tar.gz
/cryptohash-sha256-0.11.100.1.tar.gz
/cabal-install-2.0.0.1.tar.gz
/echo-0.1.3.tar.gz
/cabal-install-2.2.0.0.tar.gz
/resolv-0.1.1.2.tar.gz
/cabal-install-2.4.0.0.tar.gz
/cabal-install-2.4.1.0.tar.gz
/cabal-install-3.0.0.0.tar.gz
/cabal-install-3.2.0.0.tar.gz
/cabal-install-3.6.2.0.tar.gz
/cabal-install-3.8.1.0.tar.gz
/cabal-install-solver-3.8.1.0.tar.gz
/cabal-install-3.10.3.0.tar.gz
/cabal-install-solver-3.10.3.0.tar.gz

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,432 @@
Cabal-Version: 2.2
Name: cabal-install
Version: 3.10.3.0
x-revision: 1
Synopsis: The command-line interface for Cabal and Hackage.
Description:
The \'cabal\' command-line program simplifies the process of managing
Haskell software by automating the fetching, configuration, compilation
and installation of Haskell libraries and programs.
homepage: http://www.haskell.org/cabal/
bug-reports: https://github.com/haskell/cabal/issues
License: BSD-3-Clause
License-File: LICENSE
Author: Cabal Development Team (see AUTHORS file)
Maintainer: Cabal Development Team <cabal-devel@haskell.org>
Copyright: 2003-2023, Cabal Development Team
Category: Distribution
Build-type: Simple
Extra-Source-Files:
bash-completion/cabal
extra-doc-files:
README.md
changelog
source-repository head
type: git
location: https://github.com/haskell/cabal/
subdir: cabal-install
Flag native-dns
description:
Enable use of the [resolv](https://hackage.haskell.org/package/resolv)
& [windns](https://hackage.haskell.org/package/windns) packages for performing DNS lookups
default: True
manual: True
Flag lukko
description: Use @lukko@ for file-locking
default: True
manual: True
common warnings
ghc-options: -Wall -Wcompat -Wnoncanonical-monad-instances -Wincomplete-uni-patterns -Wincomplete-record-updates
if impl(ghc < 8.8)
ghc-options: -Wnoncanonical-monadfail-instances
if impl(ghc >=9.0)
-- Warning: even though introduced with GHC 8.10, -Wunused-packages
-- gives false positives with GHC 8.10.
ghc-options: -Wunused-packages
common base-dep
build-depends: base >=4.10 && <4.20
common cabal-dep
build-depends: Cabal ^>=3.10.3
common cabal-syntax-dep
build-depends: Cabal-syntax ^>=3.10
common cabal-install-solver-dep
build-depends: cabal-install-solver ^>=3.10
library
import: warnings, base-dep, cabal-dep, cabal-syntax-dep, cabal-install-solver-dep
default-language: Haskell2010
default-extensions: TypeOperators
hs-source-dirs: src
autogen-modules:
Paths_cabal_install
other-modules:
Paths_cabal_install
exposed-modules:
-- this modules are moved from Cabal
-- they are needed for as long until cabal-install moves to parsec parser
Distribution.Deprecated.ParseUtils
Distribution.Deprecated.ReadP
Distribution.Deprecated.ViewAsFieldDescr
Distribution.Client.BuildReports.Anonymous
Distribution.Client.BuildReports.Lens
Distribution.Client.BuildReports.Storage
Distribution.Client.BuildReports.Types
Distribution.Client.BuildReports.Upload
Distribution.Client.Check
Distribution.Client.CmdBench
Distribution.Client.CmdBuild
Distribution.Client.CmdClean
Distribution.Client.CmdConfigure
Distribution.Client.CmdErrorMessages
Distribution.Client.CmdExec
Distribution.Client.CmdFreeze
Distribution.Client.CmdHaddock
Distribution.Client.CmdHaddockProject
Distribution.Client.CmdInstall
Distribution.Client.CmdInstall.ClientInstallFlags
Distribution.Client.CmdInstall.ClientInstallTargetSelector
Distribution.Client.CmdLegacy
Distribution.Client.CmdListBin
Distribution.Client.CmdOutdated
Distribution.Client.CmdRepl
Distribution.Client.CmdRun
Distribution.Client.CmdSdist
Distribution.Client.CmdTest
Distribution.Client.CmdUpdate
Distribution.Client.Compat.Directory
Distribution.Client.Compat.ExecutablePath
Distribution.Client.Compat.Orphans
Distribution.Client.Compat.Prelude
Distribution.Client.Compat.Semaphore
Distribution.Client.Compat.Tar
Distribution.Client.Config
Distribution.Client.Configure
Distribution.Client.Dependency
Distribution.Client.Dependency.Types
Distribution.Client.DistDirLayout
Distribution.Client.Fetch
Distribution.Client.FetchUtils
Distribution.Client.FileMonitor
Distribution.Client.Freeze
Distribution.Client.GZipUtils
Distribution.Client.GenBounds
Distribution.Client.Get
Distribution.Client.Glob
Distribution.Client.GlobalFlags
Distribution.Client.Haddock
Distribution.Client.HashValue
Distribution.Client.HttpUtils
Distribution.Client.IndexUtils
Distribution.Client.IndexUtils.ActiveRepos
Distribution.Client.IndexUtils.IndexState
Distribution.Client.IndexUtils.Timestamp
Distribution.Client.Init
Distribution.Client.Init.Defaults
Distribution.Client.Init.FileCreators
Distribution.Client.Init.FlagExtractors
Distribution.Client.Init.Format
Distribution.Client.Init.Interactive.Command
Distribution.Client.Init.NonInteractive.Command
Distribution.Client.Init.NonInteractive.Heuristics
Distribution.Client.Init.Licenses
Distribution.Client.Init.Prompt
Distribution.Client.Init.Simple
Distribution.Client.Init.Types
Distribution.Client.Init.Utils
Distribution.Client.Install
Distribution.Client.InstallPlan
Distribution.Client.InstallSymlink
Distribution.Client.JobControl
Distribution.Client.List
Distribution.Client.Main
Distribution.Client.Manpage
Distribution.Client.ManpageFlags
Distribution.Client.Nix
Distribution.Client.NixStyleOptions
Distribution.Client.PackageHash
Distribution.Client.ParseUtils
Distribution.Client.ProjectBuilding
Distribution.Client.ProjectBuilding.Types
Distribution.Client.ProjectConfig
Distribution.Client.ProjectConfig.Legacy
Distribution.Client.ProjectConfig.Types
Distribution.Client.ProjectFlags
Distribution.Client.ProjectOrchestration
Distribution.Client.ProjectPlanOutput
Distribution.Client.ProjectPlanning
Distribution.Client.ProjectPlanning.Types
Distribution.Client.RebuildMonad
Distribution.Client.Reconfigure
Distribution.Client.Run
Distribution.Client.Sandbox
Distribution.Client.Sandbox.PackageEnvironment
Distribution.Client.SavedFlags
Distribution.Client.ScriptUtils
Distribution.Client.Security.DNS
Distribution.Client.Security.HTTP
Distribution.Client.Setup
Distribution.Client.SetupWrapper
Distribution.Client.Signal
Distribution.Client.SolverInstallPlan
Distribution.Client.SourceFiles
Distribution.Client.SrcDist
Distribution.Client.Store
Distribution.Client.Tar
Distribution.Client.TargetProblem
Distribution.Client.TargetSelector
Distribution.Client.Targets
Distribution.Client.Types
Distribution.Client.Types.AllowNewer
Distribution.Client.Types.BuildResults
Distribution.Client.Types.ConfiguredId
Distribution.Client.Types.ConfiguredPackage
Distribution.Client.Types.Credentials
Distribution.Client.Types.InstallMethod
Distribution.Client.Types.OverwritePolicy
Distribution.Client.Types.PackageLocation
Distribution.Client.Types.PackageSpecifier
Distribution.Client.Types.ReadyPackage
Distribution.Client.Types.Repo
Distribution.Client.Types.RepoName
Distribution.Client.Types.SourcePackageDb
Distribution.Client.Types.SourceRepo
Distribution.Client.Types.WriteGhcEnvironmentFilesPolicy
Distribution.Client.Upload
Distribution.Client.Utils
Distribution.Client.Utils.Json
Distribution.Client.Utils.Parsec
Distribution.Client.VCS
Distribution.Client.Version
Distribution.Client.Win32SelfUpgrade
build-depends:
async >= 2.0 && < 2.3,
array >= 0.4 && < 0.6,
base16-bytestring >= 0.1.1 && < 1.1.0.0,
binary >= 0.7.3 && < 0.9,
bytestring >= 0.10.6.0 && < 0.13,
containers >= 0.5.6.2 && < 0.8,
cryptohash-sha256 >= 0.11 && < 0.12,
directory >= 1.3.7.0 && < 1.4,
echo >= 0.1.3 && < 0.2,
edit-distance >= 0.2.2 && < 0.3,
exceptions >= 0.10.4 && < 0.11,
filepath >= 1.4.0.0 && < 1.6,
hashable >= 1.0 && < 1.5,
HTTP >= 4000.1.5 && < 4000.5,
mtl >= 2.0 && < 2.4,
network-uri >= 2.6.0.2 && < 2.7,
pretty >= 1.1 && < 1.2,
process >= 1.2.3.0 && < 1.7,
random >= 1.2 && < 1.3,
stm >= 2.0 && < 2.6,
tar >= 0.5.0.3 && < 0.7,
time >= 1.5.0.1 && < 1.13,
zlib >= 0.5.3 && < 0.8,
hackage-security >= 0.6.2.0 && < 0.7,
text >= 1.2.3 && < 1.3 || >= 2.0 && < 2.2,
parsec >= 3.1.13.0 && < 3.2,
regex-base >= 0.94.0.0 && <0.95,
regex-posix >= 0.96.0.0 && <0.97,
safe-exceptions >= 0.1.7.0 && < 0.2
if flag(native-dns)
if os(windows)
build-depends: windns >= 0.1.0 && < 0.2
else
build-depends: resolv >= 0.1.1 && < 0.3
if os(windows)
-- newer directory for symlinks
build-depends: Win32 >= 2.8 && < 3, directory >=1.3.1.0
else
build-depends: unix >= 2.5 && < 2.9
if flag(lukko)
build-depends: lukko >= 0.1 && <0.2
-- pull in process version with fixed waitForProcess error
if impl(ghc >=8.2)
build-depends: process >= 1.6.15.0
executable cabal
import: warnings, base-dep
main-is: Main.hs
hs-source-dirs: main
default-language: Haskell2010
ghc-options: -rtsopts -threaded
-- On AIX, some legacy BSD operations such as flock(2) are provided by libbsd.a
if os(aix)
extra-libraries: bsd
build-depends:
cabal-install
-- Small, fast running tests.
--
test-suite unit-tests
import: warnings, base-dep, cabal-dep, cabal-syntax-dep, cabal-install-solver-dep
default-language: Haskell2010
default-extensions: TypeOperators
ghc-options: -rtsopts -threaded
type: exitcode-stdio-1.0
main-is: UnitTests.hs
hs-source-dirs: tests
other-modules:
UnitTests.Distribution.Client.ArbitraryInstances
UnitTests.Distribution.Client.BuildReport
UnitTests.Distribution.Client.Configure
UnitTests.Distribution.Client.FetchUtils
UnitTests.Distribution.Client.Get
UnitTests.Distribution.Client.Glob
UnitTests.Distribution.Client.GZipUtils
UnitTests.Distribution.Client.IndexUtils
UnitTests.Distribution.Client.IndexUtils.Timestamp
UnitTests.Distribution.Client.Init
UnitTests.Distribution.Client.Init.Golden
UnitTests.Distribution.Client.Init.Interactive
UnitTests.Distribution.Client.Init.NonInteractive
UnitTests.Distribution.Client.Init.Simple
UnitTests.Distribution.Client.Init.Utils
UnitTests.Distribution.Client.Init.FileCreators
UnitTests.Distribution.Client.InstallPlan
UnitTests.Distribution.Client.JobControl
UnitTests.Distribution.Client.ProjectConfig
UnitTests.Distribution.Client.ProjectPlanning
UnitTests.Distribution.Client.Store
UnitTests.Distribution.Client.Tar
UnitTests.Distribution.Client.Targets
UnitTests.Distribution.Client.TreeDiffInstances
UnitTests.Distribution.Client.UserConfig
UnitTests.Distribution.Solver.Modular.Builder
UnitTests.Distribution.Solver.Modular.RetryLog
UnitTests.Distribution.Solver.Modular.Solver
UnitTests.Distribution.Solver.Modular.DSL
UnitTests.Distribution.Solver.Modular.DSL.TestCaseUtils
UnitTests.Distribution.Solver.Modular.WeightedPSQ
UnitTests.Distribution.Solver.Types.OptionalStanza
UnitTests.Options
UnitTests.TempTestDir
build-depends:
array,
bytestring,
cabal-install,
Cabal-tree-diff,
Cabal-QuickCheck,
containers,
directory,
filepath,
mtl,
network-uri >= 2.6.2.0 && <2.7,
random,
tar,
time,
zlib,
tasty >= 1.2.3 && <1.6,
tasty-golden >=2.3.1.1 && <2.4,
tasty-quickcheck,
tasty-hunit >= 0.10,
tree-diff,
QuickCheck >= 2.14.3 && <2.15
-- Tests to run with a limited stack and heap size
-- The test suite name must be keep short cause a longer one
-- could make the build generating paths which exceeds the windows
-- max path limit (still a problem for some ghc versions)
test-suite mem-use-tests
import: warnings, base-dep, cabal-dep, cabal-syntax-dep, cabal-install-solver-dep
type: exitcode-stdio-1.0
main-is: MemoryUsageTests.hs
hs-source-dirs: tests
default-language: Haskell2010
ghc-options: -threaded -rtsopts "-with-rtsopts=-M16M -K1K"
other-modules:
UnitTests.Distribution.Solver.Modular.DSL
UnitTests.Distribution.Solver.Modular.DSL.TestCaseUtils
UnitTests.Distribution.Solver.Modular.MemoryUsage
UnitTests.Options
build-depends:
cabal-install,
containers,
tasty >= 1.2.3 && <1.6,
tasty-hunit >= 0.10
-- Integration tests that use the cabal-install code directly
-- but still build whole projects
test-suite integration-tests2
import: warnings, base-dep, cabal-dep, cabal-syntax-dep, cabal-install-solver-dep
ghc-options: -rtsopts -threaded
type: exitcode-stdio-1.0
main-is: IntegrationTests2.hs
hs-source-dirs: tests
default-language: Haskell2010
build-depends:
bytestring,
cabal-install,
containers,
directory,
filepath,
tasty >= 1.2.3 && <1.6,
tasty-hunit >= 0.10,
tagged
test-suite long-tests
import: warnings, base-dep, cabal-dep, cabal-syntax-dep, cabal-install-solver-dep
ghc-options: -rtsopts -threaded
type: exitcode-stdio-1.0
hs-source-dirs: tests
main-is: LongTests.hs
default-language: Haskell2010
other-modules:
UnitTests.Distribution.Client.ArbitraryInstances
UnitTests.Distribution.Client.Described
UnitTests.Distribution.Client.DescribedInstances
UnitTests.Distribution.Client.FileMonitor
UnitTests.Distribution.Client.VCS
UnitTests.Distribution.Solver.Modular.DSL
UnitTests.Distribution.Solver.Modular.QuickCheck
UnitTests.Distribution.Solver.Modular.QuickCheck.Utils
UnitTests.Options
UnitTests.TempTestDir
build-depends:
Cabal-QuickCheck,
Cabal-described,
cabal-install,
containers,
directory,
filepath,
hashable,
mtl,
network-uri >= 2.6.2.0 && <2.7,
random,
tagged,
tasty >= 1.2.3 && <1.6,
tasty-expected-failure,
tasty-hunit >= 0.10,
tasty-quickcheck,
QuickCheck >= 2.14 && <2.15,
pretty-show >= 1.6.15

View file

@ -1,8 +1,8 @@
CABALBIN=${HOME}/.cabal/bin
CABALBIN="${HOME}/.cabal/bin"
if ! echo "${PATH}" | /bin/grep -q "${CABALBIN}" ; then
if [ -d "${CABALBIN}" ]; then
PATH=${PATH}:${CABALBIN}
PATH="${PATH}:${CABALBIN}"
fi
fi
unset CABALBIN

View file

@ -1,69 +1,123 @@
# generated by cabal-rpm-0.12.5
# https://fedoraproject.org/wiki/Packaging:Haskell
# generated by cabal-rpm-2.3.0 --subpackage
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
# needs tasty-hunit >=0.10
%bcond_with tests
%global pkg_name cabal-install
%global pkgver %{pkg_name}-%{version}
%{?haskell_setup}
Name: cabal-install
Version: 2.0.0.1
Release: 10%{?dist}
%global cabalinstallsolver cabal-install-solver-3.10.3.0
%global subpkgs %{cabalinstallsolver}
# testsuite missing deps: Cabal-QuickCheck Cabal-tree-diff tasty-golden tree-diff Cabal-described tasty-expected-failure
Name: %{pkg_name}
Version: 3.10.3.0
# can only be reset when subpkg bumped
Release: 4%{?dist}
Summary: The command-line interface for Cabal and Hackage
License: BSD
Url: https://hackage.haskell.org/package/%{name}
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
Source1: https://hackage.haskell.org/package/%{name}-%{version}/%{name}.cabal#/%{name}-%{version}.cabal
License: BSD-3-Clause
URL: https://hackage.haskell.org/package/cabal-install
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1: https://hackage.haskell.org/package/%{cabalinstallsolver}/%{cabalinstallsolver}.tar.gz
Source2: https://hackage.haskell.org/package/%{pkgver}/%{name}.cabal#/%{pkgver}.cabal
# End cabal-rpm sources
Source10: cabal-install.sh
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
BuildRequires: dos2unix
BuildRequires: ghc-rpm-macros-extra
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-Cabal-syntax-devel
BuildRequires: ghc-HTTP-devel
BuildRequires: ghc-array-devel
BuildRequires: ghc-async-devel
BuildRequires: ghc-base-devel
BuildRequires: ghc-base16-bytestring-devel
BuildRequires: ghc-binary-devel
BuildRequires: ghc-bytestring-devel
#BuildRequires: ghc-cabal-install-solver-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-cryptohash-sha256-devel
BuildRequires: ghc-deepseq-devel
BuildRequires: ghc-directory-devel
BuildRequires: ghc-echo-devel
BuildRequires: ghc-edit-distance-devel
BuildRequires: ghc-exceptions-devel
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-hackage-security-devel
BuildRequires: ghc-hashable-devel
BuildRequires: ghc-lukko-devel
BuildRequires: ghc-mtl-devel
BuildRequires: ghc-network-devel
BuildRequires: ghc-network-uri-devel
BuildRequires: ghc-parsec-devel
BuildRequires: ghc-pretty-devel
BuildRequires: ghc-process-devel
BuildRequires: ghc-random-devel
BuildRequires: ghc-regex-base-devel
BuildRequires: ghc-regex-posix-devel
BuildRequires: ghc-resolv-devel
BuildRequires: ghc-safe-exceptions-devel
BuildRequires: ghc-stm-devel
BuildRequires: ghc-tar-devel
BuildRequires: ghc-text-devel
BuildRequires: ghc-time-devel
BuildRequires: ghc-unix-devel
BuildRequires: ghc-zlib-devel
%if %{with tests}
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-pretty-show-devel
BuildRequires: ghc-tagged-devel
BuildRequires: ghc-tasty-devel
BuildRequires: ghc-tasty-hunit-devel
BuildRequires: ghc-tasty-quickcheck-devel
%if %{with ghc_prof}
BuildRequires: ghc-Cabal-prof
BuildRequires: ghc-Cabal-syntax-prof
BuildRequires: ghc-HTTP-prof
BuildRequires: ghc-array-prof
BuildRequires: ghc-async-prof
BuildRequires: ghc-base-prof
BuildRequires: ghc-base16-bytestring-prof
BuildRequires: ghc-binary-prof
BuildRequires: ghc-bytestring-prof
#BuildRequires: ghc-cabal-install-solver-prof
BuildRequires: ghc-containers-prof
BuildRequires: ghc-cryptohash-sha256-prof
BuildRequires: ghc-directory-prof
BuildRequires: ghc-echo-prof
BuildRequires: ghc-edit-distance-prof
BuildRequires: ghc-exceptions-prof
BuildRequires: ghc-filepath-prof
BuildRequires: ghc-hackage-security-prof
BuildRequires: ghc-hashable-prof
BuildRequires: ghc-lukko-prof
BuildRequires: ghc-mtl-prof
BuildRequires: ghc-network-uri-prof
BuildRequires: ghc-parsec-prof
BuildRequires: ghc-pretty-prof
BuildRequires: ghc-process-prof
BuildRequires: ghc-random-prof
BuildRequires: ghc-regex-base-prof
BuildRequires: ghc-regex-posix-prof
BuildRequires: ghc-resolv-prof
BuildRequires: ghc-safe-exceptions-prof
BuildRequires: ghc-stm-prof
BuildRequires: ghc-tar-prof
BuildRequires: ghc-text-prof
BuildRequires: ghc-time-prof
BuildRequires: ghc-unix-prof
BuildRequires: ghc-zlib-prof
%endif
# for missing dep 'cabal-install-solver':
BuildRequires: ghc-transformers-devel
%if %{with ghc_prof}
BuildRequires: ghc-transformers-prof
%endif
# End cabal-rpm deps
# cabal-install 2.0 does not require Cabal
Requires: ghc-compiler
# for /etc/bash_completion.d/
Requires: filesystem
# nslookup used for mirror dns
Requires: bind-utils
# for /etc/profile.d/
Requires: setup
Obsoletes: cabal-dev < 0.9.2-5
Recommends: ghc
Recommends: zlib-devel
# added for F26
Obsoletes: %{name}-common < %{version}-%{release}
Obsoletes: %{name}-static < %{version}-%{release}
@ -74,39 +128,235 @@ software by automating the fetching, configuration, compilation and
installation of Haskell libraries and programs.
%package -n ghc-%{name}
Summary: Haskell %{name} library
%description -n ghc-%{name}
This package provides the Haskell %{name} shared library.
%package -n ghc-%{name}-devel
Summary: Haskell %{name} library development files
Provides: ghc-%{name}-static = %{version}-%{release}
Provides: ghc-%{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires: ghc-compiler = %{ghc_version}
%endif
Requires: ghc-%{name}%{?_isa} = %{version}-%{release}
%description -n ghc-%{name}-devel
This package provides the Haskell %{name} library development files.
%if %{with haddock}
%package -n ghc-%{name}-doc
Summary: Haskell %{name} library documentation
BuildArch: noarch
Requires: ghc-filesystem
%description -n ghc-%{name}-doc
This package provides the Haskell %{name} library documentation.
%endif
%if %{with ghc_prof}
%package -n ghc-%{name}-prof
Summary: Haskell %{name} profiling library
Requires: ghc-%{name}-devel%{?_isa} = %{version}-%{release}
Supplements: (ghc-%{name}-devel and ghc-prof)
%description -n ghc-%{name}-prof
This package provides the Haskell %{name} profiling library.
%endif
%global main_version %{version}
%if %{defined ghclibdir}
%ghc_lib_subpackage -l BSD-3-Clause %{cabalinstallsolver}
%endif
%global version %{main_version}
%prep
%setup -q
cp -p %{SOURCE1} %{name}.cabal
# Begin cabal-rpm setup:
%setup -q -a1
dos2unix -k -n %{SOURCE2} %{name}.cabal
# End cabal-rpm setup
%build
%ghc_bin_build
# Begin cabal-rpm build:
%ghc_libs_build %{subpkgs}
%ghc_lib_build
# End cabal-rpm build
%install
%ghc_bin_install
# Begin cabal-rpm install
%ghc_libs_install %{subpkgs}
%ghc_lib_install
# End cabal-rpm install
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
cp -p bash-completion/cabal $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
install -pm 644 -D -t %{buildroot}%{_datadir}/bash-completion/completions/ bash-completion/cabal
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
install -pm 644 %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
%check
%cabal_test
install -pm 644 -D -t %{buildroot}%{_sysconfdir}/profile.d/ %{SOURCE10}
%files
# Begin cabal-rpm files:
%license LICENSE
%doc README.md changelog
%{_bindir}/cabal
%config(noreplace) %{_sysconfdir}/bash_completion.d/cabal
# End cabal-rpm files
%config(noreplace) %{_sysconfdir}/profile.d/cabal-install.sh
%{_mandir}/man1/cabal.1*
%{_datadir}/bash-completion/completions/cabal
%files -n ghc-%{name} -f ghc-%{name}.files
# Begin cabal-rpm files:
%license LICENSE
# End cabal-rpm files
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
%doc README.md changelog
%if %{with haddock}
%files -n ghc-%{name}-doc -f ghc-%{name}-doc.files
%license LICENSE
%endif
%if %{with ghc_prof}
%files -n ghc-%{name}-prof -f ghc-%{name}-prof.files
%endif
%changelog
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.3.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Sun Mar 30 2025 Jens Petersen <petersen@redhat.com> - 3.10.3.0-3
- Rebuild
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Sun Jul 21 2024 Jens Petersen <petersen@redhat.com> - 3.10.3.0-1
- https://github.com/haskell/cabal/blob/master/release-notes/Cabal-3.10.1.0.md
- https://github.com/haskell/cabal/blob/master/release-notes/Cabal-3.10.2.0.md
- https://github.com/haskell/cabal/blob/master/release-notes/Cabal-3.10.2.1.md
- https://github.com/haskell/cabal/blob/master/release-notes/Cabal-3.10.3.0.md
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.1.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Thu Feb 15 2024 Jens Petersen <petersen@redhat.com> - 3.8.1.0-7
- rebuild to fix s390x segfault (#2248097)
* Tue Jan 23 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.1.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.1.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sat Jan 6 2024 Jens Petersen <petersen@redhat.com> - 3.8.1.0-4
- just use #8358 and #8627 to prevent redundant dist-newstyle/
* Sat Jan 6 2024 Jens Petersen <petersen@redhat.com> - 3.8.1.0-3
- prevent dist-newstyle/ directory creation for cabal update
https://github.com/haskell/cabal/issues/8589
* Fri Nov 3 2023 Jens Petersen <petersen@redhat.com> - 3.8.1.0-2
- fix pkgconfig-depends detection failing with pkgconf-1.9
* Wed Jul 26 2023 Jens Petersen <petersen@redhat.com> - 3.8.1.0-1
- https://hackage.haskell.org/package/cabal-install-3.8.1.0/changelog
- package library and subpackage cabal-install-resolver
* Sun Jan 22 2023 Jens Petersen <petersen@redhat.com> - 3.6.2.0-1
- https://hackage.haskell.org/package/cabal-install-3.6.2.0/changelog
- refresh to cabal-rpm-2.1.0 with SPDX migration
* Fri Sep 16 2022 Jens Petersen <petersen@redhat.com> - 3.2.0.0-9
- revert recommending ghcX.Y
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Jun 17 2022 Jens Petersen <petersen@redhat.com> - 3.2.0.0-7
- rebuild
* Sat Apr 30 2022 Jens Petersen <petersen@redhat.com> - 3.2.0.0-6
- recommend ghc or ghcX.Y
* Thu Apr 21 2022 Jens Petersen <petersen@redhat.com> - 3.2.0.0-5
- drop the strict requires on ghc-compiler to allow ghcX.Y-compiler-default
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Sat Jan 08 2022 Miro Hrončok <mhroncok@redhat.com> - 3.2.0.0-3
- Rebuilt for https://fedoraproject.org/wiki/Changes/LIBFFI34
* Thu Sep 9 2021 Jens Petersen <petersen@redhat.com> - 3.2.0.0-2
- recommends zlib-devel for convenience
- fix the sdist file permissions patch to compile in 3.2
* Thu Aug 5 2021 Jens Petersen <petersen@redhat.com> - 3.2.0.0-1
- update to 3.2.0.0
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Sat Dec 12 2020 Jens Petersen <petersen@redhat.com> - 3.0.0.0-3
- Recommends ghc (thanks Tristan de Cacqueray,#1)
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Sun Jun 07 2020 Jens Petersen <petersen@redhat.com> - 3.0.0.0-1
- update to 3.0.0.0
* Tue Apr 14 2020 Jens Petersen <petersen@redhat.com> - 2.4.1.0-2
- backport new-sdist upstream fix for doc file permissions
(https://github.com/haskell/cabal/issues/5813)
* Sun Feb 09 2020 Jens Petersen <petersen@redhat.com> - 2.4.1.0-1
- update to 2.4.1.0
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jul 25 2019 Jens Petersen <petersen@redhat.com> - 2.4.1.0-1
- update to 2.4.1.0
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Thu May 9 2019 fedora-toolbox <petersen@redhat.com> - 2.2.0.0-3
- rebuild
* Tue Apr 9 2019 Jens Petersen <petersen@redhat.com> - 2.2.0.0-2
- resolv is now packaged
* Thu Feb 21 2019 Jens Petersen <petersen@redhat.com> - 2.2.0.0-1
- update to 2.2.0.0
- subpackage resolv dep
- install bash-completion file under datadir (Chris King-Parra, #1683879)
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 2.0.0.1-12
- refresh to cabal-rpm-0.13
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Dec 14 2018 Jens Petersen <petersen@redhat.com> - 2.0.0.1-10
- drop the rpmlint whitelist of ghc-Cabal-devel again since no longer Requires

View file

@ -1 +1,2 @@
SHA512 (cabal-install-2.0.0.1.tar.gz) = 136105745e22b83a9ab906ac71ebbf4a5992b1731dd152e88eaa8dfd0d3076ddaca80bf0077c8b59c085c7d2f2fd0a3786e6e4c70a47dc924995f23758952a16
SHA512 (cabal-install-3.10.3.0.tar.gz) = e004dfc05903316c3264aa7a056d287e25f0589fa9adea2e93114e1750f3ae9774177b5d274c78fee37b6ba4bd5c03455d72437258b168607c2a81856ef06ddb
SHA512 (cabal-install-solver-3.10.3.0.tar.gz) = e8dcd0aaeb06ba5192536e3f51550bfa5239ca9377ae21c36dea377f79c28fe2c249381fb648f304d84d9a93c7b93793f44de23262ea907f710b28f7f548d13a

14
tests/tests.yml Normal file
View file

@ -0,0 +1,14 @@
---
- hosts: localhost
tags:
- classic
roles:
- role: standard-test-basic
required_packages:
- cabal-install
tests:
- help:
run: cabal --help
- update:
run: cabal update
...