## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## 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-goocalendar Version: 0.8.0 Release: %autorelease Summary: A calendar widget for GTK using PyGoocanvas License: GPL-2.0-or-later URL: https://code.tryton.org/goocalendar Source: %{pypi_source GooCalendar} BuildArch: noarch BuildRequires: python3-devel # Documentation BuildRequires: python3dist(sphinx) BuildRequires: python3dist(sphinx-book-theme) BuildRequires: python3dist(sphinx-copybutton) BuildRequires: texinfo %global _description %{expand: A calendar widget for GTK using PyGooCanvas. Example usage:: >>> import datetime >>> import goocalendar >>> event_store = goocalendar.EventStore() >>> calendar = goocalendar.Calendar(event_store) >>> event = goocalendar.Event('Birthday', ... datetime.date.today(), ... bg_color='lightgreen') >>> event_store.add(event)} %description %_description %package -n python3-goocalendar Summary: %{summary} %description -n python3-goocalendar %_description %prep %autosetup -p1 -n GooCalendar-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel pushd doc sphinx-build -b texinfo . texinfo pushd texinfo makeinfo --docbook GooCalender.texi popd popd %install %pyproject_install %pyproject_save_files -l goocalendar mkdir -p %{buildroot}%{_datadir}/help/en/python-goocalendar install -m644 doc/texinfo/GooCalendar.xml %{buildroot}%{_datadir}/help/en/python-goocalendar %check %pyproject_check_import %files -n python3-goocalendar -f %{pyproject_files} %doc README %dir %{_datadir}/help/en %lang(en) %{_datadir}/help/en/python-goocalendar %changelog ## START: Generated by rpmautospec * Thu Feb 26 2026 John Doe - 0.8.0-1 - Uncommitted changes ## END: Generated by rpmautospec