# generated by cabal-rpm-2.2.1 --subpackage # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global pkg_name cabal-install %global pkgver %{pkg_name}-%{version} %{?haskell_setup} %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: 1%{?dist} Summary: The command-line interface for Cabal and Hackage License: BSD-3-Clause Url: https://hackage.haskell.org/package/%{name} # 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 # 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-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-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 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 # for /etc/bash_completion.d/ Requires: filesystem # nslookup used for mirror dns Requires: bind-utils # for /etc/profile.d/ Requires: setup Recommends: ghc Recommends: zlib-devel # added for F26 Obsoletes: %{name}-common < %{version}-%{release} Obsoletes: %{name}-static < %{version}-%{release} %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. %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 # Begin cabal-rpm setup: %setup -q -a1 dos2unix -k -n %{SOURCE2} %{name}.cabal # End cabal-rpm setup %build # Begin cabal-rpm build: %ghc_libs_build %{subpkgs} %ghc_lib_build # End cabal-rpm build %install # Begin cabal-rpm install %ghc_libs_install %{subpkgs} %ghc_lib_install # End cabal-rpm install install -pm 644 -D -t %{buildroot}%{_datadir}/bash-completion/completions/ bash-completion/cabal install -pm 644 -D -t %{buildroot}%{_sysconfdir}/profile.d/ %{SOURCE10} %files # Begin cabal-rpm files: %license LICENSE %doc README.md changelog %{_bindir}/cabal # End cabal-rpm files %config(noreplace) %{_sysconfdir}/profile.d/cabal-install.sh %{_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 * Sun Jul 21 2024 Jens Petersen - 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 - 3.8.1.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Feb 15 2024 Jens Petersen - 3.8.1.0-7 - rebuild to fix s390x segfault (#2248097) * Tue Jan 23 2024 Fedora Release Engineering - 3.8.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 3.8.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 6 2024 Jens Petersen - 3.8.1.0-4 - just use #8358 and #8627 to prevent redundant dist-newstyle/ * Sat Jan 6 2024 Jens Petersen - 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 - 3.8.1.0-2 - fix pkgconfig-depends detection failing with pkgconf-1.9 * Wed Jul 26 2023 Jens Petersen - 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 - 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 - 3.2.0.0-9 - revert recommending ghcX.Y * Wed Jul 20 2022 Fedora Release Engineering - 3.2.0.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jun 17 2022 Jens Petersen - 3.2.0.0-7 - rebuild * Sat Apr 30 2022 Jens Petersen - 3.2.0.0-6 - recommend ghc or ghcX.Y * Thu Apr 21 2022 Jens Petersen - 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 - 3.2.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sat Jan 08 2022 Miro Hrončok - 3.2.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/LIBFFI34 * Thu Sep 9 2021 Jens Petersen - 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 - 3.2.0.0-1 - update to 3.2.0.0 * Wed Jul 21 2021 Fedora Release Engineering - 3.0.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 3.0.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Dec 12 2020 Jens Petersen - 3.0.0.0-3 - Recommends ghc (thanks Tristan de Cacqueray,#1) * Mon Jul 27 2020 Fedora Release Engineering - 3.0.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sun Jun 07 2020 Jens Petersen - 3.0.0.0-1 - update to 3.0.0.0 * Tue Apr 14 2020 Jens Petersen - 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 - 2.4.1.0-1 - update to 2.4.1.0 * Tue Jan 28 2020 Fedora Release Engineering - 2.4.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Jens Petersen - 2.4.1.0-1 - update to 2.4.1.0 * Wed Jul 24 2019 Fedora Release Engineering - 2.2.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu May 9 2019 fedora-toolbox - 2.2.0.0-3 - rebuild * Tue Apr 9 2019 Jens Petersen - 2.2.0.0-2 - resolv is now packaged * Thu Feb 21 2019 Jens Petersen - 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 - 2.0.0.1-12 - refresh to cabal-rpm-0.13 * Thu Jan 31 2019 Fedora Release Engineering - 2.0.0.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Dec 14 2018 Jens Petersen - 2.0.0.1-10 - drop the rpmlint whitelist of ghc-Cabal-devel again since no longer Requires * Thu Nov 22 2018 Jens Petersen - 2.0.0.1-9 - require bind-utils for nslookup used for secure mirror dns lookup * Wed Nov 21 2018 Jens Petersen - 2.0.0.1-8 - no longer requires ghc-Cabal-devel * Fri Oct 5 2018 Jens Petersen - 2.0.0.1-7 - rebuild * Fri Oct 5 2018 Jens Petersen - 2.0.0.1-6 - link cabal statically to its Haskell deps for ghc modules portability * Sat Jul 28 2018 Jens Petersen - 2.0.0.1-5 - revise .cabal * Thu Jul 12 2018 Fedora Release Engineering - 2.0.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 23 2018 Jens Petersen - 2.0.0.1-3 - unbundle echo library * Wed Feb 07 2018 Fedora Release Engineering - 2.0.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jan 24 2018 Jens Petersen - 2.0.0.1-1 - update to 2.0.0.1 - subpackage new echo dep * Sat Oct 21 2017 Jens Petersen - 1.24.0.2-6 - the bundled libraries are now packaged in Fedora * Wed Aug 02 2017 Fedora Release Engineering - 1.24.0.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.24.0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed May 24 2017 Jens Petersen - 1.24.0.2-3 - set manpage permission to 0644 * Wed Apr 26 2017 Jens Petersen - 1.24.0.2-2 - requires ghc-Cabal-devel (Matej Smid, #1445210) * Wed Feb 22 2017 Jens Petersen - 1.24.0.2-1 - update to 1.24.0.2 * Fri Feb 10 2017 Fedora Release Engineering - 1.22.9.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sat Jan 21 2017 Jens Petersen - 1.22.9.0-2 - drop static and common subpackages * Sun Jun 26 2016 Jens Petersen - 1.22.9.0-1 - update to 1.22.9.0 * Mon Jun 6 2016 Jens Petersen - 1.22.6.0-1 - update to 1.22.6.0 * Wed Feb 03 2016 Fedora Release Engineering - 1.18.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 1.18.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed May 13 2015 Jens Petersen - 1.18.1.0-1 - security version update for upload command * Thu Apr 2 2015 Jens Petersen - 1.18.0.8-1 - update to 1.18.0.8 * Thu Aug 7 2014 Jens Petersen - 1.18.0.5-1 - update to 1.18.0.5 - obsolete cabal-dev - add static and common subpackages * Tue Jul 8 2014 Jens Petersen - 1.16.0.2-35 - f21 rebuild * Fri Apr 18 2014 Jens Petersen - 1.16.0.2-34 - bump release over haskell-platform * Thu Apr 17 2014 Jens Petersen - 1.16.0.2-32 - mark bash_completion.d and profile.d files as config (#1069062) - require filesystem and setup to own the sysconfig dirs (#1069062) * Mon Feb 24 2014 Jens Petersen - 1.16.0.2-31 - update to 1.16.0.2 - split out of haskell-platform (#1069062) - only show cabal-install upgrade notice for verbose * Tue May 8 2012 Jens Petersen - 0.14.0-1 - update to 0.14.0 release * Tue Mar 20 2012 Jens Petersen - 0.13.3-0.1 - update to latest darcs * Thu Jan 12 2012 Fedora Release Engineering - 0.10.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Dec 28 2011 Jens Petersen - 0.10.2-6 - rebuild for haskell-platform-2011.4.0.0 * Fri Dec 16 2011 Jens Petersen - 0.10.2-5 - bring back requires ghc-compiler (Stanislav Ochotnicky, #760461) * Thu Oct 20 2011 Marcela Mašláňová - 0.10.2-4.2 - rebuild with new gmp without compat lib * Mon Oct 10 2011 Peter Schiffer - 0.10.2-4.1 - rebuild with new gmp * Tue Jun 21 2011 Jens Petersen - 0.10.2-4 - ghc_arches replaces ghc_excluded_archs * Mon Jun 20 2011 Jens Petersen - 0.10.2-3 - BR ghc-Cabal-devel and use ghc_excluded_archs - drop ghc requires to allow local ghc * Wed May 25 2011 Jens Petersen - 0.10.2-2 - add ppc64 * Fri Mar 11 2011 Jens Petersen - 0.10.2-1 - update to 0.10.2 * Thu Mar 10 2011 Fabio M. Di Nitto - 0.9.6-0.2 - Enable build on sparcv9 * Tue Feb 15 2011 Jens Petersen - 0.9.6-0.1 - update to 0.9.6 pre snapshot * Tue Feb 15 2011 Jens Petersen - 0.9.5-0.5 - rebuild for haskell-platform-2011.1 updates * Tue Feb 08 2011 Fedora Release Engineering - 0.9.5-0.4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sun Jan 23 2011 Jens Petersen - 0.9.5-0.3 - update to cabal2spec-0.22.4 - BR ghc-devel * Sun Dec 5 2010 Jens Petersen - 0.9.5-0.2 - rebuild with HTTP-4000.1.1 * Thu Nov 25 2010 Jens Petersen - 0.9.5-0.1 - update to current 0.9.5 snapshot * Fri Jul 16 2010 Jens Petersen - 0.8.2-1 - update to 0.8.2 for haskell-platform-2010.2.0.0 * Sun Jun 27 2010 Jens Petersen - 0.8.0-5 - sync cabal2spec-0.22.1 * Wed May 19 2010 Jens Petersen - 0.8.0-4 - append ~/.cabal/bin to PATH (if dir exists) with new /etc/profile.d/cabal-install.sh (#509699) * Tue Apr 27 2010 Jens Petersen - 0.8.0-3 - rebuild against ghc-6.12.2 * Tue Mar 23 2010 Jens Petersen - 0.8.0-2 - rebuild against HTTP-4000.0.9 for haskell-platform-2010.1.0.0 * Mon Jan 11 2010 Jens Petersen - 0.8.0-1 - update to 0.8.0 for ghc-6.12.1 - add dynamic bcond - drop redundant buildroot and its install cleaning * Wed Sep 16 2009 Jens Petersen - 0.6.2-6 - really rebuild * Fri Jul 24 2009 Fedora Release Engineering - 0.6.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sun May 17 2009 Jens Petersen - 0.6.2-4 - buildrequires ghc-rpm-macros (cabal-0.16) * Sun Apr 26 2009 Jens Petersen - 0.6.2-3 - rebuild against ghc-6.10.2 * Fri Feb 27 2009 Jens Petersen - 0.6.2-2 - update for cabal2spec-0.11: - use global - fix source url - add ix86 and alpha archs * Mon Feb 23 2009 Jens Petersen - 0.6.2-1 - update to 0.6.2 release * Mon Feb 9 2009 Jens Petersen - 0.6.0-3 - fix source url * Wed Jan 7 2009 Jens Petersen - 0.6.0-2 - add bash completion file - update cabal build macro * Tue Nov 11 2008 Jens Petersen - 0.6.0-1 - initial package for Fedora