|
|
7aeb1e4 |
%{?el5: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
7aeb1e4 |
|
|
|
7aeb1e4 |
# For EPEL5 make a python26 package.
|
|
|
7aeb1e4 |
%if 0%{?rhel} == 5
|
|
|
7aeb1e4 |
%global __python26 %{_bindir}/python2.6
|
|
|
7aeb1e4 |
# Disable byte compiling. Do ourselves later.
|
|
|
7aeb1e4 |
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
|
|
|
7aeb1e4 |
%{!?pydir26: %global pydir26 %{_builddir}/python26-%{name}-%{version}-%{release}}
|
|
|
7aeb1e4 |
%{!?python26_sitearch: %global python26_sitearch %(%{__python26} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
7aeb1e4 |
%endif
|
|
|
0229f27 |
|
|
|
0229f27 |
Name: Cython
|
|
|
4f6f005 |
Version: 0.14.1
|
|
|
21a64ed |
#Release: 1.beta2%{?dist}
|
|
|
7aeb1e4 |
Release: 3%{?dist}
|
|
|
0229f27 |
Summary: A language for writing Python extension modules
|
|
|
0229f27 |
|
|
|
21a64ed |
#%define upstreamversion %{version}.beta2
|
|
|
8df2139 |
%define upstreamversion %{version}
|
|
|
8f60599 |
|
|
|
0229f27 |
Group: Development/Tools
|
|
|
0229f27 |
License: Python
|
|
|
0229f27 |
URL: http://www.cython.org
|
|
|
d35b4f6 |
Source: http://www.cython.org/Cython-%{upstreamversion}.tar.gz
|
|
|
0229f27 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
0229f27 |
|
|
|
0229f27 |
BuildRequires: python-devel python-setuptools
|
|
|
7aeb1e4 |
%if 0%{?rhel} == 5
|
|
|
7aeb1e4 |
BuildRequires: python26-devel
|
|
|
7aeb1e4 |
BuildRequires: python26-distribute
|
|
|
7aeb1e4 |
%endif
|
|
|
7aeb1e4 |
|
|
|
7aeb1e4 |
%if 0%{?rhel} == 5
|
|
|
7aeb1e4 |
Requires: python(abi) = 2.4
|
|
|
7aeb1e4 |
%endif
|
|
|
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 |
|
|
|
0229f27 |
|
|
|
7aeb1e4 |
%if 0%{?rhel} == 5
|
|
|
7aeb1e4 |
%package -n python26-Cython
|
|
|
7aeb1e4 |
Summary: A language for writing Python extension modules
|
|
|
7aeb1e4 |
Group: Development/Libraries
|
|
|
7aeb1e4 |
Requires: python(abi) = 2.6
|
|
|
7aeb1e4 |
|
|
|
7aeb1e4 |
%description -n python26-Cython
|
|
|
7aeb1e4 |
This is a development version of Pyrex, a language
|
|
|
7aeb1e4 |
for writing Python extension modules.
|
|
|
7aeb1e4 |
|
|
|
7aeb1e4 |
For more info, see:
|
|
|
7aeb1e4 |
|
|
|
7aeb1e4 |
Doc/About.html for a description of the language
|
|
|
7aeb1e4 |
INSTALL.txt for installation instructions
|
|
|
7aeb1e4 |
USAGE.txt for usage instructions
|
|
|
7aeb1e4 |
Demos for usage examples
|
|
|
7aeb1e4 |
%endif
|
|
|
7aeb1e4 |
|
|
|
0229f27 |
%prep
|
|
|
8f60599 |
%setup -q -n %{name}-%{upstreamversion}
|
|
|
0229f27 |
|
|
|
7aeb1e4 |
%if 0%{?rhel} == 5
|
|
|
7aeb1e4 |
rm -rf %{pydir26}
|
|
|
7aeb1e4 |
mkdir -p %{pydir26}
|
|
|
7aeb1e4 |
cp -a * %{pydir26}
|
|
|
7aeb1e4 |
%endif
|
|
|
7aeb1e4 |
|
|
|
0229f27 |
|
|
|
0229f27 |
%build
|
|
|
0229f27 |
%{__python} setup.py build
|
|
|
0229f27 |
|
|
|
7aeb1e4 |
%if 0%{?rhel} == 5
|
|
|
7aeb1e4 |
pushd %{pydir26}
|
|
|
7aeb1e4 |
%{__python26} setup.py build
|
|
|
7aeb1e4 |
popd
|
|
|
7aeb1e4 |
%endif
|
|
|
0229f27 |
|
|
|
0229f27 |
%install
|
|
|
0229f27 |
rm -rf $RPM_BUILD_ROOT
|
|
|
7aeb1e4 |
%if 0%{?rhel} == 5
|
|
|
7aeb1e4 |
pushd %{pydir26}
|
|
|
7aeb1e4 |
%{__python26} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
7aeb1e4 |
popd
|
|
|
7aeb1e4 |
pushd $RPM_BUILD_ROOT%{_bindir}
|
|
|
7aeb1e4 |
mv cython cython-python26
|
|
|
7aeb1e4 |
mv cygdb cygdb-python26
|
|
|
7aeb1e4 |
popd
|
|
|
7aeb1e4 |
%endif
|
|
|
7aeb1e4 |
|
|
|
0229f27 |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
0229f27 |
|
|
|
7aeb1e4 |
#On rhel5 we do our own byte compiling that we disabled earlier.
|
|
|
7aeb1e4 |
%if 0%{?rhel} == 5
|
|
|
7aeb1e4 |
%{__python} -c 'import compileall; compileall.compile_dir("'"$RPM_BUILD_ROOT"'", 10, "%{python_sitearch}", 1)' > /dev/null
|
|
|
7aeb1e4 |
%{__python} -O -c 'import compileall; compileall.compile_dir("'"$RPM_BUILD_ROOT"'", 10, "%{python_sitearch}", 1)' > /dev/null
|
|
|
7aeb1e4 |
%{__python26} -c 'import compileall; compileall.compile_dir("'"$RPM_BUILD_ROOT%{python26_sitearch}"'", 10, "%{python26_sitearch}", 1)' > /dev/null
|
|
|
7aeb1e4 |
%{__python26} -O -c 'import compileall; compileall.compile_dir("'"$RPM_BUILD_ROOT%{python26_sitearch}"'", 10, "%{python26_sitearch}", 1)' > /dev/null
|
|
|
7aeb1e4 |
%endif
|
|
|
7aeb1e4 |
|
|
|
0229f27 |
|
|
|
0229f27 |
%clean
|
|
|
0229f27 |
rm -rf $RPM_BUILD_ROOT
|
|
|
0229f27 |
|
|
|
ca3caf0 |
##%%check
|
|
|
ca3caf0 |
##%%{__python} runtests.py -x numpy
|
|
|
0229f27 |
|
|
|
0229f27 |
%files
|
|
|
0229f27 |
%defattr(-,root,root,-)
|
|
|
0229f27 |
%{_bindir}/cython
|
|
|
7aeb1e4 |
#cygdb is not built with python 2.4 or 2.3.
|
|
|
7aeb1e4 |
%if 0%{?fedora} || 0%{?rhel} >= 6
|
|
|
cde3f20 |
%{_bindir}/cygdb
|
|
|
7aeb1e4 |
%endif
|
|
|
493dbe7 |
%{python_sitearch}/Cython
|
|
|
ede53a6 |
%{python_sitearch}/cython.py*
|
|
|
fdd0486 |
%{python_sitearch}/pyximport
|
|
|
7aeb1e4 |
%if 0%{?fedora} >= 9 || 0%{?rhel} >= 6
|
|
|
493dbe7 |
%{python_sitearch}/Cython*egg-info
|
|
|
0229f27 |
%endif
|
|
|
0229f27 |
%doc *.txt Demos Doc Tools
|
|
|
0229f27 |
|
|
|
7aeb1e4 |
%if 0%{?rhel} == 5
|
|
|
7aeb1e4 |
%files -n python26-Cython
|
|
|
7aeb1e4 |
%defattr(-,root,root,-)
|
|
|
7aeb1e4 |
%{_bindir}/cython-python26
|
|
|
7aeb1e4 |
%{_bindir}/cygdb-python26
|
|
|
7aeb1e4 |
%{python26_sitearch}/Cython
|
|
|
7aeb1e4 |
%{python26_sitearch}/cython.py*
|
|
|
7aeb1e4 |
%{python26_sitearch}/pyximport
|
|
|
7aeb1e4 |
%{python26_sitearch}/Cython*egg-info
|
|
|
7aeb1e4 |
%doc *.txt Demos Doc Tools
|
|
|
7aeb1e4 |
%endif
|
|
|
0229f27 |
|
|
|
0229f27 |
%changelog
|
|
|
7aeb1e4 |
* Sun Apr 03 2012 Steve Traylen <steve.traylen@cern.ch> - 0.14.1-3
|
|
|
7aeb1e4 |
- Adapt SPEC file for python3 and python26 on EPEL5.
|
|
|
7aeb1e4 |
|
|
|
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 |
|