3 %bcond_without seccomp # SecComp syscall filter
4 %bcond_without lua # Lua binding
5 %bcond_without python # Python binding
7 Summary: Linux Container Tools
8 Summary(pl.UTF-8): Narzędzia do kontenerów linuksowych (LXC)
13 Group: Applications/System
14 Source0: http://lxc.sourceforge.net/download/lxc/%{name}-%{version}.tar.gz
15 # Source0-md5: 8552a4479090616f4bc04d8473765fc9
16 Patch0: %{name}-devpts.patch
17 Patch1: %{name}-pld.patch
19 Patch3: checkconfig-module.patch
20 Patch4: checkconfig-vserver-config.patch
21 URL: http://lxc.sourceforge.net/
22 BuildRequires: autoconf >= 2.50
23 BuildRequires: automake
24 BuildRequires: docbook-dtd30-sgml
25 BuildRequires: docbook-utils
26 BuildRequires: docbook2X
27 BuildRequires: libapparmor-devel
28 BuildRequires: libcap-devel
29 %{?with_seccomp:BuildRequires: libseccomp-devel}
30 %{?with_lua:BuildRequires: lua51-devel >= 5.1}
31 BuildRequires: pkgconfig
32 %{?with_python:BuildRequires: python3-devel >= 3.2}
33 BuildRequires: rpmbuild(macros) >= 1.612
34 BuildRequires: sed >= 4.0
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 %define configpath /var/lib/lxc
41 Tools to create and manage containers. It contains a full featured
42 container with the isolation / virtualization of the pids, the ipc,
43 the utsname, the mount points, /proc, /sys, the network and it takes
44 into account the control groups. It is very light, flexible, and
45 provides a set of tools around the container like the monitoring with
46 asynchronous events notification, or the freeze of the container. This
47 package is useful to create Virtual Private Server, or to run isolated
48 applications like bash or sshd.
50 %description -l pl.UTF-8
51 Narzędzia do tworzenia i zarządzania kontenerami. System ten obejmuje
52 w pełni funkcjonalne kontenery z ilozacją/wirtualizacją pidów, ipc,
53 utsname, punktów montowania, /proc, /sys, sieci oraz uwzględniające
54 grupy kontrolne. Jest bardzo lekki, elastyczny i udostępnia narzędzia
55 do czynności związanych z kontenerami, takich jak monitorowanie z
56 asynchronicznym powiadamianiem o zdarzeniach czy zamrażanie. Ten
57 pakiet jest przydatny do tworzenia wirtualnych serwerów prywatnych
58 oraz uruchamiania izolowanych aplikacji, takich jak bash czy sshd.
61 Summary: Header files for lxc library
62 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki lxc
63 Group: Development/Libraries
64 Requires: %{name} = %{version}-%{release}
67 Header files for lxc library.
69 %description devel -l pl.UTF-8
70 Pliki nagłówkowe biblioteki lxc.
73 Summary: Lua binding for LXC
74 Summary(pl.UTF-8): Wiązanie Lua do LXC
76 Requires: %{name} = %{version}-%{release}
77 Requires: lua51-libs >= 5.1
79 %description -n lua-lxc
82 %description -n lua-lxc -l pl.UTF-8
85 %package -n python3-lxc
86 Summary: Python (3.x) binding for LXC
87 Summary(pl.UTF-8): Wiązanie Pythona (3.x) do LXC
89 Requires: %{name} = %{version}-%{release}
90 Requires: python3-libs >= 3.2
92 %description -n python3-lxc
93 Python (3.x) binding for LXC.
95 %description -n python3-lxc -l pl.UTF-8
96 Wiązanie Pythona (3.x) do LXC.
107 %{__aclocal} -I config
112 db2xman=docbook2X2man \
115 %{?with_lua:--enable-lua} \
116 %{?with_python:--enable-python} \
117 %{?with_seccomp:--enable-seccomp} \
118 --with-config-path=%{configpath} \
125 rm -rf $RPM_BUILD_ROOT
126 install -d $RPM_BUILD_ROOT{%{configpath},/var/cache/lxc}
129 DESTDIR=$RPM_BUILD_ROOT \
130 pcdatadir=%{_pkgconfigdir}
132 %{__make} -C doc install \
133 DESTDIR=$RPM_BUILD_ROOT
135 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}
138 %py3_comp $RPM_BUILD_ROOT%{py3_sitedir}/lxc
139 %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}/lxc
142 %{__sed} -i -e '1s,#!/usr/bin/env lua,#!/usr/bin/lua51,' $RPM_BUILD_ROOT%{_bindir}/lxc-top
146 rm -rf $RPM_BUILD_ROOT
148 %post -p /sbin/ldconfig
149 %postun -p /sbin/ldconfig
152 %defattr(644,root,root,755)
153 %doc AUTHORS ChangeLog CONTRIBUTING MAINTAINERS README TODO doc/FAQ.txt doc/examples/*.conf
154 %attr(755,root,root) %{_bindir}/lxc-attach
155 %attr(755,root,root) %{_bindir}/lxc-cgroup
156 %attr(755,root,root) %{_bindir}/lxc-checkconfig
157 %attr(755,root,root) %{_bindir}/lxc-checkpoint
158 %attr(755,root,root) %{_bindir}/lxc-clone
159 %attr(755,root,root) %{_bindir}/lxc-console
160 %attr(755,root,root) %{_bindir}/lxc-create
161 %attr(755,root,root) %{_bindir}/lxc-destroy
162 %attr(755,root,root) %{_bindir}/lxc-execute
163 %attr(755,root,root) %{_bindir}/lxc-freeze
164 %attr(755,root,root) %{_bindir}/lxc-info
165 %attr(755,root,root) %{_bindir}/lxc-kill
166 %attr(755,root,root) %{_bindir}/lxc-monitor
167 %attr(755,root,root) %{_bindir}/lxc-netstat
168 %attr(755,root,root) %{_bindir}/lxc-ps
169 %attr(755,root,root) %{_bindir}/lxc-restart
170 %attr(755,root,root) %{_bindir}/lxc-shutdown
171 %attr(755,root,root) %{_bindir}/lxc-start
172 %attr(755,root,root) %{_bindir}/lxc-stop
173 %attr(755,root,root) %{_bindir}/lxc-unfreeze
174 %attr(755,root,root) %{_bindir}/lxc-unshare
175 %attr(755,root,root) %{_bindir}/lxc-version
176 %attr(755,root,root) %{_bindir}/lxc-wait
177 %attr(755,root,root) %{_libdir}/liblxc.so.*.*.*
178 %attr(755,root,root) %ghost %{_libdir}/liblxc.so.0
180 %dir %{_libdir}/lxc/rootfs
181 %{_libdir}/lxc/rootfs/README
182 %attr(755,root,root) %{_libdir}/lxc/lxc-init
183 %dir %{_sysconfdir}/lxc
184 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lxc/default.conf
186 %{_datadir}/%{name}/lxc.functions
187 %dir %{_datadir}/%{name}/hooks
188 %dir %{_datadir}/%{name}/templates
189 %attr(755,root,root) %{_datadir}/%{name}/hooks/mount*
190 %attr(755,root,root) %{_datadir}/%{name}/templates/lxc-*
191 %{_mandir}/man1/lxc-attach.1*
192 %{_mandir}/man1/lxc-cgroup.1*
193 %{_mandir}/man1/lxc-checkconfig.1*
194 %{_mandir}/man1/lxc-checkpoint.1*
195 %{_mandir}/man1/lxc-clone.1*
196 %{_mandir}/man1/lxc-console.1*
197 %{_mandir}/man1/lxc-create.1*
198 %{_mandir}/man1/lxc-destroy.1*
199 %{_mandir}/man1/lxc-execute.1*
200 %{_mandir}/man1/lxc-freeze.1*
201 %{_mandir}/man1/lxc-info.1*
202 %{_mandir}/man1/lxc-kill.1*
203 %{_mandir}/man1/lxc-monitor.1*
204 %{_mandir}/man1/lxc-netstat.1*
205 %{_mandir}/man1/lxc-ps.1*
206 %{_mandir}/man1/lxc-restart.1*
207 %{_mandir}/man1/lxc-shutdown.1*
208 %{_mandir}/man1/lxc-start.1*
209 %{_mandir}/man1/lxc-stop.1*
210 %{_mandir}/man1/lxc-unfreeze.1*
211 %{_mandir}/man1/lxc-unshare.1*
212 %{_mandir}/man1/lxc-version.1*
213 %{_mandir}/man1/lxc-wait.1*
214 %{_mandir}/man5/lxc.conf.5*
215 %{_mandir}/man7/lxc.7*
216 %if %{without python}
218 %attr(755,root,root) %{_bindir}/lxc-ls
219 %{_mandir}/man1/lxc-ls.1*
226 %defattr(644,root,root,755)
227 %attr(755,root,root) %{_libdir}/liblxc.so
229 %{_pkgconfigdir}/lxc.pc
233 %defattr(644,root,root,755)
234 %attr(755,root,root) %{_bindir}/lxc-top
235 %dir %{_libdir}/lua/5.1/lxc
236 %attr(755,root,root) %{_libdir}/lua/5.1/lxc/core.so
237 %{_datadir}/lua/5.1/lxc.lua
238 %{_mandir}/man1/lxc-top.1*
242 %files -n python3-lxc
243 %defattr(644,root,root,755)
244 %attr(755,root,root) %{_bindir}/lxc-device
245 %attr(755,root,root) %{_bindir}/lxc-ls
246 %attr(755,root,root) %{_bindir}/lxc-start-ephemeral
248 %attr(755,root,root) %{py3_sitedir}/_lxc.cpython-*.so
249 %{py3_sitedir}/_lxc-0.1-py*.egg-info
250 %{_mandir}/man1/lxc-device.1*
251 %{_mandir}/man1/lxc-ls.1*
252 %{_mandir}/man1/lxc-start-ephemeral.1*