]>
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 | |
5 | # | |
6 | Summary: GObject Plugin System | |
7 | Summary(pl.UTF-8): System wtyczek GObject | |
8 | Name: libpeas | |
e6386c81 | 9 | Version: 1.4.0 |
5f8b5c56 | 10 | Release: 1 |
47dc788b AF |
11 | License: LGPL v2 |
12 | Group: Libraries | |
e6386c81 ŁK |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libpeas/1.4/%{name}-%{version}.tar.xz |
14 | # Source0-md5: cc39dd2985a17aa362ad111d0a96e7b9 | |
15 | Patch0: pkgconfig-format.patch | |
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 |
e6386c81 ŁK |
20 | BuildRequires: gjs-devel >= 1.31.11 |
21 | BuildRequires: glib2-devel >= 1:2.31.2 | |
578af9cd MB |
22 | BuildRequires: gnome-common |
23 | BuildRequires: gobject-introspection-devel >= 0.10.1 | |
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 |
578af9cd | 30 | BuildRequires: rpmbuild(macros) >= 1.601 |
da5033e1 | 31 | BuildRequires: seed-devel >= 3.0.0 |
6bc13e2b | 32 | BuildRequires: tar >= 1:1.22 |
e6386c81 | 33 | BuildRequires: vala >= 1:0.14.0.22 |
6bc13e2b | 34 | BuildRequires: xz |
47dc788b AF |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
37 | %description | |
578af9cd MB |
38 | libpeas is a gobject-based plugins engine, and is targetted at giving |
39 | every application the chance to assume its own extensibility. It also | |
47dc788b AF |
40 | has a set of features including, but not limited to: |
41 | ||
42 | - multiple extension points | |
43 | - on demand (lazy) programming language support for C, Python and JS | |
578af9cd | 44 | - simplicity of the API |
47dc788b | 45 | |
5f8b5c56 AF |
46 | %package loader-python |
47 | Summary: Python loader for libpeas library | |
48 | Group: Libraries | |
49 | Requires: %{name} = %{version}-%{release} | |
50 | ||
d82c47a8 | 51 | %description loader-python |
5f8b5c56 AF |
52 | Python loader for libpeas library. |
53 | ||
54 | %package loader-seed | |
6bc13e2b | 55 | Summary: JavaScript (seed) loader for libpeas library |
5f8b5c56 AF |
56 | Group: Libraries |
57 | Requires: %{name} = %{version}-%{release} | |
58 | ||
d82c47a8 | 59 | %description loader-seed |
6bc13e2b ŁK |
60 | JavaScript (seed) loader for libpeas library. |
61 | ||
62 | %package loader-gjs | |
63 | Summary: JavaScript (GJS) loader for libpeas library | |
64 | Group: Libraries | |
65 | Requires: %{name} = %{version}-%{release} | |
66 | ||
67 | %description loader-gjs | |
68 | JavaScript (GJS) loader for libpeas library. | |
5f8b5c56 | 69 | |
47dc788b AF |
70 | %package devel |
71 | Summary: Header files for libpeas library | |
72 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libpeas | |
73 | Group: Development/Libraries | |
74 | Requires: %{name} = %{version}-%{release} | |
e6386c81 | 75 | Requires: glib2-devel >= 1:2.31.2 |
578af9cd | 76 | Requires: gobject-introspection-devel >= 0.10.1 |
47dc788b AF |
77 | |
78 | %description devel | |
79 | Header files for libpeas library. | |
80 | ||
81 | %description devel -l pl.UTF-8 | |
82 | Pliki nagłówkowe biblioteki libpeas. | |
83 | ||
84 | %package static | |
85 | Summary: Static libpeas library | |
86 | Summary(pl.UTF-8): Statyczna biblioteka libpeas | |
87 | Group: Development/Libraries | |
88 | Requires: %{name}-devel = %{version}-%{release} | |
89 | ||
90 | %description static | |
91 | Static libpeas library. | |
92 | ||
93 | %description static -l pl.UTF-8 | |
94 | Statyczna biblioteka libpeas. | |
95 | ||
96 | %package gtk | |
97 | Summary: GObject Plugin System | |
98 | Summary(pl.UTF-8): System wtyczek GObject | |
578af9cd | 99 | Group: X11/Libraries |
578af9cd | 100 | Requires(post,postun): gtk-update-icon-cache |
6bc13e2b | 101 | Requires: %{name} = %{version}-%{release} |
578af9cd | 102 | Requires: hicolor-icon-theme |
47dc788b AF |
103 | |
104 | %description gtk | |
578af9cd MB |
105 | libpeas is a gobject-based plugins engine, and is targetted at giving |
106 | every application the chance to assume its own extensibility. It also | |
47dc788b AF |
107 | has a set of features including, but not limited to: |
108 | ||
109 | - multiple extension points | |
110 | - on demand (lazy) programming language support for C, Python and JS | |
578af9cd | 111 | - simplicity of the API |
47dc788b AF |
112 | |
113 | %package gtk-devel | |
114 | Summary: Header files for libpeas-gtk library | |
115 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libpeas-gtk | |
578af9cd MB |
116 | Group: X11/Development/Libraries |
117 | Requires: %{name}-devel = %{version}-%{release} | |
47dc788b | 118 | Requires: %{name}-gtk = %{version}-%{release} |
578af9cd | 119 | Requires: gtk+3-devel >= 3.0.0 |
47dc788b AF |
120 | |
121 | %description gtk-devel | |
122 | Header files for libpeas-gtk library. | |
123 | ||
124 | %description gtk-devel -l pl.UTF-8 | |
125 | Pliki nagłówkowe biblioteki libpeas-gtk. | |
126 | ||
127 | %package gtk-static | |
128 | Summary: Static libpeas-gtk library | |
129 | Summary(pl.UTF-8): Statyczna biblioteka libpeas-gtk | |
578af9cd | 130 | Group: X11/Development/Libraries |
47dc788b AF |
131 | Requires: %{name}-devel = %{version}-%{release} |
132 | Requires: %{name}-gtk-devel = %{version}-%{release} | |
133 | ||
134 | %description gtk-static | |
135 | Static libpeas library. | |
136 | ||
137 | %description gtk-static -l pl.UTF-8 | |
138 | Statyczna biblioteka libpeas. | |
139 | ||
140 | %package apidocs | |
141 | Summary: libpeas API documentation | |
142 | Summary(pl.UTF-8): Dokumentacja API biblioteki libpeas | |
143 | Group: Documentation | |
578af9cd | 144 | Requires: gtk-doc-common |
47dc788b AF |
145 | |
146 | %description apidocs | |
147 | API and internal documentation for libpeas library. | |
148 | ||
149 | %description apidocs -l pl.UTF-8 | |
150 | Dokumentacja API biblioteki libpeas. | |
151 | ||
152 | %package demo | |
153 | Summary: Demo application for libpeas | |
578af9cd MB |
154 | Summary(pl.UTF-8): Aplikacja demonstracyjna libpeas |
155 | Group: Applications | |
5f8b5c56 AF |
156 | Requires: %{name} = %{version}-%{release} |
157 | Requires: %{name}-gtk = %{version}-%{release} | |
6bc13e2b | 158 | Requires: %{name}-loader-gjs = %{version}-%{release} |
5f8b5c56 AF |
159 | Requires: %{name}-loader-python = %{version}-%{release} |
160 | Requires: %{name}-loader-seed = %{version}-%{release} | |
47dc788b AF |
161 | |
162 | %description demo | |
163 | Demo application for libpeas. | |
164 | ||
165 | %description demo -l pl.UTF-8 | |
166 | Aplikacja demonstracyjna libpeas. | |
167 | ||
168 | %prep | |
169 | %setup -q | |
e6386c81 | 170 | %patch0 -p1 |
47dc788b AF |
171 | |
172 | %build | |
5f8b5c56 AF |
173 | %{__libtoolize} |
174 | %{__aclocal} | |
175 | %{__autoconf} | |
176 | %{__autoheader} | |
177 | %{__automake} | |
47dc788b | 178 | %configure \ |
578af9cd | 179 | --disable-silent-rules \ |
47dc788b | 180 | %{__enable_disable static_libs static} \ |
5f8b5c56 | 181 | %{__enable_disable apidocs gtk-doc} \ |
e6386c81 ŁK |
182 | --with-html-dir=%{_gtkdocdir} \ |
183 | --enable-vala | |
47dc788b AF |
184 | %{__make} |
185 | ||
186 | %install | |
187 | rm -rf $RPM_BUILD_ROOT | |
188 | ||
189 | %{__make} install \ | |
190 | DESTDIR=$RPM_BUILD_ROOT | |
191 | ||
192 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la \ | |
193 | $RPM_BUILD_ROOT%{_libdir}/peas-demo/plugins/*/*.la \ | |
194 | $RPM_BUILD_ROOT%{_libdir}/libpeas-1.0/loaders/*.la | |
195 | ||
196 | %if %{with static_libs} | |
197 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/peas-demo/plugins/*/*.a \ | |
198 | $RPM_BUILD_ROOT%{_libdir}/libpeas-1.0/loaders/*.a | |
199 | %endif | |
200 | ||
201 | %find_lang libpeas | |
202 | ||
203 | %clean | |
204 | rm -rf $RPM_BUILD_ROOT | |
205 | ||
206 | %post -p /sbin/ldconfig | |
207 | %postun -p /sbin/ldconfig | |
578af9cd MB |
208 | |
209 | %post gtk | |
210 | /sbin/ldconfig | |
211 | %update_icon_cache hicolor | |
212 | ||
213 | %postun gtk | |
214 | /sbin/ldconfig | |
215 | %update_icon_cache hicolor | |
47dc788b AF |
216 | |
217 | %files -f libpeas.lang | |
218 | %defattr(644,root,root,755) | |
219 | %doc AUTHORS ChangeLog NEWS README | |
220 | %attr(755,root,root) %{_libdir}/libpeas-1.0.so.*.*.* | |
221 | %attr(755,root,root) %ghost %{_libdir}/libpeas-1.0.so.0 | |
047f0a18 PZ |
222 | %dir %{_libdir}/libpeas-1.0 |
223 | %dir %{_libdir}/libpeas-1.0/loaders | |
047f0a18 | 224 | %{_libdir}/girepository-1.0/Peas-1.0.typelib |
5f8b5c56 AF |
225 | |
226 | %files loader-python | |
227 | %defattr(644,root,root,755) | |
578af9cd | 228 | %attr(755,root,root) %{_libdir}/libpeas-1.0/loaders/libpythonloader.so |
5f8b5c56 AF |
229 | |
230 | %files loader-seed | |
231 | %defattr(644,root,root,755) | |
578af9cd | 232 | %attr(755,root,root) %{_libdir}/libpeas-1.0/loaders/libseedloader.so |
47dc788b | 233 | |
6bc13e2b ŁK |
234 | %files loader-gjs |
235 | %defattr(644,root,root,755) | |
236 | %attr(755,root,root) %{_libdir}/libpeas-1.0/loaders/libgjsloader.so | |
237 | ||
47dc788b AF |
238 | %files devel |
239 | %defattr(644,root,root,755) | |
578af9cd | 240 | %attr(755,root,root) %{_libdir}/libpeas-1.0.so |
47dc788b AF |
241 | %{_includedir}/libpeas-1.0 |
242 | %{_pkgconfigdir}/libpeas-1.0.pc | |
243 | %{_datadir}/gir-1.0/Peas-1.0.gir | |
244 | ||
245 | %if %{with static_libs} | |
246 | %files static | |
247 | %defattr(644,root,root,755) | |
248 | %{_libdir}/libpeas-1.0.a | |
249 | %endif | |
250 | ||
251 | %files gtk | |
252 | %defattr(644,root,root,755) | |
253 | %attr(755,root,root) %{_libdir}/libpeas-gtk-1.0.so.*.*.* | |
254 | %attr(755,root,root) %ghost %{_libdir}/libpeas-gtk-1.0.so.0 | |
255 | %{_libdir}/girepository-1.0/PeasGtk-1.0.typelib | |
256 | %{_iconsdir}/hicolor/*/*/*.png | |
257 | %{_iconsdir}/hicolor/scalable/*/*.svg | |
258 | ||
259 | %files gtk-devel | |
260 | %defattr(644,root,root,755) | |
578af9cd | 261 | %attr(755,root,root) %{_libdir}/libpeas-gtk-1.0.so |
47dc788b AF |
262 | %{_pkgconfigdir}/libpeas-gtk-1.0.pc |
263 | %{_datadir}/gir-1.0/PeasGtk-1.0.gir | |
264 | ||
265 | %if %{with static_libs} | |
266 | %files gtk-static | |
267 | %defattr(644,root,root,755) | |
268 | %{_libdir}/libpeas-gtk-1.0.a | |
269 | %endif | |
270 | ||
271 | %files demo | |
272 | %defattr(644,root,root,755) | |
273 | %attr(755,root,root) %{_bindir}/* | |
691382e5 MB |
274 | %dir %{_libdir}/peas-demo |
275 | %dir %{_libdir}/peas-demo/plugins | |
276 | %dir %{_libdir}/peas-demo/plugins/helloworld | |
47dc788b | 277 | %attr(755,root,root) %{_libdir}/peas-demo/plugins/helloworld/libhelloworld.so |
691382e5 MB |
278 | %{_libdir}/peas-demo/plugins/helloworld/helloworld.plugin |
279 | %dir %{_libdir}/peas-demo/plugins/pythonhello | |
47dc788b | 280 | %{_libdir}/peas-demo/plugins/pythonhello/pythonhello.plugin |
691382e5 MB |
281 | %{_libdir}/peas-demo/plugins/pythonhello/pythonhello.py* |
282 | %dir %{_libdir}/peas-demo/plugins/secondtime | |
47dc788b AF |
283 | %attr(755,root,root) %{_libdir}/peas-demo/plugins/secondtime/libsecondtime.so |
284 | %{_libdir}/peas-demo/plugins/secondtime/secondtime.plugin | |
691382e5 | 285 | %dir %{_libdir}/peas-demo/plugins/seedhello |
47dc788b AF |
286 | %{_libdir}/peas-demo/plugins/seedhello/seedhello.js |
287 | %{_libdir}/peas-demo/plugins/seedhello/seedhello.plugin | |
6bc13e2b ŁK |
288 | %dir %{_libdir}/peas-demo/plugins/gjshello |
289 | %{_libdir}/peas-demo/plugins/gjshello/gjshello.js | |
290 | %{_libdir}/peas-demo/plugins/gjshello/gjshello.plugin | |
691382e5 MB |
291 | %dir %{_libdir}/peas-demo/plugins/valahello |
292 | %attr(755,root,root) %{_libdir}/peas-demo/plugins/valahello/libvalahello.so | |
293 | %{_libdir}/peas-demo/plugins/valahello/valahello.plugin | |
47dc788b | 294 | |
47dc788b AF |
295 | %if %{with apidocs} |
296 | %files apidocs | |
297 | %defattr(644,root,root,755) | |
578af9cd | 298 | %{_gtkdocdir}/libpeas |
47dc788b | 299 | %endif |