]>
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 ŁK |
10 | Version: 1.14.0 |
11 | Release: 1 | |
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 | |
3357d252 | 28 | BuildRequires: lua51-devel |
18311bc3 | 29 | BuildRequires: python >= 1:2.5.2 |
3357d252 | 30 | BuildRequires: python-pygobject3-devel >= 3.2.0 |
f6bd8af1 | 31 | BuildRequires: python3-devel >= 1:3.2.0 |
578af9cd | 32 | BuildRequires: rpmbuild(macros) >= 1.601 |
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 | ||
3357d252 ŁK |
54 | %package loader-lua |
55 | Summary: Lua loader for libpeas library | |
56 | Summary(pl.UTF-8): Moduł ładujący dla języka Lua do biblioteki libpeas | |
57 | Group: Libraries | |
58 | Requires: %{name} = %{version}-%{release} | |
3ee8800d | 59 | Requires: lua51-libs |
3357d252 ŁK |
60 | |
61 | %description loader-lua | |
62 | Lua loader for libpeas library. | |
63 | ||
64 | %description loader-lua -l pl.UTF-8 | |
65 | Moduł ładujący dla języka Lua do biblioteki libpeas. | |
66 | ||
5f8b5c56 | 67 | %package loader-python |
85b97cae JB |
68 | Summary: Python 2.x loader for libpeas library |
69 | Summary(pl.UTF-8): Moduł ładujący dla Pythona 2.x do biblioteki libpeas | |
5f8b5c56 AF |
70 | Group: Libraries |
71 | Requires: %{name} = %{version}-%{release} | |
18311bc3 | 72 | Requires: python-libs >= 1:2.5.2 |
5f8b5c56 | 73 | |
d82c47a8 | 74 | %description loader-python |
85b97cae JB |
75 | Python 2.x loader for libpeas library. |
76 | ||
77 | %description loader-python -l pl.UTF-8 | |
78 | Moduł ładujący dla Pythona 2.x do biblioteki libpeas. | |
5f8b5c56 | 79 | |
7531aa2f | 80 | %package loader-python3 |
85b97cae JB |
81 | Summary: Python 3.x loader for libpeas library |
82 | Summary(pl.UTF-8): Moduł ładujący dla Pythona 3.x do biblioteki libpeas | |
7531aa2f MB |
83 | Group: Libraries |
84 | Requires: %{name} = %{version}-%{release} | |
85 | ||
86 | %description loader-python3 | |
85b97cae JB |
87 | Python 3.x loader for libpeas library. |
88 | ||
89 | %description loader-python3 -l pl.UTF-8 | |
90 | Moduł ładujący dla Pythona 3.x do biblioteki libpeas. | |
7531aa2f | 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} | |
3357d252 | 97 | Requires: glib2-devel >= 1:2.38.0 |
18311bc3 | 98 | Requires: gobject-introspection-devel >= 1.40.0 |
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 |
5ec00cd5 ER |
192 | %if "%{_rpmversion}" >= "5" |
193 | BuildArch: noarch | |
194 | %endif | |
47dc788b AF |
195 | |
196 | %description apidocs | |
197 | API and internal documentation for libpeas library. | |
198 | ||
199 | %description apidocs -l pl.UTF-8 | |
200 | Dokumentacja API biblioteki libpeas. | |
201 | ||
202 | %package demo | |
203 | Summary: Demo application for libpeas | |
578af9cd MB |
204 | Summary(pl.UTF-8): Aplikacja demonstracyjna libpeas |
205 | Group: Applications | |
5f8b5c56 AF |
206 | Requires: %{name} = %{version}-%{release} |
207 | Requires: %{name}-gtk = %{version}-%{release} | |
208 | Requires: %{name}-loader-python = %{version}-%{release} | |
209 | Requires: %{name}-loader-seed = %{version}-%{release} | |
47dc788b AF |
210 | |
211 | %description demo | |
212 | Demo application for libpeas. | |
213 | ||
214 | %description demo -l pl.UTF-8 | |
215 | Aplikacja demonstracyjna libpeas. | |
216 | ||
217 | %prep | |
218 | %setup -q | |
219 | ||
220 | %build | |
5f8b5c56 AF |
221 | %{__libtoolize} |
222 | %{__aclocal} | |
223 | %{__autoconf} | |
224 | %{__autoheader} | |
225 | %{__automake} | |
47dc788b | 226 | %configure \ |
578af9cd | 227 | --disable-silent-rules \ |
5f8b5c56 | 228 | %{__enable_disable apidocs gtk-doc} \ |
85b97cae JB |
229 | %{__enable_disable glade glade-catalog} \ |
230 | %{__enable_disable static_libs static} \ | |
45d42e1c | 231 | --with-html-dir=%{_gtkdocdir} |
47dc788b AF |
232 | %{__make} |
233 | ||
234 | %install | |
235 | rm -rf $RPM_BUILD_ROOT | |
236 | ||
237 | %{__make} install \ | |
238 | DESTDIR=$RPM_BUILD_ROOT | |
239 | ||
240 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la \ | |
241 | $RPM_BUILD_ROOT%{_libdir}/peas-demo/plugins/*/*.la \ | |
242 | $RPM_BUILD_ROOT%{_libdir}/libpeas-1.0/loaders/*.la | |
243 | ||
244 | %if %{with static_libs} | |
245 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/peas-demo/plugins/*/*.a \ | |
246 | $RPM_BUILD_ROOT%{_libdir}/libpeas-1.0/loaders/*.a | |
247 | %endif | |
248 | ||
249 | %find_lang libpeas | |
250 | ||
251 | %clean | |
252 | rm -rf $RPM_BUILD_ROOT | |
253 | ||
254 | %post -p /sbin/ldconfig | |
255 | %postun -p /sbin/ldconfig | |
578af9cd MB |
256 | |
257 | %post gtk | |
258 | /sbin/ldconfig | |
259 | %update_icon_cache hicolor | |
260 | ||
261 | %postun gtk | |
262 | /sbin/ldconfig | |
263 | %update_icon_cache hicolor | |
47dc788b AF |
264 | |
265 | %files -f libpeas.lang | |
266 | %defattr(644,root,root,755) | |
267 | %doc AUTHORS ChangeLog NEWS README | |
268 | %attr(755,root,root) %{_libdir}/libpeas-1.0.so.*.*.* | |
269 | %attr(755,root,root) %ghost %{_libdir}/libpeas-1.0.so.0 | |
047f0a18 PZ |
270 | %dir %{_libdir}/libpeas-1.0 |
271 | %dir %{_libdir}/libpeas-1.0/loaders | |
047f0a18 | 272 | %{_libdir}/girepository-1.0/Peas-1.0.typelib |
5f8b5c56 | 273 | |
3357d252 ŁK |
274 | %files loader-lua |
275 | %defattr(644,root,root,755) | |
276 | #%attr(755,root,root) %{_libdir}/libpeas-1.0/loaders/libseedloader.so | |
277 | ||
5f8b5c56 AF |
278 | %files loader-python |
279 | %defattr(644,root,root,755) | |
578af9cd | 280 | %attr(755,root,root) %{_libdir}/libpeas-1.0/loaders/libpythonloader.so |
5f8b5c56 | 281 | |
7531aa2f MB |
282 | %files loader-python3 |
283 | %defattr(644,root,root,755) | |
284 | %attr(755,root,root) %{_libdir}/libpeas-1.0/loaders/libpython3loader.so | |
285 | ||
47dc788b AF |
286 | %files devel |
287 | %defattr(644,root,root,755) | |
578af9cd | 288 | %attr(755,root,root) %{_libdir}/libpeas-1.0.so |
47dc788b AF |
289 | %{_includedir}/libpeas-1.0 |
290 | %{_pkgconfigdir}/libpeas-1.0.pc | |
291 | %{_datadir}/gir-1.0/Peas-1.0.gir | |
292 | ||
293 | %if %{with static_libs} | |
294 | %files static | |
295 | %defattr(644,root,root,755) | |
296 | %{_libdir}/libpeas-1.0.a | |
297 | %endif | |
298 | ||
299 | %files gtk | |
300 | %defattr(644,root,root,755) | |
301 | %attr(755,root,root) %{_libdir}/libpeas-gtk-1.0.so.*.*.* | |
302 | %attr(755,root,root) %ghost %{_libdir}/libpeas-gtk-1.0.so.0 | |
303 | %{_libdir}/girepository-1.0/PeasGtk-1.0.typelib | |
f8c13b13 JB |
304 | %{_iconsdir}/hicolor/*/actions/libpeas-plugin.png |
305 | %{_iconsdir}/hicolor/scalable/actions/libpeas-plugin.svg | |
47dc788b AF |
306 | |
307 | %files gtk-devel | |
308 | %defattr(644,root,root,755) | |
578af9cd | 309 | %attr(755,root,root) %{_libdir}/libpeas-gtk-1.0.so |
47dc788b AF |
310 | %{_pkgconfigdir}/libpeas-gtk-1.0.pc |
311 | %{_datadir}/gir-1.0/PeasGtk-1.0.gir | |
85b97cae JB |
312 | |
313 | %if %{with glade} | |
314 | %files gtk-glade | |
315 | %defattr(644,root,root,755) | |
431e0f31 | 316 | %{_datadir}/glade/catalogs/libpeas-gtk.xml |
85b97cae | 317 | %endif |
47dc788b AF |
318 | |
319 | %if %{with static_libs} | |
320 | %files gtk-static | |
321 | %defattr(644,root,root,755) | |
322 | %{_libdir}/libpeas-gtk-1.0.a | |
323 | %endif | |
324 | ||
325 | %files demo | |
326 | %defattr(644,root,root,755) | |
f8c13b13 | 327 | %attr(755,root,root) %{_bindir}/peas-demo |
691382e5 MB |
328 | %dir %{_libdir}/peas-demo |
329 | %dir %{_libdir}/peas-demo/plugins | |
330 | %dir %{_libdir}/peas-demo/plugins/helloworld | |
47dc788b | 331 | %attr(755,root,root) %{_libdir}/peas-demo/plugins/helloworld/libhelloworld.so |
691382e5 MB |
332 | %{_libdir}/peas-demo/plugins/helloworld/helloworld.plugin |
333 | %dir %{_libdir}/peas-demo/plugins/pythonhello | |
47dc788b | 334 | %{_libdir}/peas-demo/plugins/pythonhello/pythonhello.plugin |
691382e5 | 335 | %{_libdir}/peas-demo/plugins/pythonhello/pythonhello.py* |
85b97cae | 336 | %{_libdir}/peas-demo/plugins/pythonhello/__pycache__ |
691382e5 | 337 | %dir %{_libdir}/peas-demo/plugins/secondtime |
47dc788b AF |
338 | %attr(755,root,root) %{_libdir}/peas-demo/plugins/secondtime/libsecondtime.so |
339 | %{_libdir}/peas-demo/plugins/secondtime/secondtime.plugin | |
47dc788b | 340 | |
47dc788b AF |
341 | %if %{with apidocs} |
342 | %files apidocs | |
343 | %defattr(644,root,root,755) | |
578af9cd | 344 | %{_gtkdocdir}/libpeas |
47dc788b | 345 | %endif |