## START: Set by rpmautospec ## (rpmautospec version 0.7.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-customtkinter Version: 6.0.0 Release: 0%{?dist}.2sunshine Summary: A modern and customizable python UI-library based on Tkinter License: MIT URL: https://github.com/tomschimansky/customtkinter Source: %{url}/archive/v%{version}/customtkinter-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-tkinter %global _description %{expand: CustomTkinter is a python UI-library based on Tkinter, which provides new, modern and fully customizable widgets. They are created and used like normal Tkinter widgets and can also be used in combination with normal Tkinter elements.} %description %_description %package -n python3-customtkinter Summary: %{summary} Requires: python3-tkinter # The contained Roboto fonts are unbundled in favor of Fedora's google-roboto-fonts package Requires: google-roboto-fonts %description -n python3-customtkinter %_description %prep %autosetup -p1 -n CustomTkinter-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l customtkinter # Use the system Roboto instead of the bundled copies. On Linux CustomTkinter # follows the symlinks and copies these files into ~/.fonts at startup. fontdir=%{buildroot}%{python3_sitelib}/customtkinter/assets/fonts/Roboto for face in Regular Medium; do rm "$fontdir/Roboto-$face.ttf" ln -s %{_datadir}/fonts/google-roboto/Roboto-$face.ttf "$fontdir/Roboto-$face.ttf" done %check # tests cannot be run because they require a display %pyproject_check_import %files -n python3-customtkinter -f %{pyproject_files} %doc Readme.md %changelog ## START: Generated by rpmautospec * Mon Nov 16 2026 Moritz Barsnick 6.0.0-0.2sunshine - fix %%license tag - unbundle Roboto fonts (inspired by SPEC file from the igorbispopessoal/parrotia COPR) * Mon Nov 09 2026 Moritz Barsnick 6.0.0-0.1sunshine - update to 6.0.0 * Fri May 15 2026 Moritz Barsnick 5.3.0-0.1sunshine - adapt from https://copr.fedorainfracloud.org/coprs/mattia/GraXpert/package/python-customtkinter/ - update to 5.3.0 * Thu Sep 12 2024 John Doe - 5.2.2-1 - Uncommitted changes ## END: Generated by rpmautospec