File pyrex.spec of Package pyrex
#
# spec file for package pyrex (Version 0.9.9)
#
# Copyright (c) 2011 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
Name: pyrex
BuildRequires: pkgconfig python-devel
Url: http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
License: Use, redistribute, modify, distribute modified versions
Group: Development/Languages/Python
Version: 0.9.9
Release: 1
AutoReqProv: on
Summary: Compiles code that mixes Python and C data types into a C extension for Python
Source0: Pyrex-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{py_requires}
Patch0: pyrex-no-buildtime.patch
%description
Pyrex is a language specially designed for writing Python extension
modules. It's designed to bridge the gap between the nice, high-level,
easy-to-use world of Python and the messy, low-level world of C.
Authors:
--------
Greg Ewing (greg@cosc.canterbury.ac.nz )
%prep
%setup -n Pyrex-%{version} -q
%patch0 -p1
%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%files -f INSTALLED_FILES
%defattr(-, root, root)
%doc *.txt Doc/*
%doc Demos
%changelog