2011-09-06 13:53:06 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-zope.interface
|
|
|
|
|
#
|
2013-01-15 13:49:26 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-09-06 13:53:06 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
2011-09-23 10:29:28 +00:00
|
|
|
|
2011-09-06 13:53:06 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2012-11-20 09:16:09 +00:00
|
|
|
|
2011-09-06 13:53:06 +00:00
|
|
|
Name: python-zope.interface
|
2013-07-29 13:37:45 +00:00
|
|
|
Version: 4.0.5
|
2011-09-06 13:53:06 +00:00
|
|
|
Release: 0
|
|
|
|
|
Url: http://pypi.python.org/pypi/zope.interface
|
|
|
|
|
Summary: Interfaces for Python
|
2012-02-01 15:27:11 +00:00
|
|
|
License: ZPL-2.1
|
2011-09-06 13:53:06 +00:00
|
|
|
Group: Development/Languages/Python
|
2013-08-01 07:16:29 +00:00
|
|
|
Source: https://pypi.python.org/packages/source/z/zope.interface/zope.interface-%{version}.zip
|
2011-09-06 13:53:06 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-06-17 12:55:00 +00:00
|
|
|
BuildRequires: fdupes
|
2011-09-06 13:53:06 +00:00
|
|
|
BuildRequires: python-devel
|
2012-11-20 09:16:09 +00:00
|
|
|
BuildRequires: python-setuptools
|
2013-08-01 11:14:54 +00:00
|
|
|
BuildRequires: unzip
|
2013-07-29 13:37:45 +00:00
|
|
|
# Documentation requirements:
|
|
|
|
|
BuildRequires: python-Sphinx
|
|
|
|
|
BuildRequires: python-repoze.sphinx.autointerface
|
|
|
|
|
# Testing requirements:
|
|
|
|
|
BuildRequires: python-coverage
|
|
|
|
|
BuildRequires: python-nose
|
|
|
|
|
BuildRequires: python-zope.event
|
2011-09-06 13:53:06 +00:00
|
|
|
Provides: python-zopeinterface = %{version}
|
|
|
|
|
Obsoletes: python-zopeinterface < %{version}
|
2011-09-06 15:17:39 +00:00
|
|
|
Provides: python-zope-interface = %{version}
|
|
|
|
|
Obsoletes: python-zope-interface < %{version}
|
2013-07-29 13:37:45 +00:00
|
|
|
|
2012-02-01 15:27:11 +00:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
2012-11-20 09:16:09 +00:00
|
|
|
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
2012-02-01 15:27:11 +00:00
|
|
|
%endif
|
2011-09-06 13:53:06 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This package is intended to be independently reusable in any Python
|
|
|
|
|
project. It is maintained by the Zope Toolkit project.
|
|
|
|
|
|
|
|
|
|
This package provides an implementation of object interfaces for Python.
|
|
|
|
|
Interfaces are a mechanism for labeling objects as conforming to a given
|
|
|
|
|
API or contract. So, this package can be considered as implementation of
|
|
|
|
|
the Design By Contract methodology support in Python.
|
|
|
|
|
|
2013-07-29 13:37:45 +00:00
|
|
|
%package doc
|
|
|
|
|
Summary: Interfaces for Python
|
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
This package contains documentation files for %{name}.
|
|
|
|
|
|
2011-09-06 13:53:06 +00:00
|
|
|
%prep
|
|
|
|
|
%setup -q -n zope.interface-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
python setup.py build
|
2013-07-29 13:37:45 +00:00
|
|
|
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
2011-09-06 13:53:06 +00:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2013-01-15 13:49:26 +00:00
|
|
|
# Remove duplicate files
|
|
|
|
|
%fdupes -s %{buildroot}
|
2013-07-29 13:37:45 +00:00
|
|
|
rm %{buildroot}%python_sitearch/zope/interface/_zope_interface_coptimizations.c
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
python setup.py test
|
2011-09-06 13:53:06 +00:00
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
2013-07-29 13:37:45 +00:00
|
|
|
%doc COPYRIGHT.txt CHANGES.rst LICENSE.txt README.rst
|
2012-11-20 09:16:09 +00:00
|
|
|
%{python_sitearch}/*
|
2011-09-06 13:53:06 +00:00
|
|
|
|
2013-07-29 13:37:45 +00:00
|
|
|
%files doc
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc build/sphinx/html/
|
|
|
|
|
|
2011-09-06 13:53:06 +00:00
|
|
|
%changelog
|