a18aaaadb1f7a1d2ef1b70e25d4185eaccf7d775
[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 %find_lang %{name}
532
533 %clean
534 rm -rf $RPM_BUILD_ROOT
535
536 %post   -p /sbin/ldconfig
537 %postun -p /sbin/ldconfig
538
539 %post   gobject -p /sbin/ldconfig
540 %postun gobject -p /sbin/ldconfig
541
542 %post   -n java-libguestfs -p /sbin/ldconfig
543 %postun -n java-libguestfs -p /sbin/ldconfig
544
545 %files -f %{name}.lang
546 %defattr(644,root,root,755)
547 %doc AUTHORS BUGS ChangeLog README TODO
548 %attr(755,root,root) %{_libdir}/libguestfs.so.*.*.*
549 %attr(755,root,root) %ghost %{_libdir}/libguestfs.so.0
550 %{_mandir}/man1/guestfs-release-notes.1*
551 %{_mandir}/man1/guestfs-security.1*
552 %lang(ja) %{_mandir}/ja/man1/guestfs-release-notes.1*
553 %lang(ja) %{_mandir}/ja/man1/guestfs-security.1*
554 %lang(uk) %{_mandir}/uk/man1/guestfs-release-notes.1*
555 %lang(uk) %{_mandir}/uk/man1/guestfs-security.1*
556
557 %files devel
558 %defattr(644,root,root,755)
559 %attr(755,root,root) %{_libdir}/libguestfs.so
560 %{_includedir}/guestfs.h
561 %{_pkgconfigdir}/libguestfs.pc
562 %{_mandir}/man1/guestfs-hacking.1*
563 %{_mandir}/man1/guestfs-internals.1*
564 %{_mandir}/man3/guestfs.3*
565 %{_mandir}/man3/guestfs-examples.3*
566 %{_mandir}/man3/libguestfs.3*
567 %lang(ja) %{_mandir}/ja/man1/guestfs-hacking.1*
568 %lang(ja) %{_mandir}/ja/man1/guestfs-internals.1*
569 %lang(ja) %{_mandir}/ja/man3/guestfs.3*
570 %lang(ja) %{_mandir}/ja/man3/guestfs-examples.3*
571 %lang(uk) %{_mandir}/uk/man1/guestfs-hacking.1*
572 %lang(uk) %{_mandir}/uk/man1/guestfs-internals.1*
573 %lang(uk) %{_mandir}/uk/man3/guestfs.3*
574 %lang(uk) %{_mandir}/uk/man3/guestfs-examples.3*
575
576 %if %{with static_libs}
577 %files static
578 %defattr(644,root,root,755)
579 %{_libdir}/libguestfs.a
580 %endif
581
582 %files apidocs
583 %defattr(644,root,root,755)
584 %{_gtkdocdir}/guestfs
585
586 %files gobject
587 %defattr(644,root,root,755)
588 %attr(755,root,root) %{_libdir}/libguestfs-gobject-1.0.so.*.*.*
589 %attr(755,root,root) %ghost %{_libdir}/libguestfs-gobject-1.0.so.0
590 %{_libdir}/girepository-1.0/Guestfs-1.0.typelib
591
592 %files gobject-devel
593 %defattr(644,root,root,755)
594 %attr(755,root,root) %{_libdir}/libguestfs-gobject-1.0.so
595 %{_includedir}/guestfs-gobject.h
596 %{_includedir}/guestfs-gobject
597 %{_datadir}/gir-1.0/Guestfs-1.0.gir
598 %{_pkgconfigdir}/libguestfs-gobject-1.0.pc
599
600 %if %{with static_libs}
601 %files gobject-static
602 %defattr(644,root,root,755)
603 %{_libdir}/libguestfs-gobject-1.0.a
604 %endif
605
606 %files tools
607 %defattr(644,root,root,755)
608 %attr(755,root,root) %{_bindir}/guestfish
609 %attr(755,root,root) %{_bindir}/guestmount
610 %attr(755,root,root) %{_bindir}/guestunmount
611 %attr(755,root,root) %{_bindir}/libguestfs-test-tool
612 %attr(755,root,root) %{_bindir}/virt-alignment-scan
613 %attr(755,root,root) %{_bindir}/virt-cat
614 %attr(755,root,root) %{_bindir}/virt-copy-in
615 %attr(755,root,root) %{_bindir}/virt-copy-out
616 %attr(755,root,root) %{_bindir}/virt-df
617 %attr(755,root,root) %{_bindir}/virt-dib
618 %attr(755,root,root) %{_bindir}/virt-diff
619 %attr(755,root,root) %{_bindir}/virt-edit
620 %attr(755,root,root) %{_bindir}/virt-filesystems
621 %attr(755,root,root) %{_bindir}/virt-format
622 %attr(755,root,root) %{_bindir}/virt-get-kernel
623 %attr(755,root,root) %{_bindir}/virt-inspector
624 %attr(755,root,root) %{_bindir}/virt-log
625 %attr(755,root,root) %{_bindir}/virt-ls
626 %attr(755,root,root) %{_bindir}/virt-rescue
627 %attr(755,root,root) %{_bindir}/virt-tail
628 %attr(755,root,root) %{_bindir}/virt-tar-in
629 %attr(755,root,root) %{_bindir}/virt-tar-out
630 %attr(755,root,root) %{_bindir}/virt-v2v-copy-to-local
631 %attr(755,root,root) %{_sbindir}/guestfsd
632 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libguestfs-tools.conf
633 %{_mandir}/man1/guestfish.1*
634 %{_mandir}/man1/guestfs-faq.1*
635 %{_mandir}/man1/guestfs-performance.1*
636 %{_mandir}/man1/guestfs-recipes.1*
637 %{_mandir}/man1/guestfs-testing.1*
638 %{_mandir}/man1/guestmount.1*
639 %{_mandir}/man1/guestunmount.1*
640 %{_mandir}/man1/libguestfs-test-tool.1*
641 %{_mandir}/man1/virt-alignment-scan.1*
642 %{_mandir}/man1/virt-cat.1*
643 %{_mandir}/man1/virt-copy-in.1*
644 %{_mandir}/man1/virt-copy-out.1*
645 %{_mandir}/man1/virt-df.1*
646 %{_mandir}/man1/virt-dib.1*
647 %{_mandir}/man1/virt-diff.1*
648 %{_mandir}/man1/virt-edit.1*
649 %{_mandir}/man1/virt-filesystems.1*
650 %{_mandir}/man1/virt-format.1*
651 %{_mandir}/man1/virt-get-kernel.1*
652 %{_mandir}/man1/virt-inspector.1*
653 %{_mandir}/man1/virt-log.1*
654 %{_mandir}/man1/virt-ls.1*
655 %{_mandir}/man1/virt-rescue.1*
656 %{_mandir}/man1/virt-tail.1*
657 %{_mandir}/man1/virt-tar-in.1*
658 %{_mandir}/man1/virt-tar-out.1*
659 %{_mandir}/man1/virt-v2v-copy-to-local.1*
660 %{_mandir}/man5/libguestfs-tools.conf.5*
661 %{_mandir}/man8/guestfsd.8*
662 %lang(ja) %{_mandir}/ja/man1/guestfish.1*
663 %lang(ja) %{_mandir}/ja/man1/guestfs-faq.1*
664 %lang(ja) %{_mandir}/ja/man1/guestfs-performance.1*
665 %lang(ja) %{_mandir}/ja/man1/guestfs-recipes.1*
666 %lang(ja) %{_mandir}/ja/man1/guestfs-testing.1*
667 %lang(ja) %{_mandir}/ja/man1/guestmount.1*
668 %lang(ja) %{_mandir}/ja/man1/guestunmount.1*
669 %lang(ja) %{_mandir}/ja/man1/libguestfs-test-tool.1*
670 %lang(ja) %{_mandir}/ja/man1/virt-alignment-scan.1*
671 %lang(ja) %{_mandir}/ja/man1/virt-diff.1*
672 %lang(ja) %{_mandir}/ja/man1/virt-cat.1*
673 %lang(ja) %{_mandir}/ja/man1/virt-copy-in.1*
674 %lang(ja) %{_mandir}/ja/man1/virt-copy-out.1*
675 %lang(ja) %{_mandir}/ja/man1/virt-df.1*
676 %lang(ja) %{_mandir}/ja/man1/virt-dib.1*
677 %lang(ja) %{_mandir}/ja/man1/virt-edit.1*
678 %lang(ja) %{_mandir}/ja/man1/virt-filesystems.1*
679 %lang(ja) %{_mandir}/ja/man1/virt-format.1*
680 %lang(ja) %{_mandir}/ja/man1/virt-get-kernel.1*
681 %lang(ja) %{_mandir}/ja/man1/virt-inspector.1*
682 %lang(ja) %{_mandir}/ja/man1/virt-log.1*
683 %lang(ja) %{_mandir}/ja/man1/virt-ls.1*
684 %lang(ja) %{_mandir}/ja/man1/virt-rescue.1*
685 %lang(ja) %{_mandir}/ja/man1/virt-tar-in.1*
686 %lang(ja) %{_mandir}/ja/man1/virt-tar-out.1*
687 %lang(ja) %{_mandir}/ja/man5/libguestfs-tools.conf.5*
688 %lang(uk) %{_mandir}/uk/man1/guestfish.1*
689 %lang(uk) %{_mandir}/uk/man1/guestfs-faq.1*
690 %lang(uk) %{_mandir}/uk/man1/guestfs-performance.1*
691 %lang(uk) %{_mandir}/uk/man1/guestfs-recipes.1*
692 %lang(uk) %{_mandir}/uk/man1/guestfs-testing.1*
693 %lang(uk) %{_mandir}/uk/man1/guestmount.1*
694 %lang(uk) %{_mandir}/uk/man1/guestunmount.1*
695 %lang(uk) %{_mandir}/uk/man1/libguestfs-test-tool.1*
696 %lang(uk) %{_mandir}/uk/man1/virt-alignment-scan.1*
697 %lang(uk) %{_mandir}/uk/man1/virt-cat.1*
698 %lang(uk) %{_mandir}/uk/man1/virt-copy-in.1*
699 %lang(uk) %{_mandir}/uk/man1/virt-copy-out.1*
700 %lang(uk) %{_mandir}/uk/man1/virt-df.1*
701 %lang(ja) %{_mandir}/uk/man1/virt-dib.1*
702 %lang(uk) %{_mandir}/uk/man1/virt-diff.1*
703 %lang(uk) %{_mandir}/uk/man1/virt-edit.1*
704 %lang(uk) %{_mandir}/uk/man1/virt-filesystems.1*
705 %lang(uk) %{_mandir}/uk/man1/virt-format.1*
706 %lang(ja) %{_mandir}/uk/man1/virt-get-kernel.1*
707 %lang(uk) %{_mandir}/uk/man1/virt-inspector.1*
708 %lang(uk) %{_mandir}/uk/man1/virt-log.1*
709 %lang(uk) %{_mandir}/uk/man1/virt-ls.1*
710 %lang(uk) %{_mandir}/uk/man1/virt-rescue.1*
711 %lang(uk) %{_mandir}/uk/man1/virt-tar-in.1*
712 %lang(uk) %{_mandir}/uk/man1/virt-tar-out.1*
713 %lang(uk) %{_mandir}/uk/man5/libguestfs-tools.conf.5*
714 %if %{with ocaml}
715 %attr(755,root,root) %{_bindir}/virt-builder
716 %attr(755,root,root) %{_bindir}/virt-customize
717 %attr(755,root,root) %{_bindir}/virt-index-validate
718 %attr(755,root,root) %{_bindir}/virt-resize
719 %attr(755,root,root) %{_bindir}/virt-sparsify
720 %attr(755,root,root) %{_bindir}/virt-sysprep
721 %attr(755,root,root) %{_bindir}/virt-v2v
722 # compat dir symlink
723 %{_sysconfdir}/virt-builder
724 %dir /etc/xdg/virt-builder
725 %dir /etc/xdg/virt-builder/repos.d
726 %config(noreplace) %verify(not md5 mtime size) /etc/xdg/virt-builder/repos.d/libguestfs.conf
727 %config(noreplace) %verify(not md5 mtime size) /etc/xdg/virt-builder/repos.d/libguestfs.gpg
728 %{_mandir}/man1/virt-builder.1*
729 %{_mandir}/man1/virt-customize.1*
730 %{_mandir}/man1/virt-index-validate.1*
731 %{_mandir}/man1/virt-resize.1*
732 %{_mandir}/man1/virt-sparsify.1*
733 %{_mandir}/man1/virt-sysprep.1*
734 %{_mandir}/man1/virt-v2v.1*
735 %lang(ja) %{_mandir}/ja/man1/virt-builder.1*
736 %lang(ja) %{_mandir}/ja/man1/virt-customize.1*
737 %lang(ja) %{_mandir}/ja/man1/virt-index-validate.1*
738 %lang(ja) %{_mandir}/ja/man1/virt-resize.1*
739 %lang(ja) %{_mandir}/ja/man1/virt-sparsify.1*
740 %lang(ja) %{_mandir}/ja/man1/virt-sysprep.1*
741 %lang(ja) %{_mandir}/ja/man1/virt-v2v.1*
742 %lang(uk) %{_mandir}/uk/man1/virt-builder.1*
743 %lang(uk) %{_mandir}/uk/man1/virt-customize.1*
744 %lang(uk) %{_mandir}/uk/man1/virt-index-validate.1*
745 %lang(uk) %{_mandir}/uk/man1/virt-resize.1*
746 %lang(uk) %{_mandir}/uk/man1/virt-sparsify.1*
747 %lang(uk) %{_mandir}/uk/man1/virt-sysprep.1*
748 %lang(uk) %{_mandir}/uk/man1/virt-v2v.1*
749 %endif
750 %if %{with perltools}
751 %attr(755,root,root) %{_bindir}/virt-list-filesystems
752 %attr(755,root,root) %{_bindir}/virt-list-partitions
753 %attr(755,root,root) %{_bindir}/virt-make-fs
754 %attr(755,root,root) %{_bindir}/virt-tar
755 %attr(755,root,root) %{_bindir}/virt-win-reg
756 %{_mandir}/man1/virt-list-filesystems.1*
757 %{_mandir}/man1/virt-list-partitions.1*
758 %{_mandir}/man1/virt-make-fs.1*
759 %{_mandir}/man1/virt-tar.1*
760 %{_mandir}/man1/virt-win-reg.1*
761 %lang(ja) %{_mandir}/ja/man1/virt-list-filesystems.1*
762 %lang(ja) %{_mandir}/ja/man1/virt-list-partitions.1*
763 %lang(ja) %{_mandir}/ja/man1/virt-make-fs.1*
764 %lang(ja) %{_mandir}/ja/man1/virt-tar.1*
765 %lang(ja) %{_mandir}/ja/man1/virt-win-reg.1*
766 %lang(uk) %{_mandir}/uk/man1/virt-list-filesystems.1*
767 %lang(uk) %{_mandir}/uk/man1/virt-list-partitions.1*
768 %lang(uk) %{_mandir}/uk/man1/virt-make-fs.1*
769 %lang(uk) %{_mandir}/uk/man1/virt-tar.1*
770 %lang(uk) %{_mandir}/uk/man1/virt-win-reg.1*
771 %endif
772
773 %if %{with gtk}
774 %attr(755,root,root) %{_bindir}/virt-p2v-make-disk
775 %attr(755,root,root) %{_bindir}/virt-p2v-make-kickstart
776 %attr(755,root,root) %{_bindir}/virt-p2v-make-kiwi
777 %attr(755,root,root) %{_libexecdir}/virt-p2v
778 %{_datadir}/virt-p2v
779 %{_mandir}/man1/virt-p2v.1*
780 %{_mandir}/man1/virt-p2v-make-disk.1*
781 %{_mandir}/man1/virt-p2v-make-kickstart.1*
782 %{_mandir}/man1/virt-p2v-make-kiwi.1*
783 %lang(ja) %{_mandir}/ja/man1/virt-p2v.1*
784 %lang(ja) %{_mandir}/ja/man1/virt-p2v-make-disk.1*
785 %lang(ja) %{_mandir}/ja/man1/virt-p2v-make-kickstart.1*
786 %lang(uk) %{_mandir}/uk/man1/virt-p2v.1*
787 %lang(uk) %{_mandir}/uk/man1/virt-p2v-make-disk.1*
788 %lang(uk) %{_mandir}/uk/man1/virt-p2v-make-kickstart.1*
789 %endif
790
791 %if %{with appliance}
792 %attr(755,root,root) %{_sbindir}/libguestfs-make-fixed-appliance
793 %{_mandir}/man1/libguestfs-make-fixed-appliance.1*
794 %lang(ja) %{_mandir}/ja/man1/libguestfs-make-fixed-appliance.1*
795 %lang(uk) %{_mandir}/uk/man1/libguestfs-make-fixed-appliance.1*
796 /lib/udev/rules.d/99-guestfs-serial.rules
797 %dir %{_libdir}/guestfs
798 %dir %{_libdir}/guestfs/supermin.d
799 %{_libdir}/guestfs/supermin.d/daemon.img
800 %{_libdir}/guestfs/supermin.d/init.img
801 %{_libdir}/guestfs/supermin.d/udev-rules.img
802 %{_libdir}/guestfs/supermin.d/base.img
803 %{_libdir}/guestfs/supermin.d/hostfiles
804 %endif
805
806 %if %{with erlang}
807 %files -n erlang-libguestfs
808 %defattr(644,root,root,755)
809 %attr(755,root,root) %{_bindir}/erl-guestfs
810 %{_libdir}/erlang/lib/libguestfs-%{version}
811 %{_mandir}/man3/guestfs-erlang.3*
812 %lang(ja) %{_mandir}/ja/man3/guestfs-erlang.3*
813 %lang(uk) %{_mandir}/uk/man3/guestfs-erlang.3*
814 %endif
815
816 %if %{with golang}
817 %files -n golang-libguestfs
818 %defattr(644,root,root,755)
819 %dir %{_libdir}/golang/pkg/linux_*/libguestfs.org
820 %dir %{_libdir}/golang/pkg/linux_*/libguestfs.org/guestfs
821 %{_libdir}/golang/pkg/linux_*/libguestfs.org/guestfs/guestfs.a
822 %{_libdir}/golang/src/libguestfs.org
823 %{_mandir}/man3/guestfs-golang.3*
824 %lang(ja) %{_mandir}/ja/man3/guestfs-golang.3*
825 %lang(uk) %{_mandir}/uk/man3/guestfs-golang.3*
826 %endif
827
828 %if %{with java}
829 %files -n java-libguestfs
830 %defattr(644,root,root,755)
831 %attr(755,root,root) %{_libdir}/libguestfs_jni.so.*.*.*
832 %attr(755,root,root) %ghost %{_libdir}/libguestfs_jni.so.1
833 %attr(755,root,root) %{_libdir}/libguestfs_jni.so
834 %{_javadir}/libguestfs-%{version}.jar
835 %{_mandir}/man3/guestfs-java.3*
836 %lang(ja) %{_mandir}/ja/man3/guestfs-java.3*
837 %lang(uk) %{_mandir}/uk/man3/guestfs-java.3*
838
839 %files -n java-libguestfs-javadoc
840 %defattr(644,root,root,755)
841 %{_javadocdir}/libguestfs
842 %endif
843
844 %if %{with lua}
845 %files -n lua-libguestfs
846 %defattr(644,root,root,755)
847 %attr(755,root,root) %{_libdir}/lua/*/guestfs.so
848 %{_mandir}/man3/guestfs-lua.3*
849 %lang(ja) %{_mandir}/ja/man3/guestfs-lua.3*
850 %lang(uk) %{_mandir}/uk/man3/guestfs-lua.3*
851 %endif
852
853 %if %{with ocaml}
854 %files -n ocaml-libguestfs
855 %defattr(644,root,root,755)
856 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllmlguestfs.so
857 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllv2v_test_harness.so
858 %dir %{_libdir}/ocaml/guestfs
859 %{_libdir}/ocaml/guestfs/META
860 %{_libdir}/ocaml/guestfs/mlguestfs.cma
861
862 %files -n ocaml-libguestfs-devel
863 %defattr(644,root,root,755)
864 %{_libdir}/ocaml/guestfs/guestfs.cmi
865 %{_libdir}/ocaml/guestfs/guestfs.mli
866 %{_libdir}/ocaml/guestfs/libmlguestfs.a
867 %dir %{_libdir}/ocaml/v2v_test_harness
868 %{_libdir}/ocaml/v2v_test_harness/META
869 %{_libdir}/ocaml/v2v_test_harness/libv2v_test_harness.a
870 %{_libdir}/ocaml/v2v_test_harness/v2v_test_harness.cmi
871 %{_libdir}/ocaml/v2v_test_harness/v2v_test_harness.mli
872 %if %{with ocaml_opt}
873 %{_libdir}/ocaml/guestfs/guestfs.cmx
874 %{_libdir}/ocaml/guestfs/mlguestfs.a
875 %{_libdir}/ocaml/guestfs/mlguestfs.cmxa
876 %{_libdir}/ocaml/v2v_test_harness/v2v_test_harness.a
877 %{_libdir}/ocaml/v2v_test_harness/v2v_test_harness.cmx
878 %{_libdir}/ocaml/v2v_test_harness/v2v_test_harness.cmxa
879 %endif
880 %{_mandir}/man1/virt-v2v-test-harness.1*
881 %{_mandir}/man3/guestfs-ocaml.3*
882 %lang(ja) %{_mandir}/ja/man1/virt-v2v-test-harness.1*
883 %lang(uk) %{_mandir}/uk/man1/virt-v2v-test-harness.1*
884 %lang(ja) %{_mandir}/ja/man3/guestfs-ocaml.3*
885 %lang(uk) %{_mandir}/uk/man3/guestfs-ocaml.3*
886 %endif
887
888 %if %{with perl}
889 %files -n perl-libguestfs
890 %defattr(644,root,root,755)
891 %{perl_vendorarch}/Sys/Guestfs.pm
892 %dir %{perl_vendorarch}/auto/Sys/Guestfs
893 %attr(755,root,root) %{perl_vendorarch}/auto/Sys/Guestfs/Guestfs.so
894 %{_mandir}/man3/guestfs-perl.3*
895 %{_mandir}/man3/Sys::Guestfs.3pm*
896 %lang(ja) %{_mandir}/ja/man3/guestfs-perl.3*
897 %lang(uk) %{_mandir}/uk/man3/guestfs-perl.3*
898 %endif
899
900 %if %{with php}
901 %files -n %{php_name}-guestfs
902 %defattr(644,root,root,755)
903 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/guestfs_php.ini
904 %attr(755,root,root) %{php_extensiondir}/guestfs_php.so
905 %endif
906
907 %if %{with python}
908 %files -n python-libguestfs
909 %defattr(644,root,root,755)
910 %attr(755,root,root) %{py_sitedir}/libguestfsmod.so
911 %{py_sitedir}/guestfs.py[co]
912 %{_mandir}/man3/guestfs-python.3*
913 %lang(ja) %{_mandir}/ja/man3/guestfs-python.3*
914 %lang(uk) %{_mandir}/uk/man3/guestfs-python.3*
915 %endif
916
917 %if %{with ruby}
918 %files -n ruby-libguestfs
919 %defattr(644,root,root,755)
920 %attr(755,root,root) %{ruby_vendorarchdir}/_guestfs.so
921 %{ruby_vendorlibdir}/guestfs.rb
922 %{_mandir}/man3/guestfs-ruby.3*
923 %lang(ja) %{_mandir}/ja/man3/guestfs-ruby.3*
924 %lang(uk) %{_mandir}/uk/man3/guestfs-ruby.3*
925 %endif
926
927 %files -n bash-completion-libguestfs
928 %defattr(644,root,root,755)
929 %{bash_compdir}/guestfish
930 %{bash_compdir}/guestmount
931 %{bash_compdir}/guestunmount
932 %{bash_compdir}/virt-*
This page took 0.247957 seconds and 2 git commands to generate.