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