Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release-src > by-pkgid > 421e9260db7939b336bf9d971d6ccbc7 > files > 2

python-cython-0.29.2-3.mga7.src.rpm

%define	tarname	Cython

Summary:	Language for writing C extensions to Python
Name:		python-cython
Version:	0.29.2
Release:	%mkrel 3
Source0:	https://pypi.io/packages/source/C/%{tarname}/%{tarname}-%{version}.tar.gz
License:	Apache License
Group:		Development/Python
Url:		http://www.cython.org
BuildRequires:	dos2unix
BuildRequires:	emacs

%description
Cython is a language that facilitates the writing of C extensions for
the Python language. It is based on Pyrex, but provides more cutting
edge functionality and optimizations.

%package -n	python2-cython
Summary:	Language for writing Python 2 extension modules
Group:		Development/Python
BuildRequires:	pkgconfig(python2)
BuildRequires:	pythonegg(2)(setuptools)
Provides:       python-cython = %{version}-%{release}
Provides:	python2-Cython = %{version}-%{release}
Requires:	python2-pkg-resources

%description -n	python2-cython
Cython is a language that facilitates the writing of C extensions for
the Python 2 language. It is based on Pyrex, but provides more cutting
edge functionality and optimizations.

%package -n	python3-cython
Summary:	Language for writing Python 3 extension modules
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	pythonegg(3)(setuptools)
Provides:	python3-Cython = %{version}-%{release}

%description -n	python3-cython
Cython is a language that facilitates the writing of C extensions for
the Python 3 language. It is based on Pyrex, but provides more cutting
edge functionality and optimizations.

%prep
%setup -q -n %{tarname}-%{version}

%build
%py3_build
%py2_build


%install
find -name .*DS_Store* | xargs rm -rf
%py3_install
mv %{buildroot}/usr/bin/cython %{buildroot}/usr/bin/cython-3
mv %{buildroot}/usr/bin/cygdb %{buildroot}/usr/bin/cygdb-3
mv %{buildroot}/usr/bin/cythonize %{buildroot}/usr/bin/cythonize-3
rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests

%py2_install
rm -rf ${buildroot}%{python2_sitelib}/setuptools/tests

pushd Tools
dos2unix cython-mode.el
emacs -batch -f batch-byte-compile cython-mode.el
%__install -m 755 -d %{buildroot}%{_sysconfdir}/emacs/site-start.d
%__install -m 644 *.el* %{buildroot}%{_sysconfdir}/emacs/site-start.d
popd

%files -n python2-cython
%license LICENSE.txt
%{_bindir}/cython
%{_bindir}/cygdb
%{_bindir}/cythonize
%{python2_sitearch}/Cython
%{python2_sitearch}/cython.py*
%{python2_sitearch}/pyximport
%{python2_sitearch}/Cython*egg-info
%{_sysconfdir}/emacs/site-start.d/*.el*

%files -n python3-cython
%license LICENSE.txt
%doc Demos docs Tools
%{python3_sitearch}/*
%{_bindir}/cython-3
%{_bindir}/cythonize-3
%{_bindir}/cygdb-3
%{python3_sitearch}/Cython*egg-info


%changelog
* Tue Jan 08 2019 tv <tv> 0.29.2-3.mga7
+ Revision: 1351745
- requires python2-pkg-resources (thus fixing building brltty)

* Sat Jan 05 2019 wally <wally> 0.29.2-2.mga7
+ Revision: 1349264
- rebuild for python3.7

* Fri Dec 28 2018 luigiwalser <luigiwalser> 0.29.2-1.mga7
+ Revision: 1345709
- 0.29.2

* Mon Sep 24 2018 wally <wally> 0.28.1-3.mga7
+ Revision: 1303533
- add provides for python(2,3)-Cython
- drop old obsoletes
+ umeabot <umeabot>
- Mageia 7 Mass Rebuild

* Tue Mar 20 2018 kekepower <kekepower> 0.28.1-1.mga7
+ Revision: 1210557
- Update to version 0.28.1

* Fri Feb 09 2018 kekepower <kekepower> 0.27.3-1.mga7
+ Revision: 1199806
- Update to version 0.27.3

* Tue Oct 10 2017 joequant <joequant> 0.27.1-1.mga7
+ Revision: 1170638
- upgrade to 0.27.1

* Fri Sep 15 2017 guillomovitch <guillomovitch> 0.26.1-1.mga7
+ Revision: 1153903
- new version 0.26.1

* Sat Aug 05 2017 philippem <philippem> 0.26-1.mga7
+ Revision: 1135727
- update to 0.26

* Thu Aug 03 2017 tv <tv> 0.22.1-4.mga7
+ Revision: 1134479
- rebuild for new python

* Tue Feb 16 2016 umeabot <umeabot> 0.22.1-3.mga6
+ Revision: 962201
- Mageia 6 Mass Rebuild

* Thu Oct 08 2015 daviddavid <daviddavid> 0.22.1-2.mga6
+ Revision: 887254
- rebuild for python 3.5
- use new python macros

* Fri Jun 26 2015 joequant <joequant> 0.22.1-1.mga6
+ Revision: 844424
- 0.22.1
- upgrade to 0.22

* Wed Oct 15 2014 umeabot <umeabot> 0.20.1-5.mga5
+ Revision: 743138
- Second Mageia 5 Mass Rebuild

* Sat Sep 27 2014 tv <tv> 0.20.1-4.mga5
+ Revision: 728216
- rebuild for missing pythoneggs deps

* Tue Sep 16 2014 umeabot <umeabot> 0.20.1-3.mga5
+ Revision: 687955
- Mageia 5 Mass Rebuild

* Sat May 31 2014 pterjan <pterjan> 0.20.1-2.mga5
+ Revision: 628539
- Rebuild for new Python

* Tue Mar 04 2014 philippem <philippem> 0.20.1-1.mga5
+ Revision: 599559
- update to 0.20.1

* Tue Oct 22 2013 umeabot <umeabot> 0.19.1-4.mga4
+ Revision: 543236
- Mageia 4 Mass Rebuild

* Tue Oct 15 2013 pterjan <pterjan> 0.19.1-3.mga4
+ Revision: 498343
- Rebuild to add different pythonegg provides for python 2 and 3

* Mon Oct 07 2013 philippem <philippem> 0.19.1-2.mga4
+ Revision: 492633
+ rebuild (emptylog)

* Fri Jul 05 2013 philippem <philippem> 0.19.1-1.mga4
+ Revision: 450357
- Update to 0.19.1, add Python 3

* Sun Feb 03 2013 neoclust <neoclust> 0.18-1.mga3
+ Revision: 394230
- New version

* Sun Jan 13 2013 umeabot <umeabot> 0.15.1-2.mga3
+ Revision: 378630
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Tue Sep 20 2011 lebedov <lebedov> 0.15.1-1.mga2
+ Revision: 146037
- Update to 0.15.1.

* Sat Apr 16 2011 ahmad <ahmad> 0.14.1-1.mga1
+ Revision: 86843
- update to 0.14.1
- drop patch0, fixed upstream

* Mon Feb 21 2011 ahmad <ahmad> 0.14-4.mga1
+ Revision: 55585
- rebuild to make all pythonegg requires/provides lowercase

* Mon Jan 17 2011 pterjan <pterjan> 0.14-3.mga1
+ Revision: 21292
- Rebuild for python 2.7
+ ahmad <ahmad>
- add upstream patch to fix a compiler crash
- imported package python-cython