## START: Set by rpmautospec ## (rpmautospec version 0.6.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 pypi_name pyopengltk Name: python-%{pypi_name} Version: 0.0.4 Release: %{autorelease} Summary: An OpenGL frame for pyopengl-tkinter based on ctype License: MIT URL: https://github.com/jonwright/pyopengltk Source: %{pypi_source %{pypi_name}} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-tkinter %global _description %{expand: Tkinter - OpenGL Frame using ctypes An opengl frame for pyopengl-tkinter based on ctypes (no togl compilation). Collected together by Jon Wright, Jan 2018.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} Requires: python3-tkinter Requires: libX11 %description -n python3-%{pypi_name} %_description %prep %autosetup -p1 -n %{pypi_name}-%{version} # Remove MacOS and Windows modules rm -vf pyopengltk/darwin.py pyopengltk/win32.py %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{pypi_name} %check # Upstream doesn't provide tests %pyproject_check_import %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Wed Jul 03 2024 Sandro - 0.0.4-2 - Add explicit dependency for libX11 * Mon May 27 2024 Sandro - 0.0.4-1 - Initial package ## END: Generated by rpmautospec