]>
Commit | Line | Data |
---|---|---|
ed1c34d6 | 1 | # TODO: |
476156c6 | 2 | # - finish haskell bindings (when finished upstream, not ready as of 1.20.2) |
ed1c34d6 | 3 | # - systemtap probes |
96876fb6 | 4 | # - PLD appliance support? (needs at least package list adjustment) |
828f7f73 AF |
5 | # |
6 | # Conditional build: | |
7 | %bcond_with static_libs # build static libraries | |
eeb3750e | 8 | %bcond_without erlang # Erlang binding |
476156c6 | 9 | %bcond_with haskell # Haskell (GHC) binding [incomplete, nothing is installed] |
3eebe7b8 | 10 | %bcond_without java # Java binding |
3722f906 | 11 | %bcond_without lua # Lua binding |
3eebe7b8 JB |
12 | %bcond_without ocaml # OCaml binding and tools |
13 | %bcond_without perl # Perl binding | |
14 | %bcond_without perltools # Perl tools | |
15 | %bcond_without php # PHP binding | |
16 | %bcond_without python # Python binding | |
46d973c4 | 17 | %bcond_without ruby # Ruby binding |
828f7f73 | 18 | # |
3722f906 | 19 | |
828f7f73 AF |
20 | %include /usr/lib/rpm/macros.perl |
21 | %include /usr/lib/rpm/macros.java | |
3eebe7b8 JB |
22 | Summary: Library and tools for accessing and modifying virtual machine disk images |
23 | Summary(pl.UTF-8): Biblioteka i narzędzia do dostępu i modyfikacji obrazów dysków maszyn wirtualnych | |
828f7f73 | 24 | Name: libguestfs |
4b9c7342 | 25 | Version: 1.20.3 |
ed1c34d6 | 26 | Release: 1 |
828f7f73 AF |
27 | License: LGPL v2+ |
28 | Group: Libraries | |
3722f906 | 29 | Source0: http://libguestfs.org/download/1.20-stable/%{name}-%{version}.tar.gz |
4b9c7342 | 30 | # Source0-md5: a5717d7d3975a141c553dd8a8633d5dd |
828f7f73 | 31 | Patch0: ncurses.patch |
475fb908 | 32 | Patch1: augeas-libxml2.patch |
ed1c34d6 | 33 | Patch2: %{name}-link.patch |
3722f906 | 34 | Patch3: %{name}-am.patch |
828f7f73 | 35 | URL: http://libguestfs.org/ |
3722f906 | 36 | BuildRequires: acl-devel |
828f7f73 | 37 | BuildRequires: attr-devel |
3722f906 | 38 | BuildRequires: augeas-devel >= 0.5.0 |
3eebe7b8 | 39 | BuildRequires: autoconf >= 2.50 |
828f7f73 AF |
40 | BuildRequires: automake |
41 | BuildRequires: cdrkit-mkisofs | |
3eebe7b8 | 42 | BuildRequires: cpio |
828f7f73 | 43 | BuildRequires: db-utils |
eeb3750e JB |
44 | # erl_interface package |
45 | %{?with_erlang:BuildRequires: erlang} | |
3722f906 | 46 | #BuildRequires: febootstrap >= 3.20 |
828f7f73 | 47 | BuildRequires: gettext-devel |
3eebe7b8 | 48 | %{?with_haskell:BuildRequires: ghc} |
ed1c34d6 JB |
49 | BuildRequires: glib2-devel >= 1:2.26.0 |
50 | BuildRequires: gobject-introspection-devel >= 1.30.0 | |
828f7f73 | 51 | BuildRequires: gperf |
ed1c34d6 | 52 | BuildRequires: gtk-doc >= 1.14 |
3722f906 | 53 | BuildRequires: hivex-devel >= 1.2.7 |
3eebe7b8 | 54 | %{?with_java:BuildRequires: jdk} |
3722f906 | 55 | BuildRequires: libcap-devel |
828f7f73 | 56 | BuildRequires: libconfig-devel |
7eea6f71 | 57 | BuildRequires: libfuse-devel |
828f7f73 AF |
58 | BuildRequires: libmagic-devel |
59 | BuildRequires: libselinux-devel | |
60 | BuildRequires: libtool | |
3722f906 | 61 | BuildRequires: libvirt-devel >= 0.10.2 |
3eebe7b8 | 62 | BuildRequires: libxml2-devel >= 2.0 |
828f7f73 | 63 | BuildRequires: libxml2-progs |
3722f906 JB |
64 | %if %{with lua} |
65 | # use 5.2 as 5.1 packaging in PLD was incompatible with what's expected by configure | |
66 | BuildRequires: lua52 | |
67 | BuildRequires: lua52-devel | |
68 | %endif | |
828f7f73 | 69 | BuildRequires: ncurses-devel |
3eebe7b8 | 70 | %if %{with ocaml} |
828f7f73 | 71 | BuildRequires: ocaml |
3eebe7b8 | 72 | BuildRequires: ocaml-findlib |
4bfe4921 | 73 | BuildRequires: ocaml-gettext-devel |
828f7f73 | 74 | BuildRequires: ocaml-pcre-devel |
3eebe7b8 | 75 | %endif |
828f7f73 | 76 | BuildRequires: pcre-devel |
3eebe7b8 JB |
77 | BuildRequires: perl-base |
78 | BuildRequires: perl-tools-pod | |
79 | %if %{with perl} | |
80 | BuildRequires: perl-ExtUtils-MakeMaker | |
81 | BuildRequires: perl-Test-Simple | |
82 | %endif | |
83 | %if %{with perltools} | |
84 | BuildRequires: perl-String-ShellQuote | |
85 | BuildRequires: perl-Sys-Virt | |
3722f906 | 86 | BuildRequires: perl-hivex >= 1.2.7 |
3eebe7b8 JB |
87 | BuildRequires: perl-libintl |
88 | BuildRequires: perl-modules | |
828f7f73 | 89 | BuildRequires: perl(Data::Dumper) |
828f7f73 AF |
90 | BuildRequires: perl(Getopt::Long) |
91 | BuildRequires: perl(Locale::TextDomain) | |
ed1c34d6 JB |
92 | BuildRequires: perl(Pod::Man) |
93 | BuildRequires: perl(Pod::Simple) | |
828f7f73 | 94 | BuildRequires: perl(Pod::Usage) |
3eebe7b8 JB |
95 | %endif |
96 | %{?with_php:BuildRequires: php-devel} | |
97 | BuildRequires: pkgconfig | |
828f7f73 | 98 | BuildRequires: po4a |
3eebe7b8 | 99 | %if %{with python} |
828f7f73 AF |
100 | BuildRequires: python |
101 | BuildRequires: python-devel | |
3eebe7b8 | 102 | %endif |
828f7f73 | 103 | BuildRequires: readline-devel |
46d973c4 | 104 | BuildRequires: rpmbuild(macros) >= 1.322 |
3eebe7b8 JB |
105 | %if %{with ruby} |
106 | BuildRequires: ruby | |
107 | BuildRequires: ruby-devel | |
108 | BuildRequires: ruby-rake | |
109 | %endif | |
3722f906 JB |
110 | BuildRequires: yajl-devel >= 2 |
111 | Requires: qemu-common >= 1.1.0 | |
ed1c34d6 JB |
112 | Suggests: db-utils |
113 | Suggests: icoutils | |
114 | Suggests: netpbm-progs | |
828f7f73 AF |
115 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
116 | ||
117 | %description | |
3eebe7b8 JB |
118 | libguestfs is a library and set of tools for accessing and modifying |
119 | virtual machine (VM) disk images. You can use this for viewing and | |
120 | editing files inside guests, scripting changes to VMs, monitoring disk | |
828f7f73 AF |
121 | used/free statistics, P2V, V2V, performing partial backups, cloning |
122 | VMs, and much else besides. | |
123 | ||
99abc14f | 124 | %description -l pl.UTF-8 |
3eebe7b8 JB |
125 | libguestfs to biblioteka oraz zestaw narzędzi do dostępu oraz |
126 | modyfikowania obrazów dysków maszyn wirtualnych (VM). Można je | |
127 | wykorzystywać do oglądania i edycji plików wewnątrz gości, zmian | |
128 | skryptowych w VM-ach, monitorowania statystyk używanego/dostępnego | |
129 | miejsca na dyskach, P2V, V2V, wykonywania częściowych kopii | |
130 | zapasowych, klonowania VM-ów i wielu podobnych operacji. | |
99abc14f | 131 | |
828f7f73 AF |
132 | %package devel |
133 | Summary: Header files for libguestfs library | |
134 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libguestfs | |
135 | Group: Development/Libraries | |
136 | Requires: %{name} = %{version}-%{release} | |
137 | ||
138 | %description devel | |
139 | Header files for libguestfs library. | |
140 | ||
141 | %description devel -l pl.UTF-8 | |
142 | Pliki nagłówkowe biblioteki libguestfs. | |
143 | ||
144 | %package static | |
145 | Summary: Static libguestfs library | |
146 | Summary(pl.UTF-8): Statyczna biblioteka libguestfs | |
147 | Group: Development/Libraries | |
148 | Requires: %{name}-devel = %{version}-%{release} | |
149 | ||
150 | %description static | |
151 | Static libguestfs library. | |
152 | ||
153 | %description static -l pl.UTF-8 | |
154 | Statyczna biblioteka libguestfs. | |
155 | ||
ed1c34d6 JB |
156 | %package apidocs |
157 | Summary: libguestfs API documentation | |
158 | Summary(pl.UTF-8): Dokumentacja API libguestfs | |
159 | Group: Documentation | |
160 | ||
161 | %description apidocs | |
162 | libguestfs API documentation. | |
163 | ||
164 | %description apidocs -l pl.UTF-8 | |
165 | Dokumentacja API libguestfs. | |
166 | ||
167 | %package gobject | |
168 | Summary: GObject bindings to libguestfs library | |
169 | Summary(pl.UTF-8): Wiązania GObject do biblioteki libguestfs | |
170 | Group: Libraries | |
171 | Requires: %{name} = %{version}-%{release} | |
172 | Requires: glib2 >= 1:2.26.0 | |
173 | ||
174 | %description gobject | |
175 | GObject bindings to libguestfs library. | |
176 | ||
177 | %description gobject -l pl.UTF-8 | |
178 | Wiązania GObject do biblioteki libguestfs. | |
179 | ||
180 | %package gobject-devel | |
181 | Summary: Header files for libguestfs-gobject library | |
182 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libguestfs-gobject | |
183 | Group: Development/Libraries | |
184 | Requires: %{name}-devel = %{version}-%{release} | |
185 | Requires: %{name}-gobject = %{version}-%{release} | |
186 | Requires: glib2-devel >= 1:2.26.0 | |
187 | ||
188 | %description gobject-devel | |
189 | Header files for libguestfs-gobject library. | |
190 | ||
191 | %description gobject-devel -l pl.UTF-8 | |
192 | Pliki nagłówkowe biblioteki libguestfs-gobject. | |
193 | ||
194 | %package gobject-static | |
195 | Summary: Static libguestfs-gobject library | |
196 | Summary(pl.UTF-8): Statyczna biblioteka libguestfs-gobject | |
197 | Group: Development/Libraries | |
198 | Requires: %{name}-gobject-devel = %{version}-%{release} | |
199 | ||
200 | %description gobject-static | |
201 | Static libguestfs-gobject library. | |
202 | ||
203 | %description gobject-static -l pl.UTF-8 | |
204 | Statyczna biblioteka libguestfs-gobject. | |
205 | ||
3eebe7b8 JB |
206 | %package tools |
207 | Summary: libguestfs tools for accessing and modifying virtual machine disk images | |
208 | Summary(pl.UTF-8): Narzędzia libguestfs do dostępu i modyfikacji obrazów dysków maszyn wirtualnych | |
209 | Group: Applications/System | |
210 | Requires: %{name} = %{version}-%{release} | |
211 | %{?with_ocaml:Requires: ocaml-libguestfs = %{version}-%{release}} | |
212 | %{?with_perltools:Requires: perl-libguestfs = %{version}-%{release}} | |
213 | ||
214 | %description tools | |
215 | libguestfs tools for accessing and modifying virtual machine (VM) disk | |
216 | images. You can use this for viewing and editing files inside guests, | |
217 | scripting changes to VMs, monitoring disk used/free statistics, P2V, | |
218 | V2V, performing partial backups, cloning VMs, and much else besides. | |
219 | ||
220 | %description tools -l pl.UTF-8 | |
221 | Zestaw narzędzi libguestfs do dostępu oraz modyfikowania obrazów | |
222 | dysków maszyn wirtualnych (VM). Można je wykorzystywać do oglądania i | |
223 | edycji plików wewnątrz gości, zmian skryptowych w VM-ach, | |
224 | monitorowania statystyk używanego/dostępnego miejsca na dyskach, P2V, | |
225 | V2V, wykonywania częściowych kopii zapasowych, klonowania VM-ów i | |
226 | wielu podobnych operacji. | |
227 | ||
eeb3750e JB |
228 | %package -n erlang-libguestfs |
229 | Summary: Erlang bindings for libguestfs | |
230 | Summary(pl.UTF-8): Wiązania Erlanga do libguestfs | |
231 | Group: Development/Languages | |
232 | Requires: %{name} = %{version}-%{release} | |
233 | ||
234 | %description -n erlang-libguestfs | |
235 | Erlang bindings for libguestfs. | |
236 | ||
237 | %description -n erlang-libguestfs -l pl.UTF-8 | |
238 | Wiązania Erlanga do libguestfs. | |
239 | ||
828f7f73 AF |
240 | %package -n java-libguestfs |
241 | Summary: Java bindings for libguestfs | |
99abc14f | 242 | Summary(pl.UTF-8): Wiązania Javy do libguestfs |
828f7f73 AF |
243 | Group: Libraries/Java |
244 | Requires: %{name} = %{version}-%{release} | |
245 | ||
246 | %description -n java-libguestfs | |
247 | Java bindings for libguestfs. | |
248 | ||
99abc14f JB |
249 | %description -n java-libguestfs -l pl.UTF-8 |
250 | Wiązania Javy do libguestfs. | |
251 | ||
828f7f73 AF |
252 | %package -n java-libguestfs-javadoc |
253 | Summary: Java bindings for libguestfs - documentation | |
99abc14f | 254 | Summary(pl.UTF-8): Wiązania Javy do libguestfs - dokumentacja |
828f7f73 AF |
255 | Group: Documentation |
256 | ||
257 | %description -n java-libguestfs-javadoc | |
258 | Java bindings for libguestfs - documentation. | |
259 | ||
99abc14f JB |
260 | %description -n java-libguestfs-javadoc -l pl.UTF-8 |
261 | Wiązania Javy do libguestfs - dokumentacja. | |
262 | ||
3722f906 JB |
263 | %package -n lua-libguestfs |
264 | Summary: Lua bindings for libguestfs | |
265 | Summary(pl.UTF-8): Wiązania języka Lua do libguestfs | |
266 | Group: Development/Languages | |
267 | Requires: %{name} = %{version}-%{release} | |
268 | ||
269 | %description -n lua-libguestfs | |
270 | Lua bindings for libguestfs. | |
271 | ||
272 | %description -n lua-libguestfs -l pl.UTF-8 | |
273 | Wiązania języka Lua do libguestfs. | |
274 | ||
828f7f73 AF |
275 | %package -n ocaml-libguestfs |
276 | Summary: OCaml bindings for libguestfs | |
99abc14f | 277 | Summary(pl.UTF-8): Wiązania OCamla do libguestfs |
828f7f73 AF |
278 | Group: Libraries |
279 | Requires: %{name} = %{version}-%{release} | |
280 | ||
281 | %description -n ocaml-libguestfs | |
282 | OCaml bindings for libguestfs. | |
283 | ||
99abc14f JB |
284 | %description -n ocaml-libguestfs -l pl.UTF-8 |
285 | Wiązania OCamla do libguestfs. | |
286 | ||
828f7f73 | 287 | %package -n ocaml-libguestfs-devel |
99abc14f JB |
288 | Summary: Development files OCaml libguestfs bindings |
289 | Summary(pl.UTF-8): Pliki programistyczne wiązań OCamla do libguestfs | |
828f7f73 AF |
290 | Group: Development/Libraries |
291 | Requires: ocaml-%{name} = %{version}-%{release} | |
292 | ||
293 | %description -n ocaml-libguestfs-devel | |
99abc14f | 294 | Development files OCaml libguestfs bindings. |
828f7f73 AF |
295 | |
296 | %description -n ocaml-libguestfs-devel -l pl.UTF-8 | |
99abc14f | 297 | Pliki programistyczne wiązań OCamla do libguestfs. |
828f7f73 | 298 | |
99abc14f JB |
299 | %package -n perl-libguestfs |
300 | Summary: Perl bindings for libguestfs | |
301 | Summary(pl.UTF-8): Wiązania Perla do libguestfs | |
302 | Group: Development/Languages/Perl | |
828f7f73 | 303 | Requires: %{name} = %{version}-%{release} |
3eebe7b8 JB |
304 | Suggests: perl-Sys-Virt |
305 | Suggests: perl-XML-XPath | |
3722f906 | 306 | Suggests: perl-hivex >= 1.2.7 |
828f7f73 | 307 | |
99abc14f JB |
308 | %description -n perl-libguestfs |
309 | Perl bindings for libguestfs. | |
310 | ||
311 | %description -n perl-libguestfs -l pl.UTF-8 | |
312 | Wiązania Perla do libguestfs. | |
828f7f73 | 313 | |
7eea6f71 | 314 | %package -n php-guestfs |
315 | Summary: PHP bindings for libguestfs | |
99abc14f | 316 | Summary(pl.UTF-8): Wiązania PHP do libguestfs |
7eea6f71 | 317 | Group: Development/Languages/PHP |
318 | Requires: %{name} = %{version}-%{release} | |
46d973c4 | 319 | %{?requires_php_extension} |
7eea6f71 | 320 | |
321 | %description -n php-guestfs | |
322 | PHP bindings for libguestfs. | |
323 | ||
99abc14f JB |
324 | %description -n php-guestfs -l pl.UTF-8 |
325 | Wiązania PHP do libguestfs. | |
326 | ||
327 | %package -n python-libguestfs | |
328 | Summary: Python bindings for libguestfs | |
329 | Summary(pl.UTF-8): Wiązania Pythona do libguestfs | |
330 | Group: Development/Languages/Python | |
331 | Requires: %{name} = %{version}-%{release} | |
332 | ||
333 | %description -n python-libguestfs | |
334 | Python bindings for libguestfs. | |
335 | ||
336 | %description -n python-libguestfs -l pl.UTF-8 | |
337 | Wiązania Pythona do libguestfs. | |
338 | ||
46d973c4 JB |
339 | %package -n ruby-libguestfs |
340 | Summary: Ruby bindings for libguestfs | |
341 | Summary(pl.UTF-8): Wiązania języka Ruby do libguestfs | |
342 | Group: Development/Languages | |
343 | Requires: %{name} = %{version}-%{release} | |
344 | %{?ruby_ver_requires_eq} | |
345 | ||
346 | %description -n ruby-libguestfs | |
347 | Ruby bindings for libguestfs. | |
348 | ||
349 | %description -n ruby-libguestfs -l pl.UTF-8 | |
350 | Wiązania języka Ruby do libguestfs. | |
351 | ||
828f7f73 AF |
352 | %package -n bash-completion-libguestfs |
353 | Summary: bash-completion for libguestfs tools | |
99abc14f | 354 | Summary(pl.UTF-8): Bashowe uzupełnianie argumentów dla narzędzi libguestfs |
828f7f73 AF |
355 | Group: Applications/Shells |
356 | Requires: bash-completion | |
357 | ||
358 | %description -n bash-completion-libguestfs | |
359 | bash-completion for guestfish tool. | |
360 | ||
99abc14f JB |
361 | %description -n bash-completion-libguestfs -l pl.UTF-8 |
362 | Bashowe uzupełnianie argumentów dla narzędzi libguestfs. | |
363 | ||
828f7f73 AF |
364 | %prep |
365 | %setup -q | |
366 | %patch0 -p1 | |
475fb908 | 367 | %patch1 -p1 |
ed1c34d6 | 368 | %patch2 -p1 |
3722f906 | 369 | %patch3 -p1 |
828f7f73 AF |
370 | |
371 | %build | |
475fb908 | 372 | %{__libtoolize} |
671fd6ca | 373 | %{__aclocal} -I m4 |
475fb908 JR |
374 | %{__autoconf} |
375 | %{__autoheader} | |
376 | %{__automake} | |
828f7f73 AF |
377 | %configure \ |
378 | vmchannel_test=no \ | |
3722f906 | 379 | %{?with_lua:LUA=/usr/bin/lua5.2} \ |
ed1c34d6 JB |
380 | PBMTEXT=/usr/bin/pbmtext \ |
381 | PNMTOPNG=/usr/bin/pnmtopng \ | |
382 | BMPTOPNM=/usr/bin/bmptopnm \ | |
383 | PAMCUT=/usr/bin/pamcut \ | |
384 | WRESTOOL=/usr/bin/wrestool \ | |
73480eb3 | 385 | QEMU=%{_bindir}/qemu \ |
ed1c34d6 | 386 | --with-html-dir=%{_gtkdocdir} \ |
3722f906 | 387 | --with-java=%{?with_java:%{java_home}}%{!?with_java:no} \ |
73480eb3 | 388 | --with-qemu=qemu \ |
96e43ae7 | 389 | --enable-install-daemon \ |
828f7f73 | 390 | --disable-appliance \ |
46d973c4 | 391 | %{!?with_erlang:--disable-erlang} \ |
3eebe7b8 | 392 | %{!?with_haskell:--disable-haskell} \ |
3722f906 | 393 | %{!?with_lua:--disable-lua} \ |
3eebe7b8 JB |
394 | %{!?with_ocaml:--disable-ocaml} \ |
395 | %{!?with_perl:--disable-perl} \ | |
396 | %{!?with_php:--disable-php} \ | |
397 | %{!?with_python:--disable-python} \ | |
398 | %{!?with_ruby:--disable-ruby} \ | |
399 | --disable-silent-rules \ | |
400 | %{__enable_disable static_libs static} | |
828f7f73 AF |
401 | |
402 | %{__make} \ | |
403 | INSTALLDIRS=vendor | |
404 | ||
405 | %install | |
406 | rm -rf $RPM_BUILD_ROOT | |
407 | ||
408 | %{__make} install \ | |
409 | INSTALLDIRS=vendor \ | |
7eea6f71 | 410 | DESTDIR=$RPM_BUILD_ROOT \ |
411 | phpdir=%{_sysconfdir}/php/conf.d | |
828f7f73 | 412 | |
3722f906 JB |
413 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
414 | %if %{with lua} | |
415 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lua/*/*.la | |
416 | %endif | |
417 | %if %{with python} | |
418 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.la | |
419 | %endif | |
828f7f73 | 420 | |
3eebe7b8 JB |
421 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} |
422 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
423 | %py_postclean | |
424 | ||
828f7f73 AF |
425 | %find_lang %{name} |
426 | ||
427 | %clean | |
428 | rm -rf $RPM_BUILD_ROOT | |
429 | ||
430 | %post -p /sbin/ldconfig | |
431 | %postun -p /sbin/ldconfig | |
432 | ||
ed1c34d6 JB |
433 | %post gobject -p /sbin/ldconfig |
434 | %postun gobject -p /sbin/ldconfig | |
435 | ||
436 | %post -n java-libguestfs -p /sbin/ldconfig | |
437 | %postun -n java-libguestfs -p /sbin/ldconfig | |
438 | ||
828f7f73 AF |
439 | %files -f %{name}.lang |
440 | %defattr(644,root,root,755) | |
3722f906 | 441 | %doc AUTHORS BUGS ChangeLog README ROADMAP TODO |
3eebe7b8 JB |
442 | %attr(755,root,root) %{_libdir}/libguestfs.so.*.*.* |
443 | %attr(755,root,root) %ghost %{_libdir}/libguestfs.so.0 | |
3722f906 JB |
444 | %{_mandir}/man1/guestfs-release-notes.1* |
445 | %lang(ja) %{_mandir}/ja/man1/guestfs-release-notes.1* | |
446 | %lang(uk) %{_mandir}/uk/man1/guestfs-release-notes.1* | |
3eebe7b8 JB |
447 | |
448 | %files devel | |
449 | %defattr(644,root,root,755) | |
450 | %attr(755,root,root) %{_libdir}/libguestfs.so | |
451 | %{_includedir}/guestfs.h | |
452 | %{_pkgconfigdir}/libguestfs.pc | |
3eebe7b8 | 453 | %{_mandir}/man3/guestfs.3* |
ed1c34d6 | 454 | %{_mandir}/man3/guestfs-examples.3* |
3eebe7b8 | 455 | %{_mandir}/man3/libguestfs.3* |
ed1c34d6 JB |
456 | %lang(ja) %{_mandir}/ja/man3/guestfs.3* |
457 | %lang(ja) %{_mandir}/ja/man3/guestfs-examples.3* | |
458 | %lang(uk) %{_mandir}/uk/man3/guestfs.3* | |
459 | %lang(uk) %{_mandir}/uk/man3/guestfs-examples.3* | |
3eebe7b8 JB |
460 | |
461 | %if %{with static_libs} | |
462 | %files static | |
463 | %defattr(644,root,root,755) | |
464 | %{_libdir}/libguestfs.a | |
465 | %endif | |
466 | ||
ed1c34d6 JB |
467 | %files apidocs |
468 | %defattr(644,root,root,755) | |
469 | %{_gtkdocdir}/guestfs | |
470 | ||
471 | %files gobject | |
472 | %defattr(644,root,root,755) | |
473 | %attr(755,root,root) %{_libdir}/libguestfs-gobject-1.0.so.*.*.* | |
474 | %attr(755,root,root) %ghost %{_libdir}/libguestfs-gobject-1.0.so.0 | |
475 | %{_libdir}/girepository-1.0/Guestfs-1.0.typelib | |
476 | ||
477 | %files gobject-devel | |
478 | %defattr(644,root,root,755) | |
479 | %attr(755,root,root) %{_libdir}/libguestfs-gobject-1.0.so | |
480 | %{_includedir}/guestfs-gobject.h | |
481 | %{_includedir}/guestfs-gobject | |
482 | %{_datadir}/gir-1.0/Guestfs-1.0.gir | |
476156c6 | 483 | %{_pkgconfigdir}/libguestfs-gobject-1.0.pc |
ed1c34d6 JB |
484 | |
485 | %if %{with static_libs} | |
486 | %files gobject-static | |
487 | %defattr(644,root,root,755) | |
488 | %{_libdir}/libguestfs-gobject-1.0.a | |
489 | %endif | |
490 | ||
3eebe7b8 JB |
491 | %files tools |
492 | %defattr(644,root,root,755) | |
828f7f73 AF |
493 | %attr(755,root,root) %{_bindir}/guestfish |
494 | %attr(755,root,root) %{_bindir}/guestmount | |
495 | %attr(755,root,root) %{_bindir}/libguestfs-test-tool | |
ed1c34d6 | 496 | %attr(755,root,root) %{_bindir}/virt-alignment-scan |
828f7f73 AF |
497 | %attr(755,root,root) %{_bindir}/virt-cat |
498 | %attr(755,root,root) %{_bindir}/virt-copy-in | |
499 | %attr(755,root,root) %{_bindir}/virt-copy-out | |
500 | %attr(755,root,root) %{_bindir}/virt-df | |
501 | %attr(755,root,root) %{_bindir}/virt-edit | |
502 | %attr(755,root,root) %{_bindir}/virt-filesystems | |
ed1c34d6 | 503 | %attr(755,root,root) %{_bindir}/virt-format |
828f7f73 | 504 | %attr(755,root,root) %{_bindir}/virt-inspector |
828f7f73 | 505 | %attr(755,root,root) %{_bindir}/virt-ls |
828f7f73 | 506 | %attr(755,root,root) %{_bindir}/virt-rescue |
828f7f73 AF |
507 | %attr(755,root,root) %{_bindir}/virt-tar-in |
508 | %attr(755,root,root) %{_bindir}/virt-tar-out | |
3eebe7b8 JB |
509 | %attr(755,root,root) %{_sbindir}/guestfsd |
510 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libguestfs-tools.conf | |
828f7f73 | 511 | %{_mandir}/man1/guestfish.1* |
ed1c34d6 JB |
512 | %{_mandir}/man1/guestfs-faq.1* |
513 | %{_mandir}/man1/guestfs-performance.1* | |
828f7f73 | 514 | %{_mandir}/man1/guestfs-recipes.1* |
ed1c34d6 | 515 | %{_mandir}/man1/guestfs-testing.1* |
828f7f73 AF |
516 | %{_mandir}/man1/guestmount.1* |
517 | %{_mandir}/man1/libguestfs-test-tool.1* | |
ed1c34d6 | 518 | %{_mandir}/man1/virt-alignment-scan.1* |
828f7f73 AF |
519 | %{_mandir}/man1/virt-cat.1* |
520 | %{_mandir}/man1/virt-copy-in.1* | |
521 | %{_mandir}/man1/virt-copy-out.1* | |
522 | %{_mandir}/man1/virt-df.1* | |
523 | %{_mandir}/man1/virt-edit.1* | |
524 | %{_mandir}/man1/virt-filesystems.1* | |
ed1c34d6 | 525 | %{_mandir}/man1/virt-format.1* |
828f7f73 | 526 | %{_mandir}/man1/virt-inspector.1* |
828f7f73 | 527 | %{_mandir}/man1/virt-ls.1* |
828f7f73 | 528 | %{_mandir}/man1/virt-rescue.1* |
828f7f73 AF |
529 | %{_mandir}/man1/virt-tar-in.1* |
530 | %{_mandir}/man1/virt-tar-out.1* | |
3722f906 | 531 | %{_mandir}/man8/guestfsd.8* |
828f7f73 | 532 | %lang(ja) %{_mandir}/ja/man1/guestfish.1* |
ed1c34d6 JB |
533 | %lang(ja) %{_mandir}/ja/man1/guestfs-faq.1* |
534 | %lang(ja) %{_mandir}/ja/man1/guestfs-performance.1* | |
535 | %lang(ja) %{_mandir}/ja/man1/guestfs-recipes.1* | |
536 | %lang(ja) %{_mandir}/ja/man1/guestfs-testing.1* | |
828f7f73 | 537 | %lang(ja) %{_mandir}/ja/man1/guestmount.1* |
ed1c34d6 JB |
538 | #%lang(ja) %{_mandir}/ja/man1/libguestfs-make-fixed-appliance.1* |
539 | %lang(ja) %{_mandir}/ja/man1/libguestfs-test-tool.1* | |
540 | %lang(ja) %{_mandir}/ja/man1/virt-alignment-scan.1* | |
828f7f73 AF |
541 | %lang(ja) %{_mandir}/ja/man1/virt-cat.1* |
542 | %lang(ja) %{_mandir}/ja/man1/virt-copy-in.1* | |
543 | %lang(ja) %{_mandir}/ja/man1/virt-copy-out.1* | |
544 | %lang(ja) %{_mandir}/ja/man1/virt-df.1* | |
545 | %lang(ja) %{_mandir}/ja/man1/virt-edit.1* | |
546 | %lang(ja) %{_mandir}/ja/man1/virt-filesystems.1* | |
ed1c34d6 | 547 | %lang(ja) %{_mandir}/ja/man1/virt-format.1* |
828f7f73 | 548 | %lang(ja) %{_mandir}/ja/man1/virt-inspector.1* |
828f7f73 | 549 | %lang(ja) %{_mandir}/ja/man1/virt-ls.1* |
828f7f73 | 550 | %lang(ja) %{_mandir}/ja/man1/virt-rescue.1* |
828f7f73 AF |
551 | %lang(ja) %{_mandir}/ja/man1/virt-tar-in.1* |
552 | %lang(ja) %{_mandir}/ja/man1/virt-tar-out.1* | |
828f7f73 | 553 | %lang(uk) %{_mandir}/uk/man1/guestfish.1* |
ed1c34d6 JB |
554 | %lang(uk) %{_mandir}/uk/man1/guestfs-faq.1* |
555 | %lang(uk) %{_mandir}/uk/man1/guestfs-performance.1* | |
556 | %lang(uk) %{_mandir}/uk/man1/guestfs-recipes.1* | |
557 | %lang(uk) %{_mandir}/uk/man1/guestfs-testing.1* | |
828f7f73 | 558 | %lang(uk) %{_mandir}/uk/man1/guestmount.1* |
ed1c34d6 JB |
559 | #%lang(uk) %{_mandir}/uk/man1/libguestfs-make-fixed-appliance.1* |
560 | %lang(uk) %{_mandir}/uk/man1/libguestfs-test-tool.1* | |
561 | %lang(uk) %{_mandir}/uk/man1/virt-alignment-scan.1* | |
828f7f73 AF |
562 | %lang(uk) %{_mandir}/uk/man1/virt-cat.1* |
563 | %lang(uk) %{_mandir}/uk/man1/virt-copy-in.1* | |
564 | %lang(uk) %{_mandir}/uk/man1/virt-copy-out.1* | |
565 | %lang(uk) %{_mandir}/uk/man1/virt-df.1* | |
566 | %lang(uk) %{_mandir}/uk/man1/virt-edit.1* | |
567 | %lang(uk) %{_mandir}/uk/man1/virt-filesystems.1* | |
ed1c34d6 | 568 | %lang(uk) %{_mandir}/uk/man1/virt-format.1* |
828f7f73 | 569 | %lang(uk) %{_mandir}/uk/man1/virt-inspector.1* |
828f7f73 | 570 | %lang(uk) %{_mandir}/uk/man1/virt-ls.1* |
828f7f73 | 571 | %lang(uk) %{_mandir}/uk/man1/virt-rescue.1* |
828f7f73 AF |
572 | %lang(uk) %{_mandir}/uk/man1/virt-tar-in.1* |
573 | %lang(uk) %{_mandir}/uk/man1/virt-tar-out.1* | |
3eebe7b8 JB |
574 | %if %{with ocaml} |
575 | %attr(755,root,root) %{_bindir}/virt-resize | |
ed1c34d6 JB |
576 | %attr(755,root,root) %{_bindir}/virt-sparsify |
577 | %attr(755,root,root) %{_bindir}/virt-sysprep | |
3eebe7b8 | 578 | %{_mandir}/man1/virt-resize.1* |
ed1c34d6 JB |
579 | %{_mandir}/man1/virt-sparsify.1* |
580 | %{_mandir}/man1/virt-sysprep.1* | |
3eebe7b8 | 581 | %lang(ja) %{_mandir}/ja/man1/virt-resize.1* |
ed1c34d6 JB |
582 | %lang(ja) %{_mandir}/ja/man1/virt-sparsify.1* |
583 | %lang(ja) %{_mandir}/ja/man1/virt-sysprep.1* | |
3eebe7b8 | 584 | %lang(uk) %{_mandir}/uk/man1/virt-resize.1* |
ed1c34d6 JB |
585 | %lang(uk) %{_mandir}/uk/man1/virt-sparsify.1* |
586 | %lang(uk) %{_mandir}/uk/man1/virt-sysprep.1* | |
3eebe7b8 JB |
587 | %endif |
588 | %if %{with perltools} | |
589 | %attr(755,root,root) %{_bindir}/virt-list-filesystems | |
590 | %attr(755,root,root) %{_bindir}/virt-list-partitions | |
591 | %attr(755,root,root) %{_bindir}/virt-make-fs | |
592 | %attr(755,root,root) %{_bindir}/virt-tar | |
593 | %attr(755,root,root) %{_bindir}/virt-win-reg | |
594 | %{_mandir}/man1/virt-list-filesystems.1* | |
595 | %{_mandir}/man1/virt-list-partitions.1* | |
596 | %{_mandir}/man1/virt-make-fs.1* | |
597 | %{_mandir}/man1/virt-tar.1* | |
598 | %{_mandir}/man1/virt-win-reg.1* | |
599 | %lang(ja) %{_mandir}/ja/man1/virt-list-filesystems.1* | |
600 | %lang(ja) %{_mandir}/ja/man1/virt-list-partitions.1* | |
601 | %lang(ja) %{_mandir}/ja/man1/virt-make-fs.1* | |
602 | %lang(ja) %{_mandir}/ja/man1/virt-tar.1* | |
603 | %lang(ja) %{_mandir}/ja/man1/virt-win-reg.1* | |
604 | %lang(uk) %{_mandir}/uk/man1/virt-list-filesystems.1* | |
605 | %lang(uk) %{_mandir}/uk/man1/virt-list-partitions.1* | |
606 | %lang(uk) %{_mandir}/uk/man1/virt-make-fs.1* | |
828f7f73 AF |
607 | %lang(uk) %{_mandir}/uk/man1/virt-tar.1* |
608 | %lang(uk) %{_mandir}/uk/man1/virt-win-reg.1* | |
828f7f73 AF |
609 | %endif |
610 | ||
eeb3750e JB |
611 | %if %{with erlang} |
612 | %files -n erlang-libguestfs | |
613 | %defattr(644,root,root,755) | |
614 | %attr(755,root,root) %{_bindir}/erl-guestfs | |
615 | %{_libdir}/erlang/lib/libguestfs-%{version} | |
616 | %{_mandir}/man3/guestfs-erlang.3* | |
617 | %lang(ja) %{_mandir}/ja/man3/guestfs-erlang.3* | |
618 | %lang(uk) %{_mandir}/uk/man3/guestfs-erlang.3* | |
619 | %endif | |
620 | ||
3eebe7b8 | 621 | %if %{with java} |
828f7f73 AF |
622 | %files -n java-libguestfs |
623 | %defattr(644,root,root,755) | |
ed1c34d6 JB |
624 | %attr(755,root,root) %{_libdir}/libguestfs_jni.so.*.*.* |
625 | %attr(755,root,root) %ghost %{_libdir}/libguestfs_jni.so.1 | |
3eebe7b8 | 626 | %attr(755,root,root) %{_libdir}/libguestfs_jni.so |
ed1c34d6 | 627 | %{_javadir}/libguestfs-%{version}.jar |
828f7f73 | 628 | %{_mandir}/man3/guestfs-java.3* |
ed1c34d6 JB |
629 | %lang(ja) %{_mandir}/ja/man3/guestfs-java.3* |
630 | %lang(uk) %{_mandir}/uk/man3/guestfs-java.3* | |
828f7f73 AF |
631 | |
632 | %files -n java-libguestfs-javadoc | |
633 | %defattr(644,root,root,755) | |
ed1c34d6 | 634 | %{_javadocdir}/libguestfs-java-%{version} |
3eebe7b8 | 635 | %endif |
828f7f73 | 636 | |
3722f906 JB |
637 | %if %{with lua} |
638 | %files -n lua-libguestfs | |
639 | %defattr(644,root,root,755) | |
640 | %attr(755,root,root) %{_libdir}/lua/*/guestfs.so | |
641 | %{_mandir}/man3/guestfs-lua.3* | |
642 | %lang(ja) %{_mandir}/ja/man3/guestfs-lua.3* | |
643 | %lang(uk) %{_mandir}/uk/man3/guestfs-lua.3* | |
644 | %endif | |
645 | ||
3eebe7b8 | 646 | %if %{with ocaml} |
828f7f73 AF |
647 | %files -n ocaml-libguestfs |
648 | %defattr(644,root,root,755) | |
084d2444 | 649 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllmlguestfs.so |
828f7f73 | 650 | %{_libdir}/ocaml/stublibs/dllmlguestfs.so.owner |
828f7f73 AF |
651 | |
652 | %files -n ocaml-libguestfs-devel | |
653 | %defattr(644,root,root,755) | |
084d2444 | 654 | %dir %{_libdir}/ocaml/guestfs |
828f7f73 | 655 | %{_libdir}/ocaml/guestfs/META |
828f7f73 AF |
656 | %{_libdir}/ocaml/guestfs/guestfs.cmi |
657 | %{_libdir}/ocaml/guestfs/guestfs.cmx | |
658 | %{_libdir}/ocaml/guestfs/guestfs.mli | |
659 | %{_libdir}/ocaml/guestfs/libmlguestfs.a | |
660 | %{_libdir}/ocaml/guestfs/mlguestfs.a | |
661 | %{_libdir}/ocaml/guestfs/mlguestfs.cma | |
662 | %{_libdir}/ocaml/guestfs/mlguestfs.cmxa | |
3eebe7b8 | 663 | %{_mandir}/man3/guestfs-ocaml.3* |
ed1c34d6 JB |
664 | %lang(ja) %{_mandir}/ja/man3/guestfs-ocaml.3* |
665 | %lang(uk) %{_mandir}/uk/man3/guestfs-ocaml.3* | |
3eebe7b8 | 666 | %endif |
828f7f73 | 667 | |
3eebe7b8 JB |
668 | %if %{with perl} |
669 | %files -n perl-libguestfs | |
828f7f73 | 670 | %defattr(644,root,root,755) |
3eebe7b8 JB |
671 | %{perl_vendorarch}/Sys/Guestfs.pm |
672 | %dir %{perl_vendorarch}/Sys/Guestfs | |
673 | %{perl_vendorarch}/Sys/Guestfs/Lib.pm | |
674 | %{perl_vendorarch}/Sys/bindtests.pl | |
675 | %dir %{perl_vendorarch}/auto/Sys/Guestfs | |
676 | %{perl_vendorarch}/auto/Sys/Guestfs/Guestfs.bs | |
677 | %attr(755,root,root) %{perl_vendorarch}/auto/Sys/Guestfs/Guestfs.so | |
678 | %{_mandir}/man3/guestfs-perl.3* | |
679 | %{_mandir}/man3/Sys::Guestfs.3pm* | |
680 | %{_mandir}/man3/Sys::Guestfs::Lib.3pm* | |
ed1c34d6 JB |
681 | %lang(ja) %{_mandir}/ja/man3/guestfs-perl.3* |
682 | %lang(uk) %{_mandir}/uk/man3/guestfs-perl.3* | |
3eebe7b8 | 683 | %endif |
828f7f73 | 684 | |
46d973c4 | 685 | %if %{with php} |
7eea6f71 | 686 | %files -n php-guestfs |
687 | %defattr(644,root,root,755) | |
688 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php/conf.d/guestfs_php.ini | |
689 | %attr(755,root,root) %{_libdir}/php/guestfs_php.so | |
46d973c4 | 690 | %endif |
7eea6f71 | 691 | |
3eebe7b8 JB |
692 | %if %{with python} |
693 | %files -n python-libguestfs | |
694 | %defattr(644,root,root,755) | |
695 | %attr(755,root,root) %{py_sitedir}/libguestfsmod.so | |
696 | %{py_sitedir}/guestfs.py[co] | |
697 | %{_mandir}/man3/guestfs-python.3* | |
ed1c34d6 JB |
698 | %lang(ja) %{_mandir}/ja/man3/guestfs-python.3* |
699 | %lang(uk) %{_mandir}/uk/man3/guestfs-python.3* | |
3eebe7b8 JB |
700 | %endif |
701 | ||
46d973c4 JB |
702 | %if %{with ruby} |
703 | %files -n ruby-libguestfs | |
704 | %defattr(644,root,root,755) | |
705 | %attr(755,root,root) %{ruby_sitearchdir}/_guestfs.so | |
706 | %{ruby_sitelibdir}/guestfs.rb | |
707 | %{_mandir}/man3/guestfs-ruby.3* | |
708 | %lang(ja) %{_mandir}/ja/man3/guestfs-ruby.3* | |
709 | %lang(uk) %{_mandir}/uk/man3/guestfs-ruby.3* | |
710 | %endif | |
711 | ||
828f7f73 AF |
712 | %files -n bash-completion-libguestfs |
713 | %defattr(644,root,root,755) | |
714 | %attr(755,root,root) /etc/bash_completion.d/guestfish-bash-completion.sh |