File hledger-interest.spec of Package hledger-interest
Name: hledger-interest
Version: 1.6.7
Release: 1.1
Summary: Interest calculator for hledger journals
License: GPL-3.0-or-later
URL: https://github.com/simonmichael/hledger
Source0: hledger-interest-%{version}.tar.gz
Source1: hledger-interest.cabal
BuildRequires: ghc-compiler
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
%description
hledger-interest is a tool for generating interest transactions for hledger journals.
%prep
%setup -q -n hledger-interest-%{version}
cp -p %{SOURCE1} hledger-interest.cabal
%build
ghc --make -package Cabal -no-user-package-db -dynamic Setup
./Setup configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_datadir}/licenses/%{name} --ghc --ghc-options="-fhide-source-paths"
./Setup build
%install
rm -rf %{buildroot}
./Setup copy --destdir=%{buildroot}
if [ -f LICENSE ]; then
install -Dm0644 LICENSE %{buildroot}%{_datadir}/licenses/%{name}/LICENSE
fi
if [ -f COPYING ]; then
install -Dm0644 COPYING %{buildroot}%{_datadir}/licenses/%{name}/COPYING
fi
%files
%{_bindir}/hledger-interest
%{_datadir}/licenses/%{name}/*
%changelog
* Mon Sep 22 2025 Maintainer <maintainer@example.com>
- Remove unsupported -fobject-determinism flag from GHC options to fix build with GHC 9.10.