# generated by cabal-rpm-2.3.0 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global pkg_name warp %global pkgver %{pkg_name}-%{version} %{?haskell_setup} # testsuite missing deps: QuickCheck auto-update bsb-http-chunked case-insensitive crypton-x509 hashable hspec http-client http-date http-types http2 iproute network recv simple-sendfile streaming-commons time-manager unliftio vault wai word8 Name: ghc-%{pkg_name} Version: 3.3.31 Release: 1%{?dist} Summary: A fast, light-weight web server for WAI applications License: MIT URL: https://hackage.haskell.org/package/warp # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz # End cabal-rpm sources # Backport http-5.0 Patch0: ghc-warp-backport-http-5.0.patch # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-array-devel BuildRequires: ghc-auto-update-devel BuildRequires: ghc-base-devel BuildRequires: ghc-bsb-http-chunked-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-case-insensitive-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-crypton-x509-devel BuildRequires: ghc-hashable-devel BuildRequires: ghc-http-date-devel BuildRequires: ghc-http-types-devel BuildRequires: ghc-http2-devel BuildRequires: ghc-iproute-devel BuildRequires: ghc-network-devel BuildRequires: ghc-recv-devel BuildRequires: ghc-simple-sendfile-devel BuildRequires: ghc-stm-devel BuildRequires: ghc-streaming-commons-devel BuildRequires: ghc-text-devel BuildRequires: ghc-time-manager-devel BuildRequires: ghc-unix-devel BuildRequires: ghc-unliftio-devel BuildRequires: ghc-vault-devel BuildRequires: ghc-wai-devel BuildRequires: ghc-word8-devel %if %{with ghc_prof} BuildRequires: ghc-array-prof BuildRequires: ghc-auto-update-prof BuildRequires: ghc-base-prof BuildRequires: ghc-bsb-http-chunked-prof BuildRequires: ghc-bytestring-prof BuildRequires: ghc-case-insensitive-prof BuildRequires: ghc-containers-prof BuildRequires: ghc-crypton-x509-prof BuildRequires: ghc-hashable-prof BuildRequires: ghc-http-date-prof BuildRequires: ghc-http-types-prof BuildRequires: ghc-http2-prof BuildRequires: ghc-iproute-prof BuildRequires: ghc-network-prof BuildRequires: ghc-recv-prof BuildRequires: ghc-simple-sendfile-prof BuildRequires: ghc-stm-prof BuildRequires: ghc-streaming-commons-prof BuildRequires: ghc-text-prof BuildRequires: ghc-time-manager-prof BuildRequires: ghc-unix-prof BuildRequires: ghc-unliftio-prof BuildRequires: ghc-vault-prof BuildRequires: ghc-wai-prof BuildRequires: ghc-word8-prof %endif # End cabal-rpm deps %description HTTP/1.0, HTTP/1.1 and HTTP/2 are supported. For HTTP/2, Warp supports direct and ALPN (in TLS) but not upgrade. API docs and the README are available at . %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 %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} %autopatch -p1 # End cabal-rpm setup %build # Begin cabal-rpm build: %ghc_lib_build # End cabal-rpm build %install # Begin cabal-rpm install %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 ChangeLog.md README.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 11 2025 Luca Magrone - 3.3.31-1 - spec file generated by cabal-rpm-2.3.0