%global commit0 42145f765aaf1edb342719c486b0c3fe134e26f5 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Name: python-screeninfo Version: 0.8.1.%{shortcommit0} Release: 1%{?dist} Summary: Fetch location and size of physical screens License: MIT URL: https://github.com/rr-/screeninfo Source0: https://github.com/rr-/screeninfo/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: %{py3_dist pytest} %global _description %{expand: Fetch location and size of physical screens.} %description %_description %package -n python3-screeninfo Summary: %{summary} %description -n python3-screeninfo %_description %prep %autosetup -p1 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files screeninfo %check %pytest %files -n python3-screeninfo -f %{pyproject_files} %doc README.md %license LICENSE.md %changelog %autochangelog