package GUESTFS_DEFAULT_PATH
[packages/libguestfs.git] / libguestfs.spec
1 # TODO:
2 # - finish haskell bindings (when finished upstream, not ready as of 1.30.4)
3 # - PLD appliance support? (needs at least package list adjustment)
4 #
5 # Conditional build:
6 %bcond_with     static_libs     # build static libraries
7 %bcond_with     appliance       # appliance build (no PLD support)
8 %bcond_without  erlang          # Erlang binding
9 %bcond_with     golang          # Go language binding
10 %bcond_without  gtk             # GTK+ based virt-p2v
11 %bcond_with     haskell         # Haskell (GHC) binding [incomplete, nothing is installed]
12 %bcond_with     java            # Java binding (broken linking, missing symbols)
13 %bcond_without  lua             # Lua binding
14 %bcond_without  ocaml           # OCaml binding and tools
15 %bcond_without  ocaml_opt       # skip building native optimized binaries (bytecode is always built)
16 %bcond_without  perl            # Perl binding
17 %bcond_without  perltools       # Perl tools
18 %bcond_with     php             # PHP binding
19 %bcond_without  python          # Python binding
20 %bcond_without  ruby            # Ruby binding
21 %bcond_without  systemtap       # systemtap/dtrace probes
22
23 %if 0%{!?php_name:1}
24 %define         php_name        php55
25 %endif
26
27 %ifarch x32
28 %undefine       with_erlang
29 %undefine       with_golang
30 %undefine       with_ocaml_opt
31 %endif
32
33 %include        /usr/lib/rpm/macros.perl
34 %include        /usr/lib/rpm/macros.java
35 Summary:        Library and tools for accessing and modifying virtual machine disk images
36 Summary(pl.UTF-8):      Biblioteka i narzędzia do dostępu i modyfikacji obrazów dysków maszyn wirtualnych
37 Name:           libguestfs
38 Version:        1.36.5
39 Release:        1
40 License:        LGPL v2+
41 Group:          Libraries
42 Source0:        http://libguestfs.org/download/1.36-stable/%{name}-%{version}.tar.gz
43 # Source0-md5:  9f989443e7cbdbe23498f578ed4a8b06
44 Patch0:         ncurses.patch
45 Patch1:         augeas-libxml2.patch
46 Patch2:         %{name}-link.patch
47 Patch3:         %{name}-completionsdir.patch
48 Patch4:         golang14nosrcpkg.patch
49 URL:            http://libguestfs.org/
50 BuildRequires:  acl-devel
51 BuildRequires:  attr-devel
52 BuildRequires:  augeas-devel >= 1.0.0
53 BuildRequires:  autoconf >= 2.50
54 BuildRequires:  automake
55 BuildRequires:  bison
56 BuildRequires:  cdrkit-mkisofs
57 BuildRequires:  db-utils
58 BuildRequires:  flex
59 BuildRequires:  gettext-tools
60 BuildRequires:  glib2-devel >= 1:2.26.0
61 BuildRequires:  gobject-introspection-devel >= 1.30.0
62 BuildRequires:  gperf
63 %{?with_gtk:BuildRequires:      gtk+2-devel >= 2.0}
64 BuildRequires:  gtk-doc >= 1.14
65 BuildRequires:  hivex-devel >= 1.2.7
66 BuildRequires:  libcap-devel
67 BuildRequires:  libconfig-devel
68 BuildRequires:  libfuse-devel
69 BuildRequires:  libmagic-devel
70 BuildRequires:  libselinux-devel
71 BuildRequires:  libtool
72 BuildRequires:  libvirt-devel >= 0.10.2
73 BuildRequires:  libxml2-devel >= 2.0
74 BuildRequires:  libxml2-progs
75 BuildRequires:  ncurses-devel
76 BuildRequires:  pcre-devel
77 BuildRequires:  perl-base
78 BuildRequires:  perl-tools-pod
79 BuildRequires:  pkgconfig
80 BuildRequires:  po4a
81 BuildRequires:  qemu-img >= 1.0
82 BuildRequires:  readline-devel
83 BuildRequires:  rpmbuild(macros) >= 1.656
84 # libsystemd-journal
85 BuildRequires:  systemd-devel >= 1:196
86 BuildRequires:  yajl-devel >= 2.0.4
87 %if %{with appliance}
88 BuildRequires:  supermin >= 5.1.0
89 %endif
90 %if %{with erlang}
91 # erl_interface package
92 BuildRequires:  erlang
93 %endif
94 %if %{with golang}
95 BuildRequires:  golang
96 %endif
97 %if %{with haskell}
98 BuildRequires:  ghc
99 %endif
100 %if %{with java}
101 BuildRequires:  jdk
102 BuildRequires:  rpm-javaprov
103 %endif
104 %if %{with lua}
105 # use 5.2 as 5.1 packaging in PLD was incompatible with what's expected by configure
106 BuildRequires:  lua52
107 BuildRequires:  lua52-devel
108 %endif
109 %if %{with ocaml}
110 BuildRequires:  ocaml >= 1:4.0
111 BuildRequires:  ocaml-camlp4
112 BuildRequires:  ocaml-fileutils-devel
113 BuildRequires:  ocaml-findlib
114 BuildRequires:  ocaml-gettext-devel
115 BuildRequires:  ocaml-libvirt-devel >= 0.6.1.4-4
116 BuildRequires:  ocaml-pcre-devel
117 # for virt-builder
118 BuildRequires:  xz-devel
119 %endif
120 %if %{with perl}
121 BuildRequires:  perl-ExtUtils-MakeMaker
122 BuildRequires:  perl-Module-Build
123 BuildRequires:  perl-Test-Simple
124 BuildRequires:  rpm-perlprov
125 %endif
126 %if %{with perltools}
127 BuildRequires:  perl(Data::Dumper)
128 BuildRequires:  perl(Getopt::Long)
129 BuildRequires:  perl(Locale::TextDomain)
130 BuildRequires:  perl(Pod::Man)
131 BuildRequires:  perl(Pod::Simple)
132 BuildRequires:  perl(Pod::Usage)
133 BuildRequires:  perl-String-ShellQuote
134 BuildRequires:  perl-Sys-Virt
135 BuildRequires:  perl-hivex >= 1.2.7
136 BuildRequires:  perl-libintl
137 BuildRequires:  perl-modules
138 %endif
139 %if %{with php}
140 BuildRequires:  %{php_name}-devel
141 BuildRequires:  %{php_name}-program
142 %endif
143 %if %{with python}
144 BuildRequires:  python >= 1:2.7
145 BuildRequires:  python-devel >= 1:2.7
146 BuildRequires:  rpm-pythonprov
147 %endif
148 %if %{with ruby}
149 BuildRequires:  rpm-rubyprov
150 BuildRequires:  ruby
151 BuildRequires:  ruby-devel
152 BuildRequires:  ruby-irb
153 BuildRequires:  ruby-rake
154 BuildRequires:  ruby-rdoc
155 BuildRequires:  ruby-rubygems
156 %endif
157 %if %{with systemtap}
158 BuildRequires:  systemtap-sdt-devel
159 %endif
160 Requires:       qemu-common >= 1.1.0
161 Requires:       yajl >= 2.0.4
162 Suggests:       db-utils
163 Suggests:       icoutils
164 Suggests:       netpbm-progs
165 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
166
167 %ifarch %{ix86}
168 %define         qemu_bin        /usr/bin/qemu-system-i386
169 %endif
170 %ifarch %{x8664} x32
171 %define         qemu_bin        /usr/bin/qemu-system-x86_64
172 %endif
173
174 %description
175 libguestfs is a library and set of tools for accessing and modifying
176 virtual machine (VM) disk images. You can use this for viewing and
177 editing files inside guests, scripting changes to VMs, monitoring disk
178 used/free statistics, P2V, V2V, performing partial backups, cloning
179 VMs, and much else besides.
180
181 %description -l pl.UTF-8
182 libguestfs to biblioteka oraz zestaw narzędzi do dostępu oraz
183 modyfikowania obrazów dysków maszyn wirtualnych (VM). Można je
184 wykorzystywać do oglądania i edycji plików wewnątrz gości, zmian
185 skryptowych w VM-ach, monitorowania statystyk używanego/dostępnego
186 miejsca na dyskach, P2V, V2V, wykonywania częściowych kopii
187 zapasowych, klonowania VM-ów i wielu podobnych operacji.
188
189 %package devel
190 Summary:        Header files for libguestfs library
191 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libguestfs
192 Group:          Development/Libraries
193 Requires:       %{name} = %{version}-%{release}
194
195 %description devel
196 Header files for libguestfs library.
197
198 %description devel -l pl.UTF-8
199 Pliki nagłówkowe biblioteki libguestfs.
200
201 %package static
202 Summary:        Static libguestfs library
203 Summary(pl.UTF-8):      Statyczna biblioteka libguestfs
204 Group:          Development/Libraries
205 Requires:       %{name}-devel = %{version}-%{release}
206
207 %description static
208 Static libguestfs library.
209
210 %description static -l pl.UTF-8
211 Statyczna biblioteka libguestfs.
212
213 %package apidocs
214 Summary:        libguestfs API documentation
215 Summary(pl.UTF-8):      Dokumentacja API libguestfs
216 Group:          Documentation
217 %if "%{_rpmversion}" >= "5"
218 BuildArch:      noarch
219 %endif
220
221 %description apidocs
222 libguestfs API documentation.
223
224 %description apidocs -l pl.UTF-8
225 Dokumentacja API libguestfs.
226
227 %package gobject
228 Summary:        GObject bindings to libguestfs library
229 Summary(pl.UTF-8):      Wiązania GObject do biblioteki libguestfs
230 Group:          Libraries
231 Requires:       %{name} = %{version}-%{release}
232 Requires:       glib2 >= 1:2.26.0
233
234 %description gobject
235 GObject bindings to libguestfs library.
236
237 %description gobject -l pl.UTF-8
238 Wiązania GObject do biblioteki libguestfs.
239
240 %package gobject-devel
241 Summary:        Header files for libguestfs-gobject library
242 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libguestfs-gobject
243 Group:          Development/Libraries
244 Requires:       %{name}-devel = %{version}-%{release}
245 Requires:       %{name}-gobject = %{version}-%{release}
246 Requires:       glib2-devel >= 1:2.26.0
247
248 %description gobject-devel
249 Header files for libguestfs-gobject library.
250
251 %description gobject-devel -l pl.UTF-8
252 Pliki nagłówkowe biblioteki libguestfs-gobject.
253
254 %package gobject-static
255 Summary:        Static libguestfs-gobject library
256 Summary(pl.UTF-8):      Statyczna biblioteka libguestfs-gobject
257 Group:          Development/Libraries
258 Requires:       %{name}-gobject-devel = %{version}-%{release}
259
260 %description gobject-static
261 Static libguestfs-gobject library.
262
263 %description gobject-static -l pl.UTF-8
264 Statyczna biblioteka libguestfs-gobject.
265
266 %package tools
267 Summary:        libguestfs tools for accessing and modifying virtual machine disk images
268 Summary(pl.UTF-8):      Narzędzia libguestfs do dostępu i modyfikacji obrazów dysków maszyn wirtualnych
269 Group:          Applications/System
270 Requires:       %{name} = %{version}-%{release}
271 Requires:       augeas-libs >= 1.0.0
272 %{?with_ocaml:Requires: ocaml-libguestfs = %{version}-%{release}}
273 %{?with_perltools:Requires:     perl-libguestfs = %{version}-%{release}}
274 %if %{with ocaml}
275 Requires:       ocaml-libvirt >= 0.6.1.4-4
276 Suggests:       unzip
277 Suggests:       xz
278 Suggests:       zip
279 %endif
280
281 %description tools
282 libguestfs tools for accessing and modifying virtual machine (VM) disk
283 images. You can use this for viewing and editing files inside guests,
284 scripting changes to VMs, monitoring disk used/free statistics, P2V,
285 V2V, performing partial backups, cloning VMs, and much else besides.
286
287 %description tools -l pl.UTF-8
288 Zestaw narzędzi libguestfs do dostępu oraz modyfikowania obrazów
289 dysków maszyn wirtualnych (VM). Można je wykorzystywać do oglądania i
290 edycji plików wewnątrz gości, zmian skryptowych w VM-ach,
291 monitorowania statystyk używanego/dostępnego miejsca na dyskach, P2V,
292 V2V, wykonywania częściowych kopii zapasowych, klonowania VM-ów i
293 wielu podobnych operacji.
294
295 %package -n erlang-libguestfs
296 Summary:        Erlang bindings for libguestfs
297 Summary(pl.UTF-8):      Wiązania Erlanga do libguestfs
298 Group:          Development/Languages
299 Requires:       %{name} = %{version}-%{release}
300
301 %description -n erlang-libguestfs
302 Erlang bindings for libguestfs.
303
304 %description -n erlang-libguestfs -l pl.UTF-8
305 Wiązania Erlanga do libguestfs.
306
307 %package -n golang-libguestfs
308 Summary:        Go language bindings for libguestfs
309 Summary(pl.UTF-8):      Wiązania języka Go do libguestfs
310 Group:          Development/Languages
311 Requires:       %{name} = %{version}-%{release}
312
313 %description -n golang-libguestfs
314 Go language bindings for libguestfs.
315
316 %description -n golang-libguestfs -l pl.UTF-8
317 Wiązania języka Go do libguestfs.
318
319 %package -n java-libguestfs
320 Summary:        Java bindings for libguestfs
321 Summary(pl.UTF-8):      Wiązania Javy do libguestfs
322 Group:          Libraries/Java
323 Requires:       %{name} = %{version}-%{release}
324
325 %description -n java-libguestfs
326 Java bindings for libguestfs.
327
328 %description -n java-libguestfs -l pl.UTF-8
329 Wiązania Javy do libguestfs.
330
331 %package -n java-libguestfs-javadoc
332 Summary:        Java bindings for libguestfs - documentation
333 Summary(pl.UTF-8):      Wiązania Javy do libguestfs - dokumentacja
334 Group:          Documentation
335
336 %description -n java-libguestfs-javadoc
337 Java bindings for libguestfs - documentation.
338
339 %description -n java-libguestfs-javadoc -l pl.UTF-8
340 Wiązania Javy do libguestfs - dokumentacja.
341
342 %package -n lua-libguestfs
343 Summary:        Lua bindings for libguestfs
344 Summary(pl.UTF-8):      Wiązania języka Lua do libguestfs
345 Group:          Development/Languages
346 Requires:       %{name} = %{version}-%{release}
347
348 %description -n lua-libguestfs
349 Lua bindings for libguestfs.
350
351 %description -n lua-libguestfs -l pl.UTF-8
352 Wiązania języka Lua do libguestfs.
353
354 %package -n ocaml-libguestfs
355 Summary:        OCaml bindings for libguestfs
356 Summary(pl.UTF-8):      Wiązania OCamla do libguestfs
357 Group:          Libraries
358 Requires:       %{name} = %{version}-%{release}
359
360 %description -n ocaml-libguestfs
361 OCaml bindings for libguestfs.
362
363 %description -n ocaml-libguestfs -l pl.UTF-8
364 Wiązania OCamla do libguestfs.
365
366 %package -n ocaml-libguestfs-devel
367 Summary:        Development files OCaml libguestfs bindings
368 Summary(pl.UTF-8):      Pliki programistyczne wiązań OCamla do libguestfs
369 Group:          Development/Libraries
370 Requires:       ocaml-%{name} = %{version}-%{release}
371
372 %description -n ocaml-libguestfs-devel
373 Development files OCaml libguestfs bindings.
374
375 %description -n ocaml-libguestfs-devel -l pl.UTF-8
376 Pliki programistyczne wiązań OCamla do libguestfs.
377
378 %package -n perl-libguestfs
379 Summary:        Perl bindings for libguestfs
380 Summary(pl.UTF-8):      Wiązania Perla do libguestfs
381 Group:          Development/Languages/Perl
382 Requires:       %{name} = %{version}-%{release}
383 Suggests:       perl-Sys-Virt
384 Suggests:       perl-XML-XPath
385 Suggests:       perl-hivex >= 1.2.7
386
387 %description -n perl-libguestfs
388 Perl bindings for libguestfs.
389
390 %description -n perl-libguestfs -l pl.UTF-8
391 Wiązania Perla do libguestfs.
392
393 %package -n %{php_name}-guestfs
394 Summary:        PHP bindings for libguestfs
395 Summary(pl.UTF-8):      Wiązania PHP do libguestfs
396 Group:          Development/Languages/PHP
397 Requires:       %{name} = %{version}-%{release}
398 %{?requires_php_extension}
399
400 %description -n %{php_name}-guestfs
401 PHP bindings for libguestfs.
402
403 %description -n %{php_name}-guestfs -l pl.UTF-8
404 Wiązania PHP do libguestfs.
405
406 %package -n python-libguestfs
407 Summary:        Python bindings for libguestfs
408 Summary(pl.UTF-8):      Wiązania Pythona do libguestfs
409 Group:          Development/Languages/Python
410 Requires:       %{name} = %{version}-%{release}
411
412 %description -n python-libguestfs
413 Python bindings for libguestfs.
414
415 %description -n python-libguestfs -l pl.UTF-8
416 Wiązania Pythona do libguestfs.
417
418 %package -n ruby-libguestfs
419 Summary:        Ruby bindings for libguestfs
420 Summary(pl.UTF-8):      Wiązania języka Ruby do libguestfs
421 Group:          Development/Languages
422 Requires:       %{name} = %{version}-%{release}
423 %{?ruby_ver_requires_eq}
424
425 %description -n ruby-libguestfs
426 Ruby bindings for libguestfs.
427
428 %description -n ruby-libguestfs -l pl.UTF-8
429 Wiązania języka Ruby do libguestfs.
430
431 %package -n bash-completion-libguestfs
432 Summary:        bash-completion for libguestfs tools
433 Summary(pl.UTF-8):      Bashowe uzupełnianie argumentów dla narzędzi libguestfs
434 Group:          Applications/Shells
435 Requires:       bash-completion >= 2.0
436
437 %description -n bash-completion-libguestfs
438 bash-completion for guestfish tool.
439
440 %description -n bash-completion-libguestfs -l pl.UTF-8
441 Bashowe uzupełnianie argumentów dla narzędzi libguestfs.
442
443 %prep
444 %setup -q
445 %patch0 -p1
446 %patch1 -p1
447 %patch2 -p1
448 %patch3 -p1
449 %patch4 -p1
450
451 %build
452 # preserve dir across libtoolize
453 %{__mv} build-aux/snippet{,.back}
454 %{__libtoolize}
455 %{__mv} build-aux/snippet{.back,}
456 %{__aclocal} -I m4
457 %{__autoconf}
458 %{__autoheader}
459 %{__automake}
460 %configure \
461         vmchannel_test=no \
462         DB_DUMP=/usr/bin/db_dump \
463         DB_LOAD=/usr/bin/db_load \
464         %{?with_lua:LUA=/usr/bin/lua5.2} \
465         PBMTEXT=/usr/bin/pbmtext \
466         PNMTOPNG=/usr/bin/pnmtopng \
467         BMPTOPNM=/usr/bin/bmptopnm \
468         PAMCUT=/usr/bin/pamcut \
469         SUPERMIN=/usr/bin/supermin \
470         UNZIP=/usr/bin/unzip \
471         WRESTOOL=/usr/bin/wrestool \
472         QEMU=%{?qemu_bin}%{!?qemu_bin:/usr/bin/qemu} \
473         ZIP=/usr/bin/zip \
474         --with-completionsdir=%{_datadir}/bash-completion/completions \
475         --with-html-dir=%{_gtkdocdir} \
476         --with-java=%{?with_java:%{java_home}}%{!?with_java:no} \
477         --with-python-installdir=%{py_sitedir} \
478         --enable-install-daemon \
479         %{!?with_appliance:--disable-appliance} \
480         %{!?with_erlang:--disable-erlang} \
481         %{!?with_golang:--disable-golang} \
482         %{!?with_haskell:--disable-haskell} \
483         %{!?with_lua:--disable-lua} \
484         %{!?with_ocaml:--disable-ocaml} \
485         %{!?with_perl:--disable-perl} \
486         %{!?with_php:--disable-php} \
487         %{!?with_systemtap:--disable-probes} \
488         %{!?with_python:--disable-python} \
489         %{!?with_ruby:--disable-ruby} \
490         --disable-silent-rules \
491         %{__enable_disable static_libs static}
492
493 %{__make} -j1 \
494         INSTALLDIRS=vendor
495
496 %install
497 rm -rf $RPM_BUILD_ROOT
498
499 %{__make} install \
500         INSTALLDIRS=vendor \
501         DESTDIR=$RPM_BUILD_ROOT \
502         phpdir=%{php_sysconfdir}/conf.d
503
504 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
505 %if %{with lua}
506 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lua/*/*.la
507 %endif
508 %if %{with python}
509 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.la
510 %endif
511 # doc cleanup
512 %{__rm} $RPM_BUILD_ROOT%{_docdir}/libguestfs/{example-*,virt-inspector.rng}
513
514 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
515 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
516 %py_postclean
517
518 %if %{without appliance}
519 %{__rm} $RPM_BUILD_ROOT%{_mandir}/{ja,uk}/man1/libguestfs-make-fixed-appliance.1
520 %endif
521 %if %{with ocaml}
522 %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/dll*.so.owner
523 %else
524 %{__rm} $RPM_BUILD_ROOT%{_mandir}/{ja,uk}/man1/virt-{builder,index-validate,resize,sparsify,sysprep,v2v-test-harness}.1 \
525         $RPM_BUILD_ROOT%{_mandir}/{ja,uk}/man3/guestfs-ocaml.3
526 %endif
527 %if %{without ruby}
528 %{__rm} $RPM_BUILD_ROOT%{_mandir}/{ja,uk}/man3/guestfs-ruby.3
529 %endif
530
531 install -d $RPM_BUILD_ROOT%{_libdir}/guestfs
532
533 %find_lang %{name}
534
535 %clean
536 rm -rf $RPM_BUILD_ROOT
537
538 %post   -p /sbin/ldconfig
539 %postun -p /sbin/ldconfig
540
541 %post   gobject -p /sbin/ldconfig
542 %postun gobject -p /sbin/ldconfig
543
544 %post   -n java-libguestfs -p /sbin/ldconfig
545 %postun -n java-libguestfs -p /sbin/ldconfig
546
547 %files -f %{name}.lang
548 %defattr(644,root,root,755)
549 %doc AUTHORS BUGS ChangeLog README TODO
550 %attr(755,root,root) %{_libdir}/libguestfs.so.*.*.*
551 %attr(755,root,root) %ghost %{_libdir}/libguestfs.so.0
552 %dir %{_libdir}/guestfs
553 %{_mandir}/man1/guestfs-release-notes.1*
554 %{_mandir}/man1/guestfs-security.1*
555 %lang(ja) %{_mandir}/ja/man1/guestfs-release-notes.1*
556 %lang(ja) %{_mandir}/ja/man1/guestfs-security.1*
557 %lang(uk) %{_mandir}/uk/man1/guestfs-release-notes.1*
558 %lang(uk) %{_mandir}/uk/man1/guestfs-security.1*
559
560 %files devel
561 %defattr(644,root,root,755)
562 %attr(755,root,root) %{_libdir}/libguestfs.so
563 %{_includedir}/guestfs.h
564 %{_pkgconfigdir}/libguestfs.pc
565 %{_mandir}/man1/guestfs-hacking.1*
566 %{_mandir}/man1/guestfs-internals.1*
567 %{_mandir}/man3/guestfs.3*
568 %{_mandir}/man3/guestfs-examples.3*
569 %{_mandir}/man3/libguestfs.3*
570 %lang(ja) %{_mandir}/ja/man1/guestfs-hacking.1*
571 %lang(ja) %{_mandir}/ja/man1/guestfs-internals.1*
572 %lang(ja) %{_mandir}/ja/man3/guestfs.3*
573 %lang(ja) %{_mandir}/ja/man3/guestfs-examples.3*
574 %lang(uk) %{_mandir}/uk/man1/guestfs-hacking.1*
575 %lang(uk) %{_mandir}/uk/man1/guestfs-internals.1*
576 %lang(uk) %{_mandir}/uk/man3/guestfs.3*
577 %lang(uk) %{_mandir}/uk/man3/guestfs-examples.3*
578
579 %if %{with static_libs}
580 %files static
581 %defattr(644,root,root,755)
582 %{_libdir}/libguestfs.a
583 %endif
584
585 %files apidocs
586 %defattr(644,root,root,755)
587 %{_gtkdocdir}/guestfs
588
589 %files gobject
590 %defattr(644,root,root,755)
591 %attr(755,root,root) %{_libdir}/libguestfs-gobject-1.0.so.*.*.*
592 %attr(755,root,root) %ghost %{_libdir}/libguestfs-gobject-1.0.so.0
593 %{_libdir}/girepository-1.0/Guestfs-1.0.typelib
594
595 %files gobject-devel
596 %defattr(644,root,root,755)
597 %attr(755,root,root) %{_libdir}/libguestfs-gobject-1.0.so
598 %{_includedir}/guestfs-gobject.h
599 %{_includedir}/guestfs-gobject
600 %{_datadir}/gir-1.0/Guestfs-1.0.gir
601 %{_pkgconfigdir}/libguestfs-gobject-1.0.pc
602
603 %if %{with static_libs}
604 %files gobject-static
605 %defattr(644,root,root,755)
606 %{_libdir}/libguestfs-gobject-1.0.a
607 %endif
608
609 %files tools
610 %defattr(644,root,root,755)
611 %attr(755,root,root) %{_bindir}/guestfish
612 %attr(755,root,root) %{_bindir}/guestmount
613 %attr(755,root,root) %{_bindir}/guestunmount
614 %attr(755,root,root) %{_bindir}/libguestfs-test-tool
615 %attr(755,root,root) %{_bindir}/virt-alignment-scan
616 %attr(755,root,root) %{_bindir}/virt-cat
617 %attr(755,root,root) %{_bindir}/virt-copy-in
618 %attr(755,root,root) %{_bindir}/virt-copy-out
619 %attr(755,root,root) %{_bindir}/virt-df
620 %attr(755,root,root) %{_bindir}/virt-dib
621 %attr(755,root,root) %{_bindir}/virt-diff
622 %attr(755,root,root) %{_bindir}/virt-edit
623 %attr(755,root,root) %{_bindir}/virt-filesystems
624 %attr(755,root,root) %{_bindir}/virt-format
625 %attr(755,root,root) %{_bindir}/virt-get-kernel
626 %attr(755,root,root) %{_bindir}/virt-inspector
627 %attr(755,root,root) %{_bindir}/virt-log
628 %attr(755,root,root) %{_bindir}/virt-ls
629 %attr(755,root,root) %{_bindir}/virt-rescue
630 %attr(755,root,root) %{_bindir}/virt-tail
631 %attr(755,root,root) %{_bindir}/virt-tar-in
632 %attr(755,root,root) %{_bindir}/virt-tar-out
633 %attr(755,root,root) %{_bindir}/virt-v2v-copy-to-local
634 %attr(755,root,root) %{_sbindir}/guestfsd
635 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libguestfs-tools.conf
636 %{_mandir}/man1/guestfish.1*
637 %{_mandir}/man1/guestfs-faq.1*
638 %{_mandir}/man1/guestfs-performance.1*
639 %{_mandir}/man1/guestfs-recipes.1*
640 %{_mandir}/man1/guestfs-testing.1*
641 %{_mandir}/man1/guestmount.1*
642 %{_mandir}/man1/guestunmount.1*
643 %{_mandir}/man1/libguestfs-test-tool.1*
644 %{_mandir}/man1/virt-alignment-scan.1*
645 %{_mandir}/man1/virt-cat.1*
646 %{_mandir}/man1/virt-copy-in.1*
647 %{_mandir}/man1/virt-copy-out.1*
648 %{_mandir}/man1/virt-df.1*
649 %{_mandir}/man1/virt-dib.1*
650 %{_mandir}/man1/virt-diff.1*
651 %{_mandir}/man1/virt-edit.1*
652 %{_mandir}/man1/virt-filesystems.1*
653 %{_mandir}/man1/virt-format.1*
654 %{_mandir}/man1/virt-get-kernel.1*
655 %{_mandir}/man1/virt-inspector.1*
656 %{_mandir}/man1/virt-log.1*
657 %{_mandir}/man1/virt-ls.1*
658 %{_mandir}/man1/virt-rescue.1*
659 %{_mandir}/man1/virt-tail.1*
660 %{_mandir}/man1/virt-tar-in.1*
661 %{_mandir}/man1/virt-tar-out.1*
662 %{_mandir}/man1/virt-v2v-copy-to-local.1*
663 %{_mandir}/man5/libguestfs-tools.conf.5*
664 %{_mandir}/man8/guestfsd.8*
665 %lang(ja) %{_mandir}/ja/man1/guestfish.1*
666 %lang(ja) %{_mandir}/ja/man1/guestfs-faq.1*
667 %lang(ja) %{_mandir}/ja/man1/guestfs-performance.1*
668 %lang(ja) %{_mandir}/ja/man1/guestfs-recipes.1*
669 %lang(ja) %{_mandir}/ja/man1/guestfs-testing.1*
670 %lang(ja) %{_mandir}/ja/man1/guestmount.1*
671 %lang(ja) %{_mandir}/ja/man1/guestunmount.1*
672 %lang(ja) %{_mandir}/ja/man1/libguestfs-test-tool.1*
673 %lang(ja) %{_mandir}/ja/man1/virt-alignment-scan.1*
674 %lang(ja) %{_mandir}/ja/man1/virt-diff.1*
675 %lang(ja) %{_mandir}/ja/man1/virt-cat.1*
676 %lang(ja) %{_mandir}/ja/man1/virt-copy-in.1*
677 %lang(ja) %{_mandir}/ja/man1/virt-copy-out.1*
678 %lang(ja) %{_mandir}/ja/man1/virt-df.1*
679 %lang(ja) %{_mandir}/ja/man1/virt-dib.1*
680 %lang(ja) %{_mandir}/ja/man1/virt-edit.1*
681 %lang(ja) %{_mandir}/ja/man1/virt-filesystems.1*
682 %lang(ja) %{_mandir}/ja/man1/virt-format.1*
683 %lang(ja) %{_mandir}/ja/man1/virt-get-kernel.1*
684 %lang(ja) %{_mandir}/ja/man1/virt-inspector.1*
685 %lang(ja) %{_mandir}/ja/man1/virt-log.1*
686 %lang(ja) %{_mandir}/ja/man1/virt-ls.1*
687 %lang(ja) %{_mandir}/ja/man1/virt-rescue.1*
688 %lang(ja) %{_mandir}/ja/man1/virt-tar-in.1*
689 %lang(ja) %{_mandir}/ja/man1/virt-tar-out.1*
690 %lang(ja) %{_mandir}/ja/man5/libguestfs-tools.conf.5*
691 %lang(uk) %{_mandir}/uk/man1/guestfish.1*
692 %lang(uk) %{_mandir}/uk/man1/guestfs-faq.1*
693 %lang(uk) %{_mandir}/uk/man1/guestfs-performance.1*
694 %lang(uk) %{_mandir}/uk/man1/guestfs-recipes.1*
695 %lang(uk) %{_mandir}/uk/man1/guestfs-testing.1*
696 %lang(uk) %{_mandir}/uk/man1/guestmount.1*
697 %lang(uk) %{_mandir}/uk/man1/guestunmount.1*
698 %lang(uk) %{_mandir}/uk/man1/libguestfs-test-tool.1*
699 %lang(uk) %{_mandir}/uk/man1/virt-alignment-scan.1*
700 %lang(uk) %{_mandir}/uk/man1/virt-cat.1*
701 %lang(uk) %{_mandir}/uk/man1/virt-copy-in.1*
702 %lang(uk) %{_mandir}/uk/man1/virt-copy-out.1*
703 %lang(uk) %{_mandir}/uk/man1/virt-df.1*
704 %lang(ja) %{_mandir}/uk/man1/virt-dib.1*
705 %lang(uk) %{_mandir}/uk/man1/virt-diff.1*
706 %lang(uk) %{_mandir}/uk/man1/virt-edit.1*
707 %lang(uk) %{_mandir}/uk/man1/virt-filesystems.1*
708 %lang(uk) %{_mandir}/uk/man1/virt-format.1*
709 %lang(ja) %{_mandir}/uk/man1/virt-get-kernel.1*
710 %lang(uk) %{_mandir}/uk/man1/virt-inspector.1*
711 %lang(uk) %{_mandir}/uk/man1/virt-log.1*
712 %lang(uk) %{_mandir}/uk/man1/virt-ls.1*
713 %lang(uk) %{_mandir}/uk/man1/virt-rescue.1*
714 %lang(uk) %{_mandir}/uk/man1/virt-tar-in.1*
715 %lang(uk) %{_mandir}/uk/man1/virt-tar-out.1*
716 %lang(uk) %{_mandir}/uk/man5/libguestfs-tools.conf.5*
717 %if %{with ocaml}
718 %attr(755,root,root) %{_bindir}/virt-builder
719 %attr(755,root,root) %{_bindir}/virt-customize
720 %attr(755,root,root) %{_bindir}/virt-index-validate
721 %attr(755,root,root) %{_bindir}/virt-resize
722 %attr(755,root,root) %{_bindir}/virt-sparsify
723 %attr(755,root,root) %{_bindir}/virt-sysprep
724 %attr(755,root,root) %{_bindir}/virt-v2v
725 # compat dir symlink
726 %{_sysconfdir}/virt-builder
727 %dir /etc/xdg/virt-builder
728 %dir /etc/xdg/virt-builder/repos.d
729 %config(noreplace) %verify(not md5 mtime size) /etc/xdg/virt-builder/repos.d/libguestfs.conf
730 %config(noreplace) %verify(not md5 mtime size) /etc/xdg/virt-builder/repos.d/libguestfs.gpg
731 %{_mandir}/man1/virt-builder.1*
732 %{_mandir}/man1/virt-customize.1*
733 %{_mandir}/man1/virt-index-validate.1*
734 %{_mandir}/man1/virt-resize.1*
735 %{_mandir}/man1/virt-sparsify.1*
736 %{_mandir}/man1/virt-sysprep.1*
737 %{_mandir}/man1/virt-v2v.1*
738 %lang(ja) %{_mandir}/ja/man1/virt-builder.1*
739 %lang(ja) %{_mandir}/ja/man1/virt-customize.1*
740 %lang(ja) %{_mandir}/ja/man1/virt-index-validate.1*
741 %lang(ja) %{_mandir}/ja/man1/virt-resize.1*
742 %lang(ja) %{_mandir}/ja/man1/virt-sparsify.1*
743 %lang(ja) %{_mandir}/ja/man1/virt-sysprep.1*
744 %lang(ja) %{_mandir}/ja/man1/virt-v2v.1*
745 %lang(uk) %{_mandir}/uk/man1/virt-builder.1*
746 %lang(uk) %{_mandir}/uk/man1/virt-customize.1*
747 %lang(uk) %{_mandir}/uk/man1/virt-index-validate.1*
748 %lang(uk) %{_mandir}/uk/man1/virt-resize.1*
749 %lang(uk) %{_mandir}/uk/man1/virt-sparsify.1*
750 %lang(uk) %{_mandir}/uk/man1/virt-sysprep.1*
751 %lang(uk) %{_mandir}/uk/man1/virt-v2v.1*
752 %endif
753 %if %{with perltools}
754 %attr(755,root,root) %{_bindir}/virt-list-filesystems
755 %attr(755,root,root) %{_bindir}/virt-list-partitions
756 %attr(755,root,root) %{_bindir}/virt-make-fs
757 %attr(755,root,root) %{_bindir}/virt-tar
758 %attr(755,root,root) %{_bindir}/virt-win-reg
759 %{_mandir}/man1/virt-list-filesystems.1*
760 %{_mandir}/man1/virt-list-partitions.1*
761 %{_mandir}/man1/virt-make-fs.1*
762 %{_mandir}/man1/virt-tar.1*
763 %{_mandir}/man1/virt-win-reg.1*
764 %lang(ja) %{_mandir}/ja/man1/virt-list-filesystems.1*
765 %lang(ja) %{_mandir}/ja/man1/virt-list-partitions.1*
766 %lang(ja) %{_mandir}/ja/man1/virt-make-fs.1*
767 %lang(ja) %{_mandir}/ja/man1/virt-tar.1*
768 %lang(ja) %{_mandir}/ja/man1/virt-win-reg.1*
769 %lang(uk) %{_mandir}/uk/man1/virt-list-filesystems.1*
770 %lang(uk) %{_mandir}/uk/man1/virt-list-partitions.1*
771 %lang(uk) %{_mandir}/uk/man1/virt-make-fs.1*
772 %lang(uk) %{_mandir}/uk/man1/virt-tar.1*
773 %lang(uk) %{_mandir}/uk/man1/virt-win-reg.1*
774 %endif
775
776 %if %{with gtk}
777 %attr(755,root,root) %{_bindir}/virt-p2v-make-disk
778 %attr(755,root,root) %{_bindir}/virt-p2v-make-kickstart
779 %attr(755,root,root) %{_bindir}/virt-p2v-make-kiwi
780 %attr(755,root,root) %{_libexecdir}/virt-p2v
781 %{_datadir}/virt-p2v
782 %{_mandir}/man1/virt-p2v.1*
783 %{_mandir}/man1/virt-p2v-make-disk.1*
784 %{_mandir}/man1/virt-p2v-make-kickstart.1*
785 %{_mandir}/man1/virt-p2v-make-kiwi.1*
786 %lang(ja) %{_mandir}/ja/man1/virt-p2v.1*
787 %lang(ja) %{_mandir}/ja/man1/virt-p2v-make-disk.1*
788 %lang(ja) %{_mandir}/ja/man1/virt-p2v-make-kickstart.1*
789 %lang(uk) %{_mandir}/uk/man1/virt-p2v.1*
790 %lang(uk) %{_mandir}/uk/man1/virt-p2v-make-disk.1*
791 %lang(uk) %{_mandir}/uk/man1/virt-p2v-make-kickstart.1*
792 %endif
793
794 %if %{with appliance}
795 %attr(755,root,root) %{_sbindir}/libguestfs-make-fixed-appliance
796 %{_mandir}/man1/libguestfs-make-fixed-appliance.1*
797 %lang(ja) %{_mandir}/ja/man1/libguestfs-make-fixed-appliance.1*
798 %lang(uk) %{_mandir}/uk/man1/libguestfs-make-fixed-appliance.1*
799 /lib/udev/rules.d/99-guestfs-serial.rules
800 %dir %{_libdir}/guestfs
801 %dir %{_libdir}/guestfs/supermin.d
802 %{_libdir}/guestfs/supermin.d/daemon.img
803 %{_libdir}/guestfs/supermin.d/init.img
804 %{_libdir}/guestfs/supermin.d/udev-rules.img
805 %{_libdir}/guestfs/supermin.d/base.img
806 %{_libdir}/guestfs/supermin.d/hostfiles
807 %endif
808
809 %if %{with erlang}
810 %files -n erlang-libguestfs
811 %defattr(644,root,root,755)
812 %attr(755,root,root) %{_bindir}/erl-guestfs
813 %{_libdir}/erlang/lib/libguestfs-%{version}
814 %{_mandir}/man3/guestfs-erlang.3*
815 %lang(ja) %{_mandir}/ja/man3/guestfs-erlang.3*
816 %lang(uk) %{_mandir}/uk/man3/guestfs-erlang.3*
817 %endif
818
819 %if %{with golang}
820 %files -n golang-libguestfs
821 %defattr(644,root,root,755)
822 %dir %{_libdir}/golang/pkg/linux_*/libguestfs.org
823 %dir %{_libdir}/golang/pkg/linux_*/libguestfs.org/guestfs
824 %{_libdir}/golang/pkg/linux_*/libguestfs.org/guestfs/guestfs.a
825 %{_libdir}/golang/src/libguestfs.org
826 %{_mandir}/man3/guestfs-golang.3*
827 %lang(ja) %{_mandir}/ja/man3/guestfs-golang.3*
828 %lang(uk) %{_mandir}/uk/man3/guestfs-golang.3*
829 %endif
830
831 %if %{with java}
832 %files -n java-libguestfs
833 %defattr(644,root,root,755)
834 %attr(755,root,root) %{_libdir}/libguestfs_jni.so.*.*.*
835 %attr(755,root,root) %ghost %{_libdir}/libguestfs_jni.so.1
836 %attr(755,root,root) %{_libdir}/libguestfs_jni.so
837 %{_javadir}/libguestfs-%{version}.jar
838 %{_mandir}/man3/guestfs-java.3*
839 %lang(ja) %{_mandir}/ja/man3/guestfs-java.3*
840 %lang(uk) %{_mandir}/uk/man3/guestfs-java.3*
841
842 %files -n java-libguestfs-javadoc
843 %defattr(644,root,root,755)
844 %{_javadocdir}/libguestfs
845 %endif
846
847 %if %{with lua}
848 %files -n lua-libguestfs
849 %defattr(644,root,root,755)
850 %attr(755,root,root) %{_libdir}/lua/*/guestfs.so
851 %{_mandir}/man3/guestfs-lua.3*
852 %lang(ja) %{_mandir}/ja/man3/guestfs-lua.3*
853 %lang(uk) %{_mandir}/uk/man3/guestfs-lua.3*
854 %endif
855
856 %if %{with ocaml}
857 %files -n ocaml-libguestfs
858 %defattr(644,root,root,755)
859 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllmlguestfs.so
860 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllv2v_test_harness.so
861 %dir %{_libdir}/ocaml/guestfs
862 %{_libdir}/ocaml/guestfs/META
863 %{_libdir}/ocaml/guestfs/mlguestfs.cma
864
865 %files -n ocaml-libguestfs-devel
866 %defattr(644,root,root,755)
867 %{_libdir}/ocaml/guestfs/guestfs.cmi
868 %{_libdir}/ocaml/guestfs/guestfs.mli
869 %{_libdir}/ocaml/guestfs/libmlguestfs.a
870 %dir %{_libdir}/ocaml/v2v_test_harness
871 %{_libdir}/ocaml/v2v_test_harness/META
872 %{_libdir}/ocaml/v2v_test_harness/libv2v_test_harness.a
873 %{_libdir}/ocaml/v2v_test_harness/v2v_test_harness.cmi
874 %{_libdir}/ocaml/v2v_test_harness/v2v_test_harness.mli
875 %if %{with ocaml_opt}
876 %{_libdir}/ocaml/guestfs/guestfs.cmx
877 %{_libdir}/ocaml/guestfs/mlguestfs.a
878 %{_libdir}/ocaml/guestfs/mlguestfs.cmxa
879 %{_libdir}/ocaml/v2v_test_harness/v2v_test_harness.a
880 %{_libdir}/ocaml/v2v_test_harness/v2v_test_harness.cmx
881 %{_libdir}/ocaml/v2v_test_harness/v2v_test_harness.cmxa
882 %endif
883 %{_mandir}/man1/virt-v2v-test-harness.1*
884 %{_mandir}/man3/guestfs-ocaml.3*
885 %lang(ja) %{_mandir}/ja/man1/virt-v2v-test-harness.1*
886 %lang(uk) %{_mandir}/uk/man1/virt-v2v-test-harness.1*
887 %lang(ja) %{_mandir}/ja/man3/guestfs-ocaml.3*
888 %lang(uk) %{_mandir}/uk/man3/guestfs-ocaml.3*
889 %endif
890
891 %if %{with perl}
892 %files -n perl-libguestfs
893 %defattr(644,root,root,755)
894 %{perl_vendorarch}/Sys/Guestfs.pm
895 %dir %{perl_vendorarch}/auto/Sys/Guestfs
896 %attr(755,root,root) %{perl_vendorarch}/auto/Sys/Guestfs/Guestfs.so
897 %{_mandir}/man3/guestfs-perl.3*
898 %{_mandir}/man3/Sys::Guestfs.3pm*
899 %lang(ja) %{_mandir}/ja/man3/guestfs-perl.3*
900 %lang(uk) %{_mandir}/uk/man3/guestfs-perl.3*
901 %endif
902
903 %if %{with php}
904 %files -n %{php_name}-guestfs
905 %defattr(644,root,root,755)
906 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/guestfs_php.ini
907 %attr(755,root,root) %{php_extensiondir}/guestfs_php.so
908 %endif
909
910 %if %{with python}
911 %files -n python-libguestfs
912 %defattr(644,root,root,755)
913 %attr(755,root,root) %{py_sitedir}/libguestfsmod.so
914 %{py_sitedir}/guestfs.py[co]
915 %{_mandir}/man3/guestfs-python.3*
916 %lang(ja) %{_mandir}/ja/man3/guestfs-python.3*
917 %lang(uk) %{_mandir}/uk/man3/guestfs-python.3*
918 %endif
919
920 %if %{with ruby}
921 %files -n ruby-libguestfs
922 %defattr(644,root,root,755)
923 %attr(755,root,root) %{ruby_vendorarchdir}/_guestfs.so
924 %{ruby_vendorlibdir}/guestfs.rb
925 %{_mandir}/man3/guestfs-ruby.3*
926 %lang(ja) %{_mandir}/ja/man3/guestfs-ruby.3*
927 %lang(uk) %{_mandir}/uk/man3/guestfs-ruby.3*
928 %endif
929
930 %files -n bash-completion-libguestfs
931 %defattr(644,root,root,755)
932 %{bash_compdir}/guestfish
933 %{bash_compdir}/guestmount
934 %{bash_compdir}/guestunmount
935 %{bash_compdir}/virt-*
This page took 0.163754 seconds and 3 git commands to generate.