203 lines
5.4 KiB
RPMSpec
203 lines
5.4 KiB
RPMSpec
# generated by cabal-rpm-2.1.0
|
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
|
|
|
|
%global pkg_name yesod-core
|
|
%global pkgver %{pkg_name}-%{version}
|
|
|
|
%bcond_without tests
|
|
|
|
Name: ghc-%{pkg_name}
|
|
Version: 1.6.24.0
|
|
Release: %autorelease
|
|
Summary: Creation of type-safe, RESTful web applications
|
|
|
|
License: MIT
|
|
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/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
|
|
# End cabal-rpm sources
|
|
|
|
# Begin cabal-rpm deps:
|
|
BuildRequires: dos2unix
|
|
BuildRequires: ghc-Cabal-devel
|
|
BuildRequires: ghc-rpm-macros
|
|
BuildRequires: ghc-aeson-devel
|
|
BuildRequires: ghc-auto-update-devel
|
|
BuildRequires: ghc-base-devel
|
|
BuildRequires: ghc-blaze-html-devel
|
|
BuildRequires: ghc-blaze-markup-devel
|
|
BuildRequires: ghc-bytestring-devel
|
|
BuildRequires: ghc-case-insensitive-devel
|
|
BuildRequires: ghc-cereal-devel
|
|
BuildRequires: ghc-clientsession-devel
|
|
BuildRequires: ghc-conduit-devel
|
|
BuildRequires: ghc-conduit-extra-devel
|
|
BuildRequires: ghc-containers-devel
|
|
BuildRequires: ghc-cookie-devel
|
|
BuildRequires: ghc-deepseq-devel
|
|
BuildRequires: ghc-entropy-devel
|
|
BuildRequires: ghc-fast-logger-devel
|
|
BuildRequires: ghc-http-types-devel
|
|
BuildRequires: ghc-memory-devel
|
|
BuildRequires: ghc-monad-logger-devel
|
|
BuildRequires: ghc-mtl-devel
|
|
BuildRequires: ghc-parsec-devel
|
|
BuildRequires: ghc-path-pieces-devel
|
|
BuildRequires: ghc-primitive-devel
|
|
BuildRequires: ghc-random-devel
|
|
BuildRequires: ghc-resourcet-devel
|
|
BuildRequires: ghc-shakespeare-devel
|
|
BuildRequires: ghc-template-haskell-devel
|
|
BuildRequires: ghc-text-devel
|
|
BuildRequires: ghc-time-devel
|
|
BuildRequires: ghc-transformers-devel
|
|
BuildRequires: ghc-unix-compat-devel
|
|
BuildRequires: ghc-unliftio-devel
|
|
BuildRequires: ghc-unordered-containers-devel
|
|
BuildRequires: ghc-vector-devel
|
|
BuildRequires: ghc-wai-devel
|
|
BuildRequires: ghc-wai-extra-devel
|
|
BuildRequires: ghc-wai-logger-devel
|
|
BuildRequires: ghc-warp-devel
|
|
BuildRequires: ghc-word8-devel
|
|
%if %{with ghc_prof}
|
|
BuildRequires: ghc-aeson-prof
|
|
BuildRequires: ghc-auto-update-prof
|
|
BuildRequires: ghc-base-prof
|
|
BuildRequires: ghc-blaze-html-prof
|
|
BuildRequires: ghc-blaze-markup-prof
|
|
BuildRequires: ghc-bytestring-prof
|
|
BuildRequires: ghc-case-insensitive-prof
|
|
BuildRequires: ghc-cereal-prof
|
|
BuildRequires: ghc-clientsession-prof
|
|
BuildRequires: ghc-conduit-prof
|
|
BuildRequires: ghc-conduit-extra-prof
|
|
BuildRequires: ghc-containers-prof
|
|
BuildRequires: ghc-cookie-prof
|
|
BuildRequires: ghc-deepseq-prof
|
|
BuildRequires: ghc-entropy-prof
|
|
BuildRequires: ghc-fast-logger-prof
|
|
BuildRequires: ghc-http-types-prof
|
|
BuildRequires: ghc-memory-prof
|
|
BuildRequires: ghc-monad-logger-prof
|
|
BuildRequires: ghc-mtl-prof
|
|
BuildRequires: ghc-parsec-prof
|
|
BuildRequires: ghc-path-pieces-prof
|
|
BuildRequires: ghc-primitive-prof
|
|
BuildRequires: ghc-random-prof
|
|
BuildRequires: ghc-resourcet-prof
|
|
BuildRequires: ghc-shakespeare-prof
|
|
BuildRequires: ghc-template-haskell-prof
|
|
BuildRequires: ghc-text-prof
|
|
BuildRequires: ghc-time-prof
|
|
BuildRequires: ghc-transformers-prof
|
|
BuildRequires: ghc-unix-compat-prof
|
|
BuildRequires: ghc-unliftio-prof
|
|
BuildRequires: ghc-unordered-containers-prof
|
|
BuildRequires: ghc-vector-prof
|
|
BuildRequires: ghc-wai-prof
|
|
BuildRequires: ghc-wai-extra-prof
|
|
BuildRequires: ghc-wai-logger-prof
|
|
BuildRequires: ghc-warp-prof
|
|
BuildRequires: ghc-word8-prof
|
|
%endif
|
|
%if %{with tests}
|
|
BuildRequires: ghc-HUnit-devel
|
|
BuildRequires: ghc-async-devel
|
|
BuildRequires: ghc-hspec-devel
|
|
BuildRequires: ghc-hspec-expectations-devel
|
|
BuildRequires: ghc-network-devel
|
|
BuildRequires: ghc-streaming-commons-devel
|
|
%endif
|
|
# End cabal-rpm deps
|
|
|
|
%description
|
|
API docs and the README are available at
|
|
<http://www.stackage.org/package/yesod-core>.
|
|
|
|
|
|
%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}
|
|
dos2unix -k -n %{SOURCE1} %{pkg_name}.cabal
|
|
# 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
|
|
|
|
|
|
%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.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
|
|
%autochangelog
|