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