10139N/A#
10139N/A# spec file for package Pyrex
10139N/A#
10139N/A# includes module(s): Pyrex
10139N/A#
18636N/A# Copyright 2010 Sun Microsystems, Inc.
10139N/A# This file and all modifications and additions to the pristine
10139N/A# package are under the same license as the package itself.
10139N/A#
17185N/A%define owner laca
10139N/A#
10139N/A
19806N/A%{!?pythonver:%define pythonver 2.6}
10139N/A
17176N/A%define OSR 3963:0.9.3.1
17176N/A
10139N/AName: Pyrex
10139N/ALicense: Free
10139N/AGroup: Development/Languages/Python
10164N/A# Unbumped to 0.9.4.1 because 0.9.5.1a breaks at-spi part of
10164N/A# SUNWgnome-python-libs.
18636N/A%define tarball_version 0.9.9
18636N/AVersion: 0.9.9
10139N/ARelease: 1
10139N/ADistribution: Java Desktop System
18615N/AVendor: Other
10139N/ASummary: Pyrex, a language for writing Python extension modules
18221N/ASource: http://www.cosc.canterbury.ac.nz/greg.ewing/python/%{name}/%{name}-%{tarball_version}.tar.gz
10139N/AURL: http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/ADocdir: %{_defaultdocdir}/doc
10139N/AAutoreqprov: off
10139N/APrereq: /sbin/ldconfig
10139N/ARequires: python >= %{pythonver}
10139N/ABuildRequires: python >= %{pythonver}
10139N/A
10139N/A%description
10139N/APyrex lets you write code that mixes Python and C data types any way
10139N/Ayou want, and compiles it into a C extension for Python.
10139N/A
10139N/A%prep
10159N/A%setup -q -n Pyrex-%{tarball_version}
10139N/A
10139N/A%build
10139N/A
10139N/A%install
15395N/Apython%{pythonver} setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT
10139N/A
10139N/A# move to vendor-packages
10139N/Amv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages \
10139N/A $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages
10139N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A%files
10139N/A%defattr(-, root, root)
10139N/A%{_bindir}
10139N/A%{_libdir}/python%{pythonver}/vendor-packages
10139N/A
10139N/A%changelog
18636N/A* Tue Apr 20 2010 - brian.cameron@sun.com
18636N/A- Bump to 0.9.9.
18221N/A* Thu Jan 28 2010 - brian.cameron@sun.com
18221N/A- Bump to 0.9.8.5.
17037N/A* Sat Aug 15 2009 - christian.kelly@sun.com
17037N/A- Bump to 0.9.8.2.
15395N/A* Mon Nov 24 2008 - laca@sun.com
15395N/A- use %{pythonver} macro to select which version of Python to build with
15361N/A* Mon Nov 17 2007 - jedy.wang@sun.com
15361N/A- Fix installation directory bug.
10159N/A* Fri Mar 2 2007 - laca@sun.com
10159N/A- bump to 0.9.5.1a
10139N/A* Sat Jul 22 2006 - damien.carbery@sun.com
10139N/A- Bump to 0.9.4.1.
10139N/A* Thu Oct 27 2005 - laca@sun.com
10139N/A- move from site-packages to vendor-packages
10139N/A* Mon Oct 24 2005 - damien.carbery@sun.com
10139N/A- Include .pyc files. A Google search indicates that most people include them.
10139N/A* Thu Oct 20 2005 - damien.carbery@sun.com
10139N/A- Delete .pyc files so they are not included in the package.
10139N/A* Wed Oct 19 2005 - damien.carbery@sun.com
10139N/A- Correct install location.
10139N/A- Initial version.