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
|
|
|
|
Source0: https://github.com/rr-/screeninfo/archive/%{version}.tar.gz#/screeninfo-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2020-05-11 08:04:16 +00:00
|
|
|
%if 0%{?suse_version} <= 1500
|
|
|
|
BuildRequires: %{python_module dataclasses}
|
|
|
|
%endif
|
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-dataclasses
|
|
|
|
Suggests: python-Cython
|
|
|
|
Suggests: python-pyobjc-framework-Cocoa
|
2020-04-24 13:44:39 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Python module to fetch location and size of physical screens.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n screeninfo-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
2020-04-24 13:45:51 +00:00
|
|
|
%check
|
2023-01-31 09:15:54 +00:00
|
|
|
# tests are not included in the PyPI tarball
|
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
|
|
|
|
%dir %{python_sitelib}/screeninfo/
|
|
|
|
%dir %{python_sitelib}/screeninfo/enumerators/
|
|
|
|
%{python_sitelib}/screeninfo-%{version}-py%{python_version}.egg-info/
|
|
|
|
%{python_sitelib}/screeninfo/*.py*
|
2023-01-31 09:15:54 +00:00
|
|
|
%{python_sitelib}/screeninfo/*.typed
|
2020-04-24 13:44:39 +00:00
|
|
|
%{python_sitelib}/screeninfo/enumerators/*.py*
|
2023-01-31 09:15:54 +00:00
|
|
|
%{python_sitelib}/screeninfo/enumerators/*.typed
|
2020-04-24 13:44:39 +00:00
|
|
|
%pycache_only %{python_sitelib}/screeninfo/__pycache__/
|
|
|
|
%pycache_only %{python_sitelib}/screeninfo/enumerators/__pycache__/
|
|
|
|
|
|
|
|
%changelog
|