- build package in build stage
[packages/python-Cython.git] / python-Cython.spec
CommitLineData
c851376d 1
2%define module Cython
3
4Summary: Language for writing Python Extension Modules
5Summary(pl.UTF-8): Język służący do pisania modułów rozszerzających Pythona
6Name: python-%{module}
2a873ba1 7Version: 0.20.1
52da8e1d 8Release: 1
e752d74b 9License: Apache v2.0
c851376d 10Group: Libraries/Python
81b5c351 11Source0: http://www.cython.org/release/%{module}-%{version}.tar.gz
2a873ba1 12# Source0-md5: 52431696c64e618036537c4d9aa79d99
c851376d 13URL: http://www.cython.org/
14BuildRequires: python >= 1:2.5
455ac150 15BuildRequires: python-devel
c851376d 16BuildRequires: rpm-pythonprov
17%pyrequires_eq python-libs
18%pyrequires_eq python-devel
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%define _noautocompressdoc *.c
22
23%description
24Cython lets you write code that mixes Python and C data types any way
6f08c5d3 25you want, and compiles it into a C extension for Python. Cython is
26based on Pyrex.
c851376d 27
28%description -l pl.UTF-8
e752d74b 29Cython pozwala pisać kod zawierający dane Pythona i języka C połączone
c851376d 30w jakikolwiek sposób i kompiluje to jako rozszerzenie C dla Pythona.
6f08c5d3 31Cython jest oparty na Pyreksie.
c851376d 32
33%package examples
e752d74b
JB
34Summary: Examples for Cython language
35Summary(pl.UTF-8): Przykłady programów w języku Cython
c851376d 36Group: Libraries/Python
37Requires: %{name} = %{version}-%{release}
38
39%description examples
e752d74b 40This package contains example programs for Cython language.
c851376d 41
42%description examples -l pl.UTF-8
e752d74b 43Pakiet zawierający przykładowe programy napisane w języku Cython.
c851376d 44
45%prep
46%setup -q -n %{module}-%{version}
47
7f7a7361
JB
48%build
49CC="%{__cc}" \
50CFLAGS="%{rpmcflags}" \
51%{__python} setup.py build
52
c851376d 53%install
54rm -rf $RPM_BUILD_ROOT
55install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
56
57%{__python} setup.py install \
58 --root=$RPM_BUILD_ROOT \
59 --install-purelib=%{py_sitescriptdir} \
60 -O2
61
f7af39b5 62find $RPM_BUILD_ROOT%{py_sitedir} -name "*.py" -a ! -name 'Lexicon.py' -exec rm -f {} \;
c851376d 63
64cp -a Demos/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
65
66%clean
67rm -rf $RPM_BUILD_ROOT
68
69%files
70%defattr(644,root,root,755)
e752d74b 71%doc COPYING.txt README.txt ToDo.txt USAGE.txt Doc/*.html Doc/*.c
f7af39b5 72%attr(755,root,root) %{_bindir}/cython
52da8e1d 73%attr(755,root,root) %{_bindir}/cygdb
81b5c351 74%{py_sitedir}/cython.py[co]
f7af39b5 75%{py_sitedir}/Cython
76%{py_sitedir}/pyximport
77%{py_sitedir}/Cython-*.egg-info
c851376d 78
79%files examples
80%defattr(644,root,root,755)
81%{_examplesdir}/%{name}-%{version}
This page took 0.087369 seconds and 4 git commands to generate.