2012-07-10 04:14:08 +00:00
|
|
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
|
|
|
|
|
%global pkg_name hledger
|
|
|
|
|
2014-08-29 09:36:04 +00:00
|
|
|
%bcond_with tests
|
|
|
|
|
2012-07-10 04:14:08 +00:00
|
|
|
Name: %{pkg_name}
|
2015-03-02 03:00:14 +00:00
|
|
|
Version: 0.24
|
2015-02-28 07:18:41 +00:00
|
|
|
Release: 1%{?dist}
|
2015-03-02 03:00:14 +00:00
|
|
|
Summary: The main command-line interface for the hledger accounting tool
|
2012-07-10 04:14:08 +00:00
|
|
|
|
|
|
|
License: GPLv3
|
2015-02-06 08:22:13 +00:00
|
|
|
Url: https://hackage.haskell.org/package/%{name}
|
|
|
|
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
|
2015-03-02 03:39:14 +00:00
|
|
|
# http://www.yesodweb.com/blog/2014/04/consolidation-progress
|
|
|
|
Patch0: hledger-0.24-req-new-shakespeare.patch
|
2015-03-02 03:00:14 +00:00
|
|
|
# rhbz(974725)
|
2015-03-02 03:39:14 +00:00
|
|
|
Patch1: hledger-0.24-no-pretty-show.patch
|
2012-11-09 09:00:42 +00:00
|
|
|
|
2012-07-10 04:14:08 +00:00
|
|
|
BuildRequires: ghc-Cabal-devel
|
2012-11-09 09:00:42 +00:00
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
# Begin cabal-rpm deps:
|
2015-03-02 03:00:14 +00:00
|
|
|
BuildRequires: chrpath
|
2012-07-10 04:14:08 +00:00
|
|
|
BuildRequires: ghc-HUnit-devel
|
2012-11-09 09:00:42 +00:00
|
|
|
BuildRequires: ghc-cmdargs-devel
|
|
|
|
BuildRequires: ghc-containers-devel
|
2015-03-02 03:00:14 +00:00
|
|
|
BuildRequires: ghc-csv-devel
|
2012-11-09 09:00:42 +00:00
|
|
|
BuildRequires: ghc-directory-devel
|
|
|
|
BuildRequires: ghc-filepath-devel
|
2012-07-10 04:14:08 +00:00
|
|
|
BuildRequires: ghc-haskeline-devel
|
|
|
|
BuildRequires: ghc-hledger-lib-devel
|
|
|
|
BuildRequires: ghc-mtl-devel
|
2012-11-09 09:00:42 +00:00
|
|
|
BuildRequires: ghc-old-locale-devel
|
|
|
|
BuildRequires: ghc-old-time-devel
|
2012-07-10 04:14:08 +00:00
|
|
|
BuildRequires: ghc-parsec-devel
|
2015-03-02 03:00:14 +00:00
|
|
|
#BuildRequires: ghc-pretty-show-devel
|
2012-11-09 09:00:42 +00:00
|
|
|
BuildRequires: ghc-process-devel
|
2015-03-02 03:00:14 +00:00
|
|
|
BuildRequires: ghc-regex-tdfa-devel
|
2012-07-10 04:14:08 +00:00
|
|
|
BuildRequires: ghc-regexpr-devel
|
|
|
|
BuildRequires: ghc-safe-devel
|
2014-08-29 09:36:04 +00:00
|
|
|
BuildRequires: ghc-shakespeare-devel
|
2013-06-12 07:39:55 +00:00
|
|
|
BuildRequires: ghc-shakespeare-text-devel
|
2012-07-10 04:14:08 +00:00
|
|
|
BuildRequires: ghc-split-devel
|
2014-08-29 09:36:04 +00:00
|
|
|
BuildRequires: ghc-tabular-devel
|
2013-06-12 07:39:55 +00:00
|
|
|
BuildRequires: ghc-text-devel
|
2012-11-09 09:00:42 +00:00
|
|
|
BuildRequires: ghc-time-devel
|
2012-07-10 04:14:08 +00:00
|
|
|
BuildRequires: ghc-utf8-string-devel
|
2014-08-29 09:36:04 +00:00
|
|
|
BuildRequires: ghc-wizards-devel
|
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-test-framework-devel
|
|
|
|
BuildRequires: ghc-test-framework-hunit-devel
|
|
|
|
BuildRequires: ghc-transformers-devel
|
|
|
|
%endif
|
2012-11-09 09:00:42 +00:00
|
|
|
# End cabal-rpm deps
|
2012-07-10 04:14:08 +00:00
|
|
|
|
|
|
|
%description
|
2015-03-02 03:00:14 +00:00
|
|
|
Hledger is a library and set of user tools for working with financial data (or
|
|
|
|
anything that can be tracked in a double-entry accounting ledger.) It is a
|
|
|
|
haskell port and friendly fork of John Wiegley's Ledger. hledger provides
|
|
|
|
command-line, curses and web interfaces, and aims to be a reliable, practical
|
|
|
|
tool for daily use.
|
2013-06-11 12:21:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
%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
|
2014-08-29 09:36:04 +00:00
|
|
|
Provides: ghc-%{name}-static = %{version}-%{release}
|
2013-06-11 12:21:23 +00:00
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
2014-08-29 09:36:04 +00:00
|
|
|
Requires: ghc-%{name}%{?_isa} = %{version}-%{release}
|
2013-06-11 12:21:23 +00:00
|
|
|
|
|
|
|
%description -n ghc-%{name}-devel
|
|
|
|
This package provides the Haskell %{name} library development files.
|
2012-07-10 04:14:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2015-03-02 03:39:14 +00:00
|
|
|
%patch0 -p1 -b .req-new-shakespeare
|
|
|
|
%patch1 -p1 -b .no-pretty-show
|
2012-07-10 04:14:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%ghc_lib_install
|
|
|
|
|
2015-03-02 03:00:14 +00:00
|
|
|
%ghc_fix_dynamic_rpath %{pkg_name}
|
|
|
|
|
2012-07-10 04:14:08 +00:00
|
|
|
|
2014-08-29 09:36:04 +00:00
|
|
|
%check
|
2015-03-02 03:00:14 +00:00
|
|
|
%if %{with tests}
|
|
|
|
%cabal test
|
|
|
|
%endif
|
2014-08-29 09:36:04 +00:00
|
|
|
|
|
|
|
|
2013-06-11 12:21:23 +00:00
|
|
|
%post -n ghc-%{name}-devel
|
|
|
|
%ghc_pkg_recache
|
2012-07-10 04:14:08 +00:00
|
|
|
|
|
|
|
|
2013-06-11 12:21:23 +00:00
|
|
|
%postun -n ghc-%{name}-devel
|
|
|
|
%ghc_pkg_recache
|
2012-07-10 04:14:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc LICENSE
|
2015-02-06 08:22:13 +00:00
|
|
|
%{_bindir}/%{name}
|
2012-07-10 04:14:08 +00:00
|
|
|
|
|
|
|
|
2013-06-11 12:21:23 +00:00
|
|
|
%files -n ghc-%{name} -f ghc-%{name}.files
|
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
|
|
|
|
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
|
2012-07-10 04:14:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2015-03-02 03:00:14 +00:00
|
|
|
* Sun Mar 01 2015 Ben Boeckel <mathstuf@gmail.com> - 0.24-1
|
|
|
|
- update to 0.24
|
|
|
|
- cblrpm refresh
|
|
|
|
|
2015-02-28 07:18:41 +00:00
|
|
|
* Fri Feb 6 2015 Jens Petersen <petersen@redhat.com> - 0.23.2-1
|
2014-08-29 09:36:04 +00:00
|
|
|
- update to 0.23.2
|
2015-02-28 07:18:41 +00:00
|
|
|
- cblrpm refresh
|
2014-08-29 09:36:04 +00:00
|
|
|
- patch out pretty-show for now
|
2015-02-28 07:18:41 +00:00
|
|
|
- try re-enabling armv7
|
2014-08-29 09:36:04 +00:00
|
|
|
|
2014-08-16 20:32:10 +00:00
|
|
|
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19.3-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-07 20:14:53 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19.3-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-08-30 05:14:30 +00:00
|
|
|
* Fri Aug 30 2013 Jens Petersen <petersen@redhat.com> - 0.19.3-3
|
2013-08-30 05:49:43 +00:00
|
|
|
- exclude armv7hl since TemplateHaskell failing to compile (#992478)
|
2013-08-30 05:14:30 +00:00
|
|
|
|
2013-08-03 17:47:18 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-06-12 07:39:55 +00:00
|
|
|
* Wed Jun 12 2013 Jens Petersen <petersen@redhat.com> - 0.19.3-1
|
|
|
|
- update to 0.19.3
|
2013-06-11 12:21:23 +00:00
|
|
|
- update to new simplified Haskell Packaging Guidelines
|
|
|
|
|
2013-03-19 06:07:47 +00:00
|
|
|
* Tue Mar 19 2013 Jens Petersen <petersen@redhat.com> - 0.17-5
|
|
|
|
- allow haskeline-0.7
|
|
|
|
|
2013-02-14 01:09:10 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-11-09 09:00:42 +00:00
|
|
|
* Fri Nov 9 2012 Jens Petersen <petersen@redhat.com> - 0.17-3
|
|
|
|
- re-enable dynamic executable
|
|
|
|
- allow building with cmdargs-0.10 and split-0.2
|
|
|
|
- update with cabal-rpm
|
|
|
|
|
2012-07-19 12:58:10 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-07-10 04:14:08 +00:00
|
|
|
* Wed Feb 29 2012 Ben Boeckel <mathstuf@gmail.com> - 0.17-1
|
|
|
|
- Initial package
|