Orion Poplawski 94f8345
%if 0%{?fedora}
3c0f2bf
%global with_python3 1
3c0f2bf
%endif
3c0f2bf
Orion Poplawski 94f8345
%global srcname Cython
0229f27
Orion Poplawski 94f8345
%bcond_without check
0229f27
0229f27
Name:		Cython
Orion Poplawski 94f8345
Version:	0.23.4
e8e734a
##Release:	4.b3%{?dist}
Orion Poplawski 94f8345
Release:	1%{?dist}
0229f27
Summary:	A language for writing Python extension modules
0229f27
Orion Poplawski 94f8345
%global upstreamversion %{version}
Orion Poplawski 94f8345
##%%global upstreamversion %{version}b3
8f60599
0229f27
Group:		Development/Tools
0229f27
License:	Python
0229f27
URL:		http://www.cython.org
Orion Poplawski 94f8345
Source:		http://www.cython.org/release/%{srcname}-%{upstreamversion}.tar.gz
0229f27
0229f27
BuildRequires:	python-devel python-setuptools
3c0f2bf
%if 0%{?with_python3}
Orion Poplawski 94f8345
BuildRequires:	python3-devel
3c0f2bf
%endif # if with_python3
3c0f2bf
Orion Poplawski 94f8345
%if %{with check}
Orion Poplawski 94f8345
BuildRequires:	libtool
Orion Poplawski 94f8345
BuildRequires:	numpy
Orion Poplawski 94f8345
# Coverage tests fail
Orion Poplawski 94f8345
#BuildRequires:	python-coverage
e8e734a
%endif
Orion Poplawski 94f8345
Orion Poplawski 94f8345
Provides:	python2-%{srcname} = %{version}-%{release}
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}
Orion Poplawski 94f8345
%package -n python3-%{srcname}
3c0f2bf
Summary:	A language for writing Python extension modules
3c0f2bf
Group:		Development/Tools
Orion Poplawski 94f8345
%if %{with check}
Orion Poplawski 94f8345
# Coverage tests fail
Orion Poplawski 94f8345
#BuildRequires:	python3-coverage
Orion Poplawski 94f8345
BuildRequires:	python3-numpy
Orion Poplawski 94f8345
%endif
3c0f2bf
Orion Poplawski 94f8345
%description -n python3-%{srcname}
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
0229f27
0229f27
%build
Orion Poplawski 94f8345
%py2_build
3c0f2bf
3c0f2bf
%if 0%{?with_python3}
Orion Poplawski 94f8345
%py3_build
3c0f2bf
%endif # with_python3
0229f27
0229f27
0229f27
%install
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}
Orion Poplawski 94f8345
%py3_install
3c0f2bf
mv $RPM_BUILD_ROOT/usr/bin/cython $RPM_BUILD_ROOT/usr/bin/cython3
Orion Poplawski 94f8345
mv $RPM_BUILD_ROOT/usr/bin/cythonize $RPM_BUILD_ROOT/usr/bin/cythonize3
3c0f2bf
mv $RPM_BUILD_ROOT/usr/bin/cygdb $RPM_BUILD_ROOT/usr/bin/cygdb3
3c0f2bf
rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests
3c0f2bf
%endif
3c0f2bf
Orion Poplawski 94f8345
%py2_install
81d4d83
rm -rf %{buildroot}%{python_sitelib}/setuptools/tests
0229f27
0229f27
Orion Poplawski 94f8345
%if %{with check}
bcf7a40
%check
Orion Poplawski 94f8345
%{__python} runtests.py -vv
3c0f2bf
3c0f2bf
%if 0%{?with_python3}
Orion Poplawski 94f8345
# asyncio test fails
Orion Poplawski 94f8345
%{__python3} runtests.py -vv || :
3c0f2bf
%endif # with_python3
e8e734a
%endif
0229f27
Orion Poplawski 94f8345
0229f27
%files
Orion Poplawski 94f8345
%{!?_licensedir:%global license %doc}
Orion Poplawski 94f8345
%license LICENSE.txt
Orion Poplawski 94f8345
%doc *.txt Demos Doc Tools
0229f27
%{_bindir}/cython
cde3f20
%{_bindir}/cygdb
2a6f60f
%{_bindir}/cythonize
Orion Poplawski 94f8345
%{python_sitearch}/%{srcname}
ede53a6
%{python_sitearch}/cython.py*
fdd0486
%{python_sitearch}/pyximport
Orion Poplawski 94f8345
%{python_sitearch}/%{srcname}*egg-info
Orion Poplawski 94f8345
3c0f2bf
%if 0%{?with_python3}
Orion Poplawski 94f8345
%files -n python3-%{srcname}
Orion Poplawski 94f8345
%license LICENSE.txt
3c0f2bf
%doc *.txt Demos Doc Tools
3c0f2bf
%{python3_sitearch}/*
3c0f2bf
%{_bindir}/cython3
Orion Poplawski 94f8345
%{_bindir}/cythonize3
3c0f2bf
%{_bindir}/cygdb3
3c0f2bf
%endif # with_python3
0229f27
0229f27
0229f27
%changelog
Orion Poplawski 94f8345
* Wed Jan 13 2016 Orion Poplawski <orion@cora.nwra.com> - 0.23.4-1
Orion Poplawski 94f8345
- Update to 0.23.4
Orion Poplawski 94f8345
- Ship cythonize3
Orion Poplawski 94f8345
- Modernize and cleanup spec
Orion Poplawski 94f8345
- Run tests, one python3 test fails with 3.5
Orion Poplawski 94f8345
Robert Kuska 8812aab
* Tue Oct 13 2015 Robert Kuska <rkuska@redhat.com> - 0.23-2
Robert Kuska 8812aab
- Rebuilt for Python3.5 rebuild
Robert Kuska 8812aab
5222fc5
* Wed Aug 12 2015 Neal Becker <ndbecker2@gmail.com> - 0.23-2
5222fc5
- Update to 0.23
5222fc5
70b8e00
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-2
70b8e00
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
70b8e00
42db5dd
* Fri Feb 13 2015 nbecker <ndbecker2@gmail.com> - 0.22-1
42db5dd
- oops, that should be 0.22 not 0.22.1
42db5dd
14b1c89
* Fri Feb 13 2015 nbecker <ndbecker2@gmail.com> - 0.22.1-1
14b1c89
- Update to 0.22
14b1c89
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