From 013424353bcb9b62ff3f023e1688d8cc6d4a1fd4df88adb9eb5fda70a67efb97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Thu, 21 Dec 2017 23:25:50 +0000 Subject: [PATCH] Accepting request 559195 from home:pluskalm:branches:devel:languages:python add me as maintainer, dependency of scrapy used for internal search OBS-URL: https://build.opensuse.org/request/show/559195 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyDispatcher?expand=0&rev=2 --- python-PyDispatcher.changes | 5 +++++ python-PyDispatcher.spec | 37 ++++++++++++++++++++----------------- 2 files changed, 25 insertions(+), 17 deletions(-) diff --git a/python-PyDispatcher.changes b/python-PyDispatcher.changes index 40af60a..5dc5b11 100644 --- a/python-PyDispatcher.changes +++ b/python-PyDispatcher.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Dec 21 23:04:44 UTC 2017 - mpluskal@suse.com + +- Convert to singlespec + ------------------------------------------------------------------- Thu Jun 2 18:16:32 UTC 2016 - jacobwinski@gmail.com diff --git a/python-PyDispatcher.spec b/python-PyDispatcher.spec index 0e913dd..313e0d8 100644 --- a/python-PyDispatcher.spec +++ b/python-PyDispatcher.spec @@ -1,7 +1,7 @@ # # spec file for package python-PyDispatcher # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,41 +16,44 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-PyDispatcher Version: 2.0.5 Release: 0 -Url: http://pydispatcher.sourceforge.net Summary: Multi-producer-multi-consumer signal dispatching mechanism License: BSD-3-Clause Group: Development/Languages/Python -Source: http://pypi.io/packages/source/p/PyDispatcher/PyDispatcher-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else +Url: http://pydispatcher.sourceforge.net +Source: https://files.pythonhosted.org/packages/source/P/PyDispatcher/PyDispatcher-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildArch: noarch -%endif +%python_subpackages %description -Dispatcher mechanism for creating event models +Dispatcher mechanism for creating event models. -PyDispatcher is an enhanced version of Patrick K. O’Brien’s original dispatcher.py module. It provides the Python programmer with a robust mechanism for event routing within various application contexts. +PyDispatcher is an enhanced version of Patrick K. O’Brien’s original +dispatcher.py module. It provides the Python programmer with a robust +mechanism for event routing within various application contexts. -Included in the package are the robustapply and saferef modules, which provide the ability to selectively apply arguments to callable objects and to reference instance methods using weak-references. +Included in the package are the robustapply and saferef modules, which +provide the ability to selectively apply arguments to callable objects and +to reference instance methods using weak-references. %prep %setup -q -n PyDispatcher-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} -%files -%defattr(-,root,root,-) +%files %{python_files} %doc license.txt %{python_sitelib}/*