]>
Commit | Line | Data |
---|---|---|
ed1c34d6 | 1 | # TODO: |
288a6aa1 | 2 | # - finish haskell bindings (when finished upstream, not ready as of 1.26.3) |
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 |
840f16bc | 9 | %bcond_without 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] |
3eebe7b8 | 12 | %bcond_without java # Java binding |
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 | |
18 | %bcond_without php # PHP binding | |
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 |
273c234c | 38 | Version: 1.28.10 |
c5f23768 | 39 | Release: 2 |
828f7f73 AF |
40 | License: LGPL v2+ |
41 | Group: Libraries | |
91c752f6 | 42 | Source0: http://libguestfs.org/download/1.28-stable/%{name}-%{version}.tar.gz |
273c234c | 43 | # Source0-md5: 5b9fc1f8e41d7c7a9505c160a79f6504 |
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 | 56 | BuildRequires: cdrkit-mkisofs |
273c234c | 57 | BuildRequires: cpio |
828f7f73 | 58 | BuildRequires: db-utils |
893a36ad | 59 | BuildRequires: flex |
53a36759 | 60 | BuildRequires: gettext-tools |
ed1c34d6 JB |
61 | BuildRequires: glib2-devel >= 1:2.26.0 |
62 | BuildRequires: gobject-introspection-devel >= 1.30.0 | |
828f7f73 | 63 | BuildRequires: gperf |
91c752f6 | 64 | %{?with_gtk:BuildRequires: gtk+2-devel >= 2.0} |
ed1c34d6 | 65 | BuildRequires: gtk-doc >= 1.14 |
3722f906 | 66 | BuildRequires: hivex-devel >= 1.2.7 |
3722f906 | 67 | BuildRequires: libcap-devel |
828f7f73 | 68 | BuildRequires: libconfig-devel |
7eea6f71 | 69 | BuildRequires: libfuse-devel |
828f7f73 AF |
70 | BuildRequires: libmagic-devel |
71 | BuildRequires: libselinux-devel | |
72 | BuildRequires: libtool | |
3722f906 | 73 | BuildRequires: libvirt-devel >= 0.10.2 |
3eebe7b8 | 74 | BuildRequires: libxml2-devel >= 2.0 |
828f7f73 | 75 | BuildRequires: libxml2-progs |
312283b5 ER |
76 | BuildRequires: ncurses-devel |
77 | BuildRequires: pcre-devel | |
78 | BuildRequires: perl-base | |
79 | BuildRequires: perl-tools-pod | |
80 | BuildRequires: pkgconfig | |
81 | BuildRequires: po4a | |
82 | BuildRequires: qemu-img >= 1.0 | |
83 | BuildRequires: readline-devel | |
84 | BuildRequires: rpmbuild(macros) >= 1.656 | |
85 | # libsystemd-journal | |
91c752f6 | 86 | BuildRequires: systemd-devel >= 1:196 |
ef731dae | 87 | BuildRequires: yajl-devel >= 2.0.4 |
312283b5 ER |
88 | %if %{with appliance} |
89 | BuildRequires: supermin >= 5.1.0 | |
90 | %endif | |
91 | %if %{with erlang} | |
92 | # erl_interface package | |
93 | BuildRequires: erlang | |
94 | %endif | |
95 | %if %{with golang} | |
96 | BuildRequires: golang | |
97 | %endif | |
98 | %if %{with haskell} | |
99 | BuildRequires: ghc | |
100 | %endif | |
101 | %if %{with java} | |
102 | BuildRequires: jdk | |
103 | BuildRequires: rpm-javaprov | |
104 | %endif | |
3722f906 JB |
105 | %if %{with lua} |
106 | # use 5.2 as 5.1 packaging in PLD was incompatible with what's expected by configure | |
107 | BuildRequires: lua52 | |
108 | BuildRequires: lua52-devel | |
109 | %endif | |
3eebe7b8 | 110 | %if %{with ocaml} |
91c752f6 | 111 | BuildRequires: ocaml >= 1:4.0 |
dee6324e | 112 | BuildRequires: ocaml-camlp4 |
99802fc9 | 113 | BuildRequires: ocaml-fileutils >= 0.4.5-4 |
3eebe7b8 | 114 | BuildRequires: ocaml-findlib |
ef731dae | 115 | BuildRequires: ocaml-gettext-devel |
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 | |
209 | ||
210 | %description apidocs | |
211 | libguestfs API documentation. | |
212 | ||
213 | %description apidocs -l pl.UTF-8 | |
214 | Dokumentacja API libguestfs. | |
215 | ||
216 | %package gobject | |
217 | Summary: GObject bindings to libguestfs library | |
218 | Summary(pl.UTF-8): Wiązania GObject do biblioteki libguestfs | |
219 | Group: Libraries | |
220 | Requires: %{name} = %{version}-%{release} | |
221 | Requires: glib2 >= 1:2.26.0 | |
222 | ||
223 | %description gobject | |
224 | GObject bindings to libguestfs library. | |
225 | ||
226 | %description gobject -l pl.UTF-8 | |
227 | Wiązania GObject do biblioteki libguestfs. | |
228 | ||
229 | %package gobject-devel | |
230 | Summary: Header files for libguestfs-gobject library | |
231 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libguestfs-gobject | |
232 | Group: Development/Libraries | |
233 | Requires: %{name}-devel = %{version}-%{release} | |
234 | Requires: %{name}-gobject = %{version}-%{release} | |
235 | Requires: glib2-devel >= 1:2.26.0 | |
236 | ||
237 | %description gobject-devel | |
238 | Header files for libguestfs-gobject library. | |
239 | ||
240 | %description gobject-devel -l pl.UTF-8 | |
241 | Pliki nagłówkowe biblioteki libguestfs-gobject. | |
242 | ||
243 | %package gobject-static | |
244 | Summary: Static libguestfs-gobject library | |
245 | Summary(pl.UTF-8): Statyczna biblioteka libguestfs-gobject | |
246 | Group: Development/Libraries | |
247 | Requires: %{name}-gobject-devel = %{version}-%{release} | |
248 | ||
249 | %description gobject-static | |
250 | Static libguestfs-gobject library. | |
251 | ||
252 | %description gobject-static -l pl.UTF-8 | |
253 | Statyczna biblioteka libguestfs-gobject. | |
254 | ||
3eebe7b8 JB |
255 | %package tools |
256 | Summary: libguestfs tools for accessing and modifying virtual machine disk images | |
257 | Summary(pl.UTF-8): Narzędzia libguestfs do dostępu i modyfikacji obrazów dysków maszyn wirtualnych | |
258 | Group: Applications/System | |
259 | Requires: %{name} = %{version}-%{release} | |
260 | %{?with_ocaml:Requires: ocaml-libguestfs = %{version}-%{release}} | |
261 | %{?with_perltools:Requires: perl-libguestfs = %{version}-%{release}} | |
840f16bc | 262 | Requires: augeas-libs >= 1.0.0 |
91c752f6 JB |
263 | %if %{with ocaml} |
264 | Suggests: unzip | |
265 | Suggests: xz | |
266 | Suggests: zip | |
267 | %endif | |
3eebe7b8 JB |
268 | |
269 | %description tools | |
270 | libguestfs tools for accessing and modifying virtual machine (VM) disk | |
271 | images. You can use this for viewing and editing files inside guests, | |
272 | scripting changes to VMs, monitoring disk used/free statistics, P2V, | |
273 | V2V, performing partial backups, cloning VMs, and much else besides. | |
274 | ||
275 | %description tools -l pl.UTF-8 | |
276 | Zestaw narzędzi libguestfs do dostępu oraz modyfikowania obrazów | |
277 | dysków maszyn wirtualnych (VM). Można je wykorzystywać do oglądania i | |
278 | edycji plików wewnątrz gości, zmian skryptowych w VM-ach, | |
279 | monitorowania statystyk używanego/dostępnego miejsca na dyskach, P2V, | |
280 | V2V, wykonywania częściowych kopii zapasowych, klonowania VM-ów i | |
281 | wielu podobnych operacji. | |
282 | ||
eeb3750e JB |
283 | %package -n erlang-libguestfs |
284 | Summary: Erlang bindings for libguestfs | |
285 | Summary(pl.UTF-8): Wiązania Erlanga do libguestfs | |
286 | Group: Development/Languages | |
287 | Requires: %{name} = %{version}-%{release} | |
288 | ||
289 | %description -n erlang-libguestfs | |
290 | Erlang bindings for libguestfs. | |
291 | ||
292 | %description -n erlang-libguestfs -l pl.UTF-8 | |
293 | Wiązania Erlanga do libguestfs. | |
294 | ||
840f16bc JB |
295 | %package -n golang-libguestfs |
296 | Summary: Go language bindings for libguestfs | |
297 | Summary(pl.UTF-8): Wiązania języka Go do libguestfs | |
298 | Group: Development/Languages | |
299 | Requires: %{name} = %{version}-%{release} | |
300 | ||
301 | %description -n golang-libguestfs | |
302 | Go language bindings for libguestfs. | |
303 | ||
304 | %description -n golang-libguestfs -l pl.UTF-8 | |
305 | Wiązania języka Go do libguestfs. | |
306 | ||
828f7f73 AF |
307 | %package -n java-libguestfs |
308 | Summary: Java bindings for libguestfs | |
99abc14f | 309 | Summary(pl.UTF-8): Wiązania Javy do libguestfs |
828f7f73 AF |
310 | Group: Libraries/Java |
311 | Requires: %{name} = %{version}-%{release} | |
312 | ||
313 | %description -n java-libguestfs | |
314 | Java bindings for libguestfs. | |
315 | ||
99abc14f JB |
316 | %description -n java-libguestfs -l pl.UTF-8 |
317 | Wiązania Javy do libguestfs. | |
318 | ||
828f7f73 AF |
319 | %package -n java-libguestfs-javadoc |
320 | Summary: Java bindings for libguestfs - documentation | |
99abc14f | 321 | Summary(pl.UTF-8): Wiązania Javy do libguestfs - dokumentacja |
828f7f73 AF |
322 | Group: Documentation |
323 | ||
324 | %description -n java-libguestfs-javadoc | |
325 | Java bindings for libguestfs - documentation. | |
326 | ||
99abc14f JB |
327 | %description -n java-libguestfs-javadoc -l pl.UTF-8 |
328 | Wiązania Javy do libguestfs - dokumentacja. | |
329 | ||
3722f906 JB |
330 | %package -n lua-libguestfs |
331 | Summary: Lua bindings for libguestfs | |
332 | Summary(pl.UTF-8): Wiązania języka Lua do libguestfs | |
333 | Group: Development/Languages | |
334 | Requires: %{name} = %{version}-%{release} | |
335 | ||
336 | %description -n lua-libguestfs | |
337 | Lua bindings for libguestfs. | |
338 | ||
339 | %description -n lua-libguestfs -l pl.UTF-8 | |
340 | Wiązania języka Lua do libguestfs. | |
341 | ||
828f7f73 AF |
342 | %package -n ocaml-libguestfs |
343 | Summary: OCaml bindings for libguestfs | |
99abc14f | 344 | Summary(pl.UTF-8): Wiązania OCamla do libguestfs |
828f7f73 AF |
345 | Group: Libraries |
346 | Requires: %{name} = %{version}-%{release} | |
347 | ||
348 | %description -n ocaml-libguestfs | |
349 | OCaml bindings for libguestfs. | |
350 | ||
99abc14f JB |
351 | %description -n ocaml-libguestfs -l pl.UTF-8 |
352 | Wiązania OCamla do libguestfs. | |
353 | ||
828f7f73 | 354 | %package -n ocaml-libguestfs-devel |
99abc14f JB |
355 | Summary: Development files OCaml libguestfs bindings |
356 | Summary(pl.UTF-8): Pliki programistyczne wiązań OCamla do libguestfs | |
828f7f73 AF |
357 | Group: Development/Libraries |
358 | Requires: ocaml-%{name} = %{version}-%{release} | |
359 | ||
360 | %description -n ocaml-libguestfs-devel | |
99abc14f | 361 | Development files OCaml libguestfs bindings. |
828f7f73 AF |
362 | |
363 | %description -n ocaml-libguestfs-devel -l pl.UTF-8 | |
99abc14f | 364 | Pliki programistyczne wiązań OCamla do libguestfs. |
828f7f73 | 365 | |
99abc14f JB |
366 | %package -n perl-libguestfs |
367 | Summary: Perl bindings for libguestfs | |
368 | Summary(pl.UTF-8): Wiązania Perla do libguestfs | |
369 | Group: Development/Languages/Perl | |
828f7f73 | 370 | Requires: %{name} = %{version}-%{release} |
3eebe7b8 JB |
371 | Suggests: perl-Sys-Virt |
372 | Suggests: perl-XML-XPath | |
3722f906 | 373 | Suggests: perl-hivex >= 1.2.7 |
828f7f73 | 374 | |
99abc14f JB |
375 | %description -n perl-libguestfs |
376 | Perl bindings for libguestfs. | |
377 | ||
378 | %description -n perl-libguestfs -l pl.UTF-8 | |
379 | Wiązania Perla do libguestfs. | |
828f7f73 | 380 | |
312283b5 | 381 | %package -n %{php_name}-guestfs |
7eea6f71 | 382 | Summary: PHP bindings for libguestfs |
99abc14f | 383 | Summary(pl.UTF-8): Wiązania PHP do libguestfs |
7eea6f71 | 384 | Group: Development/Languages/PHP |
385 | Requires: %{name} = %{version}-%{release} | |
46d973c4 | 386 | %{?requires_php_extension} |
7eea6f71 | 387 | |
312283b5 | 388 | %description -n %{php_name}-guestfs |
7eea6f71 | 389 | PHP bindings for libguestfs. |
390 | ||
312283b5 | 391 | %description -n %{php_name}-guestfs -l pl.UTF-8 |
99abc14f JB |
392 | Wiązania PHP do libguestfs. |
393 | ||
394 | %package -n python-libguestfs | |
395 | Summary: Python bindings for libguestfs | |
396 | Summary(pl.UTF-8): Wiązania Pythona do libguestfs | |
397 | Group: Development/Languages/Python | |
398 | Requires: %{name} = %{version}-%{release} | |
399 | ||
400 | %description -n python-libguestfs | |
401 | Python bindings for libguestfs. | |
402 | ||
403 | %description -n python-libguestfs -l pl.UTF-8 | |
404 | Wiązania Pythona do libguestfs. | |
405 | ||
46d973c4 JB |
406 | %package -n ruby-libguestfs |
407 | Summary: Ruby bindings for libguestfs | |
408 | Summary(pl.UTF-8): Wiązania języka Ruby do libguestfs | |
409 | Group: Development/Languages | |
410 | Requires: %{name} = %{version}-%{release} | |
411 | %{?ruby_ver_requires_eq} | |
412 | ||
413 | %description -n ruby-libguestfs | |
414 | Ruby bindings for libguestfs. | |
415 | ||
416 | %description -n ruby-libguestfs -l pl.UTF-8 | |
417 | Wiązania języka Ruby do libguestfs. | |
418 | ||
828f7f73 AF |
419 | %package -n bash-completion-libguestfs |
420 | Summary: bash-completion for libguestfs tools | |
99abc14f | 421 | Summary(pl.UTF-8): Bashowe uzupełnianie argumentów dla narzędzi libguestfs |
828f7f73 | 422 | Group: Applications/Shells |
160dc631 | 423 | Requires: bash-completion >= 2.0 |
828f7f73 AF |
424 | |
425 | %description -n bash-completion-libguestfs | |
426 | bash-completion for guestfish tool. | |
427 | ||
99abc14f JB |
428 | %description -n bash-completion-libguestfs -l pl.UTF-8 |
429 | Bashowe uzupełnianie argumentów dla narzędzi libguestfs. | |
430 | ||
828f7f73 AF |
431 | %prep |
432 | %setup -q | |
433 | %patch0 -p1 | |
475fb908 | 434 | %patch1 -p1 |
ed1c34d6 | 435 | %patch2 -p1 |
3722f906 | 436 | %patch3 -p1 |
c5f23768 | 437 | %patch4 -p1 |
828f7f73 AF |
438 | |
439 | %build | |
91c752f6 JB |
440 | # preserve dir across libtoolize |
441 | %{__mv} build-aux/snippet{,.back} | |
475fb908 | 442 | %{__libtoolize} |
91c752f6 | 443 | %{__mv} build-aux/snippet{.back,} |
671fd6ca | 444 | %{__aclocal} -I m4 |
475fb908 JR |
445 | %{__autoconf} |
446 | %{__autoheader} | |
447 | %{__automake} | |
828f7f73 AF |
448 | %configure \ |
449 | vmchannel_test=no \ | |
91c752f6 JB |
450 | DB_DUMP=/usr/bin/db_dump \ |
451 | DB_LOAD=/usr/bin/db_load \ | |
3722f906 | 452 | %{?with_lua:LUA=/usr/bin/lua5.2} \ |
ed1c34d6 JB |
453 | PBMTEXT=/usr/bin/pbmtext \ |
454 | PNMTOPNG=/usr/bin/pnmtopng \ | |
455 | BMPTOPNM=/usr/bin/bmptopnm \ | |
456 | PAMCUT=/usr/bin/pamcut \ | |
91c752f6 | 457 | UNZIP=/usr/bin/unzip \ |
ed1c34d6 | 458 | WRESTOOL=/usr/bin/wrestool \ |
73480eb3 | 459 | QEMU=%{_bindir}/qemu \ |
91c752f6 | 460 | ZIP=/usr/bin/zip \ |
3c07e7dc | 461 | --with-completionsdir=%{_datadir}/bash-completion/completions \ |
ed1c34d6 | 462 | --with-html-dir=%{_gtkdocdir} \ |
3722f906 | 463 | --with-java=%{?with_java:%{java_home}}%{!?with_java:no} \ |
73480eb3 | 464 | --with-qemu=qemu \ |
96e43ae7 | 465 | --enable-install-daemon \ |
94dfa124 | 466 | %{!?with_appliance:--disable-appliance} \ |
46d973c4 | 467 | %{!?with_erlang:--disable-erlang} \ |
840f16bc | 468 | %{!?with_golang:--disable-golang} \ |
3eebe7b8 | 469 | %{!?with_haskell:--disable-haskell} \ |
3722f906 | 470 | %{!?with_lua:--disable-lua} \ |
3eebe7b8 JB |
471 | %{!?with_ocaml:--disable-ocaml} \ |
472 | %{!?with_perl:--disable-perl} \ | |
473 | %{!?with_php:--disable-php} \ | |
840f16bc | 474 | %{!?with_systemtap:--disable-probes} \ |
3eebe7b8 JB |
475 | %{!?with_python:--disable-python} \ |
476 | %{!?with_ruby:--disable-ruby} \ | |
477 | --disable-silent-rules \ | |
478 | %{__enable_disable static_libs static} | |
828f7f73 | 479 | |
bb0ce0dc | 480 | %{__make} -j1 \ |
828f7f73 AF |
481 | INSTALLDIRS=vendor |
482 | ||
483 | %install | |
484 | rm -rf $RPM_BUILD_ROOT | |
485 | ||
486 | %{__make} install \ | |
487 | INSTALLDIRS=vendor \ | |
7eea6f71 | 488 | DESTDIR=$RPM_BUILD_ROOT \ |
312283b5 | 489 | phpdir=%{php_sysconfdir}/conf.d |
828f7f73 | 490 | |
3722f906 JB |
491 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
492 | %if %{with lua} | |
493 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lua/*/*.la | |
494 | %endif | |
495 | %if %{with python} | |
496 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.la | |
497 | %endif | |
893a36ad JB |
498 | # doc cleanup |
499 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/libguestfs/{example-*,virt-inspector.rng} | |
828f7f73 | 500 | |
3eebe7b8 JB |
501 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} |
502 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
503 | %py_postclean | |
504 | ||
91c752f6 JB |
505 | %if %{without appliance} |
506 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/{ja,uk}/man1/libguestfs-make-fixed-appliance.1 | |
507 | %endif | |
508 | %if %{without ocaml} | |
509 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/{ja,uk}/man1/virt-{builder,index-validate,resize,sparsify,sysprep}.1 \ | |
510 | $RPM_BUILD_ROOT%{_mandir}/{ja,uk}/man3/guestfs-ocaml.3 | |
511 | %endif | |
512 | %if %{without ruby} | |
513 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/{ja,uk}/man3/guestfs-ruby.3 | |
514 | %endif | |
515 | ||
828f7f73 AF |
516 | %find_lang %{name} |
517 | ||
518 | %clean | |
519 | rm -rf $RPM_BUILD_ROOT | |
520 | ||
521 | %post -p /sbin/ldconfig | |
522 | %postun -p /sbin/ldconfig | |
523 | ||
ed1c34d6 JB |
524 | %post gobject -p /sbin/ldconfig |
525 | %postun gobject -p /sbin/ldconfig | |
526 | ||
527 | %post -n java-libguestfs -p /sbin/ldconfig | |
528 | %postun -n java-libguestfs -p /sbin/ldconfig | |
529 | ||
828f7f73 AF |
530 | %files -f %{name}.lang |
531 | %defattr(644,root,root,755) | |
893a36ad | 532 | %doc AUTHORS BUGS ChangeLog README TODO |
3eebe7b8 JB |
533 | %attr(755,root,root) %{_libdir}/libguestfs.so.*.*.* |
534 | %attr(755,root,root) %ghost %{_libdir}/libguestfs.so.0 | |
3722f906 JB |
535 | %{_mandir}/man1/guestfs-release-notes.1* |
536 | %lang(ja) %{_mandir}/ja/man1/guestfs-release-notes.1* | |
537 | %lang(uk) %{_mandir}/uk/man1/guestfs-release-notes.1* | |
3eebe7b8 JB |
538 | |
539 | %files devel | |
540 | %defattr(644,root,root,755) | |
541 | %attr(755,root,root) %{_libdir}/libguestfs.so | |
542 | %{_includedir}/guestfs.h | |
543 | %{_pkgconfigdir}/libguestfs.pc | |
3eebe7b8 | 544 | %{_mandir}/man3/guestfs.3* |
ed1c34d6 | 545 | %{_mandir}/man3/guestfs-examples.3* |
3eebe7b8 | 546 | %{_mandir}/man3/libguestfs.3* |
ed1c34d6 JB |
547 | %lang(ja) %{_mandir}/ja/man3/guestfs.3* |
548 | %lang(ja) %{_mandir}/ja/man3/guestfs-examples.3* | |
549 | %lang(uk) %{_mandir}/uk/man3/guestfs.3* | |
550 | %lang(uk) %{_mandir}/uk/man3/guestfs-examples.3* | |
3eebe7b8 JB |
551 | |
552 | %if %{with static_libs} | |
553 | %files static | |
554 | %defattr(644,root,root,755) | |
555 | %{_libdir}/libguestfs.a | |
556 | %endif | |
557 | ||
ed1c34d6 JB |
558 | %files apidocs |
559 | %defattr(644,root,root,755) | |
560 | %{_gtkdocdir}/guestfs | |
561 | ||
562 | %files gobject | |
563 | %defattr(644,root,root,755) | |
564 | %attr(755,root,root) %{_libdir}/libguestfs-gobject-1.0.so.*.*.* | |
565 | %attr(755,root,root) %ghost %{_libdir}/libguestfs-gobject-1.0.so.0 | |
566 | %{_libdir}/girepository-1.0/Guestfs-1.0.typelib | |
567 | ||
568 | %files gobject-devel | |
569 | %defattr(644,root,root,755) | |
570 | %attr(755,root,root) %{_libdir}/libguestfs-gobject-1.0.so | |
571 | %{_includedir}/guestfs-gobject.h | |
572 | %{_includedir}/guestfs-gobject | |
573 | %{_datadir}/gir-1.0/Guestfs-1.0.gir | |
476156c6 | 574 | %{_pkgconfigdir}/libguestfs-gobject-1.0.pc |
ed1c34d6 JB |
575 | |
576 | %if %{with static_libs} | |
577 | %files gobject-static | |
578 | %defattr(644,root,root,755) | |
579 | %{_libdir}/libguestfs-gobject-1.0.a | |
580 | %endif | |
581 | ||
3eebe7b8 JB |
582 | %files tools |
583 | %defattr(644,root,root,755) | |
828f7f73 AF |
584 | %attr(755,root,root) %{_bindir}/guestfish |
585 | %attr(755,root,root) %{_bindir}/guestmount | |
160dc631 | 586 | %attr(755,root,root) %{_bindir}/guestunmount |
828f7f73 | 587 | %attr(755,root,root) %{_bindir}/libguestfs-test-tool |
ed1c34d6 | 588 | %attr(755,root,root) %{_bindir}/virt-alignment-scan |
828f7f73 AF |
589 | %attr(755,root,root) %{_bindir}/virt-cat |
590 | %attr(755,root,root) %{_bindir}/virt-copy-in | |
591 | %attr(755,root,root) %{_bindir}/virt-copy-out | |
592 | %attr(755,root,root) %{_bindir}/virt-df | |
893a36ad | 593 | %attr(755,root,root) %{_bindir}/virt-diff |
828f7f73 AF |
594 | %attr(755,root,root) %{_bindir}/virt-edit |
595 | %attr(755,root,root) %{_bindir}/virt-filesystems | |
ed1c34d6 | 596 | %attr(755,root,root) %{_bindir}/virt-format |
828f7f73 | 597 | %attr(755,root,root) %{_bindir}/virt-inspector |
91c752f6 | 598 | %attr(755,root,root) %{_bindir}/virt-log |
828f7f73 | 599 | %attr(755,root,root) %{_bindir}/virt-ls |
828f7f73 | 600 | %attr(755,root,root) %{_bindir}/virt-rescue |
828f7f73 AF |
601 | %attr(755,root,root) %{_bindir}/virt-tar-in |
602 | %attr(755,root,root) %{_bindir}/virt-tar-out | |
3eebe7b8 JB |
603 | %attr(755,root,root) %{_sbindir}/guestfsd |
604 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libguestfs-tools.conf | |
828f7f73 | 605 | %{_mandir}/man1/guestfish.1* |
ed1c34d6 JB |
606 | %{_mandir}/man1/guestfs-faq.1* |
607 | %{_mandir}/man1/guestfs-performance.1* | |
828f7f73 | 608 | %{_mandir}/man1/guestfs-recipes.1* |
ed1c34d6 | 609 | %{_mandir}/man1/guestfs-testing.1* |
828f7f73 | 610 | %{_mandir}/man1/guestmount.1* |
160dc631 | 611 | %{_mandir}/man1/guestunmount.1* |
828f7f73 | 612 | %{_mandir}/man1/libguestfs-test-tool.1* |
ed1c34d6 | 613 | %{_mandir}/man1/virt-alignment-scan.1* |
828f7f73 AF |
614 | %{_mandir}/man1/virt-cat.1* |
615 | %{_mandir}/man1/virt-copy-in.1* | |
616 | %{_mandir}/man1/virt-copy-out.1* | |
617 | %{_mandir}/man1/virt-df.1* | |
893a36ad | 618 | %{_mandir}/man1/virt-diff.1* |
828f7f73 AF |
619 | %{_mandir}/man1/virt-edit.1* |
620 | %{_mandir}/man1/virt-filesystems.1* | |
ed1c34d6 | 621 | %{_mandir}/man1/virt-format.1* |
828f7f73 | 622 | %{_mandir}/man1/virt-inspector.1* |
91c752f6 | 623 | %{_mandir}/man1/virt-log.1* |
828f7f73 | 624 | %{_mandir}/man1/virt-ls.1* |
828f7f73 | 625 | %{_mandir}/man1/virt-rescue.1* |
828f7f73 AF |
626 | %{_mandir}/man1/virt-tar-in.1* |
627 | %{_mandir}/man1/virt-tar-out.1* | |
840f16bc | 628 | %{_mandir}/man5/libguestfs-tools.conf.5* |
3722f906 | 629 | %{_mandir}/man8/guestfsd.8* |
828f7f73 | 630 | %lang(ja) %{_mandir}/ja/man1/guestfish.1* |
ed1c34d6 JB |
631 | %lang(ja) %{_mandir}/ja/man1/guestfs-faq.1* |
632 | %lang(ja) %{_mandir}/ja/man1/guestfs-performance.1* | |
633 | %lang(ja) %{_mandir}/ja/man1/guestfs-recipes.1* | |
634 | %lang(ja) %{_mandir}/ja/man1/guestfs-testing.1* | |
828f7f73 | 635 | %lang(ja) %{_mandir}/ja/man1/guestmount.1* |
160dc631 | 636 | %lang(ja) %{_mandir}/ja/man1/guestunmount.1* |
ed1c34d6 JB |
637 | %lang(ja) %{_mandir}/ja/man1/libguestfs-test-tool.1* |
638 | %lang(ja) %{_mandir}/ja/man1/virt-alignment-scan.1* | |
273c234c | 639 | %lang(ja) %{_mandir}/ja/man1/virt-diff.1* |
828f7f73 AF |
640 | %lang(ja) %{_mandir}/ja/man1/virt-cat.1* |
641 | %lang(ja) %{_mandir}/ja/man1/virt-copy-in.1* | |
642 | %lang(ja) %{_mandir}/ja/man1/virt-copy-out.1* | |
643 | %lang(ja) %{_mandir}/ja/man1/virt-df.1* | |
644 | %lang(ja) %{_mandir}/ja/man1/virt-edit.1* | |
645 | %lang(ja) %{_mandir}/ja/man1/virt-filesystems.1* | |
ed1c34d6 | 646 | %lang(ja) %{_mandir}/ja/man1/virt-format.1* |
828f7f73 | 647 | %lang(ja) %{_mandir}/ja/man1/virt-inspector.1* |
91c752f6 | 648 | %lang(ja) %{_mandir}/ja/man1/virt-log.1* |
828f7f73 | 649 | %lang(ja) %{_mandir}/ja/man1/virt-ls.1* |
828f7f73 | 650 | %lang(ja) %{_mandir}/ja/man1/virt-rescue.1* |
828f7f73 AF |
651 | %lang(ja) %{_mandir}/ja/man1/virt-tar-in.1* |
652 | %lang(ja) %{_mandir}/ja/man1/virt-tar-out.1* | |
840f16bc | 653 | %lang(ja) %{_mandir}/ja/man5/libguestfs-tools.conf.5* |
828f7f73 | 654 | %lang(uk) %{_mandir}/uk/man1/guestfish.1* |
ed1c34d6 JB |
655 | %lang(uk) %{_mandir}/uk/man1/guestfs-faq.1* |
656 | %lang(uk) %{_mandir}/uk/man1/guestfs-performance.1* | |
657 | %lang(uk) %{_mandir}/uk/man1/guestfs-recipes.1* | |
658 | %lang(uk) %{_mandir}/uk/man1/guestfs-testing.1* | |
828f7f73 | 659 | %lang(uk) %{_mandir}/uk/man1/guestmount.1* |
160dc631 | 660 | %lang(uk) %{_mandir}/uk/man1/guestunmount.1* |
ed1c34d6 JB |
661 | %lang(uk) %{_mandir}/uk/man1/libguestfs-test-tool.1* |
662 | %lang(uk) %{_mandir}/uk/man1/virt-alignment-scan.1* | |
828f7f73 AF |
663 | %lang(uk) %{_mandir}/uk/man1/virt-cat.1* |
664 | %lang(uk) %{_mandir}/uk/man1/virt-copy-in.1* | |
665 | %lang(uk) %{_mandir}/uk/man1/virt-copy-out.1* | |
666 | %lang(uk) %{_mandir}/uk/man1/virt-df.1* | |
273c234c | 667 | %lang(uk) %{_mandir}/uk/man1/virt-diff.1* |
828f7f73 AF |
668 | %lang(uk) %{_mandir}/uk/man1/virt-edit.1* |
669 | %lang(uk) %{_mandir}/uk/man1/virt-filesystems.1* | |
ed1c34d6 | 670 | %lang(uk) %{_mandir}/uk/man1/virt-format.1* |
828f7f73 | 671 | %lang(uk) %{_mandir}/uk/man1/virt-inspector.1* |
91c752f6 | 672 | %lang(uk) %{_mandir}/uk/man1/virt-log.1* |
828f7f73 | 673 | %lang(uk) %{_mandir}/uk/man1/virt-ls.1* |
828f7f73 | 674 | %lang(uk) %{_mandir}/uk/man1/virt-rescue.1* |
828f7f73 AF |
675 | %lang(uk) %{_mandir}/uk/man1/virt-tar-in.1* |
676 | %lang(uk) %{_mandir}/uk/man1/virt-tar-out.1* | |
840f16bc | 677 | %lang(uk) %{_mandir}/uk/man5/libguestfs-tools.conf.5* |
3eebe7b8 | 678 | %if %{with ocaml} |
91c752f6 JB |
679 | %attr(755,root,root) %{_bindir}/virt-builder |
680 | %attr(755,root,root) %{_bindir}/virt-customize | |
681 | %attr(755,root,root) %{_bindir}/virt-index-validate | |
3eebe7b8 | 682 | %attr(755,root,root) %{_bindir}/virt-resize |
ed1c34d6 JB |
683 | %attr(755,root,root) %{_bindir}/virt-sparsify |
684 | %attr(755,root,root) %{_bindir}/virt-sysprep | |
3a96c817 | 685 | %attr(755,root,root) %{_bindir}/virt-v2v |
91c752f6 JB |
686 | # compat dir symlink |
687 | %{_sysconfdir}/virt-builder | |
688 | %dir /etc/xdg/virt-builder | |
689 | %dir /etc/xdg/virt-builder/repos.d | |
690 | %config(noreplace) %verify(not md5 mtime size) /etc/xdg/virt-builder/repos.d/libguestfs.conf | |
691 | %config(noreplace) %verify(not md5 mtime size) /etc/xdg/virt-builder/repos.d/libguestfs.gpg | |
692 | %{_mandir}/man1/virt-builder.1* | |
693 | %{_mandir}/man1/virt-customize.1* | |
694 | %{_mandir}/man1/virt-index-validate.1* | |
3eebe7b8 | 695 | %{_mandir}/man1/virt-resize.1* |
ed1c34d6 JB |
696 | %{_mandir}/man1/virt-sparsify.1* |
697 | %{_mandir}/man1/virt-sysprep.1* | |
3a96c817 | 698 | %{_mandir}/man1/virt-v2v.1* |
91c752f6 | 699 | %lang(ja) %{_mandir}/ja/man1/virt-builder.1* |
273c234c | 700 | %lang(ja) %{_mandir}/ja/man1/virt-customize.1* |
91c752f6 | 701 | %lang(ja) %{_mandir}/ja/man1/virt-index-validate.1* |
3eebe7b8 | 702 | %lang(ja) %{_mandir}/ja/man1/virt-resize.1* |
ed1c34d6 JB |
703 | %lang(ja) %{_mandir}/ja/man1/virt-sparsify.1* |
704 | %lang(ja) %{_mandir}/ja/man1/virt-sysprep.1* | |
273c234c | 705 | %lang(ja) %{_mandir}/ja/man1/virt-v2v.1* |
91c752f6 | 706 | %lang(uk) %{_mandir}/uk/man1/virt-builder.1* |
273c234c | 707 | %lang(uk) %{_mandir}/uk/man1/virt-customize.1* |
91c752f6 | 708 | %lang(uk) %{_mandir}/uk/man1/virt-index-validate.1* |
3eebe7b8 | 709 | %lang(uk) %{_mandir}/uk/man1/virt-resize.1* |
ed1c34d6 JB |
710 | %lang(uk) %{_mandir}/uk/man1/virt-sparsify.1* |
711 | %lang(uk) %{_mandir}/uk/man1/virt-sysprep.1* | |
273c234c | 712 | %lang(uk) %{_mandir}/uk/man1/virt-v2v.1* |
3eebe7b8 | 713 | %endif |
d62997be JB |
714 | %if %{with perltools} |
715 | %attr(755,root,root) %{_bindir}/virt-list-filesystems | |
716 | %attr(755,root,root) %{_bindir}/virt-list-partitions | |
717 | %attr(755,root,root) %{_bindir}/virt-make-fs | |
718 | %attr(755,root,root) %{_bindir}/virt-tar | |
719 | %attr(755,root,root) %{_bindir}/virt-win-reg | |
720 | %{_mandir}/man1/virt-list-filesystems.1* | |
721 | %{_mandir}/man1/virt-list-partitions.1* | |
722 | %{_mandir}/man1/virt-make-fs.1* | |
723 | %{_mandir}/man1/virt-tar.1* | |
724 | %{_mandir}/man1/virt-win-reg.1* | |
725 | %lang(ja) %{_mandir}/ja/man1/virt-list-filesystems.1* | |
726 | %lang(ja) %{_mandir}/ja/man1/virt-list-partitions.1* | |
727 | %lang(ja) %{_mandir}/ja/man1/virt-make-fs.1* | |
728 | %lang(ja) %{_mandir}/ja/man1/virt-tar.1* | |
729 | %lang(ja) %{_mandir}/ja/man1/virt-win-reg.1* | |
730 | %lang(uk) %{_mandir}/uk/man1/virt-list-filesystems.1* | |
731 | %lang(uk) %{_mandir}/uk/man1/virt-list-partitions.1* | |
732 | %lang(uk) %{_mandir}/uk/man1/virt-make-fs.1* | |
733 | %lang(uk) %{_mandir}/uk/man1/virt-tar.1* | |
734 | %lang(uk) %{_mandir}/uk/man1/virt-win-reg.1* | |
735 | %endif | |
736 | ||
91c752f6 JB |
737 | %if %{with gtk} |
738 | %attr(755,root,root) %{_bindir}/virt-p2v-make-disk | |
739 | %attr(755,root,root) %{_bindir}/virt-p2v-make-kickstart | |
740 | %attr(755,root,root) %{_libexecdir}/virt-p2v | |
741 | %{_datadir}/virt-p2v | |
742 | %{_mandir}/man1/virt-p2v.1* | |
743 | %{_mandir}/man1/virt-p2v-make-disk.1* | |
744 | %{_mandir}/man1/virt-p2v-make-kickstart.1* | |
273c234c JB |
745 | %lang(ja) %{_mandir}/ja/man1/virt-p2v.1* |
746 | %lang(ja) %{_mandir}/ja/man1/virt-p2v-make-disk.1* | |
747 | %lang(ja) %{_mandir}/ja/man1/virt-p2v-make-kickstart.1* | |
748 | %lang(uk) %{_mandir}/uk/man1/virt-p2v.1* | |
749 | %lang(uk) %{_mandir}/uk/man1/virt-p2v-make-disk.1* | |
750 | %lang(uk) %{_mandir}/uk/man1/virt-p2v-make-kickstart.1* | |
91c752f6 JB |
751 | %endif |
752 | ||
8c5754c4 JB |
753 | %if %{with appliance} |
754 | %attr(755,root,root) %{_sbindir}/libguestfs-make-fixed-appliance | |
755 | %{_mandir}/man1/libguestfs-make-fixed-appliance.1* | |
756 | %lang(ja) %{_mandir}/ja/man1/libguestfs-make-fixed-appliance.1* | |
757 | %lang(uk) %{_mandir}/uk/man1/libguestfs-make-fixed-appliance.1* | |
758 | /lib/udev/rules.d/99-guestfs-serial.rules | |
759 | %dir %{_libdir}/guestfs | |
760 | %dir %{_libdir}/guestfs/supermin.d | |
761 | %{_libdir}/guestfs/supermin.d/daemon.img | |
762 | %{_libdir}/guestfs/supermin.d/init.img | |
763 | %{_libdir}/guestfs/supermin.d/udev-rules.img | |
764 | %{_libdir}/guestfs/supermin.d/base.img | |
765 | %{_libdir}/guestfs/supermin.d/hostfiles | |
766 | %endif | |
828f7f73 | 767 | |
eeb3750e JB |
768 | %if %{with erlang} |
769 | %files -n erlang-libguestfs | |
770 | %defattr(644,root,root,755) | |
771 | %attr(755,root,root) %{_bindir}/erl-guestfs | |
772 | %{_libdir}/erlang/lib/libguestfs-%{version} | |
773 | %{_mandir}/man3/guestfs-erlang.3* | |
774 | %lang(ja) %{_mandir}/ja/man3/guestfs-erlang.3* | |
775 | %lang(uk) %{_mandir}/uk/man3/guestfs-erlang.3* | |
776 | %endif | |
777 | ||
840f16bc JB |
778 | %if %{with golang} |
779 | %files -n golang-libguestfs | |
780 | %defattr(644,root,root,755) | |
781 | %dir %{_libdir}/golang/pkg/linux_*/libguestfs.org | |
782 | %dir %{_libdir}/golang/pkg/linux_*/libguestfs.org/guestfs | |
783 | %{_libdir}/golang/pkg/linux_*/libguestfs.org/guestfs/guestfs.a | |
c5f23768 | 784 | %{_libdir}/golang/src/libguestfs.org |
840f16bc JB |
785 | %{_mandir}/man3/guestfs-golang.3* |
786 | %lang(ja) %{_mandir}/ja/man3/guestfs-golang.3* | |
787 | %lang(uk) %{_mandir}/uk/man3/guestfs-golang.3* | |
788 | %endif | |
789 | ||
3eebe7b8 | 790 | %if %{with java} |
828f7f73 AF |
791 | %files -n java-libguestfs |
792 | %defattr(644,root,root,755) | |
ed1c34d6 JB |
793 | %attr(755,root,root) %{_libdir}/libguestfs_jni.so.*.*.* |
794 | %attr(755,root,root) %ghost %{_libdir}/libguestfs_jni.so.1 | |
3eebe7b8 | 795 | %attr(755,root,root) %{_libdir}/libguestfs_jni.so |
ed1c34d6 | 796 | %{_javadir}/libguestfs-%{version}.jar |
828f7f73 | 797 | %{_mandir}/man3/guestfs-java.3* |
ed1c34d6 JB |
798 | %lang(ja) %{_mandir}/ja/man3/guestfs-java.3* |
799 | %lang(uk) %{_mandir}/uk/man3/guestfs-java.3* | |
828f7f73 AF |
800 | |
801 | %files -n java-libguestfs-javadoc | |
802 | %defattr(644,root,root,755) | |
840f16bc | 803 | %{_javadocdir}/libguestfs |
3eebe7b8 | 804 | %endif |
828f7f73 | 805 | |
3722f906 JB |
806 | %if %{with lua} |
807 | %files -n lua-libguestfs | |
808 | %defattr(644,root,root,755) | |
809 | %attr(755,root,root) %{_libdir}/lua/*/guestfs.so | |
810 | %{_mandir}/man3/guestfs-lua.3* | |
811 | %lang(ja) %{_mandir}/ja/man3/guestfs-lua.3* | |
812 | %lang(uk) %{_mandir}/uk/man3/guestfs-lua.3* | |
813 | %endif | |
814 | ||
3eebe7b8 | 815 | %if %{with ocaml} |
828f7f73 AF |
816 | %files -n ocaml-libguestfs |
817 | %defattr(644,root,root,755) | |
084d2444 | 818 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllmlguestfs.so |
828f7f73 | 819 | %{_libdir}/ocaml/stublibs/dllmlguestfs.so.owner |
828f7f73 AF |
820 | |
821 | %files -n ocaml-libguestfs-devel | |
822 | %defattr(644,root,root,755) | |
084d2444 | 823 | %dir %{_libdir}/ocaml/guestfs |
828f7f73 | 824 | %{_libdir}/ocaml/guestfs/META |
828f7f73 | 825 | %{_libdir}/ocaml/guestfs/guestfs.cmi |
828f7f73 AF |
826 | %{_libdir}/ocaml/guestfs/guestfs.mli |
827 | %{_libdir}/ocaml/guestfs/libmlguestfs.a | |
828f7f73 | 828 | %{_libdir}/ocaml/guestfs/mlguestfs.cma |
0d2eca2c JR |
829 | %if %{with ocaml_opt} |
830 | %{_libdir}/ocaml/guestfs/guestfs.cmx | |
831 | %{_libdir}/ocaml/guestfs/mlguestfs.a | |
828f7f73 | 832 | %{_libdir}/ocaml/guestfs/mlguestfs.cmxa |
0d2eca2c | 833 | %endif |
3eebe7b8 | 834 | %{_mandir}/man3/guestfs-ocaml.3* |
ed1c34d6 JB |
835 | %lang(ja) %{_mandir}/ja/man3/guestfs-ocaml.3* |
836 | %lang(uk) %{_mandir}/uk/man3/guestfs-ocaml.3* | |
3eebe7b8 | 837 | %endif |
828f7f73 | 838 | |
3eebe7b8 JB |
839 | %if %{with perl} |
840 | %files -n perl-libguestfs | |
828f7f73 | 841 | %defattr(644,root,root,755) |
3eebe7b8 | 842 | %{perl_vendorarch}/Sys/Guestfs.pm |
3eebe7b8 JB |
843 | %{perl_vendorarch}/Sys/bindtests.pl |
844 | %dir %{perl_vendorarch}/auto/Sys/Guestfs | |
3eebe7b8 JB |
845 | %attr(755,root,root) %{perl_vendorarch}/auto/Sys/Guestfs/Guestfs.so |
846 | %{_mandir}/man3/guestfs-perl.3* | |
847 | %{_mandir}/man3/Sys::Guestfs.3pm* | |
ed1c34d6 JB |
848 | %lang(ja) %{_mandir}/ja/man3/guestfs-perl.3* |
849 | %lang(uk) %{_mandir}/uk/man3/guestfs-perl.3* | |
3eebe7b8 | 850 | %endif |
828f7f73 | 851 | |
46d973c4 | 852 | %if %{with php} |
312283b5 | 853 | %files -n %{php_name}-guestfs |
7eea6f71 | 854 | %defattr(644,root,root,755) |
312283b5 ER |
855 | %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/guestfs_php.ini |
856 | %attr(755,root,root) %{php_extensiondir}/guestfs_php.so | |
46d973c4 | 857 | %endif |
7eea6f71 | 858 | |
3eebe7b8 JB |
859 | %if %{with python} |
860 | %files -n python-libguestfs | |
861 | %defattr(644,root,root,755) | |
862 | %attr(755,root,root) %{py_sitedir}/libguestfsmod.so | |
863 | %{py_sitedir}/guestfs.py[co] | |
864 | %{_mandir}/man3/guestfs-python.3* | |
ed1c34d6 JB |
865 | %lang(ja) %{_mandir}/ja/man3/guestfs-python.3* |
866 | %lang(uk) %{_mandir}/uk/man3/guestfs-python.3* | |
3eebe7b8 JB |
867 | %endif |
868 | ||
46d973c4 JB |
869 | %if %{with ruby} |
870 | %files -n ruby-libguestfs | |
871 | %defattr(644,root,root,755) | |
333efa05 JB |
872 | %attr(755,root,root) %{ruby_vendorarchdir}/_guestfs.so |
873 | %{ruby_vendorlibdir}/guestfs.rb | |
46d973c4 JB |
874 | %{_mandir}/man3/guestfs-ruby.3* |
875 | %lang(ja) %{_mandir}/ja/man3/guestfs-ruby.3* | |
876 | %lang(uk) %{_mandir}/uk/man3/guestfs-ruby.3* | |
877 | %endif | |
878 | ||
828f7f73 AF |
879 | %files -n bash-completion-libguestfs |
880 | %defattr(644,root,root,755) | |
3c07e7dc JB |
881 | %{_datadir}/bash-completion/completions/guestfish |
882 | %{_datadir}/bash-completion/completions/guestmount | |
883 | %{_datadir}/bash-completion/completions/virt-* |