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