]>
Commit | Line | Data |
---|---|---|
911c11cc JB |
1 | # NOTE: despite upstream name python-caja, it's not a binding from Python to Caja, |
2 | # but from Caja to Python, allowing to write Caja extensions in Python - thus our Name. | |
3 | Summary: Python bindings for libcaja-extension library | |
4 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki libcaja-extension | |
5 | Name: mate-file-manager-python | |
8b1b8983 | 6 | Version: 1.6.1 |
911c11cc JB |
7 | Release: 1 |
8 | License: GPL v2+ | |
9 | Group: Libraries/Python | |
10 | Source0: http://pub.mate-desktop.org/releases/1.6/python-caja-%{version}.tar.xz | |
8b1b8983 | 11 | # Source0-md5: 89c348a368350d031dfadc9b484303c5 |
911c11cc JB |
12 | URL: http://mate-desktop.org/ |
13 | BuildRequires: autoconf >= 2.53 | |
14 | BuildRequires: automake >= 1:1.9 | |
15 | BuildRequires: gtk-doc >= 1.9 | |
16 | BuildRequires: libtool >= 1:1.4.3 | |
17 | BuildRequires: libxslt-progs | |
18 | BuildRequires: mate-file-manager-devel >= 1.6.0 | |
19 | BuildRequires: pkgconfig | |
20 | BuildRequires: python-devel >= 2.0 | |
21 | # for docs generation | |
22 | BuildRequires: python-pygobject-devel >= 2.28.2 | |
23 | # for binding itself (pygobject3 is preferred with no configure switch) | |
24 | BuildRequires: python-pygobject3-devel >= 3.0.0 | |
25 | BuildRequires: rpm-pythonprov | |
26 | BuildRequires: rpmbuild(macros) >= 1.219 | |
27 | BuildRequires: tar >= 1:1.22 | |
28 | BuildRequires: xz | |
29 | Requires: mate-file-manager >= 1.6.0 | |
30 | Requires: python-libs | |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
34 | Python bindings for libcaja-extension library, allowing to write Caja | |
35 | extensions in Python. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | Wiązania Pythona do biblioteki libcaja-extension, pozwalające na | |
39 | tworzenie rozszerzeń zarządcy plików Caja w Pythonie. | |
40 | ||
41 | %package devel | |
42 | Summary: Development files for Python Caja extensions | |
43 | Summary(pl.UTF-8): Pliki programistyczne dla pythonowych rozszerzeń zarządcy plików Caja | |
44 | Group: Development/Libraries | |
45 | # doesn't require base; the only file is pkg-config specific, so let's require it | |
46 | Requires: pkgconfig | |
47 | ||
48 | %description devel | |
49 | Development files for Caja extensions written in Python. | |
50 | ||
51 | %description devel -l pl.UTF-8 | |
52 | Pliki programistyczne dla rozszerzeń zarządcy plików Caja pisanych w | |
53 | Pythonie. | |
54 | ||
55 | %package apidocs | |
56 | Summary: Python Caja API documentation | |
57 | Summary(pl.UTF-8): Dokumentacja API Pythona dla rozszerzeń zarządcy plików Caja | |
58 | Group: Documentation | |
59 | ||
60 | %description apidocs | |
61 | Python Caja API documentation. | |
62 | ||
63 | %description apidocs -l pl.UTF-8 | |
64 | Dokumentacja API Pythona dla rozszerzeń zarządcy plików Caja. | |
65 | ||
66 | %package examples | |
67 | Summary: Example Python extensions for Caja file manager | |
68 | Summary(pl.UTF-8): Przykładowe pythonowe rozszerzenia dla zarządcy plików Caja | |
69 | Group: Documentation | |
70 | ||
71 | %description examples | |
72 | Example Python extensions for Caja file manager. | |
73 | ||
74 | %description examples -l pl.UTF-8 | |
75 | Przykładowe rozszerzenia dla zarządcy plików Caja napisane w Pythonie. | |
76 | ||
77 | %prep | |
78 | %setup -q -n python-caja-%{version} | |
79 | ||
80 | %build | |
81 | %{__libtoolize} | |
82 | %{__aclocal} -I m4 | |
83 | %{__autoconf} | |
84 | %{__autoheader} | |
85 | %{__automake} | |
86 | %configure \ | |
87 | --enable-gtk-doc \ | |
88 | --with-html-dir=%{_gtkdocdir} | |
89 | ||
90 | # docs generation parts are gobject2 specific, while configure prefers gobject3 | |
91 | %{__make} \ | |
92 | PYGOBJECT_FIXXREF="%{__python} `pkg-config --variable=fixxref pygobject-2.0`" \ | |
93 | PYGOBJECT_PYGDOCS="`pkg-config --variable=pygdocs pygobject-2.0`" | |
94 | ||
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %{__make} install \ | |
99 | DESTDIR=$RPM_BUILD_ROOT \ | |
100 | HTMLdir=%{_gtkdocdir}/caja-python \ | |
101 | PYGOBJECT_PYGDOCS="`pkg-config --variable=pygdocs pygobject-2.0`" | |
102 | ||
103 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/caja/extensions-2.0/*.la | |
104 | ||
105 | # not installed because of incomplete docs/Makefile | |
106 | cp -p docs/html/* $RPM_BUILD_ROOT%{_gtkdocdir}/caja-python | |
107 | ||
108 | # examples | |
109 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
8b1b8983 JB |
110 | %{__mv} $RPM_BUILD_ROOT%{_docdir}/python-caja/README $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
111 | %{__mv} $RPM_BUILD_ROOT%{_docdir}/python-caja/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
911c11cc JB |
112 | |
113 | # directory for python plugins for caja - see src/caja-python.c or caja-python.pc | |
114 | install -d $RPM_BUILD_ROOT%{_datadir}/caja-python/extensions | |
115 | ||
116 | %clean | |
117 | rm -rf $RPM_BUILD_ROOT | |
118 | ||
119 | %files | |
120 | %defattr(644,root,root,755) | |
121 | %doc AUTHORS ChangeLog NEWS README | |
122 | %attr(755,root,root) %{_libdir}/caja/extensions-2.0/libcaja-python.so | |
123 | %dir %{_datadir}/caja-python | |
124 | %dir %{_datadir}/caja-python/extensions | |
125 | ||
126 | %files devel | |
127 | %defattr(644,root,root,755) | |
128 | %{_pkgconfigdir}/caja-python.pc | |
129 | ||
130 | %files apidocs | |
131 | %defattr(644,root,root,755) | |
132 | %{_gtkdocdir}/caja-python | |
133 | ||
134 | %files examples | |
135 | %defattr(644,root,root,755) | |
136 | %{_examplesdir}/%{name}-%{version} |