9397
|
1 |
#
|
|
2 |
# spec file for package Pyrex
|
|
3 |
#
|
|
4 |
# includes module(s): Pyrex
|
|
5 |
#
|
17885
|
6 |
# Copyright 2010 Sun Microsystems, Inc.
|
9397
|
7 |
# This file and all modifications and additions to the pristine
|
|
8 |
# package are under the same license as the package itself.
|
|
9 |
#
|
16434
|
10 |
%define owner laca
|
9397
|
11 |
#
|
|
12 |
|
18269
|
13 |
%{!?pythonver:%define pythonver 2.6}
|
9397
|
14 |
|
16425
|
15 |
%define OSR 3963:0.9.3.1
|
|
16 |
|
9397
|
17 |
Name: Pyrex
|
|
18 |
License: Free
|
|
19 |
Group: Development/Languages/Python
|
9422
|
20 |
# Unbumped to 0.9.4.1 because 0.9.5.1a breaks at-spi part of
|
|
21 |
# SUNWgnome-python-libs.
|
17885
|
22 |
%define tarball_version 0.9.9
|
|
23 |
Version: 0.9.9
|
9397
|
24 |
Release: 1
|
|
25 |
Distribution: Java Desktop System
|
17864
|
26 |
Vendor: Other
|
9397
|
27 |
Summary: Pyrex, a language for writing Python extension modules
|
17470
|
28 |
Source: http://www.cosc.canterbury.ac.nz/greg.ewing/python/%{name}/%{name}-%{tarball_version}.tar.gz
|
9397
|
29 |
URL: http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/
|
|
30 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
31 |
Docdir: %{_defaultdocdir}/doc
|
|
32 |
Autoreqprov: off
|
|
33 |
Prereq: /sbin/ldconfig
|
|
34 |
Requires: python >= %{pythonver}
|
|
35 |
BuildRequires: python >= %{pythonver}
|
|
36 |
|
|
37 |
%description
|
|
38 |
Pyrex lets you write code that mixes Python and C data types any way
|
|
39 |
you want, and compiles it into a C extension for Python.
|
|
40 |
|
|
41 |
%prep
|
9417
|
42 |
%setup -q -n Pyrex-%{tarball_version}
|
9397
|
43 |
|
|
44 |
%build
|
|
45 |
|
|
46 |
%install
|
14644
|
47 |
python%{pythonver} setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT
|
9397
|
48 |
|
|
49 |
# move to vendor-packages
|
|
50 |
mv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages \
|
|
51 |
$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages
|
|
52 |
|
|
53 |
%clean
|
|
54 |
rm -rf $RPM_BUILD_ROOT
|
|
55 |
|
|
56 |
%files
|
|
57 |
%defattr(-, root, root)
|
|
58 |
%{_bindir}
|
|
59 |
%{_libdir}/python%{pythonver}/vendor-packages
|
|
60 |
|
|
61 |
%changelog
|
17885
|
62 |
* Tue Apr 20 2010 - [email protected]
|
|
63 |
- Bump to 0.9.9.
|
17470
|
64 |
* Thu Jan 28 2010 - [email protected]
|
|
65 |
- Bump to 0.9.8.5.
|
16286
|
66 |
* Sat Aug 15 2009 - [email protected]
|
|
67 |
- Bump to 0.9.8.2.
|
14644
|
68 |
* Mon Nov 24 2008 - [email protected]
|
|
69 |
- use %{pythonver} macro to select which version of Python to build with
|
14610
|
70 |
* Mon Nov 17 2007 - [email protected]
|
|
71 |
- Fix installation directory bug.
|
9417
|
72 |
* Fri Mar 2 2007 - [email protected]
|
|
73 |
- bump to 0.9.5.1a
|
9397
|
74 |
* Sat Jul 22 2006 - [email protected]
|
|
75 |
- Bump to 0.9.4.1.
|
|
76 |
* Thu Oct 27 2005 - [email protected]
|
|
77 |
- move from site-packages to vendor-packages
|
|
78 |
* Mon Oct 24 2005 - [email protected]
|
|
79 |
- Include .pyc files. A Google search indicates that most people include them.
|
|
80 |
* Thu Oct 20 2005 - [email protected]
|
|
81 |
- Delete .pyc files so they are not included in the package.
|
|
82 |
* Wed Oct 19 2005 - [email protected]
|
|
83 |
- Correct install location.
|
|
84 |
- Initial version.
|