3 %bcond_without apidocs # do not build and package API docs
4 %bcond_without static_libs # don't build static libraries
5 %bcond_without glade # don't package glade catalog file
7 Summary: GObject Plugin System
8 Summary(pl.UTF-8): System wtyczek GObject
14 Source0: http://ftp.gnome.org/pub/GNOME/sources/libpeas/1.12/%{name}-%{version}.tar.xz
15 # Source0-md5: 2bd146e4cb2335843c6145f81e0a8d0e
16 URL: http://live.gnome.org/Libpeas
17 BuildRequires: autoconf >= 2.63.2
18 BuildRequires: automake >= 1:1.11
19 BuildRequires: gettext-devel >= 0.17
20 %{?with_glade:BuildRequires: glade-devel >= 2.0}
21 BuildRequires: glib2-devel >= 1:2.32.0
22 BuildRequires: gnome-common
23 BuildRequires: gobject-introspection-devel >= 1.40.0
24 BuildRequires: gtk+3-devel >= 3.0.0
25 BuildRequires: gtk-doc >= 1.11
26 BuildRequires: intltool >= 0.40.0
27 BuildRequires: libtool >= 2:2.2.6
28 BuildRequires: python >= 1:2.5.2
29 BuildRequires: python-pygobject3-devel >= 3.0.0
30 BuildRequires: python3-devel >= 1:3.2.0
31 BuildRequires: rpmbuild(macros) >= 1.601
32 BuildRequires: seed-devel >= 3.0.0
33 BuildRequires: tar >= 1:1.22
35 Obsoletes: libpeas-loader-gjs < 1.10.0
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 libpeas is a gobject-based plugins engine, and is targetted at giving
40 every application the chance to assume its own extensibility. It also
41 has a set of features including, but not limited to:
42 - multiple extension points
43 - on demand (lazy) programming language support for C, Python and JS
44 - simplicity of the API
46 %description -l pl.UTF-8
47 libpeas to silnik wtyczek oparty na bibliotece GObject; jego celem
48 jest zapewnienie każdej aplikacji własnej rozszerzalności. Ma także
49 pewien zbiór możliwości, w tym:
50 - wiele punktów rozszerzeń
51 - wsparcie dla leniwego programowania dla języków C, Python i JS
54 %package loader-python
55 Summary: Python 2.x loader for libpeas library
56 Summary(pl.UTF-8): Moduł ładujący dla Pythona 2.x do biblioteki libpeas
58 Requires: %{name} = %{version}-%{release}
59 Requires: python-libs >= 1:2.5.2
61 %description loader-python
62 Python 2.x loader for libpeas library.
64 %description loader-python -l pl.UTF-8
65 Moduł ładujący dla Pythona 2.x do biblioteki libpeas.
67 %package loader-python3
68 Summary: Python 3.x loader for libpeas library
69 Summary(pl.UTF-8): Moduł ładujący dla Pythona 3.x do biblioteki libpeas
71 Requires: %{name} = %{version}-%{release}
73 %description loader-python3
74 Python 3.x loader for libpeas library.
76 %description loader-python3 -l pl.UTF-8
77 Moduł ładujący dla Pythona 3.x do biblioteki libpeas.
80 Summary: JavaScript (seed) loader for libpeas library
81 Summary(pl.UTF-8): Moduł ładujący dla JavaScriptu (seed) do biblioteki libpeas
83 Requires: %{name} = %{version}-%{release}
84 Requires: seed >= 3.0.0
86 %description loader-seed
87 JavaScript (seed) loader for libpeas library.
89 %description loader-seed -l pl.UTF-8
90 Moduł ładujący dla JavaScriptu (seed) do biblioteki libpeas.
93 Summary: Header files for libpeas library
94 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libpeas
95 Group: Development/Libraries
96 Requires: %{name} = %{version}-%{release}
97 Requires: glib2-devel >= 1:2.32.0
98 Requires: gobject-introspection-devel >= 1.40.0
101 Header files for libpeas library.
103 %description devel -l pl.UTF-8
104 Pliki nagłówkowe biblioteki libpeas.
107 Summary: Static libpeas library
108 Summary(pl.UTF-8): Statyczna biblioteka libpeas
109 Group: Development/Libraries
110 Requires: %{name}-devel = %{version}-%{release}
113 Static libpeas library.
115 %description static -l pl.UTF-8
116 Statyczna biblioteka libpeas.
119 Summary: GObject Plugin System - GTK+ widgets
120 Summary(pl.UTF-8): System wtyczek GObject - widgety GTK+
122 Requires(post,postun): gtk-update-icon-cache
123 Requires: %{name} = %{version}-%{release}
124 Requires: gtk+3 >= 3.0.0
125 Requires: hicolor-icon-theme
128 libpeas is a gobject-based plugins engine, and is targetted at giving
129 every application the chance to assume its own extensibility. It also
130 has a set of features including, but not limited to:
131 - multiple extension points
132 - on demand (lazy) programming language support for C, Python and JS
133 - simplicity of the API
135 This package contains GTK+ widgets library.
137 %description gtk -l pl.UTF-8
138 libpeas to silnik wtyczek oparty na bibliotece GObject; jego celem
139 jest zapewnienie każdej aplikacji własnej rozszerzalności. Ma także
140 pewien zbiór możliwości, w tym:
141 - wiele punktów rozszerzeń
142 - wsparcie dla leniwego programowania dla języków C, Python i JS
145 Ten pakiet zawiera bibliotekę widgetów GTK+.
148 Summary: Header files for libpeas-gtk library
149 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libpeas-gtk
150 Group: X11/Development/Libraries
151 Requires: %{name}-devel = %{version}-%{release}
152 Requires: %{name}-gtk = %{version}-%{release}
153 Requires: gtk+3-devel >= 3.0.0
155 %description gtk-devel
156 Header files for libpeas-gtk library.
158 %description gtk-devel -l pl.UTF-8
159 Pliki nagłówkowe biblioteki libpeas-gtk.
162 Summary: libpeas-gtk catalog file for Glade
163 Summary(pl.UTF-8): Plik katalogu libpeas-gtk dla Glade
164 Group: X11/Development/Libraries
165 Requires: %{name}-gtk-devel = %{version}-%{release}
166 Requires: glade >= 2.0
168 %description gtk-glade
169 libpeas-gtk catalog file for Glade.
171 %description gtk-glade -l pl.UTF-8
172 Plik katalogu libpeas-gtk dla Glade.
175 Summary: Static libpeas-gtk library
176 Summary(pl.UTF-8): Statyczna biblioteka libpeas-gtk
177 Group: X11/Development/Libraries
178 Requires: %{name}-devel = %{version}-%{release}
179 Requires: %{name}-gtk-devel = %{version}-%{release}
181 %description gtk-static
182 Static libpeas library.
184 %description gtk-static -l pl.UTF-8
185 Statyczna biblioteka libpeas.
188 Summary: libpeas API documentation
189 Summary(pl.UTF-8): Dokumentacja API biblioteki libpeas
191 Requires: gtk-doc-common
194 API and internal documentation for libpeas library.
196 %description apidocs -l pl.UTF-8
197 Dokumentacja API biblioteki libpeas.
200 Summary: Demo application for libpeas
201 Summary(pl.UTF-8): Aplikacja demonstracyjna libpeas
203 Requires: %{name} = %{version}-%{release}
204 Requires: %{name}-gtk = %{version}-%{release}
205 Requires: %{name}-loader-python = %{version}-%{release}
206 Requires: %{name}-loader-seed = %{version}-%{release}
209 Demo application for libpeas.
211 %description demo -l pl.UTF-8
212 Aplikacja demonstracyjna libpeas.
224 --disable-silent-rules \
225 %{__enable_disable apidocs gtk-doc} \
226 %{__enable_disable glade glade-catalog} \
227 %{__enable_disable static_libs static} \
228 --with-html-dir=%{_gtkdocdir}
232 rm -rf $RPM_BUILD_ROOT
235 DESTDIR=$RPM_BUILD_ROOT
237 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la \
238 $RPM_BUILD_ROOT%{_libdir}/peas-demo/plugins/*/*.la \
239 $RPM_BUILD_ROOT%{_libdir}/libpeas-1.0/loaders/*.la
241 %if %{with static_libs}
242 %{__rm} $RPM_BUILD_ROOT%{_libdir}/peas-demo/plugins/*/*.a \
243 $RPM_BUILD_ROOT%{_libdir}/libpeas-1.0/loaders/*.a
249 rm -rf $RPM_BUILD_ROOT
251 %post -p /sbin/ldconfig
252 %postun -p /sbin/ldconfig
256 %update_icon_cache hicolor
260 %update_icon_cache hicolor
262 %files -f libpeas.lang
263 %defattr(644,root,root,755)
264 %doc AUTHORS ChangeLog NEWS README
265 %attr(755,root,root) %{_libdir}/libpeas-1.0.so.*.*.*
266 %attr(755,root,root) %ghost %{_libdir}/libpeas-1.0.so.0
267 %dir %{_libdir}/libpeas-1.0
268 %dir %{_libdir}/libpeas-1.0/loaders
269 %{_libdir}/girepository-1.0/Peas-1.0.typelib
272 %defattr(644,root,root,755)
273 %attr(755,root,root) %{_libdir}/libpeas-1.0/loaders/libpythonloader.so
275 %files loader-python3
276 %defattr(644,root,root,755)
277 %attr(755,root,root) %{_libdir}/libpeas-1.0/loaders/libpython3loader.so
280 %defattr(644,root,root,755)
281 %attr(755,root,root) %{_libdir}/libpeas-1.0/loaders/libseedloader.so
284 %defattr(644,root,root,755)
285 %attr(755,root,root) %{_libdir}/libpeas-1.0.so
286 %{_includedir}/libpeas-1.0
287 %{_pkgconfigdir}/libpeas-1.0.pc
288 %{_datadir}/gir-1.0/Peas-1.0.gir
290 %if %{with static_libs}
292 %defattr(644,root,root,755)
293 %{_libdir}/libpeas-1.0.a
297 %defattr(644,root,root,755)
298 %attr(755,root,root) %{_libdir}/libpeas-gtk-1.0.so.*.*.*
299 %attr(755,root,root) %ghost %{_libdir}/libpeas-gtk-1.0.so.0
300 %{_libdir}/girepository-1.0/PeasGtk-1.0.typelib
301 %{_iconsdir}/hicolor/*/actions/libpeas-plugin.png
302 %{_iconsdir}/hicolor/scalable/actions/libpeas-plugin.svg
305 %defattr(644,root,root,755)
306 %attr(755,root,root) %{_libdir}/libpeas-gtk-1.0.so
307 %{_pkgconfigdir}/libpeas-gtk-1.0.pc
308 %{_datadir}/gir-1.0/PeasGtk-1.0.gir
312 %defattr(644,root,root,755)
313 %{_datadir}/glade/catalogs/libpeas-gtk.xml
316 %if %{with static_libs}
318 %defattr(644,root,root,755)
319 %{_libdir}/libpeas-gtk-1.0.a
323 %defattr(644,root,root,755)
324 %attr(755,root,root) %{_bindir}/peas-demo
325 %dir %{_libdir}/peas-demo
326 %dir %{_libdir}/peas-demo/plugins
327 %dir %{_libdir}/peas-demo/plugins/helloworld
328 %attr(755,root,root) %{_libdir}/peas-demo/plugins/helloworld/libhelloworld.so
329 %{_libdir}/peas-demo/plugins/helloworld/helloworld.plugin
330 %dir %{_libdir}/peas-demo/plugins/pythonhello
331 %{_libdir}/peas-demo/plugins/pythonhello/pythonhello.plugin
332 %{_libdir}/peas-demo/plugins/pythonhello/pythonhello.py*
333 %{_libdir}/peas-demo/plugins/pythonhello/__pycache__
334 %dir %{_libdir}/peas-demo/plugins/secondtime
335 %attr(755,root,root) %{_libdir}/peas-demo/plugins/secondtime/libsecondtime.so
336 %{_libdir}/peas-demo/plugins/secondtime/secondtime.plugin
337 %dir %{_libdir}/peas-demo/plugins/seedhello
338 %{_libdir}/peas-demo/plugins/seedhello/seedhello.js
339 %{_libdir}/peas-demo/plugins/seedhello/seedhello.plugin
343 %defattr(644,root,root,755)
344 %{_gtkdocdir}/libpeas