## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## 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 Name: python-beanprice Version: 2.0.0 Release: %autorelease Summary: Price quotes fetcher for Beancount License: GPL-2.0-only URL: https://github.com/beancount/beanprice Source: %{pypi_source beanprice} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest %global _description %{expand: This package provides a script to fetch market data prices from various sources on the Internet and render them for plain text accounting price syntax (and Beancount).} %description %_description %package -n beanprice Summary: %{summary} Requires: python3-beanprice = %{version}-%{release} %description -n beanprice %_description %package -n python3-beanprice Summary: %{summary} %description -n python3-beanprice %_description %prep %autosetup -p1 -n beanprice-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l beanprice # Remove spurious directories rm -r %{buildroot}%{python3_sitelib}/experiments/ %check # coincap_test expects the system timezone to be UTC TZ=UTC %pytest -v %files -n beanprice %doc README.md %{_bindir}/bean-price %files -n python3-beanprice -f %{pyproject_files} %changelog ## START: Generated by rpmautospec * Fri May 30 2025 Davide Cavalca - 2.0.0-1 - Initial import; Fixes: RHBZ#2351113 ## END: Generated by rpmautospec