14
0

Accepting request 510574 from home:alois:branches:devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/510574
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-venusian?expand=0&rev=9
This commit is contained in:
2017-07-16 16:27:37 +00:00
committed by Git OBS Bridge
parent 27978c44e5
commit 2b4e77280d
7 changed files with 184 additions and 42 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-venusian
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2015 LISA GmbH, Bingen, Germany.
#
# All modifications and additions to the file contributed by third parties
@@ -17,29 +17,21 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-venusian
Version: 1.0
Version: 1.1.0
Release: 0
Url: http://pylonsproject.org
Summary: A library for deferring decorator actions
License: SUSE-Repoze
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/v/venusian/venusian-%{version}.tar.gz
Url: https://pylonsproject.org
Source: https://files.pythonhosted.org/packages/source/v/venusian/venusian-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-pylons_sphinx_theme
BuildRequires: python-setuptools
# Documentation requirements:
BuildRequires: python-Sphinx
BuildRequires: python-repoze.sphinx.autointerface
# Test requirements:
BuildRequires: python-coverage
BuildRequires: python-nose
BuildRequires: python-nose-exclude
%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
BuildArch: noarch
%endif
%python_subpackages
%description
Venusian is a library which allows framework authors to defer
@@ -50,35 +42,21 @@ usually taken by the decorator until a separate "scan" phase.
See the "docs" directory of the package or the online documentation at
http://docs.pylonsproject.org/projects/venusian/dev/.
%package doc
Summary: A library for deferring decorator actions
Group: Development/Languages/Python
Requires: %{name} = %{version}
%description doc
This package contains documentation files for %{name}.
%prep
%setup -q -n venusian-%{version}
rm -rf venusian.egg-info
%build
python setup.py build
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
# tests disabled, until http://bugs.python.org/issue7559 is resolved (for python 2.*)
#%%check
#python setup.py test
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc CHANGES.txt LICENSE.txt README.txt
%{python_sitelib}/*
%files doc
%defattr(-,root,root,-)
%doc build/sphinx/html
%doc CHANGES.rst LICENSE.txt README.rst
%{python_sitelib}/venusian
%{python_sitelib}/venusian-%{version}-py%{python_version}.egg-info
%changelog