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