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