]>
Commit | Line | Data |
---|---|---|
47dc788b AF |
1 | # Conditional build: |
2 | %bcond_without apidocs # do not build and package API docs | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
5 | Summary: GObject Plugin System | |
6 | Summary(pl.UTF-8): System wtyczek GObject | |
7 | Name: libpeas | |
5f8b5c56 AF |
8 | Version: 0.7.3 |
9 | Release: 1 | |
47dc788b AF |
10 | License: LGPL v2 |
11 | Group: Libraries | |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libpeas/0.7/%{name}-%{version}.tar.gz | |
5f8b5c56 AF |
13 | # Source0-md5: 58456ddf05c3dc5b8a8dc68a68f88356 |
14 | Patch0: gir.patch | |
47dc788b AF |
15 | URL: http://live.gnome.org/Libpeas |
16 | BuildRequires: autoconf >= 2.63.2 | |
17 | BuildRequires: automake >= 1.11 | |
18 | BuildRequires: libtool >= 2.2.6 | |
19 | BuildRequires: intltool >= 0.40.0 | |
20 | BuildRequires: gettext-devel >= 0.17 | |
21 | BuildRequires: glib2-devel >= 1:2.24.0 | |
22 | BuildRequires: gobject-introspection-devel >= 0.9.6 | |
23 | BuildRequires: gtk+3-devel >= 3.0.0 | |
1ffc6ec7 | 24 | BuildRequires: seed-devel >= 2.31.91 |
47dc788b AF |
25 | BuildRequires: python >= 2.5.2 |
26 | BuildRequires: python-pygobject-devel >= 2.20.0 | |
27 | BuildRequires: gtk-doc >= 1.11 | |
28 | BuildRequires: gnome-common | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | libpeas is a gobject-based plugins engine, and is targetted at giving | |
33 | every application the chance to assume its own extensibility. It also | |
34 | has a set of features including, but not limited to: | |
35 | ||
36 | - multiple extension points | |
37 | - on demand (lazy) programming language support for C, Python and JS | |
38 | - simplicity of the API | |
39 | ||
5f8b5c56 AF |
40 | %package loader-python |
41 | Summary: Python loader for libpeas library | |
42 | Group: Libraries | |
43 | Requires: %{name} = %{version}-%{release} | |
44 | ||
45 | %description devel | |
46 | Python loader for libpeas library. | |
47 | ||
48 | %package loader-seed | |
49 | Summary: JavaScript loader for libpeas library | |
50 | Group: Libraries | |
51 | Requires: %{name} = %{version}-%{release} | |
52 | ||
53 | %description devel | |
54 | JavaScript loader for libpeas library. | |
55 | ||
47dc788b AF |
56 | %package devel |
57 | Summary: Header files for libpeas library | |
58 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libpeas | |
59 | Group: Development/Libraries | |
60 | Requires: %{name} = %{version}-%{release} | |
61 | ||
62 | %description devel | |
63 | Header files for libpeas library. | |
64 | ||
65 | %description devel -l pl.UTF-8 | |
66 | Pliki nagłówkowe biblioteki libpeas. | |
67 | ||
68 | %package static | |
69 | Summary: Static libpeas library | |
70 | Summary(pl.UTF-8): Statyczna biblioteka libpeas | |
71 | Group: Development/Libraries | |
72 | Requires: %{name}-devel = %{version}-%{release} | |
73 | ||
74 | %description static | |
75 | Static libpeas library. | |
76 | ||
77 | %description static -l pl.UTF-8 | |
78 | Statyczna biblioteka libpeas. | |
79 | ||
80 | %package gtk | |
81 | Summary: GObject Plugin System | |
82 | Summary(pl.UTF-8): System wtyczek GObject | |
83 | Group: Libraries | |
84 | Requires: %{name} = %{version}-%{release} | |
85 | ||
86 | %description gtk | |
87 | libpeas is a gobject-based plugins engine, and is targetted at giving | |
88 | every application the chance to assume its own extensibility. It also | |
89 | has a set of features including, but not limited to: | |
90 | ||
91 | - multiple extension points | |
92 | - on demand (lazy) programming language support for C, Python and JS | |
93 | - simplicity of the API | |
94 | ||
95 | %package gtk-devel | |
96 | Summary: Header files for libpeas-gtk library | |
97 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libpeas-gtk | |
98 | Group: Development/Libraries | |
99 | Requires: %{name} = %{version}-%{release} | |
100 | Requires: %{name}-gtk = %{version}-%{release} | |
101 | ||
102 | %description gtk-devel | |
103 | Header files for libpeas-gtk library. | |
104 | ||
105 | %description gtk-devel -l pl.UTF-8 | |
106 | Pliki nagłówkowe biblioteki libpeas-gtk. | |
107 | ||
108 | %package gtk-static | |
109 | Summary: Static libpeas-gtk library | |
110 | Summary(pl.UTF-8): Statyczna biblioteka libpeas-gtk | |
111 | Group: Development/Libraries | |
112 | Requires: %{name}-devel = %{version}-%{release} | |
113 | Requires: %{name}-gtk-devel = %{version}-%{release} | |
114 | ||
115 | %description gtk-static | |
116 | Static libpeas library. | |
117 | ||
118 | %description gtk-static -l pl.UTF-8 | |
119 | Statyczna biblioteka libpeas. | |
120 | ||
121 | %package apidocs | |
122 | Summary: libpeas API documentation | |
123 | Summary(pl.UTF-8): Dokumentacja API biblioteki libpeas | |
124 | Group: Documentation | |
125 | ||
126 | %description apidocs | |
127 | API and internal documentation for libpeas library. | |
128 | ||
129 | %description apidocs -l pl.UTF-8 | |
130 | Dokumentacja API biblioteki libpeas. | |
131 | ||
132 | %package demo | |
133 | Summary: Demo application for libpeas | |
134 | Summary(pl.UTF-8): Aplikacja demonstracyjna libpeas | |
135 | Group: Application | |
5f8b5c56 AF |
136 | Requires: %{name} = %{version}-%{release} |
137 | Requires: %{name}-gtk = %{version}-%{release} | |
138 | Requires: %{name}-loader-python = %{version}-%{release} | |
139 | Requires: %{name}-loader-seed = %{version}-%{release} | |
47dc788b AF |
140 | |
141 | %description demo | |
142 | Demo application for libpeas. | |
143 | ||
144 | %description demo -l pl.UTF-8 | |
145 | Aplikacja demonstracyjna libpeas. | |
146 | ||
147 | %prep | |
148 | %setup -q | |
5f8b5c56 | 149 | %patch0 -p1 |
47dc788b AF |
150 | |
151 | %build | |
5f8b5c56 AF |
152 | %{__libtoolize} |
153 | %{__aclocal} | |
154 | %{__autoconf} | |
155 | %{__autoheader} | |
156 | %{__automake} | |
47dc788b AF |
157 | %configure \ |
158 | %{__enable_disable static_libs static} \ | |
5f8b5c56 | 159 | %{__enable_disable apidocs gtk-doc} \ |
47dc788b AF |
160 | --disable-silent-rules |
161 | %{__make} | |
162 | ||
163 | %install | |
164 | rm -rf $RPM_BUILD_ROOT | |
165 | ||
166 | %{__make} install \ | |
167 | DESTDIR=$RPM_BUILD_ROOT | |
168 | ||
169 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la \ | |
170 | $RPM_BUILD_ROOT%{_libdir}/peas-demo/plugins/*/*.la \ | |
171 | $RPM_BUILD_ROOT%{_libdir}/libpeas-1.0/loaders/*.la | |
172 | ||
173 | %if %{with static_libs} | |
174 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/peas-demo/plugins/*/*.a \ | |
175 | $RPM_BUILD_ROOT%{_libdir}/libpeas-1.0/loaders/*.a | |
176 | %endif | |
177 | ||
178 | %find_lang libpeas | |
179 | ||
180 | %clean | |
181 | rm -rf $RPM_BUILD_ROOT | |
182 | ||
183 | %post -p /sbin/ldconfig | |
184 | %postun -p /sbin/ldconfig | |
96e249e0 AF |
185 | %post gtk -p /sbin/ldconfig |
186 | %postun gtk -p /sbin/ldconfig | |
47dc788b AF |
187 | |
188 | %files -f libpeas.lang | |
189 | %defattr(644,root,root,755) | |
190 | %doc AUTHORS ChangeLog NEWS README | |
191 | %attr(755,root,root) %{_libdir}/libpeas-1.0.so.*.*.* | |
192 | %attr(755,root,root) %ghost %{_libdir}/libpeas-1.0.so.0 | |
193 | %{_libdir}/girepository-1.0/Peas-1.0.typelib | |
194 | %{_libdir}/libpeas-1.0/loaders/libcloader.so | |
5f8b5c56 AF |
195 | |
196 | %files loader-python | |
197 | %defattr(644,root,root,755) | |
47dc788b | 198 | %{_libdir}/libpeas-1.0/loaders/libpythonloader.so |
5f8b5c56 AF |
199 | |
200 | %files loader-seed | |
201 | %defattr(644,root,root,755) | |
47dc788b AF |
202 | %{_libdir}/libpeas-1.0/loaders/libseedloader.so |
203 | ||
204 | %files devel | |
205 | %defattr(644,root,root,755) | |
206 | %{_libdir}/libpeas-1.0.so | |
207 | %{_includedir}/libpeas-1.0 | |
208 | %{_pkgconfigdir}/libpeas-1.0.pc | |
209 | %{_datadir}/gir-1.0/Peas-1.0.gir | |
210 | ||
211 | %if %{with static_libs} | |
212 | %files static | |
213 | %defattr(644,root,root,755) | |
214 | %{_libdir}/libpeas-1.0.a | |
215 | %endif | |
216 | ||
217 | %files gtk | |
218 | %defattr(644,root,root,755) | |
219 | %attr(755,root,root) %{_libdir}/libpeas-gtk-1.0.so.*.*.* | |
220 | %attr(755,root,root) %ghost %{_libdir}/libpeas-gtk-1.0.so.0 | |
221 | %{_libdir}/girepository-1.0/PeasGtk-1.0.typelib | |
222 | %{_iconsdir}/hicolor/*/*/*.png | |
223 | %{_iconsdir}/hicolor/scalable/*/*.svg | |
224 | ||
225 | %files gtk-devel | |
226 | %defattr(644,root,root,755) | |
227 | %{_libdir}/libpeas-gtk-1.0.so | |
228 | %{_pkgconfigdir}/libpeas-gtk-1.0.pc | |
229 | %{_datadir}/gir-1.0/PeasGtk-1.0.gir | |
230 | ||
231 | %if %{with static_libs} | |
232 | %files gtk-static | |
233 | %defattr(644,root,root,755) | |
234 | %{_libdir}/libpeas-gtk-1.0.a | |
235 | %endif | |
236 | ||
237 | %files demo | |
238 | %defattr(644,root,root,755) | |
239 | %attr(755,root,root) %{_bindir}/* | |
240 | %{_libdir}/peas-demo/plugins/helloworld/helloworld.plugin | |
241 | %attr(755,root,root) %{_libdir}/peas-demo/plugins/helloworld/libhelloworld.so | |
242 | %{_libdir}/peas-demo/plugins/pythonhello/pythonhello.plugin | |
243 | %{_libdir}/peas-demo/plugins/pythonhello/pythonhello.py | |
244 | %{_libdir}/peas-demo/plugins/pythonhello/pythonhello.pyc | |
245 | %{_libdir}/peas-demo/plugins/pythonhello/pythonhello.pyo | |
246 | %attr(755,root,root) %{_libdir}/peas-demo/plugins/secondtime/libsecondtime.so | |
247 | %{_libdir}/peas-demo/plugins/secondtime/secondtime.plugin | |
248 | %{_libdir}/peas-demo/plugins/seedhello/seedhello.js | |
249 | %{_libdir}/peas-demo/plugins/seedhello/seedhello.plugin | |
250 | ||
47dc788b AF |
251 | %if %{with apidocs} |
252 | %files apidocs | |
253 | %defattr(644,root,root,755) | |
254 | %{_datadir}/gtk-doc/html/libpeas | |
255 | %endif |