]>
Commit | Line | Data |
---|---|---|
f3e37857 JB |
1 | Summary: API for building application sandboxes using libvirt |
2 | Summary(pl.UTF-8): API do tworzenia sandboksów aplikacyjnych przy użyciu libvirt | |
3 | Name: libvirt-sandbox | |
909352f6 | 4 | Version: 0.5.0 |
34a05983 | 5 | Release: 2 |
f3e37857 JB |
6 | License: LGPL v2.1+ |
7 | Group: Libraries | |
8 | Source0: ftp://libvirt.org/libvirt/sandbox/%{name}-%{version}.tar.gz | |
909352f6 | 9 | # Source0-md5: 7ad2d1353bb08a1c2496fc9badcc8049 |
f3e37857 | 10 | URL: http://libvirt.org/ |
4dddd6ff | 11 | BuildRequires: gettext-devel |
8a54692b | 12 | BuildRequires: glib2-devel >= 1:2.32.0 |
f3e37857 JB |
13 | BuildRequires: gobject-introspection-devel >= 0.10.8 |
14 | BuildRequires: gtk-doc >= 1.10 | |
4dddd6ff | 15 | BuildRequires: intltool >= 0.35.0 |
f3e37857 | 16 | BuildRequires: libcap-ng-devel >= 0.4.0 |
817bd0bc | 17 | BuildRequires: libselinux-devel |
dacae2a0 | 18 | BuildRequires: libvirt-devel >= 1.0.2 |
dc664126 | 19 | BuildRequires: libvirt-glib-devel >= 0.1.7 |
f3e37857 JB |
20 | BuildRequires: pkgconfig |
21 | BuildRequires: sed >= 4.0 | |
8a54692b | 22 | Requires: glib2 >= 1:2.32.0 |
f3e37857 | 23 | Requires: libcap-ng >= 0.4.0 |
dacae2a0 | 24 | Requires: libvirt >= 1.0.2 |
dc664126 | 25 | Requires: libvirt-glib >= 0.1.7 |
f3e37857 JB |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
29 | The libvirt-sandbox package provides an API for building application | |
30 | sandboxes using libvirt. Sandboxes can be based on either container or | |
31 | machine based virtualization technology. Also included is a simple | |
32 | command line tool for launching sandboxes for arbitrary commands. | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | Libvirt-sandbox udostępnia API do tworzenia sandboksów ("piaskownic") | |
36 | aplikacyjnych przy użyciu libvirt. Sandboksy mogą być oparte na | |
37 | wirtualizacji kontenera lub maszyny. Dołączone są także proste | |
38 | narzędzia uruchamiane z linii poleceń do uruchamiania sandboksów | |
39 | dowolnych poleceń. | |
40 | ||
41 | %package devel | |
42 | Summary: Header files for libvirt-sandbox library | |
43 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libvirt-sandbox | |
44 | Group: Development/Libraries | |
45 | Requires: %{name} = %{version}-%{release} | |
8a54692b | 46 | Requires: glib2-devel >= 1:2.32.0 |
dacae2a0 | 47 | Requires: libvirt-devel >= 1.0.2 |
dc664126 | 48 | Requires: libvirt-glib-devel >= 0.1.7 |
f3e37857 JB |
49 | |
50 | %description devel | |
51 | Header files for libvirt-sandbox library. | |
52 | ||
53 | %description devel -l pl.UTF-8 | |
54 | Pliki nagłówkowe biblioteki libvirt-sandbox. | |
55 | ||
56 | %package static | |
57 | Summary: Static libvirt-sandbox library | |
58 | Summary(pl.UTF-8): Statyczna biblioteka libvirt-sandbox | |
59 | Group: Development/Libraries | |
60 | Requires: %{name}-devel = %{version}-%{release} | |
61 | ||
62 | %description static | |
63 | Static libvirt-sandbox library. | |
64 | ||
65 | %description static -l pl.UTF-8 | |
66 | Statyczna biblioteka libvirt-sandbox. | |
67 | ||
68 | %package -n bash-completion-libvirt-sandbox | |
69 | Summary: Bash completion rules for libvirt-sandbox | |
70 | Summary(pl.UTF-8): Bashowe uzupełnianie poleceń dla pakietu libvirt-sandbox | |
71 | Group: Applications/Shells | |
72 | Requires: %{name} = %{version}-%{release} | |
4dddd6ff | 73 | Requires: bash-completion >= 2.0 |
f3e37857 JB |
74 | |
75 | %description -n bash-completion-libvirt-sandbox | |
76 | Bash completion rules for virt-sandbox-service command. | |
77 | ||
78 | %description -n bash-completion-libvirt-sandbox -l pl.UTF-8 | |
79 | Bashowe uzupełnianie parametrów dla polecenia virt-sandbox-service. | |
80 | ||
81 | %prep | |
82 | %setup -q | |
83 | ||
84 | # what is it? seems not required | |
85 | %{__sed} -i -e '/Requires: sandbox-2.0/d' libvirt-sandbox-1.0.pc.in | |
86 | ||
87 | %build | |
88 | %configure \ | |
89 | --disable-silent-rules \ | |
90 | --with-html-dir=%{_gtkdocdir} | |
91 | %{__make} | |
92 | ||
93 | %install | |
94 | rm -rf $RPM_BUILD_ROOT | |
f3e37857 JB |
95 | %{__make} install \ |
96 | DESTDIR=$RPM_BUILD_ROOT | |
97 | ||
34a05983 ER |
98 | mv $RPM_BUILD_ROOT/etc/cron.daily/virt-sandbox-service{.logrotate,} |
99 | ||
f3e37857 JB |
100 | # obsoleted by pkg-config |
101 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvirt-sandbox-1.0.la | |
102 | # just placeholder, useless in RPM | |
103 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/libvirt-sandbox/scratch/README | |
104 | ||
4dddd6ff JB |
105 | %find_lang %{name} |
106 | ||
f3e37857 JB |
107 | %clean |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
4dddd6ff | 110 | %files -f %{name}.lang |
f3e37857 | 111 | %defattr(644,root,root,755) |
8a54692b | 112 | %doc AUTHORS ChangeLog NEWS README TODO |
f3e37857 JB |
113 | %attr(755,root,root) %{_bindir}/virt-sandbox |
114 | %attr(755,root,root) %{_bindir}/virt-sandbox-service | |
115 | %attr(755,root,root) %{_libdir}/libvirt-sandbox-1.0.so.*.*.* | |
909352f6 | 116 | %attr(755,root,root) %ghost %{_libdir}/libvirt-sandbox-1.0.so.4 |
f3e37857 JB |
117 | %{_libdir}/girepository-1.0/LibvirtSandbox-1.0.typelib |
118 | %attr(755,root,root) %{_libexecdir}/libvirt-sandbox-init-common | |
119 | %attr(755,root,root) %{_libexecdir}/libvirt-sandbox-init-lxc | |
120 | %attr(755,root,root) %{_libexecdir}/libvirt-sandbox-init-qemu | |
8a54692b | 121 | %attr(755,root,root) %{_libexecdir}/virt-sandbox-service-util |
f3e37857 JB |
122 | %dir %{_sysconfdir}/libvirt-sandbox |
123 | %dir %{_sysconfdir}/libvirt-sandbox/scratch | |
124 | %dir %{_sysconfdir}/libvirt-sandbox/services | |
34a05983 | 125 | %config(noreplace) %verify(not md5 mtime size) /etc/cron.daily/virt-sandbox-service |
f3e37857 JB |
126 | %{_mandir}/man1/virt-sandbox.1* |
127 | %{_mandir}/man1/virt-sandbox-service.1* | |
dacae2a0 | 128 | %{_mandir}/man1/virt-sandbox-service-*.1* |
f3e37857 JB |
129 | |
130 | %files devel | |
131 | %defattr(644,root,root,755) | |
132 | %attr(755,root,root) %{_libdir}/libvirt-sandbox-1.0.so | |
133 | %{_includedir}/libvirt-sandbox-1.0 | |
134 | %{_pkgconfigdir}/libvirt-sandbox-1.0.pc | |
135 | %{_datadir}/gir-1.0/LibvirtSandbox-1.0.gir | |
136 | %{_gtkdocdir}/Libvirt-sandbox | |
137 | ||
138 | %files static | |
139 | %defattr(644,root,root,755) | |
140 | %{_libdir}/libvirt-sandbox-1.0.a | |
141 | ||
142 | %files -n bash-completion-libvirt-sandbox | |
143 | %defattr(644,root,root,755) | |
4dddd6ff | 144 | %{_datadir}/bash-completion/completions/virt-sandbox-service |