# generated by cabal-rpm-1.0.0 --subpackage # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name snap-server %global pkgver %{pkg_name}-%{version} %global iostreamshaproxy io-streams-haproxy-1.0.0.2 %global subpkgs %{iostreamshaproxy} %bcond_with tests Name: ghc-%{pkg_name} Version: 1.1.0.0 # can only be reset when all subpkgs bumped Release: 8%{?dist} Summary: A web server for the Snap Framework License: BSD 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/%{iostreamshaproxy}/%{iostreamshaproxy}.tar.gz # End cabal-rpm sources # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel %if %{with haddock} BuildRequires: ghc-doc %endif %if %{with ghc_prof} BuildRequires: ghc-prof %endif BuildRequires: ghc-rpm-macros-extra BuildRequires: chrpath BuildRequires: ghc-attoparsec-devel BuildRequires: ghc-blaze-builder-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-case-insensitive-devel BuildRequires: ghc-clock-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-filepath-devel BuildRequires: ghc-io-streams-devel #BuildRequires: ghc-io-streams-haproxy-devel BuildRequires: ghc-lifted-base-devel BuildRequires: ghc-mtl-devel BuildRequires: ghc-network-devel BuildRequires: ghc-old-locale-devel BuildRequires: ghc-snap-core-devel BuildRequires: ghc-text-devel BuildRequires: ghc-time-devel BuildRequires: ghc-unix-compat-devel BuildRequires: ghc-unix-devel BuildRequires: ghc-vector-devel %if %{with tests} BuildRequires: ghc-HUnit-devel BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-base16-bytestring-devel BuildRequires: ghc-deepseq-devel BuildRequires: ghc-directory-devel BuildRequires: ghc-http-common-devel BuildRequires: ghc-http-streams-devel BuildRequires: ghc-monad-control-devel BuildRequires: ghc-parallel-devel BuildRequires: ghc-random-devel BuildRequires: ghc-test-framework-devel BuildRequires: ghc-test-framework-hunit-devel BuildRequires: ghc-test-framework-quickcheck2-devel BuildRequires: ghc-threads-devel BuildRequires: ghc-transformers-devel %endif # End cabal-rpm deps %description Snap is a simple and fast web development framework and server written in Haskell. For more information, you can visit the Snap project website at . The Snap HTTP server is a high performance web server library written in Haskell. Together with the 'snap-core' library upon which it depends, it provides a clean and efficient Haskell programming interface to the HTTP protocol. %package devel Summary: Haskell %{pkg_name} library development files Provides: %{name}-static = %{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 %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} %description prof This package provides the Haskell %{pkg_name} profiling library. %endif %global main_version %{version} %if %{defined ghclibdir} %ghc_lib_subpackage %{iostreamshaproxy} %endif %global version %{main_version} %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} -a1 # End cabal-rpm setup cabal-tweak-drop-dep bytestring-builder ( cd %{iostreamshaproxy} cabal-tweak-dep-ver base 4.11 4.12 ) %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 %ghc_fix_rpath %{pkgver} # End cabal-rpm install %check %cabal_test %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 %if %{with haddock} %files doc -f %{name}-doc.files %endif %if %{with ghc_prof} %files prof -f %{name}-prof.files %endif %changelog * Thu Jul 25 2019 Fedora Release Engineering - 1.1.0.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Feb 21 2019 Jens Petersen - 1.1.0.0-7 - update to 1.1.0.0 * Sun Feb 17 2019 Jens Petersen - 1.0.3.3-6 - refresh to cabal-rpm-0.13 * Thu Jan 31 2019 Fedora Release Engineering - 1.0.3.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 28 2018 Jens Petersen - 1.0.3.3-4 - rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.0.3.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 1.0.3.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Feb 2 2018 Jens Petersen - 1.0.3.3-1 - update to 1.0.3.3 * Wed Aug 02 2017 Fedora Release Engineering - 1.0.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.0.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Feb 27 2017 Jens Petersen - 1.0.1.1-1 - update to 1.0.1.1 - subpackage io-streams-haproxy * Fri Feb 10 2017 Fedora Release Engineering - 0.9.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun Jun 26 2016 Jens Petersen - 0.9.5.1-1 - update to 0.9.5.1 * Wed Feb 03 2016 Fedora Release Engineering - 0.9.4.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 0.9.4.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Jan 20 2015 Jens Petersen - 0.9.4.6-1 - update to 0.9.4.6 * Mon Sep 01 2014 Jens Petersen - 0.9.4.5-1 - update to 0.9.4.5 * Sat Aug 16 2014 Fedora Release Engineering - 0.9.3.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Tue Jun 10 2014 Jens Petersen - 0.9.3.4-3 - update to cblrpm-0.8.11 * Sat Jun 07 2014 Fedora Release Engineering - 0.9.3.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Oct 16 2013 Jens Petersen - 0.9.3.4-1 - 0.9.3.4 - add static provides to devel * Thu Jun 27 2013 Jens Petersen - 0.9.3.3-1 - minor description tweaks and add CONTRIBUTORS * Thu Jun 27 2013 Fedora Haskell SIG - 0.9.3.3-0 - spec file generated by cabal-rpm-0.8.2