# generated by cabal-rpm-2.1.3 --standalone # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global ghc_without_dynamic 1 %global ghc_without_shared 1 %undefine with_ghc_prof %undefine with_haddock %global without_prof 1 %global without_haddock 1 %global debug_package %{nil} %global github_project compiler Name: gren Version: 0.3.0 Release: 1%{?dist} Summary: A programming language for simple and correct applications License: BSD-3-Clause Url: https://gren-lang.org/ # Begin cabal-rpm sources: Source0: https://github.com/gren-lang/%{github_project}/archive/refs/tags/%{version}.tar.gz#/%{github_project}-%{version}.tar.gz # End cabal-rpm sources # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-ansi-terminal-devel BuildRequires: ghc-ansi-wl-pprint-devel BuildRequires: ghc-base-devel BuildRequires: ghc-base64-bytestring-devel BuildRequires: ghc-binary-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-directory-devel BuildRequires: ghc-edit-distance-devel BuildRequires: ghc-filelock-devel BuildRequires: ghc-filepath-devel BuildRequires: ghc-haskeline-devel BuildRequires: ghc-indexed-traversable-devel BuildRequires: ghc-mtl-devel #BuildRequires: ghc-prettyprint-avh4-devel BuildRequires: ghc-process-devel #BuildRequires: ghc-raw-strings-qq-devel BuildRequires: ghc-scientific-devel BuildRequires: ghc-text-devel BuildRequires: ghc-time-devel BuildRequires: ghc-utf8-string-devel BuildRequires: ghc-vector-devel BuildRequires: cabal-install > 1.18 # for missing dep 'raw-strings-qq': BuildRequires: ghc-template-haskell-devel # End cabal-rpm deps Requires: nodejs %description This includes commands like `gren make`, `gren repl`, and many others for helping make Gren developers happy and productive. %prep # Begin cabal-rpm setup: %setup -q -n %{github_project}-%{version} # End cabal-rpm setup %build # Begin cabal-rpm build: %global cabal_install %{_bindir}/cabal %cabal_install update %if 0%{?rhel} && 0%{?rhel} < 9 %cabal_install sandbox init %cabal_install install %endif # End cabal-rpm build %install # Begin cabal-rpm install mkdir -p %{buildroot}%{_bindir} %if 0%{?fedora} >= 33 || 0%{?rhel} > 8 %if 0%{?fedora} >= 36 %ghc_set_gcc_flags %endif %cabal_install install --install-method=copy --enable-executable-stripping --installdir=%{buildroot}%{_bindir} %else for i in .cabal-sandbox/bin/*; do strip -s -o %{buildroot}%{_bindir}/$(basename $i) $i done %endif # End cabal-rpm install %files # Begin cabal-rpm files: %license LICENSE %doc CONTRIBUTING.md CONTRIBUTORS README.md %{_bindir}/%{name} # End cabal-rpm files %changelog * Mon Sep 4 2023 Jens Petersen - 0.3.0-1 - spec file generated by cabal-rpm-2.1.3