forked from pool/ledger
* 0002-Fix-build-with-Boost-1.86.0.patch OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/ledger?expand=0&rev=35
68 lines
2.3 KiB
RPMSpec
68 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package ledger
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: ledger
|
|
Version: 3.3.2
|
|
Release: 0
|
|
Summary: Double-entry accounting system with a command-line reporting interface
|
|
License: BSD-3-Clause
|
|
Group: Productivity/Office/Finance
|
|
URL: https://github.com/ledger/ledger
|
|
Source: https://github.com/ledger/ledger/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
# PATCH-FIX-UPSTREAM
|
|
Patch0: 0001-Fix-build-with-Boost-1.85.0.patch
|
|
# PATCH-FIX-UPSTREAM - 0002-Fix-build-with-Boost-1.86.0.patch - https://github.com/ledger/ledger/issues/2378
|
|
Patch1: 0002-Fix-build-with-Boost-1.86.0.patch
|
|
BuildRequires: cmake
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libboost_date_time-devel >= 1.72.0
|
|
BuildRequires: libboost_filesystem-devel >= 1.72.0
|
|
BuildRequires: libboost_iostreams-devel >= 1.72.0
|
|
BuildRequires: libboost_regex-devel >= 1.72.0
|
|
BuildRequires: libboost_system-devel >= 1.72.0
|
|
BuildRequires: libboost_test-devel >= 1.72.0
|
|
BuildRequires: mpfr-devel
|
|
BuildRequires: python3-base
|
|
BuildRequires: utfcpp-devel
|
|
|
|
%description
|
|
Ledger is a powerful, double-entry accounting system that is accessed from
|
|
the UNIX command-line. This may put off some users, since there is no
|
|
flashy UI, but for those who want unparalleled reporting access to their
|
|
data there are few alternatives.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%cmake -DBUILD_LIBRARY=OFF
|
|
%cmake_build
|
|
|
|
%install
|
|
%cmake_install
|
|
install -m 644 -D contrib/ledger-completion.bash %{buildroot}%{_datadir}/bash-completion/completions/ledger
|
|
|
|
%files
|
|
%license LICENSE.md
|
|
%doc README.md
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
|
%{_bindir}/ledger
|
|
%{_datadir}/bash-completion/completions/ledger
|
|
|
|
%changelog
|