# generated by cabal-rpm-2.2.1 --subpackage # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global pkg_name snap-core %global pkgver %{pkg_name}-%{version} %{?haskell_setup} %global readable readable-0.3.1 %global subpkgs %{readable} # testsuite missing deps: test-framework test-framework-hunit test-framework-quickcheck2 Name: ghc-%{pkg_name} Version: 1.0.5.1 # can only be reset when subpkg bumped Release: 29%{?dist} Summary: Snap web framework core library License: BSD-3-Clause Url: https://hackage.haskell.org/package/%{pkg_name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz Source1: https://hackage.haskell.org/package/%{readable}/%{readable}.tar.gz Source2: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal # End cabal-rpm sources Patch0: snap-core-0.9.2.2-portable-flag.patch # Begin cabal-rpm deps: BuildRequires: dos2unix BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros-extra BuildRequires: ghc-HUnit-devel BuildRequires: ghc-attoparsec-devel BuildRequires: ghc-base-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-case-insensitive-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-directory-devel BuildRequires: ghc-filepath-devel BuildRequires: ghc-hashable-devel BuildRequires: ghc-io-streams-devel BuildRequires: ghc-lifted-base-devel BuildRequires: ghc-monad-control-devel BuildRequires: ghc-mtl-devel BuildRequires: ghc-network-devel BuildRequires: ghc-network-uri-devel BuildRequires: ghc-random-devel #BuildRequires: ghc-readable-devel BuildRequires: ghc-regex-posix-devel BuildRequires: ghc-text-devel BuildRequires: ghc-time-devel BuildRequires: ghc-time-locale-compat-devel BuildRequires: ghc-transformers-devel BuildRequires: ghc-transformers-base-devel BuildRequires: ghc-unix-compat-devel BuildRequires: ghc-unordered-containers-devel BuildRequires: ghc-vector-devel %if %{with ghc_prof} BuildRequires: ghc-HUnit-prof BuildRequires: ghc-attoparsec-prof BuildRequires: ghc-base-prof BuildRequires: ghc-bytestring-prof BuildRequires: ghc-case-insensitive-prof BuildRequires: ghc-containers-prof BuildRequires: ghc-directory-prof BuildRequires: ghc-filepath-prof BuildRequires: ghc-hashable-prof BuildRequires: ghc-io-streams-prof BuildRequires: ghc-lifted-base-prof BuildRequires: ghc-monad-control-prof BuildRequires: ghc-mtl-prof BuildRequires: ghc-network-prof BuildRequires: ghc-network-uri-prof BuildRequires: ghc-random-prof #BuildRequires: ghc-readable-prof BuildRequires: ghc-regex-posix-prof BuildRequires: ghc-text-prof BuildRequires: ghc-time-prof BuildRequires: ghc-time-locale-compat-prof BuildRequires: ghc-transformers-prof BuildRequires: ghc-transformers-base-prof BuildRequires: ghc-unix-compat-prof BuildRequires: ghc-unordered-containers-prof BuildRequires: ghc-vector-prof %endif # End cabal-rpm deps %description Snap is a simple and fast web development framework and server written in Haskell. This library contains the core definitions and types for the Snap framework. %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 %{readable} %endif %global version %{main_version} %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} -a1 dos2unix -k -n %{SOURCE2} %{pkg_name}.cabal %autopatch -p1 # End cabal-rpm setup cabal-tweak-drop-dep bytestring-builder ( cd %{readable} cabal-tweak-dep-ver bytestring '< 0.11' '< 0.12' cabal-tweak-dep-ver text '< 1.3' '< 2.2' ) %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 %files -f %{name}.files # Begin cabal-rpm files: %license LICENSE # End cabal-rpm files %files devel -f %{name}-devel.files %doc CONTRIBUTORS README.SNAP.md README.md changelog.md %if %{with haddock} %files doc -f %{name}-doc.files %license LICENSE %endif %if %{with ghc_prof} %files prof -f %{name}-prof.files %endif %changelog * Mon Aug 5 2024 Jens Petersen - 1.0.5.1-29 - revise .cabal file * Thu Jul 18 2024 Fedora Release Engineering - 1.0.5.1-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jan 24 2024 Fedora Release Engineering - 1.0.5.1-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 1.0.5.1-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jul 23 2023 Jens Petersen - 1.0.5.1-25 - https://hackage.haskell.org/package/snap-core-1.0.5.1/changelog * Wed Jul 19 2023 Fedora Release Engineering - 1.0.5.0-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Feb 17 2023 Jens Petersen - 1.0.5.0-23 - refresh to cabal-rpm-2.1.0 with SPDX migration * Thu Jul 21 2022 Fedora Release Engineering - 1.0.5.0-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 07 2022 Jens Petersen - 1.0.5.0-21 - https://hackage.haskell.org/package/snap-core-1.0.5.0/changelog * Thu Jan 20 2022 Fedora Release Engineering - 1.0.4.2-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Aug 5 2021 Jens Petersen - 1.0.4.2-19 - update to 1.0.4.2 * Thu Jul 22 2021 Fedora Release Engineering - 1.0.4.1-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.0.4.1-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Aug 01 2020 Fedora Release Engineering - 1.0.4.1-16 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 1.0.4.1-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jul 17 2020 Jens Petersen - 1.0.4.1-14 - refresh to cabal-rpm-2.0.6 * Fri Feb 14 2020 Jens Petersen - 1.0.4.1-13 - update to 1.0.4.1 * Tue Jan 28 2020 Fedora Release Engineering - 1.0.4.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Jens Petersen - 1.0.4.0-11 - update to 1.0.4.0 * Thu Jul 25 2019 Fedora Release Engineering - 1.0.3.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Feb 17 2019 Jens Petersen - 1.0.3.2-9 - refresh to cabal-rpm-0.13 * Thu Jan 31 2019 Fedora Release Engineering - 1.0.3.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sun Jul 22 2018 Jens Petersen - 1.0.3.2-7 - update to 1.0.3.2 * Fri Jul 13 2018 Fedora Release Engineering - 1.0.3.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 1.0.3.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jan 24 2018 Jens Petersen - 1.0.3.1-4 - update to 1.0.3.1 * Wed Aug 02 2017 Fedora Release Engineering - 1.0.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.0.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Feb 23 2017 Jens Petersen - 1.0.1.0-1 - update to 1.0.1.0 - subpackage readable * Fri Feb 10 2017 Fedora Release Engineering - 0.9.8.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 9 2017 Jens Petersen - 0.9.8.0-3 - build subpackage in main package dir * Tue Sep 27 2016 Jens Petersen - 0.9.8.0-2 - rebuild * Thu Aug 25 2016 Jens Petersen - 0.9.8.0-1 - update to 0.9.8.0 * Wed Feb 03 2016 Fedora Release Engineering - 0.9.6.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 0.9.6.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Jan 20 2015 Jens Petersen - 0.9.6.4-1 - update to 0.9.6.4 * Mon Sep 01 2014 Jens Petersen - 0.9.6.3-1 - update to 0.9.6.3 - refresh to clrpm-0.8.11 * Sat Aug 16 2014 Fedora Release Engineering - 0.9.4.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.9.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 0.9.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue Jun 11 2013 Jens Petersen - 0.9.4.0-1 - update to 0.9.4.0 - update to new simplified Haskell Packaging Guidelines * Tue Mar 12 2013 Jens Petersen - 0.9.3.1-1 - update to 0.9.3.1 * Wed Feb 13 2013 Fedora Release Engineering - 0.9.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Mon Oct 29 2012 Jens Petersen - 0.9.2.2-1 - update to 0.9.2.2 - compile in portable cross-platform mode until bytestring-mmap packaged * Thu Jul 19 2012 Fedora Release Engineering - 0.9.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Jul 16 2012 Jens Petersen - 0.9.0-3 - change prof BRs to devel * Fri Jun 22 2012 Jens Petersen - 0.9.0-2 - rebuild * Thu Jun 21 2012 Jens Petersen - 0.9.0-1 - update to 0.9.0 * Fri Jun 15 2012 Jens Petersen - 0.8.1-2 - rebuild * Tue May 1 2012 Jens Petersen - 0.8.1-1 - update to 0.8.1 * Fri Mar 23 2012 Jens Petersen - 0.8.0.1-1 - update to 0.8.0.1 - mwc-random version patch no longer needed * Thu Mar 8 2012 Jens Petersen - 0.7.0.1-2 - rebuild * Mon Jan 16 2012 Jens Petersen - 0.7.0.1-1 - update to 0.7.0.1 and cabal2spec-0.25.2 - add some doc files - allow building with mwc-random-0.11 * Fri Dec 16 2011 Jens Petersen - 0.6.0.1-1 - update to 0.6.0.1 - new deps base16-bytestring, mwc-random, unordered-containers, regex-posix, and HUnit * Tue Nov 22 2011 Jens Petersen - 0.5.5-1 - update to 0.5.5 - depends on zlib-enum and blaze-builder-enumerator * Tue Nov 8 2011 Jens Petersen - 0.5.4-2 - add missed mtl dep * Sat Oct 15 2011 Jens Petersen - 0.5.4-1 - update to 0.5.4 * Thu Sep 8 2011 Jens Petersen - 0.5.3.1-1 - BSD license and deps * Thu Sep 8 2011 Fedora Haskell SIG - 0.5.3.1-0 - initial packaging for Fedora automatically generated by cabal2spec-0.24.1