# https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name hledger %bcond_with tests # no useful debuginfo for Haskell packages without C sources %global debug_package %{nil} Name: %{pkg_name} Version: 0.23.2 Release: 1%{?dist} Summary: A double-entry accounting tool License: GPLv3 URL: http://hackage.haskell.org/package/%{name} Source0: http://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz Patch0: hledger-no-pretty-show.patch BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-HUnit-devel BuildRequires: ghc-cmdargs-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-directory-devel BuildRequires: ghc-filepath-devel BuildRequires: ghc-haskeline-devel BuildRequires: ghc-hledger-lib-devel BuildRequires: ghc-mtl-devel BuildRequires: ghc-old-locale-devel BuildRequires: ghc-old-time-devel BuildRequires: ghc-parsec-devel BuildRequires: ghc-pretty-show-devel BuildRequires: ghc-process-devel BuildRequires: ghc-regexpr-devel BuildRequires: ghc-safe-devel BuildRequires: ghc-shakespeare-devel BuildRequires: ghc-shakespeare-text-devel BuildRequires: ghc-split-devel BuildRequires: ghc-tabular-devel BuildRequires: ghc-text-devel BuildRequires: ghc-time-devel BuildRequires: ghc-utf8-string-devel BuildRequires: ghc-wizards-devel %if %{with tests} BuildRequires: ghc-csv-devel BuildRequires: ghc-test-framework-devel BuildRequires: ghc-test-framework-hunit-devel BuildRequires: ghc-transformers-devel %endif # End cabal-rpm deps # bug 992478 ExcludeArch: armv7hl %description hledger reads a plain text general journal or time log describing your transactions and displays precise balance and register reports on the console. It is a remix, in haskell, of John Wiegley's excellent c++ ledger. hledger aims to be a practical, accessible tool for end users and a useful library for finance-minded haskell programmers. %package -n ghc-%{name} Summary: Haskell %{name} library %description -n ghc-%{name} This package provides the Haskell %{name} shared library. %package -n ghc-%{name}-devel Summary: Haskell %{name} library development files Provides: ghc-%{name}-static = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} Requires: ghc-%{name}%{?_isa} = %{version}-%{release} %description -n ghc-%{name}-devel This package provides the Haskell %{name} library development files. %prep %setup -q %patch0 -p1 -b .orig %build %ghc_lib_build %install %ghc_lib_install %check %if %{with tests} %cabal test %endif %post -n ghc-%{name}-devel %ghc_pkg_recache %postun -n ghc-%{name}-devel %ghc_pkg_recache %files %doc LICENSE %attr(755,root,root) %{_bindir}/%{name} %files -n ghc-%{name} -f ghc-%{name}.files %doc LICENSE %files -n ghc-%{name}-devel -f ghc-%{name}-devel.files %changelog * Fri Aug 29 2014 Jens Petersen - 0.23.2-1 - update to 0.23.2 - refresh to cblrpm-0.8.11 - patch out pretty-show for now - still needs new tabular and wizard to build!! * Sat Aug 16 2014 Fedora Release Engineering - 0.19.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.19.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Aug 30 2013 Jens Petersen - 0.19.3-3 - exclude armv7hl since TemplateHaskell failing to compile (#992478) * Sat Aug 03 2013 Fedora Release Engineering - 0.19.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jun 12 2013 Jens Petersen - 0.19.3-1 - update to 0.19.3 - update to new simplified Haskell Packaging Guidelines * Tue Mar 19 2013 Jens Petersen - 0.17-5 - allow haskeline-0.7 * Thu Feb 14 2013 Fedora Release Engineering - 0.17-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Nov 9 2012 Jens Petersen - 0.17-3 - re-enable dynamic executable - allow building with cmdargs-0.10 and split-0.2 - update with cabal-rpm * Thu Jul 19 2012 Fedora Release Engineering - 0.17-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Wed Feb 29 2012 Ben Boeckel - 0.17-1 - Initial package