2018-01-24 13:12:28 +00:00
|
|
|
# generated by cabal-rpm-0.12.1
|
2012-07-10 04:14:08 +00:00
|
|
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
|
|
|
|
|
%global pkg_name hledger
|
2017-02-21 15:02:06 +00:00
|
|
|
%global pkgver %{pkg_name}-%{version}
|
|
|
|
|
2018-01-24 13:53:01 +00:00
|
|
|
%global here here-1.2.12
|
|
|
|
%global haskellsrcmeta haskell-src-meta-0.8.0.1
|
|
|
|
%global thexpandsyns th-expand-syns-0.4.4.0
|
2017-05-26 09:36:10 +00:00
|
|
|
%global thlift th-lift-0.7.7
|
|
|
|
%global thliftinstances th-lift-instances-0.1.11
|
2018-01-24 13:53:01 +00:00
|
|
|
%global thorphans th-orphans-0.13.4
|
|
|
|
%global threifymany th-reify-many-0.1.8
|
|
|
|
%global utilityht utility-ht-0.0.14
|
|
|
|
%global subpkgs %{thexpandsyns} %{thlift} %{thliftinstances} %{threifymany} %{thorphans} %{haskellsrcmeta} %{here} %{utilityht}
|
2012-07-10 04:14:08 +00:00
|
|
|
|
2014-08-29 09:36:04 +00:00
|
|
|
%bcond_with tests
|
|
|
|
|
2012-07-10 04:14:08 +00:00
|
|
|
Name: %{pkg_name}
|
2018-01-24 13:53:01 +00:00
|
|
|
Version: 1.4
|
2018-07-13 05:01:31 +00:00
|
|
|
Release: 8%{?dist}
|
2017-02-21 15:02:06 +00:00
|
|
|
Summary: 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}
|
2017-02-21 15:02:06 +00:00
|
|
|
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
2018-01-24 13:53:01 +00:00
|
|
|
Source1: https://hackage.haskell.org/package/%{here}/%{here}.tar.gz
|
|
|
|
Source2: https://hackage.haskell.org/package/%{haskellsrcmeta}/%{haskellsrcmeta}.tar.gz
|
|
|
|
Source3: https://hackage.haskell.org/package/%{thexpandsyns}/%{thexpandsyns}.tar.gz
|
|
|
|
Source4: https://hackage.haskell.org/package/%{thlift}/%{thlift}.tar.gz
|
|
|
|
Source5: https://hackage.haskell.org/package/%{thliftinstances}/%{thliftinstances}.tar.gz
|
|
|
|
Source6: https://hackage.haskell.org/package/%{thorphans}/%{thorphans}.tar.gz
|
|
|
|
Source7: https://hackage.haskell.org/package/%{threifymany}/%{threifymany}.tar.gz
|
|
|
|
Source8: https://hackage.haskell.org/package/%{utilityht}/%{utilityht}.tar.gz
|
2012-11-09 09:00:42 +00:00
|
|
|
|
2012-07-10 04:14:08 +00:00
|
|
|
BuildRequires: ghc-Cabal-devel
|
2017-02-25 12:29:29 +00:00
|
|
|
BuildRequires: ghc-rpm-macros-extra
|
2012-11-09 09:00:42 +00:00
|
|
|
# Begin cabal-rpm deps:
|
2015-03-02 03:00:14 +00:00
|
|
|
BuildRequires: chrpath
|
2018-01-24 13:53:01 +00:00
|
|
|
BuildRequires: ghc-Diff-devel
|
2012-07-10 04:14:08 +00:00
|
|
|
BuildRequires: ghc-HUnit-devel
|
2018-01-24 13:53:01 +00:00
|
|
|
BuildRequires: ghc-ansi-terminal-devel
|
2016-09-05 07:30:45 +00:00
|
|
|
BuildRequires: ghc-base-compat-devel
|
2017-02-21 15:02:06 +00:00
|
|
|
BuildRequires: ghc-bytestring-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
|
2017-02-21 15:02:06 +00:00
|
|
|
BuildRequires: ghc-data-default-devel
|
2012-11-09 09:00:42 +00:00
|
|
|
BuildRequires: ghc-directory-devel
|
2017-08-30 17:10:24 +00:00
|
|
|
BuildRequires: ghc-file-embed-devel
|
2012-11-09 09:00:42 +00:00
|
|
|
BuildRequires: ghc-filepath-devel
|
2017-02-21 15:02:06 +00:00
|
|
|
BuildRequires: ghc-hashable-devel
|
2012-07-10 04:14:08 +00:00
|
|
|
BuildRequires: ghc-haskeline-devel
|
2017-05-26 09:36:10 +00:00
|
|
|
#BuildRequires: ghc-here-devel
|
2012-07-10 04:14:08 +00:00
|
|
|
BuildRequires: ghc-hledger-lib-devel
|
2017-02-21 15:02:06 +00:00
|
|
|
BuildRequires: ghc-megaparsec-devel
|
2012-07-10 04:14:08 +00:00
|
|
|
BuildRequires: ghc-mtl-devel
|
2012-11-09 09:00:42 +00:00
|
|
|
BuildRequires: ghc-old-time-devel
|
2012-07-10 04:14:08 +00:00
|
|
|
BuildRequires: ghc-parsec-devel
|
2016-09-05 07:30:45 +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-safe-devel
|
2014-08-29 09:36:04 +00:00
|
|
|
BuildRequires: ghc-shakespeare-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
|
2017-02-21 15:02:06 +00:00
|
|
|
BuildRequires: ghc-temporary-devel
|
2016-09-05 07:30:45 +00:00
|
|
|
BuildRequires: ghc-terminfo-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
|
2017-02-21 15:02:06 +00:00
|
|
|
BuildRequires: ghc-transformers-devel
|
2016-09-05 07:30:45 +00:00
|
|
|
BuildRequires: ghc-unordered-containers-devel
|
2012-07-10 04:14:08 +00:00
|
|
|
BuildRequires: ghc-utf8-string-devel
|
2018-01-24 13:53:01 +00:00
|
|
|
#BuildRequires: ghc-utility-ht-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
|
|
|
|
%endif
|
2012-11-09 09:00:42 +00:00
|
|
|
# End cabal-rpm deps
|
2017-05-27 12:45:27 +00:00
|
|
|
# for th-expand-syns
|
|
|
|
BuildRequires: ghc-syb-devel
|
|
|
|
# for haskell-src-meta
|
|
|
|
BuildRequires: ghc-haskell-src-exts-devel
|
2012-07-10 04:14:08 +00:00
|
|
|
|
|
|
|
%description
|
2017-02-21 15:02:06 +00:00
|
|
|
This is hledger's command-line interface. Its basic function is to read a plain
|
2016-09-05 07:30:45 +00:00
|
|
|
text file describing financial transactions and produce useful reports.
|
2017-02-21 15:02:06 +00:00
|
|
|
|
2016-09-05 07:30:45 +00:00
|
|
|
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
|
2015-03-02 03:00:14 +00:00
|
|
|
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}
|
2018-01-24 13:12:28 +00:00
|
|
|
Provides: ghc-%{name}-doc = %{version}-%{release}
|
|
|
|
%if %{defined ghc_version}
|
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}
|
2018-01-24 13:12:28 +00:00
|
|
|
%endif
|
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
|
|
|
|
|
|
|
|
2017-02-21 15:02:06 +00:00
|
|
|
%global main_version %{version}
|
|
|
|
|
|
|
|
%if %{defined ghclibdir}
|
2017-05-26 09:36:10 +00:00
|
|
|
%ghc_lib_subpackage %{here}
|
|
|
|
%ghc_lib_subpackage %{haskellsrcmeta}
|
|
|
|
%ghc_lib_subpackage %{thexpandsyns}
|
|
|
|
%ghc_lib_subpackage %{thlift}
|
|
|
|
%ghc_lib_subpackage %{thliftinstances}
|
|
|
|
%ghc_lib_subpackage %{thorphans}
|
|
|
|
%ghc_lib_subpackage %{threifymany}
|
2018-01-24 13:53:01 +00:00
|
|
|
%ghc_lib_subpackage %{utilityht}
|
2017-02-21 15:02:06 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%global version %{main_version}
|
|
|
|
|
|
|
|
|
2012-07-10 04:14:08 +00:00
|
|
|
%prep
|
2018-01-24 13:53:01 +00:00
|
|
|
%setup -q -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8
|
2017-01-28 21:16:26 +00:00
|
|
|
cabal-tweak-drop-dep mtl-compat
|
2018-01-31 02:42:12 +00:00
|
|
|
cabal-tweak-dep-ver megaparsec '< 6.2' '< 6.4'
|
2012-07-10 04:14:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2017-02-21 15:02:06 +00:00
|
|
|
%ghc_libs_build %{subpkgs}
|
2012-07-10 04:14:08 +00:00
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
2017-02-21 15:02:06 +00:00
|
|
|
%ghc_libs_install %{subpkgs}
|
2012-07-10 04:14:08 +00:00
|
|
|
%ghc_lib_install
|
2017-05-26 09:36:10 +00:00
|
|
|
%ghc_fix_rpath %{pkgver}
|
2018-01-24 13:12:28 +00:00
|
|
|
mv %{buildroot}%{_ghclicensedir}/{,ghc-}%{name}
|
2012-07-10 04:14:08 +00:00
|
|
|
|
2017-02-21 15:02:06 +00:00
|
|
|
mkdir -p %{buildroot}%{_docdir}/ghc-hledger-devel/
|
|
|
|
mv %{buildroot}%{_datadir}/%{name}-%{version}/doc %{buildroot}%{_docdir}/ghc-hledger-devel/
|
2015-03-02 03:00:14 +00:00
|
|
|
|
2012-07-10 04:14:08 +00:00
|
|
|
|
2014-08-29 09:36:04 +00:00
|
|
|
%check
|
2016-09-05 07:30:45 +00:00
|
|
|
%cabal_test
|
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
|
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
|
2016-05-24 13:30:39 +00:00
|
|
|
%license LICENSE
|
2013-06-11 12:21:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
|
2017-02-21 15:02:06 +00:00
|
|
|
%doc CHANGES README.md doc
|
2012-07-10 04:14:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2018-07-13 05:01:31 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-02-07 16:22:27 +00:00
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-01-24 13:53:01 +00:00
|
|
|
* Wed Jan 24 2018 Jens Petersen <petersen@redhat.com> - 1.4-6
|
|
|
|
- update to 1.4
|
|
|
|
|
2017-08-30 17:10:24 +00:00
|
|
|
* Wed Aug 30 2017 Jens Petersen <petersen@redhat.com> - 1.2-5
|
|
|
|
- no longer need to subpackage file-embed
|
|
|
|
|
2017-08-02 23:29:28 +00:00
|
|
|
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 12:45:20 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-05-29 03:16:02 +00:00
|
|
|
* Mon May 29 2017 Jens Petersen <petersen@redhat.com> - 1.2-2
|
|
|
|
- bump release
|
|
|
|
|
2017-05-26 09:36:10 +00:00
|
|
|
* Fri May 26 2017 Jens Petersen <petersen@redhat.com> - 1.2-1
|
|
|
|
- update to 1.2
|
|
|
|
- add here lib and its deps
|
|
|
|
|
2017-02-21 15:02:06 +00:00
|
|
|
* Tue Feb 21 2017 Jens Petersen <petersen@redhat.com> - 1.0.1-1
|
|
|
|
- update to 1.0.1
|
|
|
|
- subpackage file-embed
|
|
|
|
|
2017-02-10 12:40:58 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.27.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-09-05 07:30:45 +00:00
|
|
|
* Mon Sep 5 2016 Jens Petersen <petersen@redhat.com> - 0.27.1-1
|
|
|
|
- update to 0.27.1
|
|
|
|
- build without mtl-compat
|
|
|
|
|
2016-05-24 13:30:39 +00:00
|
|
|
* Tue May 24 2016 Ben Boeckel <mathstuf@gmail.com> - 0.24-5
|
|
|
|
- Rebuild for ghc-cmdargs, ghc-regexpr, ghc-split
|
|
|
|
- doc -> license macro
|
|
|
|
|
2016-02-03 23:50:52 +00:00
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.24-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-08-08 19:06:32 +00:00
|
|
|
* Sat Aug 08 2015 Ben Boeckel <mathstuf@gmail.com> - 0.24-3
|
|
|
|
- rebuild for ghc-safe and ghc-wizards
|
|
|
|
|
2015-06-17 10:28:48 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.24-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
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
|