forked from pool/python-pypubsub
- Do not mess with debug_package: this is a noarch package without any binaries, so debuginfo has no effect anyway. OBS-URL: https://build.opensuse.org/request/show/934725 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pypubsub?expand=0&rev=4
75 lines
2.3 KiB
RPMSpec
75 lines
2.3 KiB
RPMSpec
#
|
|
# spec file
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%global pypi_name pypubsub
|
|
%global src_name Pypubsub
|
|
%define skip_python2 1
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-%{pypi_name}
|
|
Version: 4.0.3
|
|
Release: 0
|
|
Summary: Python Publish-Subscribe Package
|
|
Group: Development/Python
|
|
License: BSD-2-Clause
|
|
URL: https://github.com/schollii/pypubsub
|
|
Source: https://github.com/schollii/%{pypi_name}/archive/refs/tags/v%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
%description
|
|
PyPubSub provides a publish - subscribe API that facilitates the development of
|
|
event-based / message-based applications. PyPubSub supports sending and
|
|
receiving messages between objects of an application. It is centered on the
|
|
notion of a topic; senders publish messages of a given topic, and listeners
|
|
subscribe to messages of a given topic. The package also supports a variety of
|
|
advanced features that facilitate debugging and maintaining pypubsub topics and
|
|
messages in larger applications.
|
|
|
|
%prep
|
|
%setup -q -n %{pypi_name}-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
pushd tests/suite
|
|
%pytest
|
|
popd
|
|
|
|
%files %{python_files}
|
|
%doc README.rst src/pubsub/RELEASE_NOTES.txt
|
|
%license src/pubsub/LICENSE_BSD_Simple.txt
|
|
%dir %{python_sitelib}/%{src_name}-%{version}-py%{python_version}.egg-info
|
|
%{python_sitelib}/pubsub
|
|
%{python_sitelib}/%{src_name}-%{version}*-info
|
|
|
|
%changelog
|