Name: hledger Version: 1.9.1 Release: 1%{?dist} Summary: Command-line interface for the hledger accounting tool License: GPLv3 URL: https://hackage.haskell.org/package/hledger BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot Source0: %{name}.tar.gz %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. %prep tar xf %{SOURCE0} %build %install mkdir -p %{buildroot}/usr/local/bin DESTDIR=%{buildroot} make install %check %clean rm -rf %{buildroot} # Removed the unzipped file from the BUILD dir rm -rf %{_builddir}/%{name}* # Remove source file rm %{SOURCE0} %files %license %doc /usr/local/bin/hledger /usr/local/bin/hledger-api /usr/local/bin/hledger-diff /usr/local/bin/hledger-iadd /usr/local/bin/hledger-interest /usr/local/bin/hledger-ui /usr/local/bin/hledger-web %changelog