]>
Commit | Line | Data |
---|---|---|
578af9cd | 1 | # |
47dc788b AF |
2 | # Conditional build: |
3 | %bcond_without apidocs # do not build and package API docs | |
0f09eec7 | 4 | %bcond_without luajit # LuaJIT implementation of lua 5.1 |
47dc788b | 5 | %bcond_without static_libs # don't build static libraries |
85b97cae | 6 | %bcond_without glade # don't package glade catalog file |
5ec00cd5 | 7 | |
fe77c428 MB |
8 | # luajit is not supported on x32 |
9 | %ifarch x32 | |
10 | %undefine with_luajit | |
11 | %endif | |
12 | ||
47dc788b AF |
13 | Summary: GObject Plugin System |
14 | Summary(pl.UTF-8): System wtyczek GObject | |
15 | Name: libpeas | |
1ce1d4d1 | 16 | Version: 1.22.0 |
defb3485 | 17 | Release: 2 |
47dc788b AF |
18 | License: LGPL v2 |
19 | Group: Libraries | |
1ce1d4d1 JR |
20 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libpeas/1.22/%{name}-%{version}.tar.xz |
21 | # Source0-md5: a20dc55c3f88ad06da9491cfd7de7558 | |
47dc788b AF |
22 | URL: http://live.gnome.org/Libpeas |
23 | BuildRequires: autoconf >= 2.63.2 | |
578af9cd | 24 | BuildRequires: automake >= 1:1.11 |
2afd22e9 | 25 | BuildRequires: gettext-tools >= 0.17 |
85b97cae | 26 | %{?with_glade:BuildRequires: glade-devel >= 2.0} |
3357d252 | 27 | BuildRequires: glib2-devel >= 1:2.38.0 |
578af9cd | 28 | BuildRequires: gnome-common |
8d430993 | 29 | BuildRequires: gobject-introspection-devel >= 1.40.0 |
47dc788b | 30 | BuildRequires: gtk+3-devel >= 3.0.0 |
578af9cd MB |
31 | BuildRequires: gtk-doc >= 1.11 |
32 | BuildRequires: intltool >= 0.40.0 | |
33 | BuildRequires: libtool >= 2:2.2.6 | |
2fd80e29 | 34 | BuildRequires: lua-lgi |
0f09eec7 JB |
35 | %{!?with_luajit:BuildRequires: lua51-devel >= 5.1.0} |
36 | %{?with_luajit:BuildRequires: luajit-devel >= 2.0} | |
18311bc3 | 37 | BuildRequires: python >= 1:2.5.2 |
3357d252 | 38 | BuildRequires: python-pygobject3-devel >= 3.2.0 |
f6bd8af1 | 39 | BuildRequires: python3-devel >= 1:3.2.0 |
578af9cd | 40 | BuildRequires: rpmbuild(macros) >= 1.601 |
6bc13e2b | 41 | BuildRequires: tar >= 1:1.22 |
6bc13e2b | 42 | BuildRequires: xz |
821a2573 JB |
43 | Requires: glib2 >= 1:2.38.0 |
44 | Requires: gobject-introspection >= 1.40.0 | |
8d430993 | 45 | Obsoletes: libpeas-loader-gjs < 1.10.0 |
d241ba08 | 46 | Obsoletes: libpeas-loader-seed < 1.14.0 |
47dc788b AF |
47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
48 | ||
49 | %description | |
578af9cd MB |
50 | libpeas is a gobject-based plugins engine, and is targetted at giving |
51 | every application the chance to assume its own extensibility. It also | |
47dc788b | 52 | has a set of features including, but not limited to: |
47dc788b | 53 | - multiple extension points |
d0b66b0f | 54 | - on demand (lazy) programming language support for C, Python and Lua |
578af9cd | 55 | - simplicity of the API |
47dc788b | 56 | |
85b97cae JB |
57 | %description -l pl.UTF-8 |
58 | libpeas to silnik wtyczek oparty na bibliotece GObject; jego celem | |
59 | jest zapewnienie każdej aplikacji własnej rozszerzalności. Ma także | |
60 | pewien zbiór możliwości, w tym: | |
61 | - wiele punktów rozszerzeń | |
d0b66b0f | 62 | - wsparcie dla leniwego programowania dla języków C, Python i Lua |
85b97cae JB |
63 | - prostota API |
64 | ||
3357d252 ŁK |
65 | %package loader-lua |
66 | Summary: Lua loader for libpeas library | |
67 | Summary(pl.UTF-8): Moduł ładujący dla języka Lua do biblioteki libpeas | |
68 | Group: Libraries | |
69 | Requires: %{name} = %{version}-%{release} | |
2fd80e29 | 70 | Requires: lua-lgi |
3357d252 ŁK |
71 | |
72 | %description loader-lua | |
73 | Lua loader for libpeas library. | |
74 | ||
75 | %description loader-lua -l pl.UTF-8 | |
76 | Moduł ładujący dla języka Lua do biblioteki libpeas. | |
77 | ||
5f8b5c56 | 78 | %package loader-python |
85b97cae JB |
79 | Summary: Python 2.x loader for libpeas library |
80 | Summary(pl.UTF-8): Moduł ładujący dla Pythona 2.x do biblioteki libpeas | |
5f8b5c56 AF |
81 | Group: Libraries |
82 | Requires: %{name} = %{version}-%{release} | |
18311bc3 | 83 | Requires: python-libs >= 1:2.5.2 |
5f8b5c56 | 84 | |
d82c47a8 | 85 | %description loader-python |
85b97cae JB |
86 | Python 2.x loader for libpeas library. |
87 | ||
88 | %description loader-python -l pl.UTF-8 | |
89 | Moduł ładujący dla Pythona 2.x do biblioteki libpeas. | |
5f8b5c56 | 90 | |
7531aa2f | 91 | %package loader-python3 |
85b97cae JB |
92 | Summary: Python 3.x loader for libpeas library |
93 | Summary(pl.UTF-8): Moduł ładujący dla Pythona 3.x do biblioteki libpeas | |
7531aa2f MB |
94 | Group: Libraries |
95 | Requires: %{name} = %{version}-%{release} | |
96 | ||
97 | %description loader-python3 | |
85b97cae JB |
98 | Python 3.x loader for libpeas library. |
99 | ||
100 | %description loader-python3 -l pl.UTF-8 | |
101 | Moduł ładujący dla Pythona 3.x do biblioteki libpeas. | |
7531aa2f | 102 | |
47dc788b AF |
103 | %package devel |
104 | Summary: Header files for libpeas library | |
105 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libpeas | |
106 | Group: Development/Libraries | |
107 | Requires: %{name} = %{version}-%{release} | |
3357d252 | 108 | Requires: glib2-devel >= 1:2.38.0 |
18311bc3 | 109 | Requires: gobject-introspection-devel >= 1.40.0 |
47dc788b AF |
110 | |
111 | %description devel | |
112 | Header files for libpeas library. | |
113 | ||
114 | %description devel -l pl.UTF-8 | |
115 | Pliki nagłówkowe biblioteki libpeas. | |
116 | ||
117 | %package static | |
118 | Summary: Static libpeas library | |
119 | Summary(pl.UTF-8): Statyczna biblioteka libpeas | |
120 | Group: Development/Libraries | |
121 | Requires: %{name}-devel = %{version}-%{release} | |
122 | ||
123 | %description static | |
124 | Static libpeas library. | |
125 | ||
126 | %description static -l pl.UTF-8 | |
127 | Statyczna biblioteka libpeas. | |
128 | ||
129 | %package gtk | |
85b97cae JB |
130 | Summary: GObject Plugin System - GTK+ widgets |
131 | Summary(pl.UTF-8): System wtyczek GObject - widgety GTK+ | |
578af9cd | 132 | Group: X11/Libraries |
578af9cd | 133 | Requires(post,postun): gtk-update-icon-cache |
6bc13e2b | 134 | Requires: %{name} = %{version}-%{release} |
85b97cae | 135 | Requires: gtk+3 >= 3.0.0 |
578af9cd | 136 | Requires: hicolor-icon-theme |
47dc788b AF |
137 | |
138 | %description gtk | |
578af9cd MB |
139 | libpeas is a gobject-based plugins engine, and is targetted at giving |
140 | every application the chance to assume its own extensibility. It also | |
47dc788b | 141 | has a set of features including, but not limited to: |
47dc788b | 142 | - multiple extension points |
d0b66b0f | 143 | - on demand (lazy) programming language support for C, Python and Lua |
578af9cd | 144 | - simplicity of the API |
47dc788b | 145 | |
85b97cae JB |
146 | This package contains GTK+ widgets library. |
147 | ||
148 | %description gtk -l pl.UTF-8 | |
149 | libpeas to silnik wtyczek oparty na bibliotece GObject; jego celem | |
150 | jest zapewnienie każdej aplikacji własnej rozszerzalności. Ma także | |
151 | pewien zbiór możliwości, w tym: | |
152 | - wiele punktów rozszerzeń | |
d0b66b0f | 153 | - wsparcie dla leniwego programowania dla języków C, Python i Lua |
85b97cae JB |
154 | - prostota API |
155 | ||
156 | Ten pakiet zawiera bibliotekę widgetów GTK+. | |
157 | ||
47dc788b AF |
158 | %package gtk-devel |
159 | Summary: Header files for libpeas-gtk library | |
160 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libpeas-gtk | |
578af9cd MB |
161 | Group: X11/Development/Libraries |
162 | Requires: %{name}-devel = %{version}-%{release} | |
47dc788b | 163 | Requires: %{name}-gtk = %{version}-%{release} |
578af9cd | 164 | Requires: gtk+3-devel >= 3.0.0 |
47dc788b AF |
165 | |
166 | %description gtk-devel | |
167 | Header files for libpeas-gtk library. | |
168 | ||
169 | %description gtk-devel -l pl.UTF-8 | |
170 | Pliki nagłówkowe biblioteki libpeas-gtk. | |
171 | ||
85b97cae JB |
172 | %package gtk-glade |
173 | Summary: libpeas-gtk catalog file for Glade | |
174 | Summary(pl.UTF-8): Plik katalogu libpeas-gtk dla Glade | |
175 | Group: X11/Development/Libraries | |
176 | Requires: %{name}-gtk-devel = %{version}-%{release} | |
177 | Requires: glade >= 2.0 | |
178 | ||
179 | %description gtk-glade | |
180 | libpeas-gtk catalog file for Glade. | |
181 | ||
182 | %description gtk-glade -l pl.UTF-8 | |
183 | Plik katalogu libpeas-gtk dla Glade. | |
184 | ||
47dc788b AF |
185 | %package gtk-static |
186 | Summary: Static libpeas-gtk library | |
187 | Summary(pl.UTF-8): Statyczna biblioteka libpeas-gtk | |
578af9cd | 188 | Group: X11/Development/Libraries |
47dc788b AF |
189 | Requires: %{name}-devel = %{version}-%{release} |
190 | Requires: %{name}-gtk-devel = %{version}-%{release} | |
191 | ||
192 | %description gtk-static | |
193 | Static libpeas library. | |
194 | ||
195 | %description gtk-static -l pl.UTF-8 | |
196 | Statyczna biblioteka libpeas. | |
197 | ||
198 | %package apidocs | |
199 | Summary: libpeas API documentation | |
200 | Summary(pl.UTF-8): Dokumentacja API biblioteki libpeas | |
201 | Group: Documentation | |
578af9cd | 202 | Requires: gtk-doc-common |
5ec00cd5 ER |
203 | %if "%{_rpmversion}" >= "5" |
204 | BuildArch: noarch | |
205 | %endif | |
47dc788b AF |
206 | |
207 | %description apidocs | |
208 | API and internal documentation for libpeas library. | |
209 | ||
210 | %description apidocs -l pl.UTF-8 | |
211 | Dokumentacja API biblioteki libpeas. | |
212 | ||
213 | %package demo | |
214 | Summary: Demo application for libpeas | |
578af9cd MB |
215 | Summary(pl.UTF-8): Aplikacja demonstracyjna libpeas |
216 | Group: Applications | |
5f8b5c56 AF |
217 | Requires: %{name} = %{version}-%{release} |
218 | Requires: %{name}-gtk = %{version}-%{release} | |
d0b66b0f | 219 | Requires: %{name}-loader-lua = %{version}-%{release} |
5f8b5c56 | 220 | Requires: %{name}-loader-python = %{version}-%{release} |
47dc788b AF |
221 | |
222 | %description demo | |
223 | Demo application for libpeas. | |
224 | ||
225 | %description demo -l pl.UTF-8 | |
226 | Aplikacja demonstracyjna libpeas. | |
227 | ||
228 | %prep | |
229 | %setup -q | |
230 | ||
231 | %build | |
5f8b5c56 AF |
232 | %{__libtoolize} |
233 | %{__aclocal} | |
234 | %{__autoconf} | |
235 | %{__autoheader} | |
236 | %{__automake} | |
47dc788b | 237 | %configure \ |
0f09eec7 | 238 | %{!?with_luajit:--disable-luajit} \ |
578af9cd | 239 | --disable-silent-rules \ |
5f8b5c56 | 240 | %{__enable_disable apidocs gtk-doc} \ |
85b97cae JB |
241 | %{__enable_disable glade glade-catalog} \ |
242 | %{__enable_disable static_libs static} \ | |
45d42e1c | 243 | --with-html-dir=%{_gtkdocdir} |
47dc788b AF |
244 | %{__make} |
245 | ||
246 | %install | |
247 | rm -rf $RPM_BUILD_ROOT | |
248 | ||
249 | %{__make} install \ | |
250 | DESTDIR=$RPM_BUILD_ROOT | |
251 | ||
252 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la \ | |
253 | $RPM_BUILD_ROOT%{_libdir}/peas-demo/plugins/*/*.la \ | |
254 | $RPM_BUILD_ROOT%{_libdir}/libpeas-1.0/loaders/*.la | |
255 | ||
256 | %if %{with static_libs} | |
257 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/peas-demo/plugins/*/*.a \ | |
258 | $RPM_BUILD_ROOT%{_libdir}/libpeas-1.0/loaders/*.a | |
259 | %endif | |
260 | ||
261 | %find_lang libpeas | |
262 | ||
263 | %clean | |
264 | rm -rf $RPM_BUILD_ROOT | |
265 | ||
266 | %post -p /sbin/ldconfig | |
267 | %postun -p /sbin/ldconfig | |
578af9cd MB |
268 | |
269 | %post gtk | |
270 | /sbin/ldconfig | |
271 | %update_icon_cache hicolor | |
272 | ||
273 | %postun gtk | |
274 | /sbin/ldconfig | |
275 | %update_icon_cache hicolor | |
47dc788b AF |
276 | |
277 | %files -f libpeas.lang | |
278 | %defattr(644,root,root,755) | |
279 | %doc AUTHORS ChangeLog NEWS README | |
280 | %attr(755,root,root) %{_libdir}/libpeas-1.0.so.*.*.* | |
281 | %attr(755,root,root) %ghost %{_libdir}/libpeas-1.0.so.0 | |
047f0a18 PZ |
282 | %dir %{_libdir}/libpeas-1.0 |
283 | %dir %{_libdir}/libpeas-1.0/loaders | |
047f0a18 | 284 | %{_libdir}/girepository-1.0/Peas-1.0.typelib |
5f8b5c56 | 285 | |
3357d252 ŁK |
286 | %files loader-lua |
287 | %defattr(644,root,root,755) | |
2fd80e29 | 288 | %attr(755,root,root) %{_libdir}/libpeas-1.0/loaders/liblua51loader.so |
3357d252 | 289 | |
5f8b5c56 AF |
290 | %files loader-python |
291 | %defattr(644,root,root,755) | |
578af9cd | 292 | %attr(755,root,root) %{_libdir}/libpeas-1.0/loaders/libpythonloader.so |
5f8b5c56 | 293 | |
7531aa2f MB |
294 | %files loader-python3 |
295 | %defattr(644,root,root,755) | |
296 | %attr(755,root,root) %{_libdir}/libpeas-1.0/loaders/libpython3loader.so | |
297 | ||
47dc788b AF |
298 | %files devel |
299 | %defattr(644,root,root,755) | |
578af9cd | 300 | %attr(755,root,root) %{_libdir}/libpeas-1.0.so |
47dc788b AF |
301 | %{_includedir}/libpeas-1.0 |
302 | %{_pkgconfigdir}/libpeas-1.0.pc | |
303 | %{_datadir}/gir-1.0/Peas-1.0.gir | |
304 | ||
305 | %if %{with static_libs} | |
306 | %files static | |
307 | %defattr(644,root,root,755) | |
308 | %{_libdir}/libpeas-1.0.a | |
309 | %endif | |
310 | ||
311 | %files gtk | |
312 | %defattr(644,root,root,755) | |
313 | %attr(755,root,root) %{_libdir}/libpeas-gtk-1.0.so.*.*.* | |
314 | %attr(755,root,root) %ghost %{_libdir}/libpeas-gtk-1.0.so.0 | |
315 | %{_libdir}/girepository-1.0/PeasGtk-1.0.typelib | |
f8c13b13 JB |
316 | %{_iconsdir}/hicolor/*/actions/libpeas-plugin.png |
317 | %{_iconsdir}/hicolor/scalable/actions/libpeas-plugin.svg | |
47dc788b AF |
318 | |
319 | %files gtk-devel | |
320 | %defattr(644,root,root,755) | |
578af9cd | 321 | %attr(755,root,root) %{_libdir}/libpeas-gtk-1.0.so |
47dc788b AF |
322 | %{_pkgconfigdir}/libpeas-gtk-1.0.pc |
323 | %{_datadir}/gir-1.0/PeasGtk-1.0.gir | |
85b97cae JB |
324 | |
325 | %if %{with glade} | |
326 | %files gtk-glade | |
327 | %defattr(644,root,root,755) | |
431e0f31 | 328 | %{_datadir}/glade/catalogs/libpeas-gtk.xml |
85b97cae | 329 | %endif |
47dc788b AF |
330 | |
331 | %if %{with static_libs} | |
332 | %files gtk-static | |
333 | %defattr(644,root,root,755) | |
334 | %{_libdir}/libpeas-gtk-1.0.a | |
335 | %endif | |
336 | ||
337 | %files demo | |
338 | %defattr(644,root,root,755) | |
f8c13b13 | 339 | %attr(755,root,root) %{_bindir}/peas-demo |
691382e5 MB |
340 | %dir %{_libdir}/peas-demo |
341 | %dir %{_libdir}/peas-demo/plugins | |
342 | %dir %{_libdir}/peas-demo/plugins/helloworld | |
47dc788b | 343 | %attr(755,root,root) %{_libdir}/peas-demo/plugins/helloworld/libhelloworld.so |
691382e5 | 344 | %{_libdir}/peas-demo/plugins/helloworld/helloworld.plugin |
d0b66b0f ŁK |
345 | %dir %{_libdir}/peas-demo/plugins/luahello |
346 | %{_libdir}/peas-demo/plugins/luahello/luahello.plugin | |
691382e5 | 347 | %dir %{_libdir}/peas-demo/plugins/pythonhello |
47dc788b | 348 | %{_libdir}/peas-demo/plugins/pythonhello/pythonhello.plugin |
691382e5 | 349 | %{_libdir}/peas-demo/plugins/pythonhello/pythonhello.py* |
85b97cae | 350 | %{_libdir}/peas-demo/plugins/pythonhello/__pycache__ |
691382e5 | 351 | %dir %{_libdir}/peas-demo/plugins/secondtime |
47dc788b AF |
352 | %attr(755,root,root) %{_libdir}/peas-demo/plugins/secondtime/libsecondtime.so |
353 | %{_libdir}/peas-demo/plugins/secondtime/secondtime.plugin | |
47dc788b | 354 | |
47dc788b AF |
355 | %if %{with apidocs} |
356 | %files apidocs | |
357 | %defattr(644,root,root,755) | |
578af9cd | 358 | %{_gtkdocdir}/libpeas |
47dc788b | 359 | %endif |