# generated by cabal-rpm-0.12.6 # https://fedoraproject.org/wiki/Packaging:Haskell # nothing to see here %global debug_package %{nil} %global pkg_name stack %global pkgver %{pkg_name}-%{version} %bcond_with tests Name: %{pkg_name} Version: 1.9.3.1 Release: 1%{?dist} Summary: The Haskell Tool Stack License: BSD Url: https://hackage.haskell.org/package/%{name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz Source1: https://hackage.haskell.org/package/%{pkgver}/%{name}.cabal#/%{pkgver}.cabal # End cabal-rpm sources # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel # for cabal-tweak-flag BuildRequires: ghc-rpm-macros # requires Cabal-2 (ghc-8.2) to build %if 0%{?fedora} >= 28 BuildRequires: ghc-aeson-devel BuildRequires: ghc-annotated-wl-pprint-devel BuildRequires: ghc-ansi-terminal-devel BuildRequires: ghc-async-devel BuildRequires: ghc-attoparsec-devel BuildRequires: ghc-base64-bytestring-devel #BuildRequires: ghc-bindings-uname-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-conduit-devel BuildRequires: ghc-conduit-extra-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-cryptonite-conduit-devel BuildRequires: ghc-cryptonite-devel BuildRequires: ghc-deepseq-devel BuildRequires: ghc-directory-devel BuildRequires: ghc-echo-devel BuildRequires: ghc-exceptions-devel BuildRequires: ghc-extra-devel BuildRequires: ghc-file-embed-devel #BuildRequires: ghc-filelock-devel BuildRequires: ghc-filepath-devel BuildRequires: ghc-fsnotify-devel BuildRequires: ghc-generic-deriving-devel %if 0%{?fedora} >= 30 BuildRequires: ghc-githash-devel %endif BuildRequires: ghc-hackage-security-devel BuildRequires: ghc-hashable-devel #BuildRequires: ghc-hpack-devel BuildRequires: ghc-hpc-devel BuildRequires: ghc-http-client-devel BuildRequires: ghc-http-client-tls-devel BuildRequires: ghc-http-conduit-devel BuildRequires: ghc-http-types-devel BuildRequires: ghc-memory-devel BuildRequires: ghc-microlens-devel #BuildRequires: ghc-mintty-devel BuildRequires: ghc-monad-logger-devel BuildRequires: ghc-mono-traversable-devel BuildRequires: ghc-mtl-devel #BuildRequires: ghc-mustache-devel #BuildRequires: ghc-neat-interpolation-devel BuildRequires: ghc-network-uri-devel #BuildRequires: ghc-open-browser-devel BuildRequires: ghc-optparse-applicative-devel BuildRequires: ghc-optparse-simple-devel #BuildRequires: ghc-path-devel #BuildRequires: ghc-path-io-devel BuildRequires: ghc-persistent-devel BuildRequires: ghc-persistent-sqlite-devel BuildRequires: ghc-persistent-template-devel BuildRequires: ghc-pretty-devel BuildRequires: ghc-primitive-devel BuildRequires: ghc-process-devel #BuildRequires: ghc-project-template-devel #BuildRequires: ghc-regex-applicative-text-devel BuildRequires: ghc-resourcet-devel #BuildRequires: ghc-retry-devel %if 0%{?fedora} >= 29 BuildRequires: ghc-rio-devel %endif BuildRequires: ghc-semigroups-devel BuildRequires: ghc-split-devel BuildRequires: ghc-stm-devel #BuildRequires: ghc-store-core-devel #BuildRequires: ghc-store-devel BuildRequires: ghc-streaming-commons-devel BuildRequires: ghc-tar-devel BuildRequires: ghc-template-haskell-devel BuildRequires: ghc-temporary-devel BuildRequires: ghc-text-devel #BuildRequires: ghc-text-metrics-devel BuildRequires: ghc-th-reify-many-devel BuildRequires: ghc-time-devel BuildRequires: ghc-tls-devel BuildRequires: ghc-transformers-devel BuildRequires: ghc-typed-process-devel #BuildRequires: ghc-unicode-transforms-devel BuildRequires: ghc-unix-compat-devel BuildRequires: ghc-unix-devel %if 0%{?fedora} >= 29 BuildRequires: ghc-unliftio-devel %endif BuildRequires: ghc-unordered-containers-devel BuildRequires: ghc-vector-devel BuildRequires: ghc-yaml-devel BuildRequires: ghc-zip-archive-devel BuildRequires: ghc-zlib-devel %else BuildRequires: ghc-libraries %endif %if %{with tests} BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-hspec-devel BuildRequires: ghc-smallcheck-devel %endif # End cabal-rpm deps ExclusiveArch: %{ghc_arches_with_ghci} BuildRequires: cabal-install %if 0%{?rhel} BuildRequires: happy %endif # for digest BuildRequires: zlib-devel Requires: gcc Requires: gmp-devel # for older binary ghc tarballs linked to libtinfo.so.5 %if 0%{?fedora} >= 24 Requires: ncurses-compat-libs %endif %description Stack is a cross-platform program for developing Haskell projects. It is intended for Haskellers both new and experienced. See haskellstack.org or the doc directory for more information. %prep %setup -q # no bounds in tarball cp -p %SOURCE1 %{name}.cabal %build cabal update cabal sandbox init %if 0%{?rhel} cabal install happy %endif cabal install --force-reinstalls . %install mkdir -p %{buildroot}%{_bindir} install -p .cabal-sandbox/bin/%{name} %{buildroot}%{_bindir} %check %if %{with tests} %cabal test %endif %files %doc LICENSE .cabal-sandbox/share/doc/*/* %doc README.md doc %{_bindir}/%{name} %changelog * Fri Dec 7 2018 Jens Petersen - 1.9.3-1 - 1.9.3 release - https://docs.haskellstack.org/en/stable/ChangeLog/#v193 * Mon Nov 19 2018 Jens Petersen - 1.9.1.1-1 - 1.9.1.1 release - https://docs.haskellstack.org/en/stable/ChangeLog/#v1911 * Fri Oct 19 2018 Jens Petersen - 1.9.1-1 - 1.9.1 release - https://docs.haskellstack.org/en/stable/ChangeLog/#v191 * Wed Jul 25 2018 Jens Petersen - 1.7.1-2 - require gcc and gmp-devel (#1) * Sun Apr 29 2018 Jens Petersen - 1.7.1-1 - update to 1.7.1 - use revised .cabal file * Wed Feb 21 2018 Jens Petersen - 1.6.5-1 - update to 1.6.5 * Sat Jan 13 2018 Jens Petersen - 1.6.3-1 - update to 1.6.3 * Fri Dec 8 2017 Jens Petersen - 1.6.1-1 - update to 1.6.1 * Tue Dec 5 2017 Jens Petersen - 1.5.1-1 - update to 1.5.1 * Wed Mar 15 2017 Jens Petersen - 1.4.0-1 - update to 1.4.0 - https://docs.haskellstack.org/en/stable/ChangeLog/#140 - for releases use 7.10.3 copr just BR ghc-libraries * Wed Dec 28 2016 Jens Petersen - 1.3.2-1 - update to 1.3.2 * Fri Dec 16 2016 Jens Petersen - 1.3.0-1 - 1.3.0 release - https://github.com/commercialhaskell/stack/releases/tag/v1.3.0 * Thu Sep 22 2016 Jens Petersen - 1.2.0-1 * Sat May 21 2016 Jens Petersen - 1.1.2-1 * Thu May 5 2016 Jens Petersen - 1.1.0-1 - update to 1.1.0 * Mon Apr 11 2016 Jens Petersen - 1.0.4.3-1 - update to 1.0.4.3 * Mon Apr 4 2016 Jens Petersen - 1.0.4.2-2 - require ncurses-compat-libs for F24+ to help people use upstream ghc tarballs (thanks Jan Synacek) * Thu Mar 10 2016 Jens Petersen - 1.0.4.2-1 - update to 1.0.4.2 * Fri Feb 26 2016 Jens Petersen - 1.0.4.1-1 - update to 1.0.4.1 * Tue Jan 19 2016 Jens Petersen - 1.0.2-1 - update to 1.0.2 * Fri Jan 8 2016 Jens Petersen - 1.0.0-1 - update to 1.0.0 * Fri Dec 18 2015 Jens Petersen - 0.1.10.1-1 - update to 0.1.10.1 * Wed Dec 9 2015 Jens Petersen - 0.1.10.0-1 - update to 0.1.10.0 - build with ghc-7.10 and assume only ghc libs * Mon Nov 30 2015 Jens Petersen - 0.1.8.0-1 - 0.1.8.0 * Thu Oct 22 2015 Jens Petersen - 0.1.6.0-1 - update to 0.1.6.0 * Sat Oct 3 2015 Jens Petersen - 0.1.5.0-1 - 0.1.5.0 * Wed Sep 02 2015 Jens Petersen - 0.1.3.1-1 - update to 0.1.3.1 * Mon Jul 13 2015 Fedora Haskell SIG - 0.1.2.0-1 - spec file generated by cabal-rpm-0.9.6.50