## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global srcname beancount %bcond check 1 Name: python-%{srcname} Version: 3.2.3 Release: %autorelease Summary: Double-Entry Accounting from Text Files License: GPL-2.0-only URL: https://beancount.github.io/docs/ Source: %{pypi_source beancount} BuildRequires: python3-devel BuildRequires: bison BuildRequires: findutils BuildRequires: flex BuildRequires: gcc BuildRequires: sed %if %{with check} BuildRequires: gpg BuildRequires: python3dist(pytest) %endif %global _description %{expand: Beancount is double-entry bookkeeping computer language that lets you define financial transaction records in a text file, read them in memory, generate a variety of reports from them, and provides a web interface.} %description %_description %package -n %{srcname} Summary: %{summary} BuildArch: noarch Requires: python3-%{srcname} = %{version}-%{release} Suggests: %{srcname}-doc = %{version}-%{release} %description -n %{srcname} %_description %package -n %{srcname}-doc Summary: Documentation and examples for Beancount Requires: python3-%{srcname} = %{version}-%{release} BuildArch: noarch %description -n %{srcname}-doc %_description This package provides additional documentation and examples for Beancount. %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %_description This package provides the Python libraries for Beancount. %prep %autosetup -p1 -n %{srcname}-%{version} # Remove useless files find examples/ -type f -name .keep -delete echo "# empty" > examples/ingest/office/importers/acme/acmebank1.pdf.extract # Fix end of line encoding sed -i 's/\r$//' examples/tutorial/holdings-csv.output # Drop shebang as bean-web no longer exists sed -e "\|#!/usr/bin/env bean-web|d" -i examples/simple/starter.beancount chmod -x examples/simple/starter.beancount # Drop bundled/fake binary python wheels requirements sed -i -e "/bison-bin/d" -e "/flex-bin/d" pyproject.toml %generate_buildrequires %pyproject_buildrequires -p %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -L %{srcname} %check %if %{with check} # We need to resetup meson here to actually build the parser tests meson setup --reconfigure -Dtests=enabled build/ && meson test -C build/ ln -s \ %{buildroot}%{python3_sitearch}/beancount/parser/_parser%{python3_ext_suffix} \ beancount/parser/ %pytest -v %else %pyproject_check_import %endif %files -n %{srcname} %doc README.rst %{_bindir}/bean-check %{_bindir}/bean-doctor %{_bindir}/bean-example %{_bindir}/bean-format %{_bindir}/treeify %files -n %{srcname}-doc %license COPYING %doc CHANGES CREDITS TODO %doc examples/ %files -n python3-%{srcname} -f %{pyproject_files} %doc README.rst %license COPYING %changelog ## START: Generated by rpmautospec * Sat Aug 22 2026 Filipe Rosset - 3.2.3-1 - Update to 3.2.3 * Wed Jul 22 2026 Python Maint - 3.1.0-9 - Rebuilt for Python 3.15.0b4 ABI change * Thu Jul 16 2026 Fedora Release Engineering - 3.1.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Wed Jun 03 2026 Python Maint - 3.1.0-7 - Rebuilt for Python 3.15 * Sat Jan 17 2026 Fedora Release Engineering - 3.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Sep 19 2025 Python Maint - 3.1.0-5 - Rebuilt for Python 3.14.0rc3 bytecode * Fri Aug 15 2025 Davide Cavalca - 3.1.0-4 - Disable broken tests in Python 3.14; Fixes: RHBZ#2359530 * Fri Jul 25 2025 Fedora Release Engineering - 3.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Tue Jun 03 2025 Python Maint - 3.1.0-2 - Rebuilt for Python 3.14 * Thu Mar 20 2025 Davide Cavalca - 3.1.0-1 - Initial import; Fixes: RHBZ#2251448 ## END: Generated by rpmautospec