Accepting request 493371 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/493371
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-blinker?expand=0&rev=13
This commit is contained in:
Dominique Leuenberger 2017-05-10 18:50:34 +00:00 committed by Git OBS Bridge
commit 31197a34fc
2 changed files with 45 additions and 13 deletions

View File

@ -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

View File

@ -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