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