## 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-darkdetect Version: 0.8.0 Release: %autorelease Summary: Detect OS Dark Mode from Python License: BSD-3-Clause URL: https://github.com/albertosottile/darkdetect Source: %{url}/archive/v%{version}/darkdetect-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: The main application of this package is to detect the Dark mode from your GUI Python application (Tkinter/wx/pyqt/qt for python (pyside)/...) and apply the needed adjustments to your interface.} %description %_description %package -n python3-darkdetect Summary: %{summary} %description -n python3-darkdetect %_description %prep %autosetup -p1 -n darkdetect-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l darkdetect %check # no tests provided %pyproject_check_import %files -n python3-darkdetect -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Thu Sep 12 2024 John Doe - 0.8.0-1 - Uncommitted changes ## END: Generated by rpmautospec