1 | %define python_sitelib %(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(0)') |
---|
2 | %define packagename Pyrex |
---|
3 | Name: python-pyrex |
---|
4 | Version: 0.9.9 |
---|
5 | Release: 2%{?_dist_release} |
---|
6 | BuildArch: noarch |
---|
7 | Summary: A compiler/language for writing Python extension modules. |
---|
8 | Group: Development/Languages |
---|
9 | License: Public Domain |
---|
10 | URL: http://www.cosc.canterbury.ac.nz/~greg/python/%{packagename}/ |
---|
11 | Source0: http://www.cosc.canterbury.ac.nz/~greg/python/%{packagename}/%{packagename}-%{version}.tar.gz |
---|
12 | |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
14 | BuildRequires: python-devel |
---|
15 | BuildRequires: nkf |
---|
16 | BuildRequires: findutils |
---|
17 | Requires: python-devel |
---|
18 | |
---|
19 | |
---|
20 | %description |
---|
21 | Pyrex is Python with C types. It is specially designed to allow you to |
---|
22 | write extension modules for Python that have the speed of C and the |
---|
23 | simplicity and readability of Python. You write your code in a Python-like |
---|
24 | language with C-typed variables, then use the pyrexc compiler to transform |
---|
25 | it into a C representation. This is useful for speeding up critical sections |
---|
26 | of your Python code or wrapping an external library. |
---|
27 | |
---|
28 | Please see the documentation for how to get the best performance from your |
---|
29 | code. |
---|
30 | |
---|
31 | %prep |
---|
32 | %setup -q -n %{packagename}-%{version} |
---|
33 | |
---|
34 | %build |
---|
35 | python setup.py build |
---|
36 | # Remove some Macintosh-isms |
---|
37 | find . -name '.DS_Store' -exec rm -f \{\} \; |
---|
38 | for i in CHANGES.txt ToDo.txt Demos/Makefile.nodistutils Tools/* |
---|
39 | do |
---|
40 | nkf -Lu --in-place $i |
---|
41 | done |
---|
42 | find Doc -type f | xargs nkf -Lu --in-place |
---|
43 | |
---|
44 | %install |
---|
45 | rm -rf $RPM_BUILD_ROOT |
---|
46 | python setup.py install --skip-build --root $RPM_BUILD_ROOT |
---|
47 | |
---|
48 | %clean |
---|
49 | rm -rf $RPM_BUILD_ROOT |
---|
50 | |
---|
51 | %files |
---|
52 | %defattr(-,root,root,-) |
---|
53 | %doc USAGE.txt README.txt CHANGES.txt ToDo.txt Demos Doc Tools |
---|
54 | %{python_sitelib}/Pyrex* |
---|
55 | %exclude %{python_sitelib}/Pyrex/Mac |
---|
56 | %{_bindir}/pyrexc |
---|
57 | |
---|
58 | %changelog |
---|
59 | * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.9-2 |
---|
60 | - rebuild with python-2.7.2 |
---|
61 | |
---|
62 | * Sat Dec 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.9-1 |
---|
63 | - new upstream release |
---|
64 | |
---|
65 | * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.9.8.4-2 |
---|
66 | - rebuild with python-2.6 |
---|
67 | |
---|
68 | * Mon Aug 04 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.8.4 |
---|
69 | - new upstream release |
---|
70 | |
---|
71 | * Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> 0.9.3-1vl5 |
---|
72 | - rebuilt with python-2.5.2 |
---|
73 | - added pythonlib macro |
---|
74 | - applied new versioning policy |
---|
75 | |
---|
76 | * Sun Jul 10 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.3-0vl1 |
---|
77 | - initial build for Vine Linux |
---|
78 | |
---|
79 | * Tue Mar 22 2005 Jeremy Katz <katzj@redhat.com> - 0.9.3-0 |
---|
80 | - update to 0.9.3 |
---|
81 | - add patch to fix generated code to build with gcc4 |
---|
82 | - require python-abi and python-devel instead of conflicting with |
---|
83 | newer python-devel |
---|
84 | |
---|
85 | * Mon Nov 8 2004 Jeremy Katz <katzj@redhat.com> - 0:0.9.2.1-3 |
---|
86 | - rebuild against python 2.4 |
---|
87 | |
---|
88 | * Wed Aug 18 2004 John (J5) Palmieri <johnp@redhat.com> - 0:0.9.2.1-2 |
---|
89 | - Added Steve Grubb's spec file patch (RH Bug #130200) |
---|
90 | |
---|
91 | * Fri Jun 25 2004 John (J5) Palmieri <johnp@redhat.com> - 0:0.9.2.1-1 |
---|
92 | - New upstream version |
---|
93 | - Pyrex-0.9-split-base-types.patch synced for new version |
---|
94 | |
---|
95 | * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> |
---|
96 | - rebuilt |
---|
97 | |
---|
98 | * Fri Jun 03 2004 John (J5) Palmieri <johnp@redhat.com> - 0:0.9-5 |
---|
99 | - Built to rawhide |
---|
100 | |
---|
101 | * Wed May 19 2004 Florian La Roche <Florian.LaRoche@redhat.de> |
---|
102 | - use rpm macros to determine lib64 usage |
---|
103 | |
---|
104 | * Fri Apr 23 2004 John (J5) Palmieri <johnp@redhat.com> - 0:0.9-3 |
---|
105 | - Added Pyrex-0.9-split-base-types.patch which fixes |
---|
106 | long unsigned int bug showing up in dbus python binding |
---|
107 | builds for the x86_64 arch |
---|
108 | - Added regex hack to spec to work around a bug in python's |
---|
109 | distutils which would install files into /usr/lib instead of |
---|
110 | /usr/lib64 on 64 bit archs |
---|
111 | |
---|
112 | * Mon Apr 19 2004 John (J5) Palmieri <johnp@redhat.com> - 0:0.9-2 |
---|
113 | - Was informed that the epoch change was not needed so the epoch |
---|
114 | was reverted back to 0 |
---|
115 | |
---|
116 | * Mon Apr 19 2004 John (J5) Palmieri <johnp@redhat.com> - 1:0.9-1 |
---|
117 | - Upped the epoch so as to avoid clashes with the Fedora extra package |
---|
118 | |
---|
119 | * Mon Apr 19 2004 John (J5) Palmieri <johnp@redhat.com> - 0:0.9-1 |
---|
120 | - Transfered to Red Hat Fedora's main tree |
---|
121 | - Removed need for LONG_LONG patch |
---|
122 | |
---|
123 | * Mon Feb 02 2004 Toshio Kuratomi <toshio@tiki-lounge.com> - 0:0.9-0.fdr.4 |
---|
124 | - Removed the site-packages directory from the directories owned by the |
---|
125 | package |
---|
126 | |
---|
127 | * Mon Feb 02 2004 Toshio Kuratomi <toshio@tiki-lounge.com> - 0:0.9-0.fdr.3 |
---|
128 | - My mistake: rpm automatically removes %%ghost files, no need to script |
---|
129 | it manually. |
---|
130 | - python distutils --record=FILE option doesn't record directories so include |
---|
131 | the site-packages/[directories] manually |
---|
132 | |
---|
133 | * Thu Jan 15 2003 Toshio Kuratomi <toshio@tiki-lounge.com> - 0:0.9-0.fdr.2 |
---|
134 | - Merge changes from Michel Alexandre Salim <salimma[AT]users.sf.net> |
---|
135 | + Require build system's python version because directories are named |
---|
136 | pythonX.Y |
---|
137 | + Create *.pyo files and %ghost them (Privleged user with python optimize |
---|
138 | turned on may generate them, but they aren't needed for operation. |
---|
139 | + Do not include the Mac Pyrex compiler stuff |
---|
140 | + Change license to Public Domain |
---|
141 | - Script to remove any %%ghost files on package removal |
---|
142 | - Patch around an incompatible change between python 2.2 and python 2.3's |
---|
143 | definition of LONG_LONG being renamed to PY_LONG_LONG |
---|
144 | |
---|
145 | * Fri Jan 09 2003 Toshio Kuratomi <toshio@tiki-lounge.com> - 0:0.9-0.fdr.1 |
---|
146 | - Initial RPM release. |
---|