LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File python-zopeinterface.spec of Package python-zopeinterface (Project home:uibmz:opsi:opsi40-experimental)

#
# spec file for package python-zopeinterface (Version 3.3.0)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, 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 http://bugs.opensuse.org/
#

# norootforbuild

%define _unpackaged_files_terminate_build 0

Name:           python-zopeinterface
BuildRequires:  python-devel
Summary:        Python library for API definitions through interfaces
Version:        3.3.0
Release:        108
%define tarname zope.interface
Source:         %{tarname}-%{version}.tar.bz2
License:        Zope Public License
Group:          Development/Libraries/Python
Url:            http://www.zope.org/Products/ZopeInterface
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Provides:       python-zope.interface
%if 0%{?suse_version}
%{py_requires}
%endif

%description
Interfaces are objects that specify (document) the external behavior of
objects that "provide" them. An interface specifies behavior through:

- informal documentation in a doc string

- attribute definitions

- invariants, which are conditions that must hold for objects that
   provide the interface

This is a separate distribution of the zope.interface package used in
Zope 3.



%prep
%setup -q -n %{tarname}-%{version}

%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
python setup.py build

%install
%if 0%{?suse_version}
python setup.py install --prefix=%{_prefix} --record-rpm=INSTALLED_FILES --root="$RPM_BUILD_ROOT"
%else
python setup.py install --prefix=%{_prefix} --record=INSTALLED_FILES --root="$RPM_BUILD_ROOT"
%endif

%clean
rm -rf "$RPM_BUILD_ROOT"

%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc README.txt

%changelog
* Tue Jun 03 2008 crrodriguez@suse.de
- needs fno-strict-aliasing
* Thu Aug 02 2007 jmatejek@suse.cz
- update to 3.3.0
  * corresponds to new Zope versions
  * adapter-lookup written in C to simplify application debugging
  * various bugfixes
* Thu Oct 19 2006 jmatejek@suse.cz
- minor changes for better 64bit compatibility with PEP353
* Tue Feb 28 2006 jmatejek@suse.cz
- updated to reflect python changes due to #149809
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Apr 14 2005 mcihar@suse.cz
- new package