2012-07-10 04:14:08 +00:00
|
|
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
|
|
|
|
|
%global pkg_name hledger
|
|
|
|
|
|
|
|
Name: %{pkg_name}
|
|
|
|
Version: 0.17
|
2013-06-11 12:21:23 +00:00
|
|
|
Release: 6%{?dist}
|
|
|
|
Summary: A double-entry accounting tool
|
2012-07-10 04:14:08 +00:00
|
|
|
|
|
|
|
License: GPLv3
|
|
|
|
URL: http://hackage.haskell.org/package/%{name}
|
|
|
|
Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
|
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:
|
2012-07-10 04:14:08 +00:00
|
|
|
BuildRequires: ghc-HUnit-devel
|
|
|
|
BuildRequires: ghc-cabal-file-th-devel
|
2012-11-09 09:00:42 +00:00
|
|
|
BuildRequires: ghc-cmdargs-devel
|
|
|
|
BuildRequires: ghc-containers-devel
|
2012-07-10 04:14:08 +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
|
2012-11-09 09:00:42 +00:00
|
|
|
BuildRequires: ghc-process-devel
|
2012-07-10 04:14:08 +00:00
|
|
|
BuildRequires: ghc-regexpr-devel
|
|
|
|
BuildRequires: ghc-safe-devel
|
|
|
|
BuildRequires: ghc-split-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
|
2012-11-09 09:00:42 +00:00
|
|
|
# End cabal-rpm deps
|
2012-07-10 04:14:08 +00:00
|
|
|
|
|
|
|
%description
|
2013-06-11 12:21:23 +00:00
|
|
|
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
|
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
|
|
|
Requires: ghc-%{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
2012-11-09 09:00:42 +00:00
|
|
|
cabal-tweak-dep-ver cmdargs "< 0.10" "<0.11"
|
2013-03-19 06:07:47 +00:00
|
|
|
cabal-tweak-dep-ver haskeline "== 0.6.*" ">= 0.6"
|
|
|
|
cabal-tweak-dep-ver split "== 0.1.*" ">= 0.1"
|
2012-11-09 09:00:42 +00:00
|
|
|
|
2012-07-10 04:14:08 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%ghc_lib_install
|
|
|
|
|
|
|
|
|
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
|
|
|
|
%attr(755,root,root) %{_bindir}/%{name}
|
|
|
|
|
|
|
|
|
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
|
2013-06-11 12:21:23 +00:00
|
|
|
* Tue Jun 11 2013 Jens Petersen <petersen@redhat.com> - 0.17-6
|
|
|
|
- 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
|