2020-04-24 13:44:39 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-screeninfo
|
|
|
|
#
|
2023-01-31 09:15:54 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2020-04-24 13:44:39 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-screeninfo
|
2023-01-31 09:15:54 +00:00
|
|
|
Version: 0.8.1
|
2020-04-24 13:44:39 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Fetch location and size of physical screens
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/rr-/screeninfo
|
2023-01-31 11:01:12 +00:00
|
|
|
Source0: https://github.com/rr-/screeninfo/archive/refs/tags/%{version}.tar.gz#/screeninfo-%{version}.tar.gz
|
2023-01-31 10:42:39 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module poetry-core}
|
2023-01-31 11:01:12 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2023-01-31 10:42:39 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2020-04-24 13:44:39 +00:00
|
|
|
BuildRequires: fdupes
|
2020-04-24 13:45:51 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2023-01-31 09:15:54 +00:00
|
|
|
Suggests: python-Cython
|
2023-01-31 10:42:39 +00:00
|
|
|
Suggests: python-dataclasses
|
2023-01-31 09:15:54 +00:00
|
|
|
Suggests: python-pyobjc-framework-Cocoa
|
2020-04-24 13:44:39 +00:00
|
|
|
BuildArch: noarch
|
2023-01-31 10:42:39 +00:00
|
|
|
%if 0%{?suse_version} <= 1500
|
|
|
|
BuildRequires: %{python_module dataclasses}
|
|
|
|
%endif
|
2020-04-24 13:44:39 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Python module to fetch location and size of physical screens.
|
|
|
|
|
|
|
|
%prep
|
2023-01-31 10:42:39 +00:00
|
|
|
%autosetup -p1 -n screeninfo-%{version}
|
2020-04-24 13:44:39 +00:00
|
|
|
|
|
|
|
%build
|
2023-01-31 10:42:39 +00:00
|
|
|
%pyproject_wheel
|
2020-04-24 13:44:39 +00:00
|
|
|
|
|
|
|
%install
|
2023-01-31 10:42:39 +00:00
|
|
|
%pyproject_install
|
2020-04-24 13:44:39 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
2020-04-24 13:45:51 +00:00
|
|
|
%check
|
2023-01-31 11:01:12 +00:00
|
|
|
%pytest tests
|
2020-04-24 13:45:51 +00:00
|
|
|
|
2020-04-24 13:44:39 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE.md
|
|
|
|
%doc README.md
|
2023-01-31 10:42:39 +00:00
|
|
|
%{python_sitelib}/screeninfo
|
|
|
|
%{python_sitelib}/screeninfo-%{version}*-info
|
2020-04-24 13:44:39 +00:00
|
|
|
|
|
|
|
%changelog
|