]>
Commit | Line | Data |
---|---|---|
d273a36a | 1 | # NOTE: for EFL >= 1.8.0 version see python-efl.spec |
3dead6ac JB |
2 | Summary: Python bindings for Edje library |
3 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki Edje | |
4 | Name: python-edje | |
6ccdf3b3 | 5 | Version: 1.7.0 |
6157c29d | 6 | Release: 12 |
3dead6ac JB |
7 | License: LGPL v2.1+ |
8 | Group: Development/Languages/Python | |
9 | Source0: http://download.enlightenment.org/releases/BINDINGS/python/%{name}-%{version}.tar.bz2 | |
6ccdf3b3 | 10 | # Source0-md5: 1e0d7a4a4504298caaad0cee476e4edb |
3dead6ac | 11 | URL: http://trac.enlightenment.org/e/wiki/Python |
6ccdf3b3 JB |
12 | BuildRequires: edje-devel >= 1.7.0 |
13 | BuildRequires: eina-devel >= 1.7.0 | |
3dead6ac | 14 | BuildRequires: epydoc |
6ccdf3b3 JB |
15 | BuildRequires: evas-devel >= 1.7.0 |
16 | BuildRequires: python-Cython >= 0.15.1 | |
17 | BuildRequires: python-devel >= 1:2.7 | |
18 | BuildRequires: python-evas >= 1.7.0 | |
3dead6ac JB |
19 | BuildRequires: rpm-pythonprov |
20 | BuildRequires: pkgconfig >= 1:0.22 | |
21 | BuildRequires: rpmbuild(macros) >= 1.219 | |
6ccdf3b3 JB |
22 | Requires: edje-libs >= 1.7.0 |
23 | Requires: eina >= 1.7.0 | |
24 | Requires: evas >= 1.7.0 | |
25 | Requires: python-evas >= 1.7.0 | |
3dead6ac JB |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
29 | Python bindings for Edje library. | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | Wiązania Pythona do biblioteki Edje. | |
33 | ||
34 | %package devel | |
35 | Summary: Python bindings for Edje library - development files | |
36 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki Edje - pliki programistyczne | |
37 | Group: Development/Libraries | |
38 | Requires: %{name} = %{version}-%{release} | |
6ccdf3b3 JB |
39 | Requires: edje-devel >= 1.7.0 |
40 | Requires: eina-devel >= 1.7.0 | |
41 | Requires: evas-devel >= 1.7.0 | |
42 | Requires: python-evas-devel >= 1.7.0 | |
3dead6ac JB |
43 | |
44 | %description devel | |
45 | Python bindings for Edje library - development files. | |
46 | ||
47 | %description devel -l pl.UTF-8 | |
48 | Wiązania Pythona do biblioteki Edje - pliki programistyczne. | |
49 | ||
50 | %prep | |
51 | %setup -q | |
3dead6ac JB |
52 | |
53 | %build | |
54 | %configure \ | |
55 | --disable-silent-rules | |
56 | ||
57 | %{__make} | |
58 | ||
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %{__make} install \ | |
63 | DESTDIR=$RPM_BUILD_ROOT | |
64 | ||
65 | %py_postclean | |
66 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/edje/c_edje.la | |
67 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/edje/edit/c_edit.la | |
68 | ||
69 | install -d $RPM_BUILD_ROOT%{_examplesdir} | |
70 | mv $RPM_BUILD_ROOT%{_datadir}/%{name}/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
71 | ||
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
77 | %doc AUTHORS README | |
78 | %dir %{py_sitedir}/edje | |
79 | %attr(755,root,root) %{py_sitedir}/edje/c_edje.so | |
80 | %dir %{py_sitedir}/edje/edit | |
81 | %attr(755,root,root) %{py_sitedir}/edje/edit/c_edit.so | |
6ccdf3b3 JB |
82 | %{py_sitedir}/edje/*.py[co] |
83 | %{py_sitedir}/edje/edit/__init__.py[co] | |
3dead6ac JB |
84 | %{_examplesdir}/%{name}-%{version} |
85 | ||
86 | %files devel | |
87 | %defattr(644,root,root,755) | |
88 | %{_includedir}/python-edje | |
89 | %{_pkgconfigdir}/python-edje.pc |