Pyrex.spec revision 15395
10139N/A#
10139N/A# spec file for package Pyrex
10139N/A#
10139N/A# includes module(s): Pyrex
10139N/A#
10139N/A# Copyright 2008 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#
10139N/A# Owner: laca
10139N/A#
10139N/A
10139N/A%{!?pythonver:%define pythonver 2.4}
10437N/A
10437N/AName: Pyrex
10139N/ALicense: Free
10139N/AGroup: Development/Languages/Python
10139N/A# Unbumped to 0.9.4.1 because 0.9.5.1a breaks at-spi part of
10264N/A# SUNWgnome-python-libs.
10142N/A#%define tarball_version 0.9.5.1a
10139N/A%define tarball_version 0.9.4.1
10139N/AVersion: 0.9.4.1
10139N/ARelease: 1
10139N/ADistribution: Java Desktop System
10139N/AVendor: Sun Microsystems, Inc.
10139N/ASummary: Pyrex, a language for writing Python extension modules
10139N/ASource: http://www.cosc.canterbury.ac.nz/greg.ewing/python/%{name}/oldtar/%{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
10248N/AAutoreqprov: off
10248N/APrereq: /sbin/ldconfig
10248N/ARequires: python >= %{pythonver}
10445N/ABuildRequires: python >= %{pythonver}
10444N/A
10470N/A%description
10470N/APyrex lets you write code that mixes Python and C data types any way
10248N/Ayou want, and compiles it into a C extension for Python.
10139N/A
10139N/A%prep
10139N/A%setup -q -n Pyrex-%{tarball_version}
10139N/A
10139N/A%build
10139N/A
10139N/A%install
10139N/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
10139N/A* Mon Nov 24 2008 - laca@sun.com
10139N/A- use %{pythonver} macro to select which version of Python to build with
10139N/A* Mon Nov 17 2007 - jedy.wang@sun.com
10139N/A- Fix installation directory bug.
10139N/A* Fri Mar 2 2007 - laca@sun.com
10139N/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.
10139N/A