File python-venusian.spec of Package python-venusian

# spec file for package python-venusian
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 LISA GmbH, Bingen, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           python-venusian
Version:        1.0
Release:        0
Summary:        A library for deferring decorator actions
License:        SUSE-Repoze
Group:          Development/Languages/Python
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()")}
BuildArch:      noarch

Venusian is a library which allows framework authors to defer
decorator actions.  Instead of taking actions when a function (or
class) decorator is executed at import time, you can defer the action
usually taken by the decorator until a separate "scan" phase.

See the "docs" directory of the package or the online documentation at

%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}.

%setup -q -n venusian-%{version}

python build
python build_sphinx && rm build/sphinx/html/.buildinfo

python install --prefix=%{_prefix} --root=%{buildroot}

# tests disabled, until is resolved (for python 2.*)
#python test


%files doc
%doc build/sphinx/html