2 # lxc: linux Container library
4 # (C) Copyright IBM Corp. 2007, 2008
7 # Daniel Lezcano <daniel.lezcano at free.fr>
9 # This library is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU Lesser General Public
11 # License as published by the Free Software Foundation; either
12 # version 2.1 of the License, or (at your option) any later version.
14 # This library is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # Lesser General Public License for more details.
19 # You should have received a copy of the GNU Lesser General Public
20 # License along with this library; if not, write to the Free Software
21 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 %global with_python
%{?_with_python: 1} %{?!_with_python: 0}
24 %global with_lua
%{?_with_lua: 1} %{?!_with_lua: 0}
29 URL: http
://linuxcontainers.org
30 Source: http
://linuxcontainers.org
/downloads
/%{name}-%{version}.tar.gz
31 Summary: Linux Containers userspace tools
32 Group: Applications
/System
34 BuildRoot: %{_tmppath}/%{name}-%{version}-build
35 Requires: openssl rsync
36 BuildRequires
: libcap libcap
-devel docbook2X
40 BuildRequires
: python3
-devel
44 Containers are insulated areas inside a system
, which have their own namespace
45 for filesystem
, network
, PID
, IPC
, CPU and memory allocation and which can be
46 created using the Control
Group and Namespace features included
in the Linux
49 This package provides the lxc
-* tools
, which can be used to start a single
50 daemon
in a container
, or to boot an entire "containerized" system
, and to
51 manage and debug your containers.
54 Summary: Shared library files
for %{name}
55 Group: System Environment
/Libraries
57 The
%{name}-libs package contains libraries for running %{name} applications.
60 Summary: Development library
for %{name}
61 Group: Development
/Libraries
62 Requires: %{name} = %{version}-%{release}, pkgconfig
64 The
%{name}-devel package contains header files and library needed
for
65 development of the Linux containers.
69 Summary: Lua bindings
for %{name}
70 Group: System Environment
/Libraries
71 Requires: lua
-filesystem
72 BuildRequires
: lua
-devel
74 The
%{name}-lua package contains %{name} bindings
for lua.
80 PATH
=$PATH
:/usr
/sbin
:/sbin
%configure $args \
92 make install DESTDIR
=%{buildroot}
93 find
%{buildroot} -type f -name '*.la' -exec rm -f {} '
;'
99 %post libs
-p
/sbin
/ldconfig
100 %postun libs
-p
/sbin
/ldconfig
103 %defattr(-,root
,root
)
105 %attr(4111,root
,root
) %{_bindir}/lxc
-attach
106 %attr(4111,root
,root
) %{_bindir}/lxc
-create
107 %attr(4111,root
,root
) %{_bindir}/lxc
-clone
108 %attr(4111,root
,root
) %{_bindir}/lxc
-start
109 %attr(4111,root
,root
) %{_bindir}/lxc
-netstat
110 %attr(4111,root
,root
) %{_bindir}/lxc
-unshare
111 %attr(4111,root
,root
) %{_bindir}/lxc
-execute
112 %attr(4111,root
,root
) %{_bindir}/lxc
-checkpoint
113 %attr(4111,root
,root
) %{_bindir}/lxc
-restart
117 %{_mandir}/ja
/man1
/lxc
*
118 %{_mandir}/ja
/man5
/lxc
*
119 %{_mandir}/ja
/man7
/lxc
*
122 %config(noreplace
) %{_sysconfdir}/lxc
/*
125 %defattr(-,root
,root
)
132 %attr(4555,root
,root
) %{_libexecdir}/%{name}/lxc
-init
136 %defattr(-,root
,root
)
142 %defattr(-,root
,root
)
143 %{_includedir}/%{name}/*
145 %{_libdir}/pkgconfig
/*
148 * Tue Oct
22 2013 Dwight Engen
<dwight.engen@oracle.com
> - 1.0.0-0.1.alpha2
149 - fix some rpmlint warnings
/errors
150 - split lua bits into seperate package
152 * Mon Sep
10 2012 Dwight Engen
<dwight.engen@oracle.com
> - 0.8.0
153 - fix lxc
-init moved to libexec
154 - .pc moved to _libdir
155 - package template files
/usr
/share
/lxc
/templates
157 * Thu Sep
8 2011 Greg Kurz
<gkurz@fr.ibm.com
> - 0.7.5.1
158 - fix installed files
for rpmbuild
159 - introduce lxc
-libs package
161 * Fri Jul
23 2010 Daniel Lezcano
<dlezcano@fr.ibm.com
> - 0.7.2
162 - set attribute
for installed files
163 - fix libraries installation
165 * Mon Mar
24 2009 Daniel Lezcano
<daniel.lezcano@free.fr
> - 0.6.1
166 - Removed capability setting
, let the user to
do that through "lxc
-setcap"
168 * Mon Feb
16 2009 Daniel Lezcano
<daniel.lezcano@free.fr
> - 0.6.0
169 - Added more capabilities to the executables
171 * Sun Jan
25 2009 Daniel Lezcano
<daniel.lezcano@free.fr
> - 0.6.0
174 * Sun Aug
3 2008 Daniel Lezcano
<dlezcano@fr.ibm.com
> - 0.1.0
175 - Initial RPM release.