-
-
Notifications
You must be signed in to change notification settings - Fork 143
/
Cython.spec
343 lines (247 loc) · 10.6 KB
/
Cython.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
%{!?__python2: %global __python2 python2}
%{!?__python3: %define __python3 python3}
%{!?python_sitearch: %global python_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%{!?py3dir: %global py3dir %{_builddir}/python3-%{name}-%{version}-%{release}}
%define with_python3 0%{?fedora}
Name: python2-Cython
Version: 0.28.3
Release: 3%{?dist}
Summary: A language for writing Python extension modules
Group: Development/Tools
License: Python
URL: http://www.cython.org
Source: https://github.com/cython/cython/archive/%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: python
Conflicts: Cython < %{version}-%{release}
Obsoletes: Cython < %{version}-%{release}
Provides: Cython = %{version}-%{release}
BuildRequires: python-devel python-setuptools
%if %{with_python3}
BuildRequires: python3-devel
%endif
%description
This is a development version of Pyrex, a language
for writing Python extension modules.
%if %{with_python3}
%package -n python3-Cython
Summary: A language for writing Python extension modules
Group: Development/Tools
%description -n python3-Cython
This is a development version of Pyrex, a language
for writing Python extension modules.
%endif
%prep
%setup -q -n cython-%{version}
%if %{with_python3}
rm -rf %{py3dir}
cp -a . %{py3dir}
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
%endif
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|'
%build
CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build
%if %{with_python3}
pushd %{py3dir}
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
popd
%endif
%install
rm -rf %{buildroot}
# Must do the python3 install first because the scripts in /usr/bin are
# overwritten with every setup.py install (and we want the python2 version
# to be the default for now).
%if %{with_python3}
pushd %{py3dir}
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
mv $RPM_BUILD_ROOT/usr/bin/cython $RPM_BUILD_ROOT/usr/bin/cython3
mv $RPM_BUILD_ROOT/usr/bin/cygdb $RPM_BUILD_ROOT/usr/bin/cygdb3
rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests
popd
%endif
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
rm -rf %{buildroot}%{python_sitelib}/setuptools/tests
%clean
rm -rf %{buildroot}
##%%check
##%%{__python2} runtests.py -x numpy
%files
%defattr(-,root,root,-)
%{_bindir}/cython
%{_bindir}/cythonize
%{_bindir}/cygdb
%{python_sitearch}/*
%doc *.txt Demos Doc Tools
%if %{with_python3}
%files -n python3-Cython
%{python3_sitearch}/*
%{_bindir}/cython3
%{_bindir}/cygdb3
%{python3_sitearch}/Cython*egg-info
%doc *.txt Demos Doc Tools
%endif
%changelog
* Tue Jul 03 2018 Antoine Martin <antoine@devloop.org.uk> - 0.28.3-3
- use python2 explicitly
* Tue Jul 03 2018 Antoine Martin <antoine@devloop.org.uk> - 0.28.3-2
- try harder to prevent rpm db conflicts
* Wed May 30 2018 Antoine Martin <antoine@devloop.org.uk> - 0.28.3-1
- new upstream release
* Mon Mar 19 2018 Antoine Martin <antoine@devloop.org.uk> - 0.28.1-1
- new upstream release
* Wed Mar 14 2018 Antoine Martin <antoine@devloop.org.uk> - 0.28-1
- new upstream release
* Thu Nov 09 2017 Antoine Martin <antoine@devloop.org.uk> - 0.27.3-1
- new upstream release
* Sun Oct 22 2017 Antoine Martin <antoine@devloop.org.uk> - 0.27.2-1
- new upstream release
* Sun Oct 02 2017 Antoine Martin <antoine@devloop.org.uk> - 0.27.1-1
- new upstream release
* Sat Sep 23 2017 Antoine Martin <antoine@devloop.org.uk> - 0.27-1
- new upstream release
* Wed Aug 30 2017 Antoine Martin <antoine@devloop.org.uk> - 0.26.1-1
- new upstream release
* Thu Jul 20 2017 Antoine Martin <antoine@devloop.org.uk> - 0.26-1
- new upstream release
* Wed Jul 19 2017 Antoine Martin <antoine@devloop.org.uk> - 0.26-0rc2
- new release candidate
* Sat Jul 15 2017 Antoine Martin <antoine@devloop.org.uk> - 0.26-0rc0
- release candidate
* Tue Jul 11 2017 Antoine Martin <antoine@devloop.org.uk> - 0.26-0b2p1
- add fallthrough fix
* Tue Jul 11 2017 Antoine Martin <antoine@devloop.org.uk> - 0.26-0b2
- new beta release
* Tue Jul 04 2017 Antoine Martin <antoine@devloop.org.uk> - 0.26-0b0
- new beta release
* Sun Dec 25 2016 Antoine Martin <antoine@devloop.org.uk> - 0.25.2-2
- add provides for python2 package naming
* Fri Dec 09 2016 Antoine Martin <antoine@devloop.org.uk> - 0.25.2-1
- new upstream release
* Fri Nov 04 2016 Antoine Martin <antoine@devloop.org.uk> - 0.25.1-1
- new upstream release
* Wed Oct 26 2016 Antoine Martin <antoine@devloop.org.uk> - 0.25-1
- new upstream release
* Fri Jul 15 2016 Antoine Martin <antoine@devloop.org.uk> - 0.24.1-1
- new upstream release
* Tue Apr 05 2016 Antoine Martin <antoine@devloop.org.uk> - 0.24-1
- new upstream release
* Sat Mar 26 2016 Antoine Martin <antoine@devloop.org.uk> - 0.23.5-1
- new upstream release
* Sun Oct 11 2015 Antoine Martin <antoine@devloop.org.uk> - 0.23.4-1
- new upstream release
* Tue Sep 29 2015 Antoine Martin <antoine@devloop.org.uk> - 0.23.3-1
- new upstream release
* Fri Sep 11 2015 Antoine Martin <antoine@devloop.org.uk> - 0.23.2-1
- new upstream release
* Sun Aug 23 2015 Antoine Martin <antoine@devloop.org.uk> - 0.23.1-2
- build python3 package
* Sun Aug 23 2015 Antoine Martin <antoine@devloop.org.uk> - 0.23.1-1
- new upstream release
* Wed Aug 19 2015 Antoine Martin <antoine@devloop.org.uk> - 0.23-2
- add upstream patch for infinite deepcopy loop
* Sun Aug 09 2015 Antoine Martin <antoine@devloop.org.uk> - 0.23-1
- new upstream release
* Mon Jun 22 2015 Antoine Martin <antoine@devloop.org.uk> - 0.22.1-1
- Crash when returning values on generator termination.
- In some cases, exceptions raised during internal isinstance() checks were not propagated.
- Runtime reported file paths of source files (e.g for profiling and tracing) are now relative to the build root directory instead of the main source file.
- Tracing exception handling code could enter the trace function with an active exception set.
- The internal generator function type was not shared across modules.
- Comparisons of (inferred) ctuples failed to compile.
- Closures inside of cdef functions returning void failed to compile.
- Using const C++ references in intermediate parts of longer expressions could fail to compile.
- C++ exception declarations with mapping functions could fail to compile when pre-declared in .pxd files.
- C++ compilation could fail with an ambiguity error in recent MacOS-X Xcode versions.
- C compilation could fail in pypy3.
- Fixed a memory leak in the compiler when compiling multiple modules.
- When compiling multiple modules, external library dependencies could leak into later compiler runs. Fix by Jeroen Demeyer. This fixes ticket 845.
* Thu Feb 12 2015 Antoine Martin <antoine@devloop.org.uk> - 0.22-1
- new upstream release
* Thu Jan 22 2015 Antoine Martin <antoine@devloop.org.uk> - 0.22.beta0-0
- new beta
* Sun Dec 28 2014 Antoine Martin <antoine@devloop.org.uk> - 0.21.2-1
- new upstream release
* Sun Oct 19 2014 Antoine Martin <antoine@devloop.org.uk> - 0.21.1-1
- Update to 0.21.1
* Thu Sep 11 2014 Antoine Martin <antoine@devloop.org.uk> - 0.21-1
- Update to 0.21
* Thu Jul 31 2014 Antoine Martin <antoine@devloop.org.uk> - 0.20.2-2
- Removed EPEL bits that get in the way, fix (guess) date in changelog
* Tue Jun 17 2014 Matthew Gyurgyik <pyther@pyther.net> - 0.20.2-1
- Updated to 0.20.2
* Fri Jun 13 2014 Matthew Gyurgyik <pyther@pyther.net> - 0.20.1-1
- Updated to 0.20.1
* Tue Apr 03 2012 Steve Traylen <steve.traylen@cern.ch> - 0.14.1-3
- Adapt SPEC file for python3 and python26 on EPEL5.
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Sat Feb 5 2011 Neal Becker <ndbecker2@gmail.com> - 0.14.1-1
- Update to 0.14.1
* Wed Dec 15 2010 Neal Becker <ndbecker2@gmail.com> - 0.14-2
- Add cygdb
* Wed Dec 15 2010 Neal Becker <ndbecker2@gmail.com> - 0.14-1
- Update to 0.14
* Wed Aug 25 2010 Neal Becker <ndbecker2@gmail.com> - 0.13-1
- Update to 0.13
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.12.1-5
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
* Fri Feb 5 2010 Neal Becker <ndbecker2@gmail.com> - 0.12.1-4
- Disable check for now as it fails on PPC
* Tue Feb 2 2010 Neal Becker <ndbecker2@gmail.com> - 0.12.1-2
- typo
- stupid rpm comments
* Mon Nov 23 2009 Neal Becker <ndbecker2@gmail.com> - 0.12-1.rc1
- Make that 0.12
* Mon Nov 23 2009 Neal Becker <ndbecker2@gmail.com> - 0.12.1-1.rc1
- Update to 0.12.1
* Sun Sep 27 2009 Neal Becker <ndbecker2@gmail.com> - 0.11.3-1.rc1
- Update to 0.11.3rc1
- Update to 0.11.3
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed May 20 2009 Neal Becker <ndbecker2@gmail.com> - 0.11.2-1
- Update to 0.11.2
* Thu Apr 16 2009 Neal Becker <ndbecker2@gmail.com> - 0.11.1-1
- Update to 0.11.1
* Sat Mar 14 2009 Neal Becker <ndbecker2@gmail.com> - 0.11-2
- Missed cython.py*
* Sat Mar 14 2009 Neal Becker <ndbecker2@gmail.com> - 0.11-1
- Update to 0.11
- Exclude numpy from tests so we don't have to BR it
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Wed Dec 17 2008 Neal Becker <ndbecker2@gmail.com> - 0.10.3-1
- Update to 0.10.3
* Thu Dec 04 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.10.2-2
- Rebuild for Python 2.6
* Mon Dec 1 2008 Neal Becker <ndbecker2@gmail.com> - 0.10.2-1
- Update to 0.10.2
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.10.1-2
- Rebuild for Python 2.6
* Wed Nov 19 2008 Neal Becker <ndbecker2@gmail.com> - 0.10.1-1
- Update to 0.10.1
* Sun Nov 9 2008 Neal Becker <ndbecker2@gmail.com> - 0.10-3
- Fix typo
* Sun Nov 9 2008 Neal Becker <ndbecker2@gmail.com> - 0.10-1
- Update to 0.10
* Fri Jun 13 2008 Neal Becker <ndbecker2@gmail.com> - 0.9.8-2
- Install into python_sitearch
- Add %%check
* Fri Jun 13 2008 Neal Becker <ndbecker2@gmail.com> - 0.9.8-1
- Update to 0.9.8
* Mon Apr 14 2008 José Matos <jamatos[AT]fc.up.pt> - 0.9.6.13.1-3
- Remove remaining --record.
- Add more documentation (Doc and Tools).
- Add correct entry for egg-info (F9+).
* Mon Apr 14 2008 Neal Becker <ndbecker2@gmail.com> - 0.9.6.13.1-2
- Change License to Python
- Install About.html
- Fix mixed spaces/tabs
- Don't use --record
* Tue Apr 8 2008 Neal Becker <ndbecker2@gmail.com> - 0.9.6.13.1-1
- Update to 0.9.6.13.1
* Mon Apr 7 2008 Neal Becker <ndbecker2@gmail.com> - 0.9.6.13-1
- Update to 0.9.6.13
- Add docs
* Tue Feb 26 2008 Neal Becker <ndbecker2@gmail.com> - 0.9.6.12-1
- Initial version