# generated by cabal-rpm-1.0.1 --subpackage # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name hledger %global pkgver %{pkg_name}-%{version} %global here here-1.2.13 %global utilityht utility-ht-0.0.14 %global lucid lucid-2.9.11 %global subpkgs %{here} %{utilityht} %{lucid} %bcond_with tests Name: %{pkg_name} Version: 1.12.1 # can only be reset when all subpkgs bumped Release: 15%{?dist} Summary: Command-line interface for the hledger accounting tool License: GPLv3+ 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/%{here}/%{here}.tar.gz Source2: https://hackage.haskell.org/package/%{utilityht}/%{utilityht}.tar.gz Source3: https://hackage.haskell.org/package/%{lucid}/%{lucid}.tar.gz # End cabal-rpm sources # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros-extra BuildRequires: ghc-Decimal-prof BuildRequires: ghc-Diff-prof BuildRequires: ghc-ansi-terminal-prof BuildRequires: ghc-base-prof BuildRequires: ghc-base-compat-batteries-prof BuildRequires: ghc-bytestring-prof BuildRequires: ghc-cmdargs-prof BuildRequires: ghc-containers-prof BuildRequires: ghc-data-default-prof BuildRequires: ghc-directory-prof BuildRequires: ghc-easytest-prof BuildRequires: ghc-file-embed-prof BuildRequires: ghc-filepath-prof BuildRequires: ghc-hashable-prof BuildRequires: ghc-haskeline-prof #BuildRequires: ghc-here-prof BuildRequires: ghc-hledger-lib-prof #BuildRequires: ghc-lucid-prof BuildRequires: ghc-math-functions-prof BuildRequires: ghc-megaparsec-prof BuildRequires: ghc-mtl-prof BuildRequires: ghc-old-time-prof BuildRequires: ghc-parsec-prof BuildRequires: ghc-pretty-show-prof BuildRequires: ghc-process-prof BuildRequires: ghc-regex-tdfa-prof BuildRequires: ghc-safe-prof BuildRequires: ghc-shakespeare-prof BuildRequires: ghc-split-prof BuildRequires: ghc-tabular-prof BuildRequires: ghc-temporary-prof BuildRequires: ghc-terminfo-prof BuildRequires: ghc-text-prof BuildRequires: ghc-time-prof BuildRequires: ghc-transformers-prof BuildRequires: ghc-unordered-containers-prof BuildRequires: ghc-utf8-string-prof #BuildRequires: ghc-utility-ht-prof BuildRequires: ghc-wizards-prof %if %{with tests} BuildRequires: ghc-test-framework-devel BuildRequires: ghc-test-framework-hunit-devel %endif # End cabal-rpm deps # here BuildRequires: ghc-haskell-src-meta-prof # lucid: BuildRequires: ghc-mmorph-prof %description This is hledger's command-line interface. Its basic function is to read a plain text file describing financial transactions and produce useful reports. hledger is a cross-platform program for tracking money, time, or any other commodity, using double-entry accounting and a simple, editable file format. It is inspired by and largely compatible with ledger(1). hledger provides command-line, curses and web interfaces, and aims to be a reliable, practical tool for daily use. %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} Provides: ghc-%{name}-static%{?_isa} = %{version}-%{release} %if %{defined ghc_version} Requires: ghc-compiler = %{ghc_version} %endif Requires: ghc-%{name}%{?_isa} = %{version}-%{release} %description -n ghc-%{name}-devel This package provides the Haskell %{name} library development files. %if %{with haddock} %package -n ghc-%{name}-doc Summary: Haskell %{name} library documentation %description -n ghc-%{name}-doc This package provides the Haskell %{name} library documentation. %endif %if %{with ghc_prof} %package -n ghc-%{name}-prof Summary: Haskell %{name} profiling library Requires: ghc-%{name}-devel%{?_isa} = %{version}-%{release} %description -n ghc-%{name}-prof This package provides the Haskell %{name} profiling library. %endif %global main_version %{version} %if %{defined ghclibdir} %ghc_lib_subpackage %{here} %ghc_lib_subpackage %{utilityht} %ghc_lib_subpackage %{lucid} %endif %global version %{main_version} %prep # Begin cabal-rpm setup: %setup -q -a1 -a2 -a3 # End cabal-rpm setup cabal-tweak-drop-dep mtl-compat %build # Begin cabal-rpm build: %ghc_libs_build %{subpkgs} %ghc_lib_build # End cabal-rpm build %install # Begin cabal-rpm install %ghc_libs_install %{subpkgs} %ghc_lib_install %ghc_fix_rpath %{pkgver} # End cabal-rpm install install -Dp -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 %check %cabal_test %files # Begin cabal-rpm files: %license LICENSE %doc CHANGES README.md %{_bindir}/%{name} # End cabal-rpm files %{_mandir}/man1/%{name}.1* %files -n ghc-%{name} -f ghc-%{name}.files # Begin cabal-rpm files: %license LICENSE # End cabal-rpm files %files -n ghc-%{name}-devel -f ghc-%{name}-devel.files %doc CHANGES README.md %if %{with haddock} %files -n ghc-%{name}-doc -f ghc-%{name}-doc.files %endif %if %{with ghc_prof} %files -n ghc-%{name}-prof -f ghc-%{name}-prof.files %endif %changelog * Thu Jul 25 2019 Jens Petersen - 1.12.1-15 - update to 1.12.1 * Thu Jul 25 2019 Fedora Release Engineering - 1.10-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Mar 31 2019 Jens Petersen - 1.10-13 - haskell-src-meta and th-* packaged * Thu Feb 21 2019 Jens Petersen - 1.10-12 - update to 1.10 - subpackage lucid dep * Fri Feb 01 2019 Fedora Release Engineering - 1.5-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Oct 24 2018 Jens Petersen - 1.5-10 - rebuild for static executable * Sun Jul 22 2018 Jens Petersen - 1.5-9 - update to 1.5 - add main manpage * Fri Jul 13 2018 Fedora Release Engineering - 1.4-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 1.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jan 24 2018 Jens Petersen - 1.4-6 - update to 1.4 * Wed Aug 30 2017 Jens Petersen - 1.2-5 - no longer need to subpackage file-embed * Wed Aug 02 2017 Fedora Release Engineering - 1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon May 29 2017 Jens Petersen - 1.2-2 - bump release * Fri May 26 2017 Jens Petersen - 1.2-1 - update to 1.2 - add here lib and its deps * Tue Feb 21 2017 Jens Petersen - 1.0.1-1 - update to 1.0.1 - subpackage file-embed * Fri Feb 10 2017 Fedora Release Engineering - 0.27.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Sep 5 2016 Jens Petersen - 0.27.1-1 - update to 0.27.1 - build without mtl-compat * Tue May 24 2016 Ben Boeckel - 0.24-5 - Rebuild for ghc-cmdargs, ghc-regexpr, ghc-split - doc -> license macro * Wed Feb 03 2016 Fedora Release Engineering - 0.24-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sat Aug 08 2015 Ben Boeckel - 0.24-3 - rebuild for ghc-safe and ghc-wizards * Wed Jun 17 2015 Fedora Release Engineering - 0.24-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Mar 01 2015 Ben Boeckel - 0.24-1 - update to 0.24 - cblrpm refresh * Fri Feb 6 2015 Jens Petersen - 0.23.2-1 - update to 0.23.2 - cblrpm refresh - patch out pretty-show for now - try re-enabling armv7 * 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