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