File hledger-ui.spec of Package hledger-ui
#
# spec file for package hledger-ui
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: hledger-ui
Version: 1.2
Release: 0
Summary: Curses-style user interface for the hledger accounting tool
License: GPL-3.0+
Group: Development/Languages/Other
Url: https://hackage.haskell.org/package/%{name}
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
Source1: https://hackage.haskell.org/package/%{name}-%{version}/revision/3.cabal#/%{name}.cabal
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-HUnit-devel
BuildRequires: ghc-ansi-terminal-devel
BuildRequires: ghc-async-devel
BuildRequires: ghc-base-compat-devel
BuildRequires: ghc-brick-devel
BuildRequires: ghc-cmdargs-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-data-default-devel
BuildRequires: ghc-directory-devel
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-fsnotify-devel
BuildRequires: ghc-hledger-devel
BuildRequires: ghc-hledger-lib-devel
BuildRequires: ghc-megaparsec-devel
BuildRequires: ghc-microlens-devel
BuildRequires: ghc-microlens-platform-devel
BuildRequires: ghc-pretty-show-devel
BuildRequires: ghc-process-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-safe-devel
BuildRequires: ghc-split-devel
BuildRequires: ghc-text-devel
BuildRequires: ghc-text-zipper-devel
BuildRequires: ghc-time-devel
BuildRequires: ghc-transformers-devel
BuildRequires: ghc-vector-devel
BuildRequires: ghc-vty-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is hledger's curses-style interface. It is simpler and more convenient for
browsing data than the command-line interface, but lighter and faster than
hledger-web.
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.
%prep
%setup -q
cp -p %{SOURCE1} %{name}.cabal
%build
%ghc_bin_build
%install
%ghc_bin_install
%files
%defattr(-,root,root,-)
%doc LICENSE
%doc CHANGES README doc
%{_bindir}/%{name}
%dir %{_datadir}/%{name}-%{version}
%dir %{_datadir}/%{name}-%{version}/doc
%{_datadir}/%{name}-%{version}/doc/hledger-ui.1
%{_datadir}/%{name}-%{version}/doc/hledger-ui.1.info
%{_datadir}/%{name}-%{version}/doc/hledger-ui.1.txt
%changelog