1 # TODO: move lua/python-dependent utils to lya-/python-
4 %bcond_without seccomp # SecComp syscall filter
5 %bcond_without lua # Lua binding
6 %bcond_without python # Python binding
8 Summary: Linux Container Tools
9 Summary(pl.UTF-8): Narzędzia do kontenerów linuksowych (LXC)
14 Group: Applications/System
15 Source0: http://lxc.sourceforge.net/download/lxc/%{name}-%{version}.tar.gz
16 # Source0-md5: 8552a4479090616f4bc04d8473765fc9
17 Patch0: %{name}-devpts.patch
18 Patch1: %{name}-pld.patch
19 URL: http://lxc.sourceforge.net/
20 BuildRequires: autoconf >= 2.50
21 BuildRequires: automake
22 BuildRequires: docbook2X
23 BuildRequires: docbook-dtd30-sgml
24 BuildRequires: docbook-utils
25 BuildRequires: libapparmor-devel
26 BuildRequires: libcap-devel
27 %{?with_seccomp:BuildRequires: libseccomp-devel}
28 %{?with_lua:BuildRequires: lua51-devel >= 5.1}
29 BuildRequires: pkgconfig
30 %{?with_python:BuildRequires: python3-devel >= 3.2}
31 BuildRequires: rpmbuild(macros) >= 1.612
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 %define configpath /var/lib/lxc
37 Tools to create and manage containers. It contains a full featured
38 container with the isolation / virtualization of the pids, the ipc,
39 the utsname, the mount points, /proc, /sys, the network and it takes
40 into account the control groups. It is very light, flexible, and
41 provides a set of tools around the container like the monitoring with
42 asynchronous events notification, or the freeze of the container. This
43 package is useful to create Virtual Private Server, or to run isolated
44 applications like bash or sshd.
46 %description -l pl.UTF-8
47 Narzędzia do tworzenia i zarządzania kontenerami. System ten obejmuje
48 w pełni funkcjonalne kontenery z ilozacją/wirtualizacją pidów, ipc,
49 utsname, punktów montowania, /proc, /sys, sieci oraz uwzględniające
50 grupy kontrolne. Jest bardzo lekki, elastyczny i udostępnia narzędzia
51 do czynności związanych z kontenerami, takich jak monitorowanie z
52 asynchronicznym powiadamianiem o zdarzeniach czy zamrażanie. Ten
53 pakiet jest przydatny do tworzenia wirtualnych serwerów prywatnych
54 oraz uruchamiania izolowanych aplikacji, takich jak bash czy sshd.
57 Summary: Header files for lxc library
58 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki lxc
59 Group: Development/Libraries
60 Requires: %{name} = %{version}-%{release}
63 Header files for lxc library.
65 %description devel -l pl.UTF-8
66 Pliki nagłówkowe biblioteki lxc.
69 Summary: Lua binding for LXC
70 Summary(pl.UTF-8): Wiązanie Lua do LXC
72 Requires: %{name} = %{version}-%{release}
73 Requires: lua51-libs >= 5.1
75 %description -n lua-lxc
78 %description -n lua-lxc -l pl.UTF-8
81 %package -n python3-lxc
82 Summary: Python (3.x) binding for LXC
83 Summary(pl.UTF-8): Wiązanie Pythona (3.x) do LXC
85 Requires: %{name} = %{version}-%{release}
86 Requires: python3-libs >= 3.2
88 %description -n python3-lxc
89 Python (3.x) binding for LXC.
91 %description -n python3-lxc -l pl.UTF-8
92 Wiązanie Pythona (3.x) do LXC.
100 %{__aclocal} -I config
105 db2xman=docbook2X2man \
108 %{?with_lua:--enable-lua} \
109 %{?with_python:--enable-python} \
110 %{?with_seccomp:--enable-seccomp} \
111 --with-config-path=%{configpath} \
118 rm -rf $RPM_BUILD_ROOT
121 DESTDIR=$RPM_BUILD_ROOT \
122 pcdatadir=%{_pkgconfigdir}
124 %{__make} -C doc install \
125 DESTDIR=$RPM_BUILD_ROOT
127 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/doc
129 install -d $RPM_BUILD_ROOT%{configpath}
132 %py3_comp $RPM_BUILD_ROOT%{py3_sitedir}/lxc
133 %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}/lxc
137 rm -rf $RPM_BUILD_ROOT
139 %post -p /sbin/ldconfig
140 %postun -p /sbin/ldconfig
143 %defattr(644,root,root,755)
144 %doc AUTHORS ChangeLog CONTRIBUTING MAINTAINERS README TODO doc/FAQ.txt doc/examples/*.conf
145 %attr(755,root,root) %{_bindir}/lxc-*
146 %attr(755,root,root) %{_libdir}/liblxc.so.*.*.*
147 %attr(755,root,root) %ghost %{_libdir}/liblxc.so.0
150 %dir %{_libdir}/lxc/rootfs
151 %{_libdir}/lxc/rootfs/README
152 %attr(755,root,root) %{_libdir}/lxc/lxc-init
153 %dir %{_sysconfdir}/lxc
154 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lxc/default.conf
156 %{_mandir}/man1/lxc-*.1*
157 %{_mandir}/man5/lxc.conf.5*
158 %{_mandir}/man7/lxc.7*
161 %defattr(644,root,root,755)
162 %attr(755,root,root) %{_libdir}/liblxc.so
164 %{_pkgconfigdir}/lxc.pc
168 %defattr(644,root,root,755)
169 %dir %{_libdir}/lua/5.1/lxc
170 %attr(755,root,root) %{_libdir}/lua/5.1/lxc/core.so
171 %{_datadir}/lua/5.1/lxc.lua
175 %files -n python3-lxc
176 %defattr(644,root,root,755)
178 %attr(755,root,root) %{py3_sitedir}/_lxc.cpython-*.so
179 %{py3_sitedir}/_lxc-0.1-py*.egg-info