]>
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 |
5b8818fa | 38 | Version: 1.36.5 |
0813f62f | 39 | Release: 1 |
828f7f73 AF |
40 | License: LGPL v2+ |
41 | Group: Libraries | |
345a8818 | 42 | Source0: http://libguestfs.org/download/1.36-stable/%{name}-%{version}.tar.gz |
5b8818fa | 43 | # Source0-md5: 9f989443e7cbdbe23498f578ed4a8b06 |
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 | |
ce74d8eb | 122 | BuildRequires: perl-Module-Build |
3eebe7b8 | 123 | BuildRequires: perl-Test-Simple |
dee6324e | 124 | BuildRequires: rpm-perlprov |
3eebe7b8 JB |
125 | %endif |
126 | %if %{with perltools} | |
828f7f73 | 127 | BuildRequires: perl(Data::Dumper) |
828f7f73 AF |
128 | BuildRequires: perl(Getopt::Long) |
129 | BuildRequires: perl(Locale::TextDomain) | |
ed1c34d6 JB |
130 | BuildRequires: perl(Pod::Man) |
131 | BuildRequires: perl(Pod::Simple) | |
828f7f73 | 132 | BuildRequires: perl(Pod::Usage) |
416d999f ER |
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 | |
3eebe7b8 | 138 | %endif |
312283b5 ER |
139 | %if %{with php} |
140 | BuildRequires: %{php_name}-devel | |
141 | BuildRequires: %{php_name}-program | |
142 | %endif | |
3eebe7b8 | 143 | %if %{with python} |
273c234c JB |
144 | BuildRequires: python >= 1:2.7 |
145 | BuildRequires: python-devel >= 1:2.7 | |
4fd3b612 | 146 | BuildRequires: rpm-pythonprov |
3eebe7b8 | 147 | %endif |
3eebe7b8 | 148 | %if %{with ruby} |
416d999f | 149 | BuildRequires: rpm-rubyprov |
3eebe7b8 JB |
150 | BuildRequires: ruby |
151 | BuildRequires: ruby-devel | |
731de1b8 | 152 | BuildRequires: ruby-irb |
3eebe7b8 | 153 | BuildRequires: ruby-rake |
333efa05 JB |
154 | BuildRequires: ruby-rdoc |
155 | BuildRequires: ruby-rubygems | |
3eebe7b8 | 156 | %endif |
312283b5 ER |
157 | %if %{with systemtap} |
158 | BuildRequires: systemtap-sdt-devel | |
893a36ad | 159 | %endif |
3722f906 | 160 | Requires: qemu-common >= 1.1.0 |
ef731dae | 161 | Requires: yajl >= 2.0.4 |
ed1c34d6 JB |
162 | Suggests: db-utils |
163 | Suggests: icoutils | |
164 | Suggests: netpbm-progs | |
828f7f73 AF |
165 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
166 | ||
b2308e25 JP |
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 | ||
828f7f73 | 174 | %description |
3eebe7b8 JB |
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 | |
828f7f73 AF |
178 | used/free statistics, P2V, V2V, performing partial backups, cloning |
179 | VMs, and much else besides. | |
180 | ||
99abc14f | 181 | %description -l pl.UTF-8 |
3eebe7b8 JB |
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. | |
99abc14f | 188 | |
828f7f73 AF |
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 | ||
ed1c34d6 JB |
213 | %package apidocs |
214 | Summary: libguestfs API documentation | |
215 | Summary(pl.UTF-8): Dokumentacja API libguestfs | |
216 | Group: Documentation | |
d297ffb2 ER |
217 | %if "%{_rpmversion}" >= "5" |
218 | BuildArch: noarch | |
219 | %endif | |
ed1c34d6 JB |
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 | ||
3eebe7b8 JB |
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} | |
d297ffb2 | 271 | Requires: augeas-libs >= 1.0.0 |
3eebe7b8 JB |
272 | %{?with_ocaml:Requires: ocaml-libguestfs = %{version}-%{release}} |
273 | %{?with_perltools:Requires: perl-libguestfs = %{version}-%{release}} | |
91c752f6 | 274 | %if %{with ocaml} |
0c35b451 | 275 | Requires: ocaml-libvirt >= 0.6.1.4-4 |
91c752f6 JB |
276 | Suggests: unzip |
277 | Suggests: xz | |
278 | Suggests: zip | |
279 | %endif | |
3eebe7b8 JB |
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 | ||
eeb3750e JB |
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 | ||
840f16bc JB |
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 | ||
828f7f73 AF |
319 | %package -n java-libguestfs |
320 | Summary: Java bindings for libguestfs | |
99abc14f | 321 | Summary(pl.UTF-8): Wiązania Javy do libguestfs |
828f7f73 AF |
322 | Group: Libraries/Java |
323 | Requires: %{name} = %{version}-%{release} | |
324 | ||
325 | %description -n java-libguestfs | |
326 | Java bindings for libguestfs. | |
327 | ||
99abc14f JB |
328 | %description -n java-libguestfs -l pl.UTF-8 |
329 | Wiązania Javy do libguestfs. | |
330 | ||
828f7f73 AF |
331 | %package -n java-libguestfs-javadoc |
332 | Summary: Java bindings for libguestfs - documentation | |
99abc14f | 333 | Summary(pl.UTF-8): Wiązania Javy do libguestfs - dokumentacja |
828f7f73 AF |
334 | Group: Documentation |
335 | ||
336 | %description -n java-libguestfs-javadoc | |
337 | Java bindings for libguestfs - documentation. | |
338 | ||
99abc14f JB |
339 | %description -n java-libguestfs-javadoc -l pl.UTF-8 |
340 | Wiązania Javy do libguestfs - dokumentacja. | |
341 | ||
3722f906 JB |
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 | ||
828f7f73 AF |
354 | %package -n ocaml-libguestfs |
355 | Summary: OCaml bindings for libguestfs | |
99abc14f | 356 | Summary(pl.UTF-8): Wiązania OCamla do libguestfs |
828f7f73 AF |
357 | Group: Libraries |
358 | Requires: %{name} = %{version}-%{release} | |
359 | ||
360 | %description -n ocaml-libguestfs | |
361 | OCaml bindings for libguestfs. | |
362 | ||
99abc14f JB |
363 | %description -n ocaml-libguestfs -l pl.UTF-8 |
364 | Wiązania OCamla do libguestfs. | |
365 | ||
828f7f73 | 366 | %package -n ocaml-libguestfs-devel |
99abc14f JB |
367 | Summary: Development files OCaml libguestfs bindings |
368 | Summary(pl.UTF-8): Pliki programistyczne wiązań OCamla do libguestfs | |
828f7f73 AF |
369 | Group: Development/Libraries |
370 | Requires: ocaml-%{name} = %{version}-%{release} | |
371 | ||
372 | %description -n ocaml-libguestfs-devel | |
99abc14f | 373 | Development files OCaml libguestfs bindings. |
828f7f73 AF |
374 | |
375 | %description -n ocaml-libguestfs-devel -l pl.UTF-8 | |
99abc14f | 376 | Pliki programistyczne wiązań OCamla do libguestfs. |
828f7f73 | 377 | |
99abc14f JB |
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 | |
828f7f73 | 382 | Requires: %{name} = %{version}-%{release} |
3eebe7b8 JB |
383 | Suggests: perl-Sys-Virt |
384 | Suggests: perl-XML-XPath | |
3722f906 | 385 | Suggests: perl-hivex >= 1.2.7 |
828f7f73 | 386 | |
99abc14f JB |
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. | |
828f7f73 | 392 | |
312283b5 | 393 | %package -n %{php_name}-guestfs |
7eea6f71 | 394 | Summary: PHP bindings for libguestfs |
99abc14f | 395 | Summary(pl.UTF-8): Wiązania PHP do libguestfs |
7eea6f71 | 396 | Group: Development/Languages/PHP |
397 | Requires: %{name} = %{version}-%{release} | |
46d973c4 | 398 | %{?requires_php_extension} |
7eea6f71 | 399 | |
312283b5 | 400 | %description -n %{php_name}-guestfs |
7eea6f71 | 401 | PHP bindings for libguestfs. |
402 | ||
312283b5 | 403 | %description -n %{php_name}-guestfs -l pl.UTF-8 |
99abc14f JB |
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 | ||
46d973c4 JB |
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 | ||
828f7f73 AF |
431 | %package -n bash-completion-libguestfs |
432 | Summary: bash-completion for libguestfs tools | |
99abc14f | 433 | Summary(pl.UTF-8): Bashowe uzupełnianie argumentów dla narzędzi libguestfs |
828f7f73 | 434 | Group: Applications/Shells |
160dc631 | 435 | Requires: bash-completion >= 2.0 |
828f7f73 AF |
436 | |
437 | %description -n bash-completion-libguestfs | |
438 | bash-completion for guestfish tool. | |
439 | ||
99abc14f JB |
440 | %description -n bash-completion-libguestfs -l pl.UTF-8 |
441 | Bashowe uzupełnianie argumentów dla narzędzi libguestfs. | |
442 | ||
828f7f73 AF |
443 | %prep |
444 | %setup -q | |
445 | %patch0 -p1 | |
475fb908 | 446 | %patch1 -p1 |
ed1c34d6 | 447 | %patch2 -p1 |
3722f906 | 448 | %patch3 -p1 |
c5f23768 | 449 | %patch4 -p1 |
828f7f73 AF |
450 | |
451 | %build | |
91c752f6 JB |
452 | # preserve dir across libtoolize |
453 | %{__mv} build-aux/snippet{,.back} | |
475fb908 | 454 | %{__libtoolize} |
91c752f6 | 455 | %{__mv} build-aux/snippet{.back,} |
671fd6ca | 456 | %{__aclocal} -I m4 |
475fb908 JR |
457 | %{__autoconf} |
458 | %{__autoheader} | |
459 | %{__automake} | |
828f7f73 AF |
460 | %configure \ |
461 | vmchannel_test=no \ | |
91c752f6 JB |
462 | DB_DUMP=/usr/bin/db_dump \ |
463 | DB_LOAD=/usr/bin/db_load \ | |
3722f906 | 464 | %{?with_lua:LUA=/usr/bin/lua5.2} \ |
ed1c34d6 JB |
465 | PBMTEXT=/usr/bin/pbmtext \ |
466 | PNMTOPNG=/usr/bin/pnmtopng \ | |
467 | BMPTOPNM=/usr/bin/bmptopnm \ | |
468 | PAMCUT=/usr/bin/pamcut \ | |
c253e12c | 469 | SUPERMIN=/usr/bin/supermin \ |
91c752f6 | 470 | UNZIP=/usr/bin/unzip \ |
ed1c34d6 | 471 | WRESTOOL=/usr/bin/wrestool \ |
b2308e25 | 472 | QEMU=%{?qemu_bin}%{!?qemu_bin:/usr/bin/qemu} \ |
91c752f6 | 473 | ZIP=/usr/bin/zip \ |
3c07e7dc | 474 | --with-completionsdir=%{_datadir}/bash-completion/completions \ |
ed1c34d6 | 475 | --with-html-dir=%{_gtkdocdir} \ |
3722f906 | 476 | --with-java=%{?with_java:%{java_home}}%{!?with_java:no} \ |
76668171 | 477 | --with-python-installdir=%{py_sitedir} \ |
96e43ae7 | 478 | --enable-install-daemon \ |
94dfa124 | 479 | %{!?with_appliance:--disable-appliance} \ |
46d973c4 | 480 | %{!?with_erlang:--disable-erlang} \ |
840f16bc | 481 | %{!?with_golang:--disable-golang} \ |
3eebe7b8 | 482 | %{!?with_haskell:--disable-haskell} \ |
3722f906 | 483 | %{!?with_lua:--disable-lua} \ |
3eebe7b8 JB |
484 | %{!?with_ocaml:--disable-ocaml} \ |
485 | %{!?with_perl:--disable-perl} \ | |
486 | %{!?with_php:--disable-php} \ | |
840f16bc | 487 | %{!?with_systemtap:--disable-probes} \ |
3eebe7b8 JB |
488 | %{!?with_python:--disable-python} \ |
489 | %{!?with_ruby:--disable-ruby} \ | |
490 | --disable-silent-rules \ | |
491 | %{__enable_disable static_libs static} | |
828f7f73 | 492 | |
bb0ce0dc | 493 | %{__make} -j1 \ |
828f7f73 AF |
494 | INSTALLDIRS=vendor |
495 | ||
496 | %install | |
497 | rm -rf $RPM_BUILD_ROOT | |
498 | ||
499 | %{__make} install \ | |
500 | INSTALLDIRS=vendor \ | |
7eea6f71 | 501 | DESTDIR=$RPM_BUILD_ROOT \ |
312283b5 | 502 | phpdir=%{php_sysconfdir}/conf.d |
828f7f73 | 503 | |
3722f906 JB |
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 | |
893a36ad JB |
511 | # doc cleanup |
512 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/libguestfs/{example-*,virt-inspector.rng} | |
828f7f73 | 513 | |
3eebe7b8 JB |
514 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} |
515 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
516 | %py_postclean | |
517 | ||
91c752f6 JB |
518 | %if %{without appliance} |
519 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/{ja,uk}/man1/libguestfs-make-fixed-appliance.1 | |
520 | %endif | |
0c35b451 JB |
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 \ | |
91c752f6 JB |
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 | ||
7a7e981d JP |
531 | install -d $RPM_BUILD_ROOT%{_libdir}/guestfs |
532 | ||
828f7f73 AF |
533 | %find_lang %{name} |
534 | ||
535 | %clean | |
536 | rm -rf $RPM_BUILD_ROOT | |
537 | ||
538 | %post -p /sbin/ldconfig | |
539 | %postun -p /sbin/ldconfig | |
540 | ||
ed1c34d6 JB |
541 | %post gobject -p /sbin/ldconfig |
542 | %postun gobject -p /sbin/ldconfig | |
543 | ||
544 | %post -n java-libguestfs -p /sbin/ldconfig | |
545 | %postun -n java-libguestfs -p /sbin/ldconfig | |
546 | ||
828f7f73 AF |
547 | %files -f %{name}.lang |
548 | %defattr(644,root,root,755) | |
893a36ad | 549 | %doc AUTHORS BUGS ChangeLog README TODO |
3eebe7b8 JB |
550 | %attr(755,root,root) %{_libdir}/libguestfs.so.*.*.* |
551 | %attr(755,root,root) %ghost %{_libdir}/libguestfs.so.0 | |
7a7e981d | 552 | %dir %{_libdir}/guestfs |
3722f906 | 553 | %{_mandir}/man1/guestfs-release-notes.1* |
021c56b6 | 554 | %{_mandir}/man1/guestfs-security.1* |
3722f906 | 555 | %lang(ja) %{_mandir}/ja/man1/guestfs-release-notes.1* |
021c56b6 | 556 | %lang(ja) %{_mandir}/ja/man1/guestfs-security.1* |
3722f906 | 557 | %lang(uk) %{_mandir}/uk/man1/guestfs-release-notes.1* |
021c56b6 | 558 | %lang(uk) %{_mandir}/uk/man1/guestfs-security.1* |
3eebe7b8 JB |
559 | |
560 | %files devel | |
561 | %defattr(644,root,root,755) | |
562 | %attr(755,root,root) %{_libdir}/libguestfs.so | |
563 | %{_includedir}/guestfs.h | |
564 | %{_pkgconfigdir}/libguestfs.pc | |
021c56b6 JR |
565 | %{_mandir}/man1/guestfs-hacking.1* |
566 | %{_mandir}/man1/guestfs-internals.1* | |
3eebe7b8 | 567 | %{_mandir}/man3/guestfs.3* |
ed1c34d6 | 568 | %{_mandir}/man3/guestfs-examples.3* |
3eebe7b8 | 569 | %{_mandir}/man3/libguestfs.3* |
021c56b6 JR |
570 | %lang(ja) %{_mandir}/ja/man1/guestfs-hacking.1* |
571 | %lang(ja) %{_mandir}/ja/man1/guestfs-internals.1* | |
ed1c34d6 JB |
572 | %lang(ja) %{_mandir}/ja/man3/guestfs.3* |
573 | %lang(ja) %{_mandir}/ja/man3/guestfs-examples.3* | |
021c56b6 JR |
574 | %lang(uk) %{_mandir}/uk/man1/guestfs-hacking.1* |
575 | %lang(uk) %{_mandir}/uk/man1/guestfs-internals.1* | |
ed1c34d6 JB |
576 | %lang(uk) %{_mandir}/uk/man3/guestfs.3* |
577 | %lang(uk) %{_mandir}/uk/man3/guestfs-examples.3* | |
3eebe7b8 JB |
578 | |
579 | %if %{with static_libs} | |
580 | %files static | |
581 | %defattr(644,root,root,755) | |
582 | %{_libdir}/libguestfs.a | |
583 | %endif | |
584 | ||
ed1c34d6 JB |
585 | %files apidocs |
586 | %defattr(644,root,root,755) | |
587 | %{_gtkdocdir}/guestfs | |
588 | ||
589 | %files gobject | |
590 | %defattr(644,root,root,755) | |
591 | %attr(755,root,root) %{_libdir}/libguestfs-gobject-1.0.so.*.*.* | |
592 | %attr(755,root,root) %ghost %{_libdir}/libguestfs-gobject-1.0.so.0 | |
593 | %{_libdir}/girepository-1.0/Guestfs-1.0.typelib | |
594 | ||
595 | %files gobject-devel | |
596 | %defattr(644,root,root,755) | |
597 | %attr(755,root,root) %{_libdir}/libguestfs-gobject-1.0.so | |
598 | %{_includedir}/guestfs-gobject.h | |
599 | %{_includedir}/guestfs-gobject | |
600 | %{_datadir}/gir-1.0/Guestfs-1.0.gir | |
476156c6 | 601 | %{_pkgconfigdir}/libguestfs-gobject-1.0.pc |
ed1c34d6 JB |
602 | |
603 | %if %{with static_libs} | |
604 | %files gobject-static | |
605 | %defattr(644,root,root,755) | |
606 | %{_libdir}/libguestfs-gobject-1.0.a | |
607 | %endif | |
608 | ||
3eebe7b8 JB |
609 | %files tools |
610 | %defattr(644,root,root,755) | |
828f7f73 AF |
611 | %attr(755,root,root) %{_bindir}/guestfish |
612 | %attr(755,root,root) %{_bindir}/guestmount | |
160dc631 | 613 | %attr(755,root,root) %{_bindir}/guestunmount |
828f7f73 | 614 | %attr(755,root,root) %{_bindir}/libguestfs-test-tool |
ed1c34d6 | 615 | %attr(755,root,root) %{_bindir}/virt-alignment-scan |
828f7f73 AF |
616 | %attr(755,root,root) %{_bindir}/virt-cat |
617 | %attr(755,root,root) %{_bindir}/virt-copy-in | |
618 | %attr(755,root,root) %{_bindir}/virt-copy-out | |
619 | %attr(755,root,root) %{_bindir}/virt-df | |
0c35b451 | 620 | %attr(755,root,root) %{_bindir}/virt-dib |
893a36ad | 621 | %attr(755,root,root) %{_bindir}/virt-diff |
828f7f73 AF |
622 | %attr(755,root,root) %{_bindir}/virt-edit |
623 | %attr(755,root,root) %{_bindir}/virt-filesystems | |
ed1c34d6 | 624 | %attr(755,root,root) %{_bindir}/virt-format |
0c35b451 | 625 | %attr(755,root,root) %{_bindir}/virt-get-kernel |
828f7f73 | 626 | %attr(755,root,root) %{_bindir}/virt-inspector |
91c752f6 | 627 | %attr(755,root,root) %{_bindir}/virt-log |
828f7f73 | 628 | %attr(755,root,root) %{_bindir}/virt-ls |
828f7f73 | 629 | %attr(755,root,root) %{_bindir}/virt-rescue |
ab117f46 | 630 | %attr(755,root,root) %{_bindir}/virt-tail |
828f7f73 AF |
631 | %attr(755,root,root) %{_bindir}/virt-tar-in |
632 | %attr(755,root,root) %{_bindir}/virt-tar-out | |
021c56b6 | 633 | %attr(755,root,root) %{_bindir}/virt-v2v-copy-to-local |
3eebe7b8 JB |
634 | %attr(755,root,root) %{_sbindir}/guestfsd |
635 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libguestfs-tools.conf | |
828f7f73 | 636 | %{_mandir}/man1/guestfish.1* |
ed1c34d6 JB |
637 | %{_mandir}/man1/guestfs-faq.1* |
638 | %{_mandir}/man1/guestfs-performance.1* | |
828f7f73 | 639 | %{_mandir}/man1/guestfs-recipes.1* |
ed1c34d6 | 640 | %{_mandir}/man1/guestfs-testing.1* |
828f7f73 | 641 | %{_mandir}/man1/guestmount.1* |
160dc631 | 642 | %{_mandir}/man1/guestunmount.1* |
828f7f73 | 643 | %{_mandir}/man1/libguestfs-test-tool.1* |
ed1c34d6 | 644 | %{_mandir}/man1/virt-alignment-scan.1* |
828f7f73 AF |
645 | %{_mandir}/man1/virt-cat.1* |
646 | %{_mandir}/man1/virt-copy-in.1* | |
647 | %{_mandir}/man1/virt-copy-out.1* | |
648 | %{_mandir}/man1/virt-df.1* | |
0c35b451 | 649 | %{_mandir}/man1/virt-dib.1* |
893a36ad | 650 | %{_mandir}/man1/virt-diff.1* |
828f7f73 AF |
651 | %{_mandir}/man1/virt-edit.1* |
652 | %{_mandir}/man1/virt-filesystems.1* | |
ed1c34d6 | 653 | %{_mandir}/man1/virt-format.1* |
0c35b451 | 654 | %{_mandir}/man1/virt-get-kernel.1* |
828f7f73 | 655 | %{_mandir}/man1/virt-inspector.1* |
91c752f6 | 656 | %{_mandir}/man1/virt-log.1* |
828f7f73 | 657 | %{_mandir}/man1/virt-ls.1* |
828f7f73 | 658 | %{_mandir}/man1/virt-rescue.1* |
ab117f46 | 659 | %{_mandir}/man1/virt-tail.1* |
828f7f73 AF |
660 | %{_mandir}/man1/virt-tar-in.1* |
661 | %{_mandir}/man1/virt-tar-out.1* | |
021c56b6 | 662 | %{_mandir}/man1/virt-v2v-copy-to-local.1* |
840f16bc | 663 | %{_mandir}/man5/libguestfs-tools.conf.5* |
3722f906 | 664 | %{_mandir}/man8/guestfsd.8* |
828f7f73 | 665 | %lang(ja) %{_mandir}/ja/man1/guestfish.1* |
ed1c34d6 JB |
666 | %lang(ja) %{_mandir}/ja/man1/guestfs-faq.1* |
667 | %lang(ja) %{_mandir}/ja/man1/guestfs-performance.1* | |
668 | %lang(ja) %{_mandir}/ja/man1/guestfs-recipes.1* | |
669 | %lang(ja) %{_mandir}/ja/man1/guestfs-testing.1* | |
828f7f73 | 670 | %lang(ja) %{_mandir}/ja/man1/guestmount.1* |
160dc631 | 671 | %lang(ja) %{_mandir}/ja/man1/guestunmount.1* |
ed1c34d6 JB |
672 | %lang(ja) %{_mandir}/ja/man1/libguestfs-test-tool.1* |
673 | %lang(ja) %{_mandir}/ja/man1/virt-alignment-scan.1* | |
273c234c | 674 | %lang(ja) %{_mandir}/ja/man1/virt-diff.1* |
828f7f73 AF |
675 | %lang(ja) %{_mandir}/ja/man1/virt-cat.1* |
676 | %lang(ja) %{_mandir}/ja/man1/virt-copy-in.1* | |
677 | %lang(ja) %{_mandir}/ja/man1/virt-copy-out.1* | |
678 | %lang(ja) %{_mandir}/ja/man1/virt-df.1* | |
021c56b6 | 679 | %lang(ja) %{_mandir}/ja/man1/virt-dib.1* |
828f7f73 AF |
680 | %lang(ja) %{_mandir}/ja/man1/virt-edit.1* |
681 | %lang(ja) %{_mandir}/ja/man1/virt-filesystems.1* | |
ed1c34d6 | 682 | %lang(ja) %{_mandir}/ja/man1/virt-format.1* |
021c56b6 | 683 | %lang(ja) %{_mandir}/ja/man1/virt-get-kernel.1* |
828f7f73 | 684 | %lang(ja) %{_mandir}/ja/man1/virt-inspector.1* |
91c752f6 | 685 | %lang(ja) %{_mandir}/ja/man1/virt-log.1* |
828f7f73 | 686 | %lang(ja) %{_mandir}/ja/man1/virt-ls.1* |
828f7f73 | 687 | %lang(ja) %{_mandir}/ja/man1/virt-rescue.1* |
828f7f73 AF |
688 | %lang(ja) %{_mandir}/ja/man1/virt-tar-in.1* |
689 | %lang(ja) %{_mandir}/ja/man1/virt-tar-out.1* | |
840f16bc | 690 | %lang(ja) %{_mandir}/ja/man5/libguestfs-tools.conf.5* |
828f7f73 | 691 | %lang(uk) %{_mandir}/uk/man1/guestfish.1* |
ed1c34d6 JB |
692 | %lang(uk) %{_mandir}/uk/man1/guestfs-faq.1* |
693 | %lang(uk) %{_mandir}/uk/man1/guestfs-performance.1* | |
694 | %lang(uk) %{_mandir}/uk/man1/guestfs-recipes.1* | |
695 | %lang(uk) %{_mandir}/uk/man1/guestfs-testing.1* | |
828f7f73 | 696 | %lang(uk) %{_mandir}/uk/man1/guestmount.1* |
160dc631 | 697 | %lang(uk) %{_mandir}/uk/man1/guestunmount.1* |
ed1c34d6 JB |
698 | %lang(uk) %{_mandir}/uk/man1/libguestfs-test-tool.1* |
699 | %lang(uk) %{_mandir}/uk/man1/virt-alignment-scan.1* | |
828f7f73 AF |
700 | %lang(uk) %{_mandir}/uk/man1/virt-cat.1* |
701 | %lang(uk) %{_mandir}/uk/man1/virt-copy-in.1* | |
702 | %lang(uk) %{_mandir}/uk/man1/virt-copy-out.1* | |
703 | %lang(uk) %{_mandir}/uk/man1/virt-df.1* | |
021c56b6 | 704 | %lang(ja) %{_mandir}/uk/man1/virt-dib.1* |
273c234c | 705 | %lang(uk) %{_mandir}/uk/man1/virt-diff.1* |
828f7f73 AF |
706 | %lang(uk) %{_mandir}/uk/man1/virt-edit.1* |
707 | %lang(uk) %{_mandir}/uk/man1/virt-filesystems.1* | |
ed1c34d6 | 708 | %lang(uk) %{_mandir}/uk/man1/virt-format.1* |
021c56b6 | 709 | %lang(ja) %{_mandir}/uk/man1/virt-get-kernel.1* |
828f7f73 | 710 | %lang(uk) %{_mandir}/uk/man1/virt-inspector.1* |
91c752f6 | 711 | %lang(uk) %{_mandir}/uk/man1/virt-log.1* |
828f7f73 | 712 | %lang(uk) %{_mandir}/uk/man1/virt-ls.1* |
828f7f73 | 713 | %lang(uk) %{_mandir}/uk/man1/virt-rescue.1* |
828f7f73 AF |
714 | %lang(uk) %{_mandir}/uk/man1/virt-tar-in.1* |
715 | %lang(uk) %{_mandir}/uk/man1/virt-tar-out.1* | |
840f16bc | 716 | %lang(uk) %{_mandir}/uk/man5/libguestfs-tools.conf.5* |
3eebe7b8 | 717 | %if %{with ocaml} |
91c752f6 JB |
718 | %attr(755,root,root) %{_bindir}/virt-builder |
719 | %attr(755,root,root) %{_bindir}/virt-customize | |
720 | %attr(755,root,root) %{_bindir}/virt-index-validate | |
3eebe7b8 | 721 | %attr(755,root,root) %{_bindir}/virt-resize |
ed1c34d6 JB |
722 | %attr(755,root,root) %{_bindir}/virt-sparsify |
723 | %attr(755,root,root) %{_bindir}/virt-sysprep | |
3a96c817 | 724 | %attr(755,root,root) %{_bindir}/virt-v2v |
91c752f6 JB |
725 | # compat dir symlink |
726 | %{_sysconfdir}/virt-builder | |
727 | %dir /etc/xdg/virt-builder | |
728 | %dir /etc/xdg/virt-builder/repos.d | |
729 | %config(noreplace) %verify(not md5 mtime size) /etc/xdg/virt-builder/repos.d/libguestfs.conf | |
730 | %config(noreplace) %verify(not md5 mtime size) /etc/xdg/virt-builder/repos.d/libguestfs.gpg | |
731 | %{_mandir}/man1/virt-builder.1* | |
732 | %{_mandir}/man1/virt-customize.1* | |
733 | %{_mandir}/man1/virt-index-validate.1* | |
3eebe7b8 | 734 | %{_mandir}/man1/virt-resize.1* |
ed1c34d6 JB |
735 | %{_mandir}/man1/virt-sparsify.1* |
736 | %{_mandir}/man1/virt-sysprep.1* | |
3a96c817 | 737 | %{_mandir}/man1/virt-v2v.1* |
91c752f6 | 738 | %lang(ja) %{_mandir}/ja/man1/virt-builder.1* |
273c234c | 739 | %lang(ja) %{_mandir}/ja/man1/virt-customize.1* |
91c752f6 | 740 | %lang(ja) %{_mandir}/ja/man1/virt-index-validate.1* |
3eebe7b8 | 741 | %lang(ja) %{_mandir}/ja/man1/virt-resize.1* |
ed1c34d6 JB |
742 | %lang(ja) %{_mandir}/ja/man1/virt-sparsify.1* |
743 | %lang(ja) %{_mandir}/ja/man1/virt-sysprep.1* | |
273c234c | 744 | %lang(ja) %{_mandir}/ja/man1/virt-v2v.1* |
91c752f6 | 745 | %lang(uk) %{_mandir}/uk/man1/virt-builder.1* |
273c234c | 746 | %lang(uk) %{_mandir}/uk/man1/virt-customize.1* |
91c752f6 | 747 | %lang(uk) %{_mandir}/uk/man1/virt-index-validate.1* |
3eebe7b8 | 748 | %lang(uk) %{_mandir}/uk/man1/virt-resize.1* |
ed1c34d6 JB |
749 | %lang(uk) %{_mandir}/uk/man1/virt-sparsify.1* |
750 | %lang(uk) %{_mandir}/uk/man1/virt-sysprep.1* | |
273c234c | 751 | %lang(uk) %{_mandir}/uk/man1/virt-v2v.1* |
3eebe7b8 | 752 | %endif |
d62997be JB |
753 | %if %{with perltools} |
754 | %attr(755,root,root) %{_bindir}/virt-list-filesystems | |
755 | %attr(755,root,root) %{_bindir}/virt-list-partitions | |
756 | %attr(755,root,root) %{_bindir}/virt-make-fs | |
757 | %attr(755,root,root) %{_bindir}/virt-tar | |
758 | %attr(755,root,root) %{_bindir}/virt-win-reg | |
759 | %{_mandir}/man1/virt-list-filesystems.1* | |
760 | %{_mandir}/man1/virt-list-partitions.1* | |
761 | %{_mandir}/man1/virt-make-fs.1* | |
762 | %{_mandir}/man1/virt-tar.1* | |
763 | %{_mandir}/man1/virt-win-reg.1* | |
764 | %lang(ja) %{_mandir}/ja/man1/virt-list-filesystems.1* | |
765 | %lang(ja) %{_mandir}/ja/man1/virt-list-partitions.1* | |
766 | %lang(ja) %{_mandir}/ja/man1/virt-make-fs.1* | |
767 | %lang(ja) %{_mandir}/ja/man1/virt-tar.1* | |
768 | %lang(ja) %{_mandir}/ja/man1/virt-win-reg.1* | |
769 | %lang(uk) %{_mandir}/uk/man1/virt-list-filesystems.1* | |
770 | %lang(uk) %{_mandir}/uk/man1/virt-list-partitions.1* | |
771 | %lang(uk) %{_mandir}/uk/man1/virt-make-fs.1* | |
772 | %lang(uk) %{_mandir}/uk/man1/virt-tar.1* | |
773 | %lang(uk) %{_mandir}/uk/man1/virt-win-reg.1* | |
774 | %endif | |
775 | ||
91c752f6 JB |
776 | %if %{with gtk} |
777 | %attr(755,root,root) %{_bindir}/virt-p2v-make-disk | |
778 | %attr(755,root,root) %{_bindir}/virt-p2v-make-kickstart | |
ab117f46 | 779 | %attr(755,root,root) %{_bindir}/virt-p2v-make-kiwi |
91c752f6 JB |
780 | %attr(755,root,root) %{_libexecdir}/virt-p2v |
781 | %{_datadir}/virt-p2v | |
782 | %{_mandir}/man1/virt-p2v.1* | |
783 | %{_mandir}/man1/virt-p2v-make-disk.1* | |
784 | %{_mandir}/man1/virt-p2v-make-kickstart.1* | |
ab117f46 | 785 | %{_mandir}/man1/virt-p2v-make-kiwi.1* |
273c234c JB |
786 | %lang(ja) %{_mandir}/ja/man1/virt-p2v.1* |
787 | %lang(ja) %{_mandir}/ja/man1/virt-p2v-make-disk.1* | |
788 | %lang(ja) %{_mandir}/ja/man1/virt-p2v-make-kickstart.1* | |
789 | %lang(uk) %{_mandir}/uk/man1/virt-p2v.1* | |
790 | %lang(uk) %{_mandir}/uk/man1/virt-p2v-make-disk.1* | |
791 | %lang(uk) %{_mandir}/uk/man1/virt-p2v-make-kickstart.1* | |
91c752f6 JB |
792 | %endif |
793 | ||
8c5754c4 JB |
794 | %if %{with appliance} |
795 | %attr(755,root,root) %{_sbindir}/libguestfs-make-fixed-appliance | |
796 | %{_mandir}/man1/libguestfs-make-fixed-appliance.1* | |
797 | %lang(ja) %{_mandir}/ja/man1/libguestfs-make-fixed-appliance.1* | |
798 | %lang(uk) %{_mandir}/uk/man1/libguestfs-make-fixed-appliance.1* | |
799 | /lib/udev/rules.d/99-guestfs-serial.rules | |
800 | %dir %{_libdir}/guestfs | |
801 | %dir %{_libdir}/guestfs/supermin.d | |
802 | %{_libdir}/guestfs/supermin.d/daemon.img | |
803 | %{_libdir}/guestfs/supermin.d/init.img | |
804 | %{_libdir}/guestfs/supermin.d/udev-rules.img | |
805 | %{_libdir}/guestfs/supermin.d/base.img | |
806 | %{_libdir}/guestfs/supermin.d/hostfiles | |
807 | %endif | |
828f7f73 | 808 | |
eeb3750e JB |
809 | %if %{with erlang} |
810 | %files -n erlang-libguestfs | |
811 | %defattr(644,root,root,755) | |
812 | %attr(755,root,root) %{_bindir}/erl-guestfs | |
813 | %{_libdir}/erlang/lib/libguestfs-%{version} | |
814 | %{_mandir}/man3/guestfs-erlang.3* | |
815 | %lang(ja) %{_mandir}/ja/man3/guestfs-erlang.3* | |
816 | %lang(uk) %{_mandir}/uk/man3/guestfs-erlang.3* | |
817 | %endif | |
818 | ||
840f16bc JB |
819 | %if %{with golang} |
820 | %files -n golang-libguestfs | |
821 | %defattr(644,root,root,755) | |
822 | %dir %{_libdir}/golang/pkg/linux_*/libguestfs.org | |
823 | %dir %{_libdir}/golang/pkg/linux_*/libguestfs.org/guestfs | |
824 | %{_libdir}/golang/pkg/linux_*/libguestfs.org/guestfs/guestfs.a | |
c5f23768 | 825 | %{_libdir}/golang/src/libguestfs.org |
840f16bc JB |
826 | %{_mandir}/man3/guestfs-golang.3* |
827 | %lang(ja) %{_mandir}/ja/man3/guestfs-golang.3* | |
828 | %lang(uk) %{_mandir}/uk/man3/guestfs-golang.3* | |
829 | %endif | |
830 | ||
3eebe7b8 | 831 | %if %{with java} |
828f7f73 AF |
832 | %files -n java-libguestfs |
833 | %defattr(644,root,root,755) | |
ed1c34d6 JB |
834 | %attr(755,root,root) %{_libdir}/libguestfs_jni.so.*.*.* |
835 | %attr(755,root,root) %ghost %{_libdir}/libguestfs_jni.so.1 | |
3eebe7b8 | 836 | %attr(755,root,root) %{_libdir}/libguestfs_jni.so |
ed1c34d6 | 837 | %{_javadir}/libguestfs-%{version}.jar |
828f7f73 | 838 | %{_mandir}/man3/guestfs-java.3* |
ed1c34d6 JB |
839 | %lang(ja) %{_mandir}/ja/man3/guestfs-java.3* |
840 | %lang(uk) %{_mandir}/uk/man3/guestfs-java.3* | |
828f7f73 AF |
841 | |
842 | %files -n java-libguestfs-javadoc | |
843 | %defattr(644,root,root,755) | |
840f16bc | 844 | %{_javadocdir}/libguestfs |
3eebe7b8 | 845 | %endif |
828f7f73 | 846 | |
3722f906 JB |
847 | %if %{with lua} |
848 | %files -n lua-libguestfs | |
849 | %defattr(644,root,root,755) | |
850 | %attr(755,root,root) %{_libdir}/lua/*/guestfs.so | |
851 | %{_mandir}/man3/guestfs-lua.3* | |
852 | %lang(ja) %{_mandir}/ja/man3/guestfs-lua.3* | |
853 | %lang(uk) %{_mandir}/uk/man3/guestfs-lua.3* | |
854 | %endif | |
855 | ||
3eebe7b8 | 856 | %if %{with ocaml} |
828f7f73 AF |
857 | %files -n ocaml-libguestfs |
858 | %defattr(644,root,root,755) | |
084d2444 | 859 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllmlguestfs.so |
0c35b451 JB |
860 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllv2v_test_harness.so |
861 | %dir %{_libdir}/ocaml/guestfs | |
862 | %{_libdir}/ocaml/guestfs/META | |
863 | %{_libdir}/ocaml/guestfs/mlguestfs.cma | |
828f7f73 AF |
864 | |
865 | %files -n ocaml-libguestfs-devel | |
866 | %defattr(644,root,root,755) | |
828f7f73 | 867 | %{_libdir}/ocaml/guestfs/guestfs.cmi |
828f7f73 AF |
868 | %{_libdir}/ocaml/guestfs/guestfs.mli |
869 | %{_libdir}/ocaml/guestfs/libmlguestfs.a | |
0c35b451 JB |
870 | %dir %{_libdir}/ocaml/v2v_test_harness |
871 | %{_libdir}/ocaml/v2v_test_harness/META | |
872 | %{_libdir}/ocaml/v2v_test_harness/libv2v_test_harness.a | |
873 | %{_libdir}/ocaml/v2v_test_harness/v2v_test_harness.cmi | |
874 | %{_libdir}/ocaml/v2v_test_harness/v2v_test_harness.mli | |
0d2eca2c JR |
875 | %if %{with ocaml_opt} |
876 | %{_libdir}/ocaml/guestfs/guestfs.cmx | |
877 | %{_libdir}/ocaml/guestfs/mlguestfs.a | |
828f7f73 | 878 | %{_libdir}/ocaml/guestfs/mlguestfs.cmxa |
0c35b451 JB |
879 | %{_libdir}/ocaml/v2v_test_harness/v2v_test_harness.a |
880 | %{_libdir}/ocaml/v2v_test_harness/v2v_test_harness.cmx | |
881 | %{_libdir}/ocaml/v2v_test_harness/v2v_test_harness.cmxa | |
0d2eca2c | 882 | %endif |
0c35b451 | 883 | %{_mandir}/man1/virt-v2v-test-harness.1* |
3eebe7b8 | 884 | %{_mandir}/man3/guestfs-ocaml.3* |
0c35b451 JB |
885 | %lang(ja) %{_mandir}/ja/man1/virt-v2v-test-harness.1* |
886 | %lang(uk) %{_mandir}/uk/man1/virt-v2v-test-harness.1* | |
ed1c34d6 JB |
887 | %lang(ja) %{_mandir}/ja/man3/guestfs-ocaml.3* |
888 | %lang(uk) %{_mandir}/uk/man3/guestfs-ocaml.3* | |
3eebe7b8 | 889 | %endif |
828f7f73 | 890 | |
3eebe7b8 JB |
891 | %if %{with perl} |
892 | %files -n perl-libguestfs | |
828f7f73 | 893 | %defattr(644,root,root,755) |
3eebe7b8 | 894 | %{perl_vendorarch}/Sys/Guestfs.pm |
3eebe7b8 | 895 | %dir %{perl_vendorarch}/auto/Sys/Guestfs |
3eebe7b8 JB |
896 | %attr(755,root,root) %{perl_vendorarch}/auto/Sys/Guestfs/Guestfs.so |
897 | %{_mandir}/man3/guestfs-perl.3* | |
898 | %{_mandir}/man3/Sys::Guestfs.3pm* | |
ed1c34d6 JB |
899 | %lang(ja) %{_mandir}/ja/man3/guestfs-perl.3* |
900 | %lang(uk) %{_mandir}/uk/man3/guestfs-perl.3* | |
3eebe7b8 | 901 | %endif |
828f7f73 | 902 | |
46d973c4 | 903 | %if %{with php} |
312283b5 | 904 | %files -n %{php_name}-guestfs |
7eea6f71 | 905 | %defattr(644,root,root,755) |
312283b5 ER |
906 | %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/guestfs_php.ini |
907 | %attr(755,root,root) %{php_extensiondir}/guestfs_php.so | |
46d973c4 | 908 | %endif |
7eea6f71 | 909 | |
3eebe7b8 JB |
910 | %if %{with python} |
911 | %files -n python-libguestfs | |
912 | %defattr(644,root,root,755) | |
913 | %attr(755,root,root) %{py_sitedir}/libguestfsmod.so | |
914 | %{py_sitedir}/guestfs.py[co] | |
915 | %{_mandir}/man3/guestfs-python.3* | |
ed1c34d6 JB |
916 | %lang(ja) %{_mandir}/ja/man3/guestfs-python.3* |
917 | %lang(uk) %{_mandir}/uk/man3/guestfs-python.3* | |
3eebe7b8 JB |
918 | %endif |
919 | ||
46d973c4 JB |
920 | %if %{with ruby} |
921 | %files -n ruby-libguestfs | |
922 | %defattr(644,root,root,755) | |
333efa05 JB |
923 | %attr(755,root,root) %{ruby_vendorarchdir}/_guestfs.so |
924 | %{ruby_vendorlibdir}/guestfs.rb | |
46d973c4 JB |
925 | %{_mandir}/man3/guestfs-ruby.3* |
926 | %lang(ja) %{_mandir}/ja/man3/guestfs-ruby.3* | |
927 | %lang(uk) %{_mandir}/uk/man3/guestfs-ruby.3* | |
928 | %endif | |
929 | ||
828f7f73 AF |
930 | %files -n bash-completion-libguestfs |
931 | %defattr(644,root,root,755) | |
d297ffb2 ER |
932 | %{bash_compdir}/guestfish |
933 | %{bash_compdir}/guestmount | |
ab117f46 | 934 | %{bash_compdir}/guestunmount |
d297ffb2 | 935 | %{bash_compdir}/virt-* |