From abe5717ab78675db94a6d20ec26034de77953fa8a97eba92f9b14562549c491b Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Mon, 8 May 2017 01:39:03 +0000 Subject: [PATCH] Accepting request 493334 from home:benoit_monin:branches:devel:languages:python - convert the package to singlespec - call fdupes to fix duplicated files - remove unneeded buildrequires: unzip - remove unneded doc file that trigger rpmlint - put the documentation in a separate sub-package OBS-URL: https://build.opensuse.org/request/show/493334 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blinker?expand=0&rev=17 --- python-blinker.changes | 9 ++++++++ python-blinker.spec | 49 +++++++++++++++++++++++++++++++----------- 2 files changed, 45 insertions(+), 13 deletions(-) diff --git a/python-blinker.changes b/python-blinker.changes index a69fba0..6531aa4 100644 --- a/python-blinker.changes +++ b/python-blinker.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Sun May 7 17:47:40 UTC 2017 - benoit.monin@gmx.fr + +- convert the package to singlespec +- call fdupes to fix duplicated files +- remove unneeded buildrequires: unzip +- remove unneded doc file that trigger rpmlint +- put the documentation in a separate sub-package + ------------------------------------------------------------------- Thu Sep 15 13:51:06 UTC 2016 - rjschwei@suse.com diff --git a/python-blinker.spec b/python-blinker.spec index 352a6e1..8e3a022 100644 --- a/python-blinker.spec +++ b/python-blinker.spec @@ -1,7 +1,7 @@ # # spec file for package python-blinker # -# 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,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-blinker Version: 1.4 Release: 0 @@ -25,14 +26,13 @@ License: MIT Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/b/blinker/blinker-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-nose -BuildRequires: unzip -%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 +BuildRequires: %{python_module devel} +BuildRequires: %{python_module nose} +BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildArch: noarch -%endif + +%python_subpackages %description Blinker provides a fast dispatching system that allows any number of @@ -41,20 +41,43 @@ interested parties to subscribe to events, or "signals". Signal receivers can subscribe to specific senders or receive signals sent by any sender. +%package -n python-blinker-doc +Summary: Documentation for %{name} +Group: Development/Languages/Python +Provides: %{python_module blinker-doc = %{version}} + +%description -n python-blinker-doc +Blinker provides a fast dispatching system that allows any number of +interested parties to subscribe to events, or "signals". + +Signal receivers can subscribe to specific senders or receive signals +sent by any sender. + +This sub-package contains the html documentation. + %prep %setup -q -n blinker-%{version} +# remove unneded doc file that trigger rpmlint +rm docs/html/objects.inv %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES +%python_install +%fdupes %{buildroot}%{_prefix} %check -nosetests +%python_exec %{_bindir}/nosetests -%files -f INSTALLED_FILES +%files %{python_files} %defattr(-,root,root,-) -%doc AUTHORS CHANGES LICENSE README.md docs/html +%doc AUTHORS CHANGES LICENSE README.md +%{python_sitelib}/blinker-%{version}-py%{python_version}.egg-info +%{python_sitelib}/blinker + +%files -n python-blinker-doc +%defattr(-,root,root,-) +%doc docs/html %changelog