|
|
3c0f2bf |
%if 0%{?fedora} > 12
|
|
|
3c0f2bf |
%global with_python3 1
|
|
|
3c0f2bf |
%else
|
|
|
3c0f2bf |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
|
|
|
493dbe7 |
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
3c0f2bf |
%endif
|
|
|
3c0f2bf |
|
|
|
3c0f2bf |
%global srcname distribute
|
|
|
0229f27 |
|
|
|
9895f36 |
%define run_check 0%{!?_without_check:1}
|
|
|
9895f36 |
##%define run_check 0%{!?_with_check:0}
|
|
|
0229f27 |
|
|
|
0229f27 |
Name: Cython
|
|
|
2f5d28e |
Version: 0.21.1
|
|
|
e8e734a |
##Release: 4.b3%{?dist}
|
|
|
2f5d28e |
Release: 1%{?dist}
|
|
|
0229f27 |
Summary: A language for writing Python extension modules
|
|
|
0229f27 |
|
|
|
f18e9e7 |
%define upstreamversion %{version}
|
|
|
9cc84f2 |
##%%define upstreamversion %{version}b3
|
|
|
8f60599 |
|
|
|
0229f27 |
Group: Development/Tools
|
|
|
0229f27 |
License: Python
|
|
|
0229f27 |
URL: http://www.cython.org
|
|
Orion Poplawski |
1476cd1 |
Source: http://www.cython.org/release/Cython-%{upstreamversion}.tar.gz
|
|
|
0229f27 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
0229f27 |
|
|
|
0229f27 |
BuildRequires: python-devel python-setuptools
|
|
|
3c0f2bf |
%if 0%{?with_python3}
|
|
|
3c0f2bf |
BuildRequires: python3-devel
|
|
|
3c0f2bf |
%endif # if with_python3
|
|
|
3c0f2bf |
|
|
|
e8e734a |
%if 0%{run_check}
|
|
|
51702e0 |
BuildRequires: numpy libtool
|
|
|
e8e734a |
%endif
|
|
|
0229f27 |
Requires: python
|
|
|
0229f27 |
|
|
|
0229f27 |
%description
|
|
|
0229f27 |
This is a development version of Pyrex, a language
|
|
|
0229f27 |
for writing Python extension modules.
|
|
|
0229f27 |
|
|
|
0229f27 |
For more info, see:
|
|
|
0229f27 |
|
|
|
0229f27 |
Doc/About.html for a description of the language
|
|
|
0229f27 |
INSTALL.txt for installation instructions
|
|
|
0229f27 |
USAGE.txt for usage instructions
|
|
|
0229f27 |
Demos for usage examples
|
|
|
0229f27 |
|
|
|
3c0f2bf |
%if 0%{?with_python3}
|
|
|
3c0f2bf |
%package -n python3-Cython
|
|
|
3c0f2bf |
Summary: A language for writing Python extension modules
|
|
|
3c0f2bf |
Group: Development/Tools
|
|
|
3c0f2bf |
|
|
|
3c0f2bf |
%description -n python3-Cython
|
|
|
3c0f2bf |
This is a development version of Pyrex, a language
|
|
|
3c0f2bf |
for writing Python extension modules.
|
|
|
3c0f2bf |
|
|
|
3c0f2bf |
For more info, see:
|
|
|
3c0f2bf |
|
|
|
3c0f2bf |
Doc/About.html for a description of the language
|
|
|
3c0f2bf |
INSTALL.txt for installation instructions
|
|
|
3c0f2bf |
USAGE.txt for usage instructions
|
|
|
3c0f2bf |
Demos for usage examples
|
|
|
3c0f2bf |
%endif # with_python3
|
|
|
0229f27 |
|
|
|
0229f27 |
%prep
|
|
|
8f60599 |
%setup -q -n %{name}-%{upstreamversion}
|
|
|
0229f27 |
|
|
|
3c0f2bf |
%if 0%{?with_python3}
|
|
|
3c0f2bf |
rm -rf %{py3dir}
|
|
|
3c0f2bf |
cp -a . %{py3dir}
|
|
|
3c0f2bf |
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
|
|
3c0f2bf |
%endif # with_python3
|
|
|
3c0f2bf |
|
|
|
3c0f2bf |
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|'
|
|
|
0229f27 |
|
|
|
0229f27 |
%build
|
|
|
3c0f2bf |
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
|
|
3c0f2bf |
|
|
|
3c0f2bf |
%if 0%{?with_python3}
|
|
|
3c0f2bf |
pushd %{py3dir}
|
|
|
3c0f2bf |
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
|
|
|
3c0f2bf |
popd
|
|
|
3c0f2bf |
%endif # with_python3
|
|
|
0229f27 |
|
|
|
0229f27 |
|
|
|
0229f27 |
%install
|
|
|
0229f27 |
rm -rf $RPM_BUILD_ROOT
|
|
|
3c0f2bf |
# Must do the python3 install first because the scripts in /usr/bin are
|
|
|
3c0f2bf |
# overwritten with every setup.py install (and we want the python2 version
|
|
|
3c0f2bf |
# to be the default for now).
|
|
|
3c0f2bf |
%if 0%{?with_python3}
|
|
|
3c0f2bf |
pushd %{py3dir}
|
|
|
3c0f2bf |
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
|
3c0f2bf |
mv $RPM_BUILD_ROOT/usr/bin/cython $RPM_BUILD_ROOT/usr/bin/cython3
|
|
|
3c0f2bf |
mv $RPM_BUILD_ROOT/usr/bin/cygdb $RPM_BUILD_ROOT/usr/bin/cygdb3
|
|
|
3c0f2bf |
rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests
|
|
|
3c0f2bf |
popd
|
|
|
3c0f2bf |
%endif
|
|
|
3c0f2bf |
|
|
|
0229f27 |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
81d4d83 |
rm -rf %{buildroot}%{python_sitelib}/setuptools/tests
|
|
|
0229f27 |
|
|
|
0229f27 |
|
|
|
0229f27 |
%clean
|
|
|
0229f27 |
rm -rf $RPM_BUILD_ROOT
|
|
|
0229f27 |
|
|
|
e8e734a |
%if 0%{run_check}
|
|
|
bcf7a40 |
%check
|
|
|
9895f36 |
%{__python} runtests.py
|
|
|
3c0f2bf |
|
|
|
3c0f2bf |
%if 0%{?with_python3}
|
|
|
3c0f2bf |
pushd %{py3dir}
|
|
|
3c0f2bf |
%{__python3} setup.py test
|
|
|
3c0f2bf |
popd
|
|
|
3c0f2bf |
%endif # with_python3
|
|
|
e8e734a |
%endif
|
|
|
0229f27 |
|
|
|
0229f27 |
%files
|
|
|
0229f27 |
%{_bindir}/cython
|
|
|
cde3f20 |
%{_bindir}/cygdb
|
|
|
2a6f60f |
%{_bindir}/cythonize
|
|
|
493dbe7 |
%{python_sitearch}/Cython
|
|
|
ede53a6 |
%{python_sitearch}/cython.py*
|
|
|
fdd0486 |
%{python_sitearch}/pyximport
|
|
|
459b7e9 |
%if 0%{?fedora} >= 9 || 0%{?rhel} >= 6
|
|
|
493dbe7 |
%{python_sitearch}/Cython*egg-info
|
|
|
0229f27 |
%endif
|
|
|
3c0f2bf |
%if 0%{?with_python3}
|
|
|
3c0f2bf |
%files -n python3-Cython
|
|
|
3c0f2bf |
%doc *.txt Demos Doc Tools
|
|
|
3c0f2bf |
%{python3_sitearch}/*
|
|
|
3c0f2bf |
%{_bindir}/cython3
|
|
|
3c0f2bf |
%{_bindir}/cygdb3
|
|
|
3c0f2bf |
%if 0%{?fedora} >= 9 || 0%{?rhel} >= 6
|
|
|
3c0f2bf |
%{python3_sitearch}/Cython*egg-info
|
|
|
3c0f2bf |
%endif
|
|
|
3c0f2bf |
%endif # with_python3
|
|
|
0229f27 |
%doc *.txt Demos Doc Tools
|
|
|
0229f27 |
|
|
|
0229f27 |
|
|
|
0229f27 |
%changelog
|
|
|
2f5d28e |
* Sat Nov 22 2014 nbecker <ndbecker2@gmail.com> - 0.21.1-1
|
|
|
2f5d28e |
- Update to 0.21.1 (br #1164297)
|
|
|
2f5d28e |
|
|
|
2a6f60f |
* Mon Sep 15 2014 nbecker <ndbecker2@gmail.com> - 0.21-5
|
|
|
2a6f60f |
- Add /bin/cythonize
|
|
|
2a6f60f |
|
|
|
690451f |
* Mon Sep 15 2014 nbecker <ndbecker2@gmail.com> - 0.21-1
|
|
|
690451f |
- Update to 0.21
|
|
|
690451f |
|
|
|
7fb7a35 |
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20.1-5
|
|
|
7fb7a35 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
7fb7a35 |
|
|
|
fa7451d |
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20.1-4
|
|
|
fa7451d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
fa7451d |
|
|
Thomas Spura |
3f0347a |
* Wed May 28 2014 Thomas Spura <tomspur@fedoraproject.org> - 0.20.1-3
|
|
Thomas Spura |
3f0347a |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
Thomas Spura |
3f0347a |
|
|
Orion Poplawski |
f1b1cdd |
* Fri May 9 2014 Orion Poplawski <orion@cora.nwra.com> - 0.20.1-2
|
|
Orion Poplawski |
f1b1cdd |
- Rebuild for Python 3.4
|
|
Orion Poplawski |
f1b1cdd |
|
|
Orion Poplawski |
1476cd1 |
* Fri May 9 2014 Orion Poplawski <orion@cora.nwra.com> - 0.20.1-1
|
|
Orion Poplawski |
1476cd1 |
- Update to 0.20.1
|
|
Orion Poplawski |
1476cd1 |
|
|
|
2c33707 |
* Mon Jan 20 2014 nbecker <ndbecker2@gmail.com> - 0.20-1
|
|
|
2c33707 |
- Update to 0.20
|
|
|
2c33707 |
|
|
|
81d4d83 |
* Thu Oct 17 2013 nbecker <ndbecker2@gmail.com> - 0.19.2-2
|
|
|
81d4d83 |
- Fix BR 1019498
|
|
|
81d4d83 |
|
|
|
cabc316 |
* Sun Oct 13 2013 nbecker <ndbecker2@gmail.com> - 0.19-2
|
|
|
cabc316 |
- Update to 0.19.2
|
|
|
cabc316 |
|
|
|
fe98a8b |
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19-2
|
|
|
fe98a8b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
fe98a8b |
|
|
|
29f7e83 |
* Fri Apr 19 2013 nbecker <ndbecker2@gmail.com> - 0.19-1
|
|
|
29f7e83 |
- Update to 0.19
|
|
|
29f7e83 |
|
|
|
cb11060 |
* Tue Jan 29 2013 Neal Becker <ndbecker2@gmail.com> - 0.18-1
|
|
|
cb11060 |
- update to 0.18
|
|
|
cb11060 |
|
|
|
9895f36 |
* Sat Dec 15 2012 Neal Becker <ndbecker2@gmail.com> - 0.17.3-1
|
|
|
9895f36 |
- Update to 0.17.3
|
|
|
9895f36 |
|
|
|
59ac8d1 |
* Wed Nov 21 2012 Neal Becker <ndbecker2@gmail.com> - 0.17.2-1
|
|
|
59ac8d1 |
- update to 0.17.2
|
|
|
59ac8d1 |
|
|
|
8066215 |
* Wed Sep 26 2012 Neal Becker <ndbecker2@gmail.com> - 0.17.1-1
|
|
|
8066215 |
- Update to 0.17.1
|
|
|
8066215 |
|
|
|
e8e734a |
* Mon Sep 3 2012 Neal Becker <ndbecker2@gmail.com> - 0.17-1
|
|
|
e8e734a |
- Update to 0.17
|
|
|
e8e734a |
|
|
|
bcf7a40 |
* Tue Aug 28 2012 Neal Becker <ndbecker2@gmail.com> - 0.17-3.b3
|
|
|
bcf7a40 |
- Turn on check (temporarily)
|
|
|
7a71a74 |
- Add br numpy from check
|
|
|
bcf7a40 |
|
|
|
9916244 |
* Tue Aug 28 2012 Neal Becker <ndbecker2@gmail.com> - 0.17-1.b3
|
|
|
9916244 |
- Test 0.17b3
|
|
|
9916244 |
|
|
|
459b7e9 |
* Fri Aug 24 2012 David Malcolm <dmalcolm@redhat.com> - 0.16-3
|
|
|
459b7e9 |
- generalize egg-info logic to support RHEL (rhbz#851528)
|
|
|
459b7e9 |
|
|
|
048fe03 |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-2
|
|
|
048fe03 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
048fe03 |
|
|
|
d274acd |
* Fri Apr 27 2012 Neal Becker <ndbecker2@gmail.com> - 0.16-1
|
|
|
d274acd |
- Update to 0.16
|
|
|
d274acd |
|
|
|
b8453c5 |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15.1-2
|
|
|
b8453c5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
b8453c5 |
|
|
|
162b912 |
* Tue Sep 20 2011 Neal Becker <ndbecker2@gmail.com> - 0.15.1-1
|
|
|
162b912 |
- Update to 0.15.1
|
|
|
162b912 |
|
|
|
1e3c032 |
* Sat Aug 6 2011 Neal Becker <ndbecker2@gmail.com> - 0.15-1
|
|
|
1e3c032 |
- Update to 0.15
|
|
|
1e3c032 |
|
|
|
c1179af |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.1-2
|
|
|
c1179af |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
c1179af |
|
|
|
4f6f005 |
* Sat Feb 5 2011 Neal Becker <ndbecker2@gmail.com> - 0.14.1-1
|
|
|
4f6f005 |
- Update to 0.14.1
|
|
|
4f6f005 |
|
|
|
cde3f20 |
* Wed Dec 15 2010 Neal Becker <ndbecker2@gmail.com> - 0.14-2
|
|
|
cde3f20 |
- Add cygdb
|
|
|
cde3f20 |
|
|
|
21a64ed |
* Wed Dec 15 2010 Neal Becker <ndbecker2@gmail.com> - 0.14-1
|
|
|
21a64ed |
- Update to 0.14
|
|
|
21a64ed |
|
|
|
793e85d |
* Wed Aug 25 2010 Neal Becker <ndbecker2@gmail.com> - 0.13-1
|
|
|
793e85d |
- Update to 0.13
|
|
|
793e85d |
|
|
|
5209034 |
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.12.1-5
|
|
|
5209034 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
5209034 |
|
|
|
ca3caf0 |
* Fri Feb 5 2010 Neal Becker <ndbecker2@gmail.com> - 0.12.1-4
|
|
|
ca3caf0 |
- Disable check for now as it fails on PPC
|
|
|
ca3caf0 |
|
|
|
9348cc8 |
* Tue Feb 2 2010 Neal Becker <ndbecker2@gmail.com> - 0.12.1-2
|
|
|
9348cc8 |
- typo
|
|
|
8df2139 |
- stupid rpm comments
|
|
|
9348cc8 |
|
|
|
b1680f2 |
* Mon Nov 23 2009 Neal Becker <ndbecker2@gmail.com> - 0.12-1.rc1
|
|
|
b1680f2 |
- Make that 0.12
|
|
|
b1680f2 |
|
|
|
49d58ec |
* Mon Nov 23 2009 Neal Becker <ndbecker2@gmail.com> - 0.12.1-1.rc1
|
|
|
49d58ec |
- Update to 0.12.1
|
|
|
49d58ec |
|
|
|
50d3fe4 |
* Sun Sep 27 2009 Neal Becker <ndbecker2@gmail.com> - 0.11.3-1.rc1
|
|
|
50d3fe4 |
- Update to 0.11.3rc1
|
|
|
0870720 |
- Update to 0.11.3
|
|
|
50d3fe4 |
|
|
|
6f79160 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.2-2
|
|
|
6f79160 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
6f79160 |
|
|
|
9277ebb |
* Wed May 20 2009 Neal Becker <ndbecker2@gmail.com> - 0.11.2-1
|
|
|
9277ebb |
- Update to 0.11.2
|
|
|
9277ebb |
|
|
|
d1a9987 |
* Thu Apr 16 2009 Neal Becker <ndbecker2@gmail.com> - 0.11.1-1
|
|
|
d1a9987 |
- Update to 0.11.1
|
|
|
d1a9987 |
|
|
|
ede53a6 |
* Sat Mar 14 2009 Neal Becker <ndbecker2@gmail.com> - 0.11-2
|
|
|
ede53a6 |
- Missed cython.py*
|
|
|
ede53a6 |
|
|
|
1415f19 |
* Sat Mar 14 2009 Neal Becker <ndbecker2@gmail.com> - 0.11-1
|
|
|
1415f19 |
- Update to 0.11
|
|
|
1415f19 |
- Exclude numpy from tests so we don't have to BR it
|
|
|
1415f19 |
|
|
|
41a21e6 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.3-2
|
|
|
41a21e6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
41a21e6 |
|
|
|
7c1fb76 |
* Wed Dec 17 2008 Neal Becker <ndbecker2@gmail.com> - 0.10.3-1
|
|
|
7c1fb76 |
- Update to 0.10.3
|
|
|
7c1fb76 |
|
|
|
6498335 |
* Thu Dec 04 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.10.2-2
|
|
|
6498335 |
- Rebuild for Python 2.6
|
|
|
6498335 |
|
|
|
302e10b |
* Mon Dec 1 2008 Neal Becker <ndbecker2@gmail.com> - 0.10.2-1
|
|
|
302e10b |
- Update to 0.10.2
|
|
|
302e10b |
|
|
|
e448225 |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.10.1-2
|
|
|
e448225 |
- Rebuild for Python 2.6
|
|
|
e448225 |
|
|
|
fdd0486 |
* Wed Nov 19 2008 Neal Becker <ndbecker2@gmail.com> - 0.10.1-1
|
|
|
fdd0486 |
- Update to 0.10.1
|
|
|
fdd0486 |
|
|
|
fdd0486 |
* Sun Nov 9 2008 Neal Becker <ndbecker2@gmail.com> - 0.10-3
|
|
|
fdd0486 |
- Fix typo
|
|
|
fdd0486 |
|
|
|
81b8d69 |
* Sun Nov 9 2008 Neal Becker <ndbecker2@gmail.com> - 0.10-1
|
|
|
81b8d69 |
- Update to 0.10
|
|
|
81b8d69 |
|
|
|
493dbe7 |
* Fri Jun 13 2008 Neal Becker <ndbecker2@gmail.com> - 0.9.8-2
|
|
|
493dbe7 |
- Install into python_sitearch
|
|
|
493dbe7 |
- Add %%check
|
|
|
493dbe7 |
|
|
|
b57878d |
* Fri Jun 13 2008 Neal Becker <ndbecker2@gmail.com> - 0.9.8-1
|
|
|
b57878d |
- Update to 0.9.8
|
|
|
b57878d |
|
|
|
0229f27 |
* Mon Apr 14 2008 José Matos <jamatos[AT]fc.up.pt> - 0.9.6.13.1-3
|
|
|
0229f27 |
- Remove remaining --record.
|
|
|
0229f27 |
- Add more documentation (Doc and Tools).
|
|
|
0229f27 |
- Add correct entry for egg-info (F9+).
|
|
|
0229f27 |
|
|
|
0229f27 |
* Mon Apr 14 2008 Neal Becker <ndbecker2@gmail.com> - 0.9.6.13.1-2
|
|
|
0229f27 |
- Change License to Python
|
|
|
0229f27 |
- Install About.html
|
|
|
0229f27 |
- Fix mixed spaces/tabs
|
|
|
0229f27 |
- Don't use --record
|
|
|
0229f27 |
|
|
|
0229f27 |
* Tue Apr 8 2008 Neal Becker <ndbecker2@gmail.com> - 0.9.6.13.1-1
|
|
|
0229f27 |
- Update to 0.9.6.13.1
|
|
|
0229f27 |
|
|
|
0229f27 |
* Mon Apr 7 2008 Neal Becker <ndbecker2@gmail.com> - 0.9.6.13-1
|
|
|
0229f27 |
- Update to 0.9.6.13
|
|
|
0229f27 |
- Add docs
|
|
|
0229f27 |
|
|
|
0229f27 |
* Tue Feb 26 2008 Neal Becker <ndbecker2@gmail.com> - 0.9.6.12-1
|
|
|
0229f27 |
- Initial version
|
|
|
0229f27 |
|