ghc-happstack-server/ghc-happstack-server.spec

184 lines
4.8 KiB
RPMSpec
Raw Permalink Normal View History

# generated by cabal-rpm-2.1.0
2020-06-04 11:26:38 +00:00
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
2012-05-15 00:53:48 +00:00
%global pkg_name happstack-server
%global pkgver %{pkg_name}-%{version}
2017-02-23 05:52:13 +00:00
2014-09-01 07:06:51 +00:00
%bcond_without tests
2012-05-15 00:53:48 +00:00
Name: ghc-%{pkg_name}
2022-06-07 05:39:48 +00:00
Version: 7.7.2
Release: %autorelease
2017-02-23 05:52:13 +00:00
Summary: Web related tools and services
2012-05-15 00:53:48 +00:00
License: BSD-3-Clause
2015-03-03 15:28:25 +00:00
Url: https://hackage.haskell.org/package/%{pkg_name}
2019-02-17 14:44:58 +00:00
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
2019-02-17 14:44:58 +00:00
# End cabal-rpm sources
2019-02-17 14:44:58 +00:00
# Begin cabal-rpm deps:
2012-05-15 00:53:48 +00:00
BuildRequires: ghc-Cabal-devel
2017-10-17 08:56:50 +00:00
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-base-devel
BuildRequires: ghc-base64-bytestring-devel
BuildRequires: ghc-blaze-html-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-directory-devel
BuildRequires: ghc-exceptions-devel
BuildRequires: ghc-extensible-exceptions-devel
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-hslogger-devel
BuildRequires: ghc-html-devel
BuildRequires: ghc-monad-control-devel
BuildRequires: ghc-mtl-devel
BuildRequires: ghc-network-devel
BuildRequires: ghc-network-uri-devel
BuildRequires: ghc-old-locale-devel
BuildRequires: ghc-parsec-devel
BuildRequires: ghc-process-devel
BuildRequires: ghc-semigroups-devel
BuildRequires: ghc-sendfile-devel
BuildRequires: ghc-syb-devel
BuildRequires: ghc-system-filepath-devel
BuildRequires: ghc-text-devel
BuildRequires: ghc-threads-devel
BuildRequires: ghc-time-devel
BuildRequires: ghc-transformers-devel
BuildRequires: ghc-transformers-base-devel
BuildRequires: ghc-transformers-compat-devel
BuildRequires: ghc-unix-devel
BuildRequires: ghc-utf8-string-devel
BuildRequires: ghc-xhtml-devel
BuildRequires: ghc-zlib-devel
%if %{with ghc_prof}
BuildRequires: ghc-base-prof
BuildRequires: ghc-base64-bytestring-prof
BuildRequires: ghc-blaze-html-prof
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-containers-prof
BuildRequires: ghc-directory-prof
BuildRequires: ghc-exceptions-prof
BuildRequires: ghc-extensible-exceptions-prof
BuildRequires: ghc-filepath-prof
BuildRequires: ghc-hslogger-prof
BuildRequires: ghc-html-prof
BuildRequires: ghc-monad-control-prof
BuildRequires: ghc-mtl-prof
BuildRequires: ghc-network-prof
BuildRequires: ghc-network-uri-prof
BuildRequires: ghc-old-locale-prof
BuildRequires: ghc-parsec-prof
BuildRequires: ghc-process-prof
BuildRequires: ghc-semigroups-prof
BuildRequires: ghc-sendfile-prof
BuildRequires: ghc-syb-prof
BuildRequires: ghc-system-filepath-prof
BuildRequires: ghc-text-prof
BuildRequires: ghc-threads-prof
BuildRequires: ghc-time-prof
BuildRequires: ghc-transformers-prof
BuildRequires: ghc-transformers-base-prof
BuildRequires: ghc-transformers-compat-prof
BuildRequires: ghc-unix-prof
BuildRequires: ghc-utf8-string-prof
BuildRequires: ghc-xhtml-prof
BuildRequires: ghc-zlib-prof
%endif
2014-09-01 07:06:51 +00:00
%if %{with tests}
BuildRequires: ghc-HUnit-devel
%endif
# End cabal-rpm deps
2012-05-15 00:53:48 +00:00
%description
Happstack Server provides an HTTP server and a rich set of functions for
2015-03-03 15:28:25 +00:00
routing requests, handling query parameters, generating responses, working with
cookies, serving files, and more. For in-depth documentation see the Happstack
Crash Course <http://happstack.com/docs/crashcourse/index.html>.
%package devel
Summary: Haskell %{pkg_name} library development files
2014-05-08 10:25:27 +00:00
Provides: %{name}-static = %{version}-%{release}
Provides: %{name}-static%{?_isa} = %{version}-%{release}
2018-01-24 13:11:14 +00:00
%if %{defined ghc_version}
Requires: ghc-compiler = %{ghc_version}
2018-01-24 13:11:14 +00:00
%endif
2013-09-04 07:44:52 +00:00
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
2013-09-04 07:44:52 +00:00
This package provides the Haskell %{pkg_name} library development
files.
2012-05-15 00:53:48 +00:00
%if %{with haddock}
%package doc
Summary: Haskell %{pkg_name} library documentation
2020-02-08 14:50:21 +00:00
BuildArch: noarch
2021-07-07 16:30:11 +00:00
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}
2020-02-08 14:50:21 +00:00
Supplements: (%{name}-devel and ghc-prof)
%description prof
This package provides the Haskell %{pkg_name} profiling library.
%endif
2012-05-15 00:53:48 +00:00
%prep
2019-02-17 14:44:58 +00:00
# Begin cabal-rpm setup:
2017-10-17 08:56:50 +00:00
%setup -q -n %{pkgver}
2019-02-17 14:44:58 +00:00
# End cabal-rpm setup
2012-05-15 00:53:48 +00:00
%build
2019-02-17 14:44:58 +00:00
# Begin cabal-rpm build:
2017-02-09 04:20:32 +00:00
%ghc_lib_build
2019-02-17 14:44:58 +00:00
# End cabal-rpm build
2012-05-15 00:53:48 +00:00
%install
2019-02-17 14:44:58 +00:00
# Begin cabal-rpm install
2017-02-09 04:20:32 +00:00
%ghc_lib_install
2019-02-17 14:44:58 +00:00
# End cabal-rpm install
2012-05-15 00:53:48 +00:00
2014-09-01 07:06:51 +00:00
%check
2021-07-07 16:30:11 +00:00
%if %{with tests}
%cabal_test
2021-07-07 16:30:11 +00:00
%endif
2014-09-01 07:06:51 +00:00
%files -f %{name}.files
2019-02-17 14:44:58 +00:00
# Begin cabal-rpm files:
2017-01-29 13:27:55 +00:00
%license COPYING
2019-02-17 14:44:58 +00:00
# End cabal-rpm files
2012-05-15 00:53:48 +00:00
%files devel -f %{name}-devel.files
2017-01-29 13:27:55 +00:00
%doc README.md
2012-05-15 00:53:48 +00:00
%if %{with haddock}
%files doc -f %{name}-doc.files
2020-02-08 14:50:21 +00:00
%license COPYING
%endif
%if %{with ghc_prof}
%files prof -f %{name}-prof.files
%endif
2012-05-15 00:53:48 +00:00
%changelog
%autochangelog