2012-10-28 16:00:52 +00:00
|
|
|
%if 0%{?fedora} > 12
|
|
|
|
%global with_python3 1
|
|
|
|
%else
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
|
2008-06-14 00:48:45 +00:00
|
|
|
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
2012-10-28 16:00:52 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%global srcname distribute
|
2008-04-14 23:56:07 +00:00
|
|
|
|
2012-12-15 15:48:44 +00:00
|
|
|
%define run_check 0%{!?_without_check:1}
|
|
|
|
##%define run_check 0%{!?_with_check:0}
|
2008-04-14 23:56:07 +00:00
|
|
|
|
|
|
|
Name: Cython
|
2015-02-13 14:20:06 +00:00
|
|
|
Version: 0.22
|
2012-09-03 21:04:43 +00:00
|
|
|
##Release: 4.b3%{?dist}
|
2014-11-22 22:39:32 +00:00
|
|
|
Release: 1%{?dist}
|
2008-04-14 23:56:07 +00:00
|
|
|
Summary: A language for writing Python extension modules
|
|
|
|
|
2013-10-13 23:31:47 +00:00
|
|
|
%define upstreamversion %{version}
|
2012-09-03 21:11:24 +00:00
|
|
|
##%%define upstreamversion %{version}b3
|
2009-09-25 11:57:13 +00:00
|
|
|
|
2008-04-14 23:56:07 +00:00
|
|
|
Group: Development/Tools
|
|
|
|
License: Python
|
|
|
|
URL: http://www.cython.org
|
2014-05-10 02:35:51 +00:00
|
|
|
Source: http://www.cython.org/release/Cython-%{upstreamversion}.tar.gz
|
2008-04-14 23:56:07 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
BuildRequires: python-devel python-setuptools
|
2012-10-28 16:00:52 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
%endif # if with_python3
|
|
|
|
|
2012-09-03 21:04:43 +00:00
|
|
|
%if 0%{run_check}
|
2012-08-28 15:17:18 +00:00
|
|
|
BuildRequires: numpy libtool
|
2012-09-03 21:04:43 +00:00
|
|
|
%endif
|
2008-04-14 23:56:07 +00:00
|
|
|
Requires: python
|
|
|
|
|
|
|
|
%description
|
|
|
|
This is a development version of Pyrex, a language
|
|
|
|
for writing Python extension modules.
|
|
|
|
|
|
|
|
For more info, see:
|
|
|
|
|
|
|
|
Doc/About.html for a description of the language
|
|
|
|
INSTALL.txt for installation instructions
|
|
|
|
USAGE.txt for usage instructions
|
|
|
|
Demos for usage examples
|
|
|
|
|
2012-10-28 16:00:52 +00:00
|
|
|
%if 0%{?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.
|
|
|
|
|
|
|
|
For more info, see:
|
|
|
|
|
|
|
|
Doc/About.html for a description of the language
|
|
|
|
INSTALL.txt for installation instructions
|
|
|
|
USAGE.txt for usage instructions
|
|
|
|
Demos for usage examples
|
|
|
|
%endif # with_python3
|
2008-04-14 23:56:07 +00:00
|
|
|
|
|
|
|
%prep
|
2009-09-25 11:57:13 +00:00
|
|
|
%setup -q -n %{name}-%{upstreamversion}
|
2008-04-14 23:56:07 +00:00
|
|
|
|
2012-10-28 16:00:52 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|'
|
2008-04-14 23:56:07 +00:00
|
|
|
|
|
|
|
%build
|
2012-10-28 16:00:52 +00:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
|
|
|
|
popd
|
|
|
|
%endif # with_python3
|
2008-04-14 23:56:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2012-10-28 16:00:52 +00:00
|
|
|
# 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 0%{?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
|
|
|
|
|
2008-04-14 23:56:07 +00:00
|
|
|
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
2013-10-17 01:03:10 +00:00
|
|
|
rm -rf %{buildroot}%{python_sitelib}/setuptools/tests
|
2008-04-14 23:56:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2012-09-03 21:04:43 +00:00
|
|
|
%if 0%{run_check}
|
2012-08-28 00:40:00 +00:00
|
|
|
%check
|
2012-12-15 15:48:44 +00:00
|
|
|
%{__python} runtests.py
|
2012-10-28 16:00:52 +00:00
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
%{__python3} setup.py test
|
|
|
|
popd
|
|
|
|
%endif # with_python3
|
2012-09-03 21:04:43 +00:00
|
|
|
%endif
|
2008-04-14 23:56:07 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%{_bindir}/cython
|
2010-12-15 12:15:36 +00:00
|
|
|
%{_bindir}/cygdb
|
2014-09-15 17:46:18 +00:00
|
|
|
%{_bindir}/cythonize
|
2008-06-14 00:48:45 +00:00
|
|
|
%{python_sitearch}/Cython
|
2009-03-14 11:52:01 +00:00
|
|
|
%{python_sitearch}/cython.py*
|
2008-11-19 20:09:00 +00:00
|
|
|
%{python_sitearch}/pyximport
|
2012-08-24 14:40:36 +00:00
|
|
|
%if 0%{?fedora} >= 9 || 0%{?rhel} >= 6
|
2008-06-14 00:48:45 +00:00
|
|
|
%{python_sitearch}/Cython*egg-info
|
2008-04-14 23:56:07 +00:00
|
|
|
%endif
|
2012-10-28 16:00:52 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
%files -n python3-Cython
|
|
|
|
%doc *.txt Demos Doc Tools
|
|
|
|
%{python3_sitearch}/*
|
|
|
|
%{_bindir}/cython3
|
|
|
|
%{_bindir}/cygdb3
|
|
|
|
%if 0%{?fedora} >= 9 || 0%{?rhel} >= 6
|
|
|
|
%{python3_sitearch}/Cython*egg-info
|
|
|
|
%endif
|
|
|
|
%endif # with_python3
|
2008-04-14 23:56:07 +00:00
|
|
|
%doc *.txt Demos Doc Tools
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2015-02-13 14:20:06 +00:00
|
|
|
* Fri Feb 13 2015 nbecker <ndbecker2@gmail.com> - 0.22-1
|
|
|
|
- oops, that should be 0.22 not 0.22.1
|
|
|
|
|
2015-02-13 13:38:18 +00:00
|
|
|
* Fri Feb 13 2015 nbecker <ndbecker2@gmail.com> - 0.22.1-1
|
|
|
|
- Update to 0.22
|
|
|
|
|
2014-11-22 22:39:32 +00:00
|
|
|
* Sat Nov 22 2014 nbecker <ndbecker2@gmail.com> - 0.21.1-1
|
|
|
|
- Update to 0.21.1 (br #1164297)
|
|
|
|
|
2014-09-15 17:46:18 +00:00
|
|
|
* Mon Sep 15 2014 nbecker <ndbecker2@gmail.com> - 0.21-5
|
|
|
|
- Add /bin/cythonize
|
|
|
|
|
2014-09-15 13:40:46 +00:00
|
|
|
* Mon Sep 15 2014 nbecker <ndbecker2@gmail.com> - 0.21-1
|
|
|
|
- Update to 0.21
|
|
|
|
|
2014-08-15 18:24:29 +00:00
|
|
|
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20.1-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-06 22:32:03 +00:00
|
|
|
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-28 11:31:06 +00:00
|
|
|
* Wed May 28 2014 Thomas Spura <tomspur@fedoraproject.org> - 0.20.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
|
|
2014-05-10 02:37:53 +00:00
|
|
|
* Fri May 9 2014 Orion Poplawski <orion@cora.nwra.com> - 0.20.1-2
|
|
|
|
- Rebuild for Python 3.4
|
|
|
|
|
2014-05-10 02:35:51 +00:00
|
|
|
* Fri May 9 2014 Orion Poplawski <orion@cora.nwra.com> - 0.20.1-1
|
|
|
|
- Update to 0.20.1
|
|
|
|
|
2014-01-20 20:56:47 +00:00
|
|
|
* Mon Jan 20 2014 nbecker <ndbecker2@gmail.com> - 0.20-1
|
|
|
|
- Update to 0.20
|
|
|
|
|
2013-10-17 01:03:10 +00:00
|
|
|
* Thu Oct 17 2013 nbecker <ndbecker2@gmail.com> - 0.19.2-2
|
|
|
|
- Fix BR 1019498
|
|
|
|
|
2013-10-13 23:22:31 +00:00
|
|
|
* Sun Oct 13 2013 nbecker <ndbecker2@gmail.com> - 0.19-2
|
|
|
|
- Update to 0.19.2
|
|
|
|
|
2013-08-02 22:37:04 +00:00
|
|
|
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-04-19 18:25:19 +00:00
|
|
|
* Fri Apr 19 2013 nbecker <ndbecker2@gmail.com> - 0.19-1
|
|
|
|
- Update to 0.19
|
|
|
|
|
2013-01-29 16:35:00 +00:00
|
|
|
* Tue Jan 29 2013 Neal Becker <ndbecker2@gmail.com> - 0.18-1
|
|
|
|
- update to 0.18
|
|
|
|
|
2012-12-15 15:48:44 +00:00
|
|
|
* Sat Dec 15 2012 Neal Becker <ndbecker2@gmail.com> - 0.17.3-1
|
|
|
|
- Update to 0.17.3
|
|
|
|
|
2012-11-21 14:56:23 +00:00
|
|
|
* Wed Nov 21 2012 Neal Becker <ndbecker2@gmail.com> - 0.17.2-1
|
|
|
|
- update to 0.17.2
|
|
|
|
|
2012-09-26 18:10:11 +00:00
|
|
|
* Wed Sep 26 2012 Neal Becker <ndbecker2@gmail.com> - 0.17.1-1
|
|
|
|
- Update to 0.17.1
|
|
|
|
|
2012-09-03 21:04:43 +00:00
|
|
|
* Mon Sep 3 2012 Neal Becker <ndbecker2@gmail.com> - 0.17-1
|
|
|
|
- Update to 0.17
|
|
|
|
|
2012-08-28 00:40:00 +00:00
|
|
|
* Tue Aug 28 2012 Neal Becker <ndbecker2@gmail.com> - 0.17-3.b3
|
|
|
|
- Turn on check (temporarily)
|
2012-08-28 13:55:36 +00:00
|
|
|
- Add br numpy from check
|
2012-08-28 00:40:00 +00:00
|
|
|
|
2012-08-28 00:29:03 +00:00
|
|
|
* Tue Aug 28 2012 Neal Becker <ndbecker2@gmail.com> - 0.17-1.b3
|
|
|
|
- Test 0.17b3
|
|
|
|
|
2012-08-24 14:40:36 +00:00
|
|
|
* Fri Aug 24 2012 David Malcolm <dmalcolm@redhat.com> - 0.16-3
|
|
|
|
- generalize egg-info logic to support RHEL (rhbz#851528)
|
|
|
|
|
2012-07-18 13:10:16 +00:00
|
|
|
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-04-27 11:39:22 +00:00
|
|
|
* Fri Apr 27 2012 Neal Becker <ndbecker2@gmail.com> - 0.16-1
|
|
|
|
- Update to 0.16
|
|
|
|
|
2012-01-12 20:16:07 +00:00
|
|
|
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-09-20 11:11:47 +00:00
|
|
|
* Tue Sep 20 2011 Neal Becker <ndbecker2@gmail.com> - 0.15.1-1
|
|
|
|
- Update to 0.15.1
|
|
|
|
|
2011-08-06 15:04:42 +00:00
|
|
|
* Sat Aug 6 2011 Neal Becker <ndbecker2@gmail.com> - 0.15-1
|
|
|
|
- Update to 0.15
|
|
|
|
|
2011-02-07 23:10:01 +00:00
|
|
|
* 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
|
|
|
|
|
2011-02-05 16:52:23 +00:00
|
|
|
* Sat Feb 5 2011 Neal Becker <ndbecker2@gmail.com> - 0.14.1-1
|
|
|
|
- Update to 0.14.1
|
|
|
|
|
2010-12-15 12:15:36 +00:00
|
|
|
* Wed Dec 15 2010 Neal Becker <ndbecker2@gmail.com> - 0.14-2
|
|
|
|
- Add cygdb
|
|
|
|
|
2010-12-15 12:05:02 +00:00
|
|
|
* Wed Dec 15 2010 Neal Becker <ndbecker2@gmail.com> - 0.14-1
|
|
|
|
- Update to 0.14
|
|
|
|
|
2010-08-25 13:24:33 +00:00
|
|
|
* Wed Aug 25 2010 Neal Becker <ndbecker2@gmail.com> - 0.13-1
|
|
|
|
- Update to 0.13
|
|
|
|
|
2010-07-22 00:17:48 +00:00
|
|
|
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.12.1-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
|
2010-02-05 12:07:48 +00:00
|
|
|
* Fri Feb 5 2010 Neal Becker <ndbecker2@gmail.com> - 0.12.1-4
|
|
|
|
- Disable check for now as it fails on PPC
|
|
|
|
|
2010-02-02 11:49:43 +00:00
|
|
|
* Tue Feb 2 2010 Neal Becker <ndbecker2@gmail.com> - 0.12.1-2
|
|
|
|
- typo
|
2010-02-02 11:53:06 +00:00
|
|
|
- stupid rpm comments
|
2010-02-02 11:49:43 +00:00
|
|
|
|
2009-11-23 19:46:20 +00:00
|
|
|
* Mon Nov 23 2009 Neal Becker <ndbecker2@gmail.com> - 0.12-1.rc1
|
|
|
|
- Make that 0.12
|
|
|
|
|
2009-11-23 19:44:56 +00:00
|
|
|
* Mon Nov 23 2009 Neal Becker <ndbecker2@gmail.com> - 0.12.1-1.rc1
|
|
|
|
- Update to 0.12.1
|
|
|
|
|
2009-09-27 12:48:42 +00:00
|
|
|
* Sun Sep 27 2009 Neal Becker <ndbecker2@gmail.com> - 0.11.3-1.rc1
|
|
|
|
- Update to 0.11.3rc1
|
2009-09-27 13:46:33 +00:00
|
|
|
- Update to 0.11.3
|
2009-09-27 12:48:42 +00:00
|
|
|
|
2009-07-24 15:06:09 +00:00
|
|
|
* 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
|
|
|
|
|
2009-05-21 01:07:17 +00:00
|
|
|
* Wed May 20 2009 Neal Becker <ndbecker2@gmail.com> - 0.11.2-1
|
|
|
|
- Update to 0.11.2
|
|
|
|
|
2009-04-16 11:30:32 +00:00
|
|
|
* Thu Apr 16 2009 Neal Becker <ndbecker2@gmail.com> - 0.11.1-1
|
|
|
|
- Update to 0.11.1
|
|
|
|
|
2009-03-14 11:52:01 +00:00
|
|
|
* Sat Mar 14 2009 Neal Becker <ndbecker2@gmail.com> - 0.11-2
|
|
|
|
- Missed cython.py*
|
|
|
|
|
2009-03-14 11:40:23 +00:00
|
|
|
* 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
|
|
|
|
|
2009-02-23 20:13:54 +00:00
|
|
|
* 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
|
|
|
|
|
2008-12-17 12:10:19 +00:00
|
|
|
* Wed Dec 17 2008 Neal Becker <ndbecker2@gmail.com> - 0.10.3-1
|
|
|
|
- Update to 0.10.3
|
|
|
|
|
2008-12-04 17:52:11 +00:00
|
|
|
* Thu Dec 04 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.10.2-2
|
|
|
|
- Rebuild for Python 2.6
|
|
|
|
|
2008-12-01 13:23:20 +00:00
|
|
|
* Mon Dec 1 2008 Neal Becker <ndbecker2@gmail.com> - 0.10.2-1
|
|
|
|
- Update to 0.10.2
|
|
|
|
|
2008-11-29 16:36:48 +00:00
|
|
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.10.1-2
|
|
|
|
- Rebuild for Python 2.6
|
|
|
|
|
2008-11-19 20:09:00 +00:00
|
|
|
* 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
|
|
|
|
|
2008-11-09 12:40:23 +00:00
|
|
|
* Sun Nov 9 2008 Neal Becker <ndbecker2@gmail.com> - 0.10-1
|
|
|
|
- Update to 0.10
|
|
|
|
|
2008-06-14 00:48:45 +00:00
|
|
|
* Fri Jun 13 2008 Neal Becker <ndbecker2@gmail.com> - 0.9.8-2
|
|
|
|
- Install into python_sitearch
|
|
|
|
- Add %%check
|
|
|
|
|
2008-06-13 15:51:06 +00:00
|
|
|
* Fri Jun 13 2008 Neal Becker <ndbecker2@gmail.com> - 0.9.8-1
|
|
|
|
- Update to 0.9.8
|
|
|
|
|
2008-04-14 23:56:07 +00:00
|
|
|
* 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
|
|
|
|
|