2018-10-29 15:13:05 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-dialite
|
|
|
|
|
#
|
2025-02-10 13:46:13 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2018-10-29 15:13:05 +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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2025-02-10 13:46:13 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2018-10-29 15:13:05 +00:00
|
|
|
Name: python-dialite
|
2025-02-10 13:46:13 +00:00
|
|
|
Version: 0.6.0
|
2018-10-29 15:13:05 +00:00
|
|
|
Release: 0
|
2018-10-30 10:59:27 +00:00
|
|
|
Summary: Python library to show simple dialogs
|
2018-10-29 15:13:05 +00:00
|
|
|
License: BSD-2-Clause
|
|
|
|
|
Group: Development/Languages/Python
|
2019-03-07 14:26:38 +00:00
|
|
|
URL: http://dialite.readthedocs.io
|
2018-10-29 15:13:05 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/d/dialite/dialite-%{version}.tar.gz
|
2025-02-10 13:46:13 +00:00
|
|
|
BuildRequires: %{python_module flit-core}
|
|
|
|
|
BuildRequires: %{python_module pip}
|
2019-03-07 14:26:38 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2018-10-29 15:13:05 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2025-02-10 13:46:13 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-10-29 15:13:05 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
Recommends: zenity
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
2018-10-30 10:59:27 +00:00
|
|
|
Dialite is a pure Python package to show dialogs. It provides a
|
|
|
|
|
handful of functions, each a verb, that can be used to inform(),
|
|
|
|
|
warn() or fail() the user, or to ask_ok(), ask_retry() or
|
|
|
|
|
ask_yesno().
|
|
|
|
|
|
|
|
|
|
Dialite can show graphical dialogs, and falls back to a terminal
|
|
|
|
|
interface if dialogs are unavailable (e.g. if not supported by the
|
|
|
|
|
platform, or for SSH connections).
|
2018-10-29 15:13:05 +00:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n dialite-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
2025-02-10 13:46:13 +00:00
|
|
|
%pyproject_wheel
|
2018-10-29 15:13:05 +00:00
|
|
|
|
|
|
|
|
%install
|
2025-02-10 13:46:13 +00:00
|
|
|
%pyproject_install
|
2018-10-29 15:13:05 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
2019-03-07 14:26:38 +00:00
|
|
|
%check
|
|
|
|
|
%pytest
|
|
|
|
|
|
2018-10-29 15:13:05 +00:00
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE
|
2021-01-03 08:28:22 +00:00
|
|
|
%{python_sitelib}/dialite
|
2025-02-10 13:46:13 +00:00
|
|
|
%{python_sitelib}/dialite-%{version}.dist-info
|
2018-10-29 15:13:05 +00:00
|
|
|
|
|
|
|
|
%changelog
|