2627f4
%global srcname Cython
2627f4
%global upname cython
2627f4
2627f4
# https://github.com/cython/cython/issues/1982
2627f4
%bcond_with tests
2627f4
2627f4
Name:           Cython
2627f4
Version:        0.28.1
2627f4
Release:        3%{?dist}
2627f4
Summary:        Language for writing Python extension modules
2627f4
2627f4
License:        ASL 2.0
2627f4
URL:            http://www.cython.org
2627f4
Source:         https://github.com/cython/cython/archive/%{version}/%{srcname}-%{version}.tar.gz
2627f4
2627f4
BuildRequires:  gcc
2627f4
%if %{with tests}
2627f4
BuildRequires:  gcc-c++
2627f4
%endif
2627f4
2627f4
%global _description \
2627f4
This is a development version of Pyrex, a language\
2627f4
for writing Python extension modules.
2627f4
2627f4
%description %{_description}
2627f4
2627f4
%package -n python3-%{srcname}
2627f4
Summary:        %{summary}
2627f4
%{?python_provide:%python_provide python3-%{srcname}}
2627f4
BuildRequires:  python3-devel
2627f4
BuildRequires:  python3-setuptools
2627f4
%if %{with tests}
2627f4
BuildRequires:  python3-coverage
2627f4
BuildRequires:  python3-numpy
2627f4
BuildRequires:  python3-jedi
2627f4
%endif
2627f4
2627f4
%description -n python3-%{srcname} %{_description}
2627f4
2627f4
Python 3 version.
2627f4
2627f4
%prep
2627f4
%autosetup -n %{upname}-%{version} -p1
2627f4
2627f4
%build
2627f4
%py3_build
2627f4
2627f4
%install
2627f4
%py3_install
2627f4
rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests
2627f4
2627f4
%if %{with tests}
2627f4
%check
2627f4
%{__python3} runtests.py -vv
2627f4
%endif
2627f4
2627f4
%files -n python3-%{srcname}
2627f4
%license LICENSE.txt
2627f4
%doc *.txt Demos Doc Tools
2627f4
%{_bindir}/cython
2627f4
%{_bindir}/cythonize
2627f4
%{_bindir}/cygdb
2627f4
%{python3_sitearch}/%{srcname}-*.egg-info/
2627f4
%{python3_sitearch}/%{srcname}/
2627f4
%{python3_sitearch}/pyximport/
2627f4
%{python3_sitearch}/%{upname}.py
2627f4
%{python3_sitearch}/__pycache__/%{upname}.*
2627f4
2627f4
%changelog
2627f4
* Tue Jul 31 2018 Petr Viktorin <pviktori@redhat.com> - 0.28.1-3
2627f4
- Remove the Python 2 subpackage
2627f4
  https://bugzilla.redhat.com/show_bug.cgi?id=1591686
2627f4
2627f4
* Mon Jun 25 2018 Lumír Balhar <lbalhar@redhat.com> - 0.28.1-2
2627f4
- Allow build with Python 2
2627f4
2627f4
* Mon Mar 19 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.28.1-1
2627f4
- Update to 0.28.1
2627f4
2627f4
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.27.3-2
2627f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2627f4
2627f4
* Mon Nov 06 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.27.3-1
2627f4
- Update to 0.27.3
2627f4
2627f4
* Mon Oct 02 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.27.1-1
2627f4
- Update to 0.27.1
2627f4
2627f4
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.25.2-7
2627f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
2627f4
2627f4
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.25.2-6
2627f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2627f4
2627f4
* Wed May 03 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.25.2-5
2627f4
- Fix license
2627f4
2627f4
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.25.2-4
2627f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2627f4
2627f4
* Thu Dec 22 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.25.2-3
2627f4
- Backport couple of patches
2627f4
2627f4
* Mon Dec 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.25.2-2
2627f4
- Rebuild for Python 3.6
2627f4
2627f4
* Sat Dec 10 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.25.2-1
2627f4
- Update to 0.25.2
2627f4
2627f4
* Sat Aug 27 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.24.1-8
2627f4
- Fix provides (RHBZ #1370879)
2627f4
2627f4
* Thu Aug 25 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.24.1-7
2627f4
- Run test suite
2627f4
2627f4
* Thu Aug 25 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.24.1-6
2627f4
- Provide old names
2627f4
2627f4
* Thu Aug 25 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.24.1-5
2627f4
- Use %%python_provide
2627f4
2627f4
* Tue Aug 23 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.24.1-4
2627f4
- Update to 0.24.1
2627f4
2627f4
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23.4-4
2627f4
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2627f4
2627f4
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.4-2
2627f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2627f4
2627f4
* Wed Jan 13 2016 Orion Poplawski <orion@cora.nwra.com> - 0.23.4-1
2627f4
- Update to 0.23.4
2627f4
- Ship cythonize3
2627f4
- Modernize and cleanup spec
2627f4
- Run tests, one python3 test fails with 3.5
2627f4
2627f4
* Tue Oct 13 2015 Robert Kuska <rkuska@redhat.com> - 0.23-2
2627f4
- Rebuilt for Python3.5 rebuild
2627f4
2627f4
* Wed Aug 12 2015 Neal Becker <ndbecker2@gmail.com> - 0.23-2
2627f4
- Update to 0.23
2627f4
2627f4
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-2
2627f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2627f4
2627f4
* Fri Feb 13 2015 nbecker <ndbecker2@gmail.com> - 0.22-1
2627f4
- oops, that should be 0.22 not 0.22.1
2627f4
2627f4
* Fri Feb 13 2015 nbecker <ndbecker2@gmail.com> - 0.22.1-1
2627f4
- Update to 0.22
2627f4
2627f4
* Sat Nov 22 2014 nbecker <ndbecker2@gmail.com> - 0.21.1-1
2627f4
- Update to 0.21.1 (br #1164297)
2627f4
2627f4
* Mon Sep 15 2014 nbecker <ndbecker2@gmail.com> - 0.21-5
2627f4
- Add /bin/cythonize
2627f4
2627f4
* Mon Sep 15 2014 nbecker <ndbecker2@gmail.com> - 0.21-1
2627f4
- Update to 0.21
2627f4
2627f4
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20.1-5
2627f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2627f4
2627f4
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20.1-4
2627f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2627f4
2627f4
* Wed May 28 2014 Thomas Spura <tomspur@fedoraproject.org> - 0.20.1-3
2627f4
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
2627f4
2627f4
* Fri May  9 2014 Orion Poplawski <orion@cora.nwra.com> - 0.20.1-2
2627f4
- Rebuild for Python 3.4
2627f4
2627f4
* Fri May  9 2014 Orion Poplawski <orion@cora.nwra.com> - 0.20.1-1
2627f4
- Update to 0.20.1
2627f4
2627f4
* Mon Jan 20 2014 nbecker <ndbecker2@gmail.com> - 0.20-1
2627f4
- Update to 0.20
2627f4
2627f4
* Thu Oct 17 2013 nbecker <ndbecker2@gmail.com> - 0.19.2-2
2627f4
- Fix BR 1019498
2627f4
2627f4
* Sun Oct 13 2013 nbecker <ndbecker2@gmail.com> - 0.19-2
2627f4
- Update to 0.19.2
2627f4
2627f4
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19-2
2627f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2627f4
2627f4
* Fri Apr 19 2013 nbecker <ndbecker2@gmail.com> - 0.19-1
2627f4
- Update to 0.19
2627f4
2627f4
* Tue Jan 29 2013 Neal Becker <ndbecker2@gmail.com> - 0.18-1
2627f4
- update to 0.18
2627f4
2627f4
* Sat Dec 15 2012 Neal Becker <ndbecker2@gmail.com> - 0.17.3-1
2627f4
- Update to 0.17.3
2627f4
2627f4
* Wed Nov 21 2012 Neal Becker <ndbecker2@gmail.com> - 0.17.2-1
2627f4
- update to 0.17.2
2627f4
2627f4
* Wed Sep 26 2012 Neal Becker <ndbecker2@gmail.com> - 0.17.1-1
2627f4
- Update to 0.17.1
2627f4
2627f4
* Mon Sep  3 2012 Neal Becker <ndbecker2@gmail.com> - 0.17-1
2627f4
- Update to 0.17
2627f4
2627f4
* Tue Aug 28 2012 Neal Becker <ndbecker2@gmail.com> - 0.17-3.b3
2627f4
- Turn on check (temporarily)
2627f4
- Add br numpy from check
2627f4
2627f4
* Tue Aug 28 2012 Neal Becker <ndbecker2@gmail.com> - 0.17-1.b3
2627f4
- Test 0.17b3
2627f4
2627f4
* Fri Aug 24 2012 David Malcolm <dmalcolm@redhat.com> - 0.16-3
2627f4
- generalize egg-info logic to support RHEL (rhbz#851528)
2627f4
2627f4
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-2
2627f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2627f4
2627f4
* Fri Apr 27 2012 Neal Becker <ndbecker2@gmail.com> - 0.16-1
2627f4
- Update to 0.16
2627f4
2627f4
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15.1-2
2627f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2627f4
2627f4
* Tue Sep 20 2011 Neal Becker <ndbecker2@gmail.com> - 0.15.1-1
2627f4
- Update to 0.15.1
2627f4
2627f4
* Sat Aug  6 2011 Neal Becker <ndbecker2@gmail.com> - 0.15-1
2627f4
- Update to 0.15
2627f4
2627f4
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.1-2
2627f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2627f4
2627f4
* Sat Feb  5 2011 Neal Becker <ndbecker2@gmail.com> - 0.14.1-1
2627f4
- Update to 0.14.1
2627f4
2627f4
* Wed Dec 15 2010 Neal Becker <ndbecker2@gmail.com> - 0.14-2
2627f4
- Add cygdb
2627f4
2627f4
* Wed Dec 15 2010 Neal Becker <ndbecker2@gmail.com> - 0.14-1
2627f4
- Update to 0.14
2627f4
2627f4
* Wed Aug 25 2010 Neal Becker <ndbecker2@gmail.com> - 0.13-1
2627f4
- Update to 0.13
2627f4
2627f4
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.12.1-5
2627f4
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
2627f4
2627f4
* Fri Feb  5 2010 Neal Becker <ndbecker2@gmail.com> - 0.12.1-4
2627f4
- Disable check for now as it fails on PPC
2627f4
2627f4
* Tue Feb  2 2010 Neal Becker <ndbecker2@gmail.com> - 0.12.1-2
2627f4
- typo
2627f4
- stupid rpm comments
2627f4
2627f4
* Mon Nov 23 2009 Neal Becker <ndbecker2@gmail.com> - 0.12-1.rc1
2627f4
- Make that 0.12
2627f4
2627f4
* Mon Nov 23 2009 Neal Becker <ndbecker2@gmail.com> - 0.12.1-1.rc1
2627f4
- Update to 0.12.1
2627f4
2627f4
* Sun Sep 27 2009 Neal Becker <ndbecker2@gmail.com> - 0.11.3-1.rc1
2627f4
- Update to 0.11.3rc1
2627f4
- Update to 0.11.3
2627f4
2627f4
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.2-2
2627f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2627f4
2627f4
* Wed May 20 2009 Neal Becker <ndbecker2@gmail.com> - 0.11.2-1
2627f4
- Update to 0.11.2
2627f4
2627f4
* Thu Apr 16 2009 Neal Becker <ndbecker2@gmail.com> - 0.11.1-1
2627f4
- Update to 0.11.1
2627f4
2627f4
* Sat Mar 14 2009 Neal Becker <ndbecker2@gmail.com> - 0.11-2
2627f4
- Missed cython.py*
2627f4
2627f4
* Sat Mar 14 2009 Neal Becker <ndbecker2@gmail.com> - 0.11-1
2627f4
- Update to 0.11
2627f4
- Exclude numpy from tests so we don't have to BR it
2627f4
2627f4
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.3-2
2627f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2627f4
2627f4
* Wed Dec 17 2008 Neal Becker <ndbecker2@gmail.com> - 0.10.3-1
2627f4
- Update to 0.10.3
2627f4
2627f4
* Thu Dec 04 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.10.2-2
2627f4
- Rebuild for Python 2.6
2627f4
2627f4
* Mon Dec  1 2008 Neal Becker <ndbecker2@gmail.com> - 0.10.2-1
2627f4
- Update to 0.10.2
2627f4
2627f4
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.10.1-2
2627f4
- Rebuild for Python 2.6
2627f4
2627f4
* Wed Nov 19 2008 Neal Becker <ndbecker2@gmail.com> - 0.10.1-1
2627f4
- Update to 0.10.1
2627f4
2627f4
* Sun Nov  9 2008 Neal Becker <ndbecker2@gmail.com> - 0.10-3
2627f4
- Fix typo
2627f4
2627f4
* Sun Nov  9 2008 Neal Becker <ndbecker2@gmail.com> - 0.10-1
2627f4
- Update to 0.10
2627f4
2627f4
* Fri Jun 13 2008 Neal Becker <ndbecker2@gmail.com> - 0.9.8-2
2627f4
- Install into python_sitearch
2627f4
- Add %%check
2627f4
2627f4
* Fri Jun 13 2008 Neal Becker <ndbecker2@gmail.com> - 0.9.8-1
2627f4
- Update to 0.9.8
2627f4
2627f4
* Mon Apr 14 2008 José Matos <jamatos[AT]fc.up.pt> - 0.9.6.13.1-3
2627f4
- Remove remaining --record.
2627f4
- Add more documentation (Doc and Tools).
2627f4
- Add correct entry for egg-info (F9+).
2627f4
2627f4
* Mon Apr 14 2008 Neal Becker <ndbecker2@gmail.com> - 0.9.6.13.1-2
2627f4
- Change License to Python
2627f4
- Install About.html
2627f4
- Fix mixed spaces/tabs
2627f4
- Don't use --record
2627f4
2627f4
* Tue Apr  8 2008 Neal Becker <ndbecker2@gmail.com> - 0.9.6.13.1-1
2627f4
- Update to 0.9.6.13.1
2627f4
2627f4
* Mon Apr  7 2008 Neal Becker <ndbecker2@gmail.com> - 0.9.6.13-1
2627f4
- Update to 0.9.6.13
2627f4
- Add docs
2627f4
2627f4
* Tue Feb 26 2008 Neal Becker <ndbecker2@gmail.com> - 0.9.6.12-1
2627f4
- Initial version
2627f4