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