]>
Commit | Line | Data |
---|---|---|
ed1c34d6 JB |
1 | # TODO: |
2 | # - ruby, haskell, erlang bindings | |
3 | # - systemtap probes | |
828f7f73 AF |
4 | # |
5 | # Conditional build: | |
6 | %bcond_with static_libs # build static libraries | |
3eebe7b8 JB |
7 | %bcond_with haskell # Haskell (GHC) binding |
8 | %bcond_without java # Java binding | |
9 | %bcond_without ocaml # OCaml binding and tools | |
10 | %bcond_without perl # Perl binding | |
11 | %bcond_without perltools # Perl tools | |
12 | %bcond_without php # PHP binding | |
13 | %bcond_without python # Python binding | |
14 | %bcond_with ruby # Ruby binding | |
828f7f73 AF |
15 | # |
16 | %include /usr/lib/rpm/macros.perl | |
17 | %include /usr/lib/rpm/macros.java | |
3eebe7b8 JB |
18 | Summary: Library and tools for accessing and modifying virtual machine disk images |
19 | Summary(pl.UTF-8): Biblioteka i narzędzia do dostępu i modyfikacji obrazów dysków maszyn wirtualnych | |
828f7f73 | 20 | Name: libguestfs |
ed1c34d6 JB |
21 | Version: 1.18.8 |
22 | Release: 1 | |
828f7f73 AF |
23 | License: LGPL v2+ |
24 | Group: Libraries | |
ed1c34d6 JB |
25 | Source0: http://libguestfs.org/download/1.18-stable/%{name}-%{version}.tar.gz |
26 | # Source0-md5: 043d4e5c89a8cb21834896acaa8c541c | |
828f7f73 | 27 | Patch0: ncurses.patch |
475fb908 | 28 | Patch1: augeas-libxml2.patch |
ed1c34d6 | 29 | Patch2: %{name}-link.patch |
828f7f73 AF |
30 | URL: http://libguestfs.org/ |
31 | BuildRequires: attr-devel | |
32 | BuildRequires: augeas-devel | |
3eebe7b8 | 33 | BuildRequires: autoconf >= 2.50 |
828f7f73 AF |
34 | BuildRequires: automake |
35 | BuildRequires: cdrkit-mkisofs | |
3eebe7b8 | 36 | BuildRequires: cpio |
828f7f73 | 37 | BuildRequires: db-utils |
ed1c34d6 | 38 | #BuildRequires: febootstrap >= 3.0 |
828f7f73 | 39 | BuildRequires: gettext-devel |
3eebe7b8 | 40 | %{?with_haskell:BuildRequires: ghc} |
ed1c34d6 JB |
41 | BuildRequires: glib2-devel >= 1:2.26.0 |
42 | BuildRequires: gobject-introspection-devel >= 1.30.0 | |
828f7f73 | 43 | BuildRequires: gperf |
ed1c34d6 | 44 | BuildRequires: gtk-doc >= 1.14 |
828f7f73 | 45 | BuildRequires: hivex-devel |
3eebe7b8 | 46 | %{?with_java:BuildRequires: jdk} |
828f7f73 | 47 | BuildRequires: libconfig-devel |
7eea6f71 | 48 | BuildRequires: libfuse-devel |
828f7f73 AF |
49 | BuildRequires: libmagic-devel |
50 | BuildRequires: libselinux-devel | |
51 | BuildRequires: libtool | |
52 | BuildRequires: libvirt-devel | |
3eebe7b8 | 53 | BuildRequires: libxml2-devel >= 2.0 |
828f7f73 AF |
54 | BuildRequires: libxml2-progs |
55 | BuildRequires: ncurses-devel | |
3eebe7b8 | 56 | %if %{with ocaml} |
828f7f73 | 57 | BuildRequires: ocaml |
3eebe7b8 | 58 | BuildRequires: ocaml-findlib |
ed1c34d6 | 59 | # ocaml-gettext |
828f7f73 | 60 | BuildRequires: ocaml-pcre-devel |
3eebe7b8 | 61 | %endif |
828f7f73 | 62 | BuildRequires: pcre-devel |
3eebe7b8 JB |
63 | BuildRequires: perl-base |
64 | BuildRequires: perl-tools-pod | |
65 | %if %{with perl} | |
66 | BuildRequires: perl-ExtUtils-MakeMaker | |
67 | BuildRequires: perl-Test-Simple | |
68 | %endif | |
69 | %if %{with perltools} | |
70 | BuildRequires: perl-String-ShellQuote | |
71 | BuildRequires: perl-Sys-Virt | |
72 | BuildRequires: perl-hivex | |
73 | BuildRequires: perl-libintl | |
74 | BuildRequires: perl-modules | |
828f7f73 | 75 | BuildRequires: perl(Data::Dumper) |
828f7f73 AF |
76 | BuildRequires: perl(Getopt::Long) |
77 | BuildRequires: perl(Locale::TextDomain) | |
ed1c34d6 JB |
78 | BuildRequires: perl(Pod::Man) |
79 | BuildRequires: perl(Pod::Simple) | |
828f7f73 | 80 | BuildRequires: perl(Pod::Usage) |
3eebe7b8 JB |
81 | %endif |
82 | %{?with_php:BuildRequires: php-devel} | |
83 | BuildRequires: pkgconfig | |
828f7f73 | 84 | BuildRequires: po4a |
3eebe7b8 | 85 | %if %{with python} |
828f7f73 AF |
86 | BuildRequires: python |
87 | BuildRequires: python-devel | |
3eebe7b8 | 88 | %endif |
828f7f73 | 89 | BuildRequires: readline-devel |
3eebe7b8 JB |
90 | BuildRequires: rpmbuild(macros) >= 1.219 |
91 | %if %{with ruby} | |
92 | BuildRequires: ruby | |
93 | BuildRequires: ruby-devel | |
94 | BuildRequires: ruby-rake | |
95 | %endif | |
f19b40ea | 96 | Requires: qemu-common |
ed1c34d6 JB |
97 | Suggests: db-utils |
98 | Suggests: icoutils | |
99 | Suggests: netpbm-progs | |
828f7f73 AF |
100 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
101 | ||
102 | %description | |
3eebe7b8 JB |
103 | libguestfs is a library and set of tools for accessing and modifying |
104 | virtual machine (VM) disk images. You can use this for viewing and | |
105 | editing files inside guests, scripting changes to VMs, monitoring disk | |
828f7f73 AF |
106 | used/free statistics, P2V, V2V, performing partial backups, cloning |
107 | VMs, and much else besides. | |
108 | ||
99abc14f | 109 | %description -l pl.UTF-8 |
3eebe7b8 JB |
110 | libguestfs to biblioteka oraz zestaw narzędzi do dostępu oraz |
111 | modyfikowania obrazów dysków maszyn wirtualnych (VM). Można je | |
112 | wykorzystywać do oglądania i edycji plików wewnątrz gości, zmian | |
113 | skryptowych w VM-ach, monitorowania statystyk używanego/dostępnego | |
114 | miejsca na dyskach, P2V, V2V, wykonywania częściowych kopii | |
115 | zapasowych, klonowania VM-ów i wielu podobnych operacji. | |
99abc14f | 116 | |
828f7f73 AF |
117 | %package devel |
118 | Summary: Header files for libguestfs library | |
119 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libguestfs | |
120 | Group: Development/Libraries | |
121 | Requires: %{name} = %{version}-%{release} | |
122 | ||
123 | %description devel | |
124 | Header files for libguestfs library. | |
125 | ||
126 | %description devel -l pl.UTF-8 | |
127 | Pliki nagłówkowe biblioteki libguestfs. | |
128 | ||
129 | %package static | |
130 | Summary: Static libguestfs library | |
131 | Summary(pl.UTF-8): Statyczna biblioteka libguestfs | |
132 | Group: Development/Libraries | |
133 | Requires: %{name}-devel = %{version}-%{release} | |
134 | ||
135 | %description static | |
136 | Static libguestfs library. | |
137 | ||
138 | %description static -l pl.UTF-8 | |
139 | Statyczna biblioteka libguestfs. | |
140 | ||
ed1c34d6 JB |
141 | %package apidocs |
142 | Summary: libguestfs API documentation | |
143 | Summary(pl.UTF-8): Dokumentacja API libguestfs | |
144 | Group: Documentation | |
145 | ||
146 | %description apidocs | |
147 | libguestfs API documentation. | |
148 | ||
149 | %description apidocs -l pl.UTF-8 | |
150 | Dokumentacja API libguestfs. | |
151 | ||
152 | %package gobject | |
153 | Summary: GObject bindings to libguestfs library | |
154 | Summary(pl.UTF-8): Wiązania GObject do biblioteki libguestfs | |
155 | Group: Libraries | |
156 | Requires: %{name} = %{version}-%{release} | |
157 | Requires: glib2 >= 1:2.26.0 | |
158 | ||
159 | %description gobject | |
160 | GObject bindings to libguestfs library. | |
161 | ||
162 | %description gobject -l pl.UTF-8 | |
163 | Wiązania GObject do biblioteki libguestfs. | |
164 | ||
165 | %package gobject-devel | |
166 | Summary: Header files for libguestfs-gobject library | |
167 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libguestfs-gobject | |
168 | Group: Development/Libraries | |
169 | Requires: %{name}-devel = %{version}-%{release} | |
170 | Requires: %{name}-gobject = %{version}-%{release} | |
171 | Requires: glib2-devel >= 1:2.26.0 | |
172 | ||
173 | %description gobject-devel | |
174 | Header files for libguestfs-gobject library. | |
175 | ||
176 | %description gobject-devel -l pl.UTF-8 | |
177 | Pliki nagłówkowe biblioteki libguestfs-gobject. | |
178 | ||
179 | %package gobject-static | |
180 | Summary: Static libguestfs-gobject library | |
181 | Summary(pl.UTF-8): Statyczna biblioteka libguestfs-gobject | |
182 | Group: Development/Libraries | |
183 | Requires: %{name}-gobject-devel = %{version}-%{release} | |
184 | ||
185 | %description gobject-static | |
186 | Static libguestfs-gobject library. | |
187 | ||
188 | %description gobject-static -l pl.UTF-8 | |
189 | Statyczna biblioteka libguestfs-gobject. | |
190 | ||
3eebe7b8 JB |
191 | %package tools |
192 | Summary: libguestfs tools for accessing and modifying virtual machine disk images | |
193 | Summary(pl.UTF-8): Narzędzia libguestfs do dostępu i modyfikacji obrazów dysków maszyn wirtualnych | |
194 | Group: Applications/System | |
195 | Requires: %{name} = %{version}-%{release} | |
196 | %{?with_ocaml:Requires: ocaml-libguestfs = %{version}-%{release}} | |
197 | %{?with_perltools:Requires: perl-libguestfs = %{version}-%{release}} | |
198 | ||
199 | %description tools | |
200 | libguestfs tools for accessing and modifying virtual machine (VM) disk | |
201 | images. You can use this for viewing and editing files inside guests, | |
202 | scripting changes to VMs, monitoring disk used/free statistics, P2V, | |
203 | V2V, performing partial backups, cloning VMs, and much else besides. | |
204 | ||
205 | %description tools -l pl.UTF-8 | |
206 | Zestaw narzędzi libguestfs do dostępu oraz modyfikowania obrazów | |
207 | dysków maszyn wirtualnych (VM). Można je wykorzystywać do oglądania i | |
208 | edycji plików wewnątrz gości, zmian skryptowych w VM-ach, | |
209 | monitorowania statystyk używanego/dostępnego miejsca na dyskach, P2V, | |
210 | V2V, wykonywania częściowych kopii zapasowych, klonowania VM-ów i | |
211 | wielu podobnych operacji. | |
212 | ||
828f7f73 AF |
213 | %package -n java-libguestfs |
214 | Summary: Java bindings for libguestfs | |
99abc14f | 215 | Summary(pl.UTF-8): Wiązania Javy do libguestfs |
828f7f73 AF |
216 | Group: Libraries/Java |
217 | Requires: %{name} = %{version}-%{release} | |
218 | ||
219 | %description -n java-libguestfs | |
220 | Java bindings for libguestfs. | |
221 | ||
99abc14f JB |
222 | %description -n java-libguestfs -l pl.UTF-8 |
223 | Wiązania Javy do libguestfs. | |
224 | ||
828f7f73 AF |
225 | %package -n java-libguestfs-javadoc |
226 | Summary: Java bindings for libguestfs - documentation | |
99abc14f | 227 | Summary(pl.UTF-8): Wiązania Javy do libguestfs - dokumentacja |
828f7f73 AF |
228 | Group: Documentation |
229 | ||
230 | %description -n java-libguestfs-javadoc | |
231 | Java bindings for libguestfs - documentation. | |
232 | ||
99abc14f JB |
233 | %description -n java-libguestfs-javadoc -l pl.UTF-8 |
234 | Wiązania Javy do libguestfs - dokumentacja. | |
235 | ||
828f7f73 AF |
236 | %package -n ocaml-libguestfs |
237 | Summary: OCaml bindings for libguestfs | |
99abc14f | 238 | Summary(pl.UTF-8): Wiązania OCamla do libguestfs |
828f7f73 AF |
239 | Group: Libraries |
240 | Requires: %{name} = %{version}-%{release} | |
241 | ||
242 | %description -n ocaml-libguestfs | |
243 | OCaml bindings for libguestfs. | |
244 | ||
99abc14f JB |
245 | %description -n ocaml-libguestfs -l pl.UTF-8 |
246 | Wiązania OCamla do libguestfs. | |
247 | ||
828f7f73 | 248 | %package -n ocaml-libguestfs-devel |
99abc14f JB |
249 | Summary: Development files OCaml libguestfs bindings |
250 | Summary(pl.UTF-8): Pliki programistyczne wiązań OCamla do libguestfs | |
828f7f73 AF |
251 | Group: Development/Libraries |
252 | Requires: ocaml-%{name} = %{version}-%{release} | |
253 | ||
254 | %description -n ocaml-libguestfs-devel | |
99abc14f | 255 | Development files OCaml libguestfs bindings. |
828f7f73 AF |
256 | |
257 | %description -n ocaml-libguestfs-devel -l pl.UTF-8 | |
99abc14f | 258 | Pliki programistyczne wiązań OCamla do libguestfs. |
828f7f73 | 259 | |
99abc14f JB |
260 | %package -n perl-libguestfs |
261 | Summary: Perl bindings for libguestfs | |
262 | Summary(pl.UTF-8): Wiązania Perla do libguestfs | |
263 | Group: Development/Languages/Perl | |
828f7f73 | 264 | Requires: %{name} = %{version}-%{release} |
3eebe7b8 JB |
265 | Suggests: perl-Sys-Virt |
266 | Suggests: perl-XML-XPath | |
267 | Suggests: perl-hivex | |
828f7f73 | 268 | |
99abc14f JB |
269 | %description -n perl-libguestfs |
270 | Perl bindings for libguestfs. | |
271 | ||
272 | %description -n perl-libguestfs -l pl.UTF-8 | |
273 | Wiązania Perla do libguestfs. | |
828f7f73 | 274 | |
7eea6f71 | 275 | %package -n php-guestfs |
276 | Summary: PHP bindings for libguestfs | |
99abc14f | 277 | Summary(pl.UTF-8): Wiązania PHP do libguestfs |
7eea6f71 | 278 | Group: Development/Languages/PHP |
279 | Requires: %{name} = %{version}-%{release} | |
280 | ||
281 | %description -n php-guestfs | |
282 | PHP bindings for libguestfs. | |
283 | ||
99abc14f JB |
284 | %description -n php-guestfs -l pl.UTF-8 |
285 | Wiązania PHP do libguestfs. | |
286 | ||
287 | %package -n python-libguestfs | |
288 | Summary: Python bindings for libguestfs | |
289 | Summary(pl.UTF-8): Wiązania Pythona do libguestfs | |
290 | Group: Development/Languages/Python | |
291 | Requires: %{name} = %{version}-%{release} | |
292 | ||
293 | %description -n python-libguestfs | |
294 | Python bindings for libguestfs. | |
295 | ||
296 | %description -n python-libguestfs -l pl.UTF-8 | |
297 | Wiązania Pythona do libguestfs. | |
298 | ||
828f7f73 AF |
299 | %package -n bash-completion-libguestfs |
300 | Summary: bash-completion for libguestfs tools | |
99abc14f | 301 | Summary(pl.UTF-8): Bashowe uzupełnianie argumentów dla narzędzi libguestfs |
828f7f73 AF |
302 | Group: Applications/Shells |
303 | Requires: bash-completion | |
304 | ||
305 | %description -n bash-completion-libguestfs | |
306 | bash-completion for guestfish tool. | |
307 | ||
99abc14f JB |
308 | %description -n bash-completion-libguestfs -l pl.UTF-8 |
309 | Bashowe uzupełnianie argumentów dla narzędzi libguestfs. | |
310 | ||
828f7f73 AF |
311 | %prep |
312 | %setup -q | |
313 | %patch0 -p1 | |
475fb908 | 314 | %patch1 -p1 |
ed1c34d6 | 315 | %patch2 -p1 |
828f7f73 AF |
316 | |
317 | %build | |
475fb908 | 318 | %{__libtoolize} |
671fd6ca | 319 | %{__aclocal} -I m4 |
475fb908 JR |
320 | %{__autoconf} |
321 | %{__autoheader} | |
322 | %{__automake} | |
828f7f73 AF |
323 | %configure \ |
324 | vmchannel_test=no \ | |
ed1c34d6 JB |
325 | PBMTEXT=/usr/bin/pbmtext \ |
326 | PNMTOPNG=/usr/bin/pnmtopng \ | |
327 | BMPTOPNM=/usr/bin/bmptopnm \ | |
328 | PAMCUT=/usr/bin/pamcut \ | |
329 | WRESTOOL=/usr/bin/wrestool \ | |
73480eb3 | 330 | QEMU=%{_bindir}/qemu \ |
ed1c34d6 | 331 | --with-html-dir=%{_gtkdocdir} \ |
3eebe7b8 | 332 | --with-java-home=%{?with_java:%{java_home}}%{!?with_java:no} \ |
73480eb3 | 333 | --with-qemu=qemu \ |
96e43ae7 | 334 | --enable-install-daemon \ |
828f7f73 | 335 | --disable-appliance \ |
3eebe7b8 JB |
336 | %{!?with_haskell:--disable-haskell} \ |
337 | %{!?with_ocaml:--disable-ocaml} \ | |
338 | %{!?with_perl:--disable-perl} \ | |
339 | %{!?with_php:--disable-php} \ | |
340 | %{!?with_python:--disable-python} \ | |
341 | %{!?with_ruby:--disable-ruby} \ | |
342 | --disable-silent-rules \ | |
343 | %{__enable_disable static_libs static} | |
828f7f73 AF |
344 | |
345 | %{__make} \ | |
346 | INSTALLDIRS=vendor | |
347 | ||
348 | %install | |
349 | rm -rf $RPM_BUILD_ROOT | |
350 | ||
351 | %{__make} install \ | |
352 | INSTALLDIRS=vendor \ | |
7eea6f71 | 353 | DESTDIR=$RPM_BUILD_ROOT \ |
354 | phpdir=%{_sysconfdir}/php/conf.d | |
828f7f73 AF |
355 | |
356 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la \ | |
357 | $RPM_BUILD_ROOT%{py_sitedir}/*.la | |
358 | ||
3eebe7b8 JB |
359 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} |
360 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
361 | %py_postclean | |
362 | ||
828f7f73 AF |
363 | %find_lang %{name} |
364 | ||
365 | %clean | |
366 | rm -rf $RPM_BUILD_ROOT | |
367 | ||
368 | %post -p /sbin/ldconfig | |
369 | %postun -p /sbin/ldconfig | |
370 | ||
ed1c34d6 JB |
371 | %post gobject -p /sbin/ldconfig |
372 | %postun gobject -p /sbin/ldconfig | |
373 | ||
374 | %post -n java-libguestfs -p /sbin/ldconfig | |
375 | %postun -n java-libguestfs -p /sbin/ldconfig | |
376 | ||
828f7f73 AF |
377 | %files -f %{name}.lang |
378 | %defattr(644,root,root,755) | |
379 | %doc AUTHORS BUGS ChangeLog README RELEASE-NOTES ROADMAP TODO | |
3eebe7b8 JB |
380 | %attr(755,root,root) %{_libdir}/libguestfs.so.*.*.* |
381 | %attr(755,root,root) %ghost %{_libdir}/libguestfs.so.0 | |
382 | ||
383 | %files devel | |
384 | %defattr(644,root,root,755) | |
385 | %attr(755,root,root) %{_libdir}/libguestfs.so | |
386 | %{_includedir}/guestfs.h | |
387 | %{_pkgconfigdir}/libguestfs.pc | |
3eebe7b8 | 388 | %{_mandir}/man3/guestfs.3* |
ed1c34d6 | 389 | %{_mandir}/man3/guestfs-examples.3* |
3eebe7b8 | 390 | %{_mandir}/man3/libguestfs.3* |
ed1c34d6 JB |
391 | %lang(ja) %{_mandir}/ja/man3/guestfs.3* |
392 | %lang(ja) %{_mandir}/ja/man3/guestfs-examples.3* | |
393 | %lang(uk) %{_mandir}/uk/man3/guestfs.3* | |
394 | %lang(uk) %{_mandir}/uk/man3/guestfs-examples.3* | |
3eebe7b8 JB |
395 | |
396 | %if %{with static_libs} | |
397 | %files static | |
398 | %defattr(644,root,root,755) | |
399 | %{_libdir}/libguestfs.a | |
400 | %endif | |
401 | ||
ed1c34d6 JB |
402 | %files apidocs |
403 | %defattr(644,root,root,755) | |
404 | %{_gtkdocdir}/guestfs | |
405 | ||
406 | %files gobject | |
407 | %defattr(644,root,root,755) | |
408 | %attr(755,root,root) %{_libdir}/libguestfs-gobject-1.0.so.*.*.* | |
409 | %attr(755,root,root) %ghost %{_libdir}/libguestfs-gobject-1.0.so.0 | |
410 | %{_libdir}/girepository-1.0/Guestfs-1.0.typelib | |
411 | ||
412 | %files gobject-devel | |
413 | %defattr(644,root,root,755) | |
414 | %attr(755,root,root) %{_libdir}/libguestfs-gobject-1.0.so | |
415 | %{_includedir}/guestfs-gobject.h | |
416 | %{_includedir}/guestfs-gobject | |
417 | %{_datadir}/gir-1.0/Guestfs-1.0.gir | |
418 | ||
419 | %if %{with static_libs} | |
420 | %files gobject-static | |
421 | %defattr(644,root,root,755) | |
422 | %{_libdir}/libguestfs-gobject-1.0.a | |
423 | %endif | |
424 | ||
3eebe7b8 JB |
425 | %files tools |
426 | %defattr(644,root,root,755) | |
828f7f73 AF |
427 | %attr(755,root,root) %{_bindir}/guestfish |
428 | %attr(755,root,root) %{_bindir}/guestmount | |
429 | %attr(755,root,root) %{_bindir}/libguestfs-test-tool | |
ed1c34d6 | 430 | %attr(755,root,root) %{_bindir}/virt-alignment-scan |
828f7f73 AF |
431 | %attr(755,root,root) %{_bindir}/virt-cat |
432 | %attr(755,root,root) %{_bindir}/virt-copy-in | |
433 | %attr(755,root,root) %{_bindir}/virt-copy-out | |
434 | %attr(755,root,root) %{_bindir}/virt-df | |
435 | %attr(755,root,root) %{_bindir}/virt-edit | |
436 | %attr(755,root,root) %{_bindir}/virt-filesystems | |
ed1c34d6 | 437 | %attr(755,root,root) %{_bindir}/virt-format |
828f7f73 | 438 | %attr(755,root,root) %{_bindir}/virt-inspector |
828f7f73 | 439 | %attr(755,root,root) %{_bindir}/virt-ls |
828f7f73 | 440 | %attr(755,root,root) %{_bindir}/virt-rescue |
828f7f73 AF |
441 | %attr(755,root,root) %{_bindir}/virt-tar-in |
442 | %attr(755,root,root) %{_bindir}/virt-tar-out | |
3eebe7b8 JB |
443 | %attr(755,root,root) %{_sbindir}/guestfsd |
444 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libguestfs-tools.conf | |
828f7f73 | 445 | %{_mandir}/man1/guestfish.1* |
ed1c34d6 JB |
446 | %{_mandir}/man1/guestfs-faq.1* |
447 | %{_mandir}/man1/guestfs-performance.1* | |
828f7f73 | 448 | %{_mandir}/man1/guestfs-recipes.1* |
ed1c34d6 | 449 | %{_mandir}/man1/guestfs-testing.1* |
828f7f73 AF |
450 | %{_mandir}/man1/guestmount.1* |
451 | %{_mandir}/man1/libguestfs-test-tool.1* | |
ed1c34d6 | 452 | %{_mandir}/man1/virt-alignment-scan.1* |
828f7f73 AF |
453 | %{_mandir}/man1/virt-cat.1* |
454 | %{_mandir}/man1/virt-copy-in.1* | |
455 | %{_mandir}/man1/virt-copy-out.1* | |
456 | %{_mandir}/man1/virt-df.1* | |
457 | %{_mandir}/man1/virt-edit.1* | |
458 | %{_mandir}/man1/virt-filesystems.1* | |
ed1c34d6 | 459 | %{_mandir}/man1/virt-format.1* |
828f7f73 | 460 | %{_mandir}/man1/virt-inspector.1* |
828f7f73 | 461 | %{_mandir}/man1/virt-ls.1* |
828f7f73 | 462 | %{_mandir}/man1/virt-rescue.1* |
828f7f73 AF |
463 | %{_mandir}/man1/virt-tar-in.1* |
464 | %{_mandir}/man1/virt-tar-out.1* | |
828f7f73 | 465 | %lang(ja) %{_mandir}/ja/man1/guestfish.1* |
ed1c34d6 JB |
466 | %lang(ja) %{_mandir}/ja/man1/guestfs-faq.1* |
467 | %lang(ja) %{_mandir}/ja/man1/guestfs-performance.1* | |
468 | %lang(ja) %{_mandir}/ja/man1/guestfs-recipes.1* | |
469 | %lang(ja) %{_mandir}/ja/man1/guestfs-testing.1* | |
828f7f73 | 470 | %lang(ja) %{_mandir}/ja/man1/guestmount.1* |
ed1c34d6 JB |
471 | #%lang(ja) %{_mandir}/ja/man1/libguestfs-make-fixed-appliance.1* |
472 | %lang(ja) %{_mandir}/ja/man1/libguestfs-test-tool.1* | |
473 | %lang(ja) %{_mandir}/ja/man1/virt-alignment-scan.1* | |
828f7f73 AF |
474 | %lang(ja) %{_mandir}/ja/man1/virt-cat.1* |
475 | %lang(ja) %{_mandir}/ja/man1/virt-copy-in.1* | |
476 | %lang(ja) %{_mandir}/ja/man1/virt-copy-out.1* | |
477 | %lang(ja) %{_mandir}/ja/man1/virt-df.1* | |
478 | %lang(ja) %{_mandir}/ja/man1/virt-edit.1* | |
479 | %lang(ja) %{_mandir}/ja/man1/virt-filesystems.1* | |
ed1c34d6 | 480 | %lang(ja) %{_mandir}/ja/man1/virt-format.1* |
828f7f73 | 481 | %lang(ja) %{_mandir}/ja/man1/virt-inspector.1* |
828f7f73 | 482 | %lang(ja) %{_mandir}/ja/man1/virt-ls.1* |
828f7f73 | 483 | %lang(ja) %{_mandir}/ja/man1/virt-rescue.1* |
828f7f73 AF |
484 | %lang(ja) %{_mandir}/ja/man1/virt-tar-in.1* |
485 | %lang(ja) %{_mandir}/ja/man1/virt-tar-out.1* | |
828f7f73 | 486 | %lang(uk) %{_mandir}/uk/man1/guestfish.1* |
ed1c34d6 JB |
487 | %lang(uk) %{_mandir}/uk/man1/guestfs-faq.1* |
488 | %lang(uk) %{_mandir}/uk/man1/guestfs-performance.1* | |
489 | %lang(uk) %{_mandir}/uk/man1/guestfs-recipes.1* | |
490 | %lang(uk) %{_mandir}/uk/man1/guestfs-testing.1* | |
828f7f73 | 491 | %lang(uk) %{_mandir}/uk/man1/guestmount.1* |
ed1c34d6 JB |
492 | #%lang(uk) %{_mandir}/uk/man1/libguestfs-make-fixed-appliance.1* |
493 | %lang(uk) %{_mandir}/uk/man1/libguestfs-test-tool.1* | |
494 | %lang(uk) %{_mandir}/uk/man1/virt-alignment-scan.1* | |
828f7f73 AF |
495 | %lang(uk) %{_mandir}/uk/man1/virt-cat.1* |
496 | %lang(uk) %{_mandir}/uk/man1/virt-copy-in.1* | |
497 | %lang(uk) %{_mandir}/uk/man1/virt-copy-out.1* | |
498 | %lang(uk) %{_mandir}/uk/man1/virt-df.1* | |
499 | %lang(uk) %{_mandir}/uk/man1/virt-edit.1* | |
500 | %lang(uk) %{_mandir}/uk/man1/virt-filesystems.1* | |
ed1c34d6 | 501 | %lang(uk) %{_mandir}/uk/man1/virt-format.1* |
828f7f73 | 502 | %lang(uk) %{_mandir}/uk/man1/virt-inspector.1* |
828f7f73 | 503 | %lang(uk) %{_mandir}/uk/man1/virt-ls.1* |
828f7f73 | 504 | %lang(uk) %{_mandir}/uk/man1/virt-rescue.1* |
828f7f73 AF |
505 | %lang(uk) %{_mandir}/uk/man1/virt-tar-in.1* |
506 | %lang(uk) %{_mandir}/uk/man1/virt-tar-out.1* | |
3eebe7b8 JB |
507 | %if %{with ocaml} |
508 | %attr(755,root,root) %{_bindir}/virt-resize | |
ed1c34d6 JB |
509 | %attr(755,root,root) %{_bindir}/virt-sparsify |
510 | %attr(755,root,root) %{_bindir}/virt-sysprep | |
3eebe7b8 | 511 | %{_mandir}/man1/virt-resize.1* |
ed1c34d6 JB |
512 | %{_mandir}/man1/virt-sparsify.1* |
513 | %{_mandir}/man1/virt-sysprep.1* | |
3eebe7b8 | 514 | %lang(ja) %{_mandir}/ja/man1/virt-resize.1* |
ed1c34d6 JB |
515 | %lang(ja) %{_mandir}/ja/man1/virt-sparsify.1* |
516 | %lang(ja) %{_mandir}/ja/man1/virt-sysprep.1* | |
3eebe7b8 | 517 | %lang(uk) %{_mandir}/uk/man1/virt-resize.1* |
ed1c34d6 JB |
518 | %lang(uk) %{_mandir}/uk/man1/virt-sparsify.1* |
519 | %lang(uk) %{_mandir}/uk/man1/virt-sysprep.1* | |
3eebe7b8 JB |
520 | %endif |
521 | %if %{with perltools} | |
522 | %attr(755,root,root) %{_bindir}/virt-list-filesystems | |
523 | %attr(755,root,root) %{_bindir}/virt-list-partitions | |
524 | %attr(755,root,root) %{_bindir}/virt-make-fs | |
525 | %attr(755,root,root) %{_bindir}/virt-tar | |
526 | %attr(755,root,root) %{_bindir}/virt-win-reg | |
527 | %{_mandir}/man1/virt-list-filesystems.1* | |
528 | %{_mandir}/man1/virt-list-partitions.1* | |
529 | %{_mandir}/man1/virt-make-fs.1* | |
530 | %{_mandir}/man1/virt-tar.1* | |
531 | %{_mandir}/man1/virt-win-reg.1* | |
532 | %lang(ja) %{_mandir}/ja/man1/virt-list-filesystems.1* | |
533 | %lang(ja) %{_mandir}/ja/man1/virt-list-partitions.1* | |
534 | %lang(ja) %{_mandir}/ja/man1/virt-make-fs.1* | |
535 | %lang(ja) %{_mandir}/ja/man1/virt-tar.1* | |
536 | %lang(ja) %{_mandir}/ja/man1/virt-win-reg.1* | |
537 | %lang(uk) %{_mandir}/uk/man1/virt-list-filesystems.1* | |
538 | %lang(uk) %{_mandir}/uk/man1/virt-list-partitions.1* | |
539 | %lang(uk) %{_mandir}/uk/man1/virt-make-fs.1* | |
828f7f73 AF |
540 | %lang(uk) %{_mandir}/uk/man1/virt-tar.1* |
541 | %lang(uk) %{_mandir}/uk/man1/virt-win-reg.1* | |
828f7f73 AF |
542 | %endif |
543 | ||
3eebe7b8 | 544 | %if %{with java} |
828f7f73 AF |
545 | %files -n java-libguestfs |
546 | %defattr(644,root,root,755) | |
ed1c34d6 JB |
547 | %attr(755,root,root) %{_libdir}/libguestfs_jni.so.*.*.* |
548 | %attr(755,root,root) %ghost %{_libdir}/libguestfs_jni.so.1 | |
3eebe7b8 | 549 | %attr(755,root,root) %{_libdir}/libguestfs_jni.so |
ed1c34d6 | 550 | %{_javadir}/libguestfs-%{version}.jar |
828f7f73 | 551 | %{_mandir}/man3/guestfs-java.3* |
ed1c34d6 JB |
552 | %lang(ja) %{_mandir}/ja/man3/guestfs-java.3* |
553 | %lang(uk) %{_mandir}/uk/man3/guestfs-java.3* | |
828f7f73 AF |
554 | |
555 | %files -n java-libguestfs-javadoc | |
556 | %defattr(644,root,root,755) | |
ed1c34d6 | 557 | %{_javadocdir}/libguestfs-java-%{version} |
3eebe7b8 | 558 | %endif |
828f7f73 | 559 | |
3eebe7b8 | 560 | %if %{with ocaml} |
828f7f73 AF |
561 | %files -n ocaml-libguestfs |
562 | %defattr(644,root,root,755) | |
084d2444 | 563 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllmlguestfs.so |
828f7f73 | 564 | %{_libdir}/ocaml/stublibs/dllmlguestfs.so.owner |
828f7f73 AF |
565 | |
566 | %files -n ocaml-libguestfs-devel | |
567 | %defattr(644,root,root,755) | |
084d2444 | 568 | %dir %{_libdir}/ocaml/guestfs |
828f7f73 | 569 | %{_libdir}/ocaml/guestfs/META |
828f7f73 AF |
570 | %{_libdir}/ocaml/guestfs/guestfs.cmi |
571 | %{_libdir}/ocaml/guestfs/guestfs.cmx | |
572 | %{_libdir}/ocaml/guestfs/guestfs.mli | |
573 | %{_libdir}/ocaml/guestfs/libmlguestfs.a | |
574 | %{_libdir}/ocaml/guestfs/mlguestfs.a | |
575 | %{_libdir}/ocaml/guestfs/mlguestfs.cma | |
576 | %{_libdir}/ocaml/guestfs/mlguestfs.cmxa | |
3eebe7b8 | 577 | %{_mandir}/man3/guestfs-ocaml.3* |
ed1c34d6 JB |
578 | %lang(ja) %{_mandir}/ja/man3/guestfs-ocaml.3* |
579 | %lang(uk) %{_mandir}/uk/man3/guestfs-ocaml.3* | |
3eebe7b8 | 580 | %endif |
828f7f73 | 581 | |
3eebe7b8 JB |
582 | %if %{with perl} |
583 | %files -n perl-libguestfs | |
828f7f73 | 584 | %defattr(644,root,root,755) |
3eebe7b8 JB |
585 | %{perl_vendorarch}/Sys/Guestfs.pm |
586 | %dir %{perl_vendorarch}/Sys/Guestfs | |
587 | %{perl_vendorarch}/Sys/Guestfs/Lib.pm | |
588 | %{perl_vendorarch}/Sys/bindtests.pl | |
589 | %dir %{perl_vendorarch}/auto/Sys/Guestfs | |
590 | %{perl_vendorarch}/auto/Sys/Guestfs/Guestfs.bs | |
591 | %attr(755,root,root) %{perl_vendorarch}/auto/Sys/Guestfs/Guestfs.so | |
592 | %{_mandir}/man3/guestfs-perl.3* | |
593 | %{_mandir}/man3/Sys::Guestfs.3pm* | |
594 | %{_mandir}/man3/Sys::Guestfs::Lib.3pm* | |
ed1c34d6 JB |
595 | %lang(ja) %{_mandir}/ja/man3/guestfs-perl.3* |
596 | %lang(uk) %{_mandir}/uk/man3/guestfs-perl.3* | |
3eebe7b8 | 597 | %endif |
828f7f73 | 598 | |
7eea6f71 | 599 | %files -n php-guestfs |
600 | %defattr(644,root,root,755) | |
601 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php/conf.d/guestfs_php.ini | |
602 | %attr(755,root,root) %{_libdir}/php/guestfs_php.so | |
603 | ||
3eebe7b8 JB |
604 | %if %{with python} |
605 | %files -n python-libguestfs | |
606 | %defattr(644,root,root,755) | |
607 | %attr(755,root,root) %{py_sitedir}/libguestfsmod.so | |
608 | %{py_sitedir}/guestfs.py[co] | |
609 | %{_mandir}/man3/guestfs-python.3* | |
ed1c34d6 JB |
610 | %lang(ja) %{_mandir}/ja/man3/guestfs-python.3* |
611 | %lang(uk) %{_mandir}/uk/man3/guestfs-python.3* | |
3eebe7b8 JB |
612 | %endif |
613 | ||
828f7f73 AF |
614 | %files -n bash-completion-libguestfs |
615 | %defattr(644,root,root,755) | |
616 | %attr(755,root,root) /etc/bash_completion.d/guestfish-bash-completion.sh |