2011-09-23 14:42:54 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-blinker
|
|
|
|
#
|
2023-04-21 16:52:04 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2011-09-23 14:42:54 +02: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.
|
2012-06-22 15:17:27 +02:00
|
|
|
|
2018-12-04 14:17:06 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-09-23 14:42:54 +02:00
|
|
|
#
|
|
|
|
|
2012-06-22 15:17:27 +02:00
|
|
|
|
2023-04-21 16:52:04 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2011-09-23 14:42:54 +02:00
|
|
|
Name: python-blinker
|
2023-11-16 11:27:59 +01:00
|
|
|
Version: 1.7.0
|
2011-09-23 14:42:54 +02:00
|
|
|
Release: 0
|
2018-12-05 09:29:43 +01:00
|
|
|
Summary: Object-to-object and broadcast signaling in Python
|
2011-09-23 14:42:54 +02:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
2023-05-09 08:27:32 +02:00
|
|
|
URL: https://github.com/pallets-eco/blinker/
|
2018-12-04 18:10:27 +01:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/b/blinker/blinker-%{version}.tar.gz
|
2022-09-14 10:15:43 +02:00
|
|
|
BuildRequires: %{python_module Pallets-Sphinx-Themes}
|
|
|
|
BuildRequires: %{python_module Sphinx}
|
2023-11-16 11:27:59 +01:00
|
|
|
BuildRequires: %{python_module base >= 3.8}
|
|
|
|
BuildRequires: %{python_module flit-core}
|
2023-05-09 08:27:32 +02:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module pytest-asyncio}
|
2020-07-09 08:44:46 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
2023-05-09 08:27:32 +02:00
|
|
|
BuildRequires: %{python_module sphinx-issues}
|
2017-05-08 03:39:03 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2011-09-23 14:42:54 +02:00
|
|
|
BuildArch: noarch
|
2017-05-08 03:39:03 +02:00
|
|
|
%python_subpackages
|
2011-09-23 14:42:54 +02:00
|
|
|
|
|
|
|
%description
|
2018-12-05 09:29:43 +01:00
|
|
|
Blinker provides a dispatching system that allows any number of
|
2011-09-23 14:42:54 +02:00
|
|
|
interested parties to subscribe to events, or "signals".
|
|
|
|
|
|
|
|
Signal receivers can subscribe to specific senders or receive signals
|
|
|
|
sent by any sender.
|
|
|
|
|
2023-04-26 23:31:48 +02:00
|
|
|
%if 0%{?suse_version} > 1500
|
2017-05-08 03:39:03 +02:00
|
|
|
%package -n python-blinker-doc
|
|
|
|
Summary: Documentation for %{name}
|
2018-12-05 09:29:43 +01:00
|
|
|
Group: Documentation/HTML
|
2017-05-08 03:39:03 +02:00
|
|
|
Provides: %{python_module blinker-doc = %{version}}
|
|
|
|
|
|
|
|
%description -n python-blinker-doc
|
2018-12-05 09:29:43 +01:00
|
|
|
Blinker provides a dispatching system that allows any number of
|
2017-05-08 03:39:03 +02:00
|
|
|
interested parties to subscribe to events, or "signals".
|
|
|
|
|
|
|
|
Signal receivers can subscribe to specific senders or receive signals
|
|
|
|
sent by any sender.
|
|
|
|
|
2018-12-05 09:29:43 +01:00
|
|
|
This sub-package contains the HTML documentation.
|
2023-04-26 23:31:48 +02:00
|
|
|
%endif
|
2017-05-08 03:39:03 +02:00
|
|
|
|
2011-09-23 14:42:54 +02:00
|
|
|
%prep
|
2023-05-09 08:27:32 +02:00
|
|
|
%autosetup -p1 -n blinker-%{version}
|
2011-09-23 14:42:54 +02:00
|
|
|
|
|
|
|
%build
|
2023-05-09 08:27:32 +02:00
|
|
|
%pyproject_wheel
|
2011-09-23 14:42:54 +02:00
|
|
|
|
|
|
|
%install
|
2023-05-09 08:27:32 +02:00
|
|
|
%pyproject_install
|
2022-09-14 15:56:16 +02:00
|
|
|
|
|
|
|
%{python_expand pushd docs
|
|
|
|
export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
2023-08-04 13:48:49 +02:00
|
|
|
# Do not call "make html" directly because it'll use python3 by
|
|
|
|
# default and that could produce .pyc files from different python
|
|
|
|
# versions in the package bsc#1213698
|
|
|
|
$python -m sphinx -M html . _build
|
2022-09-14 15:56:16 +02:00
|
|
|
popd
|
|
|
|
|
|
|
|
%fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
}
|
2011-09-23 14:42:54 +02:00
|
|
|
|
|
|
|
%check
|
2020-07-09 08:44:46 +02:00
|
|
|
%pytest
|
2017-05-08 03:39:03 +02:00
|
|
|
|
|
|
|
%files %{python_files}
|
2022-09-14 10:15:43 +02:00
|
|
|
%license LICENSE.rst
|
|
|
|
%doc CHANGES.rst README.rst
|
2023-05-09 08:27:32 +02:00
|
|
|
%{python_sitelib}/blinker-%{version}*-info
|
2017-05-08 03:39:03 +02:00
|
|
|
%{python_sitelib}/blinker
|
2011-09-23 14:42:54 +02:00
|
|
|
|
2023-04-26 23:31:48 +02:00
|
|
|
%if 0%{?suse_version} > 1500
|
2017-05-08 03:39:03 +02:00
|
|
|
%files -n python-blinker-doc
|
2023-04-26 23:31:48 +02:00
|
|
|
%endif
|
2022-09-14 15:56:16 +02:00
|
|
|
%doc docs/_build/html
|
2011-09-23 14:42:54 +02:00
|
|
|
|
|
|
|
%changelog
|