# generated by cabal-rpm-2.3.0 --subpackage # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global pkg_name constraints %global pkgver %{pkg_name}-%{version} %{?haskell_setup} %global typeequality type-equality-1.0.1 %global subpkgs %{typeequality} %bcond tests 1 Name: ghc-%{pkg_name} Version: 0.14.2 Release: 5%{?dist} Summary: Constraint manipulation License: BSD-2-Clause URL: https://hackage.haskell.org/package/constraints # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz Source1: https://hackage.haskell.org/package/%{typeequality}/%{typeequality}.tar.gz Source2: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal # End cabal-rpm sources # Begin cabal-rpm deps: BuildRequires: dos2unix BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros-extra BuildRequires: ghc-base-devel BuildRequires: ghc-binary-devel BuildRequires: ghc-boring-devel BuildRequires: ghc-deepseq-devel BuildRequires: ghc-hashable-devel BuildRequires: ghc-mtl-devel BuildRequires: ghc-transformers-devel #BuildRequires: ghc-type-equality-devel %if %{with ghc_prof} BuildRequires: ghc-base-prof BuildRequires: ghc-binary-prof BuildRequires: ghc-boring-prof BuildRequires: ghc-deepseq-prof BuildRequires: ghc-hashable-prof BuildRequires: ghc-mtl-prof BuildRequires: ghc-transformers-prof #BuildRequires: ghc-type-equality-prof %endif %if %{with tests} BuildRequires: ghc-hspec-devel BuildRequires: ghc-hspec-discover-devel %endif # End cabal-rpm deps %description GHC 7.4 gave us the ability to talk about 'ConstraintKinds'. They stopped crashing the compiler in GHC 7.6. This package provides a vocabulary for working with them. %package devel Summary: Haskell %{pkg_name} library development files Provides: %{name}-static = %{version}-%{release} Provides: %{name}-static%{?_isa} = %{version}-%{release} %if %{defined ghc_version} Requires: ghc-compiler = %{ghc_version} %endif Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package provides the Haskell %{pkg_name} library development files. %if %{with haddock} %package doc Summary: Haskell %{pkg_name} library documentation BuildArch: noarch Requires: ghc-filesystem %description doc This package provides the Haskell %{pkg_name} library documentation. %endif %if %{with ghc_prof} %package prof Summary: Haskell %{pkg_name} profiling library Requires: %{name}-devel%{?_isa} = %{version}-%{release} Supplements: (%{name}-devel and ghc-prof) %description prof This package provides the Haskell %{pkg_name} profiling library. %endif %global main_version %{version} %if %{defined ghclibdir} %ghc_lib_subpackage -l BSD-3-Clause %{typeequality} %endif %global version %{main_version} %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} -a1 dos2unix -k -n %{SOURCE2} %{pkg_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 %check %if %{with tests} %cabal_test %endif %files -f %{name}.files # Begin cabal-rpm files: %license LICENSE # End cabal-rpm files %files devel -f %{name}-devel.files %doc CHANGELOG.markdown README.markdown %if %{with haddock} %files doc -f %{name}-doc.files %license LICENSE %endif %if %{with ghc_prof} %files prof -f %{name}-prof.files %endif %changelog * Wed Jul 23 2025 Fedora Release Engineering - 0.14.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Mon Apr 07 2025 Jens Petersen - 0.14.2-4 - Rebuild * Sun Mar 30 2025 Jens Petersen - 0.14.2-3 - Rebuild * Thu Jan 16 2025 Fedora Release Engineering - 0.14.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Tue Aug 06 2024 Jens Petersen - 0.14.2-1 - https://hackage.haskell.org/package/constraints-0.14.2/changelog * Thu Jul 18 2024 Fedora Release Engineering - 0.13.4-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jul 14 2024 Jens Petersen - 0.13.4-17 - refresh to cabal-rpm-2.2.1 * Wed Jan 24 2024 Fedora Release Engineering - 0.13.4-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 0.13.4-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 28 2023 Jens Petersen - 0.13.4-14 - bump base bound * Wed Jul 19 2023 Fedora Release Engineering - 0.13.4-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sun Apr 02 2023 Jens Petersen - 0.13.4-12 - move type-equality here from ghc-shelly * Sun Apr 02 2023 Jens Petersen - 0.13.4-11 - disable testsuite for now to avoid abihash change * Wed Mar 22 2023 Jens Petersen - 0.13.4-2 - enable testsuite (#2162872) * Sat Jan 21 2023 Jens Petersen - 0.13.4-1 - spec file generated by cabal-rpm-2.1.0