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