Hello community, here is the log from the commit of package python-blinker for openSUSE:Factory checked in at 2017-05-10 20:50:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-blinker (Old) and /work/SRC/openSUSE:Factory/.python-blinker.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-blinker" Wed May 10 20:50:34 2017 rev:13 rq:493371 version:1.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-blinker/python-blinker.changes 2016-09-24 15:29:09.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-blinker.new/python-blinker.changes 2017-05-10 20:50:35.754183786 +0200 @@ -1,0 +2,9 @@ +Sun May 7 17:47:40 UTC 2017 - benoit.mo...@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 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-blinker.spec ++++++ --- /var/tmp/diff_new_pack.qWXOkA/_old 2017-05-10 20:50:36.638059063 +0200 +++ /var/tmp/diff_new_pack.qWXOkA/_new 2017-05-10 20:50:36.638059063 +0200 @@ -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 @@ 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 @@ 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 %{python_files} +%defattr(-,root,root,-) +%doc AUTHORS CHANGES LICENSE README.md +%{python_sitelib}/blinker-%{version}-py%{python_version}.egg-info +%{python_sitelib}/blinker -%files -f INSTALLED_FILES +%files -n python-blinker-doc %defattr(-,root,root,-) -%doc AUTHORS CHANGES LICENSE README.md docs/html +%doc docs/html %changelog