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}
26 # RPM needs alpha/beta/rc in Release: not Version: to ensure smooth
27 # package upgrades from alpha->beta->rc->release. For more info see:
28 # http://fedoraproject.org/wiki/Packaging%3aNamingGuidelines#NonNumericRelease
29 %if "x@LXC_VERSION_BETA@"
!= "x"
30 %global beta_rel @LXC_VERSION_BETA@
31 %global beta_dot .
%{beta_rel}
37 Version: @LXC_VERSION_BASE@
38 Release: %{?beta_rel:0.1.%{beta_rel}}%{?!beta_rel:%{norm_rel}}%{?dist}
39 URL: http
://linuxcontainers.org
40 Source: http
://linuxcontainers.org
/downloads
/%{name}-%{version}%{?beta_dot}.tar.gz
41 Summary: Linux Containers userspace tools
42 Group: Applications
/System
44 BuildRoot: %{_tmppath}/%{name}-%{version}-build
45 Requires: openssl rsync
46 BuildRequires
: libcap libcap
-devel docbook2X
50 BuildRequires
: python3
-devel
54 Containers are insulated areas inside a system
, which have their own namespace
55 for filesystem
, network
, PID
, IPC
, CPU and memory allocation and which can be
56 created using the Control
Group and Namespace features included
in the Linux
59 This package provides the lxc
-* tools
, which can be used to start a single
60 daemon
in a container
, or to boot an entire "containerized" system
, and to
61 manage and debug your containers.
64 Summary: Shared library files
for %{name}
65 Group: System Environment
/Libraries
67 The
%{name}-libs package contains libraries for running %{name} applications.
70 Summary: Development library
for %{name}
71 Group: Development
/Libraries
72 Requires: %{name} = %{version}-%{release}, pkgconfig
74 The
%{name}-devel package contains header files and library needed
for
75 development of the Linux containers.
79 Summary: Lua bindings
for %{name}
80 Group: System Environment
/Libraries
81 Requires: lua
-filesystem
82 BuildRequires
: lua
-devel
84 The
%{name}-lua package contains %{name} bindings
for lua.
88 %setup -q
-n
%{name}-%{version}%{?beta_dot}
90 PATH
=$PATH
:/usr
/sbin
:/sbin
%configure $args \
102 make install DESTDIR
=%{buildroot}
103 find
%{buildroot} -type f -name '*.la' -exec rm -f {} '
;'
109 %post libs
-p
/sbin
/ldconfig
110 %postun libs
-p
/sbin
/ldconfig
113 %defattr(-,root
,root
)
115 %attr(4111,root
,root
) %{_bindir}/lxc
-attach
116 %attr(4111,root
,root
) %{_bindir}/lxc
-create
117 %attr(4111,root
,root
) %{_bindir}/lxc
-clone
118 %attr(4111,root
,root
) %{_bindir}/lxc
-start
119 %attr(4111,root
,root
) %{_bindir}/lxc
-netstat
120 %attr(4111,root
,root
) %{_bindir}/lxc
-unshare
121 %attr(4111,root
,root
) %{_bindir}/lxc
-execute
122 %attr(4111,root
,root
) %{_bindir}/lxc
-checkpoint
123 %attr(4111,root
,root
) %{_bindir}/lxc
-restart
127 %{_mandir}/ja
/man1
/lxc
*
128 %{_mandir}/ja
/man5
/lxc
*
129 %{_mandir}/ja
/man7
/lxc
*
132 %config(noreplace
) %{_sysconfdir}/lxc
/*
135 %defattr(-,root
,root
)
142 %attr(4555,root
,root
) %{_libexecdir}/%{name}/lxc
-init
146 %defattr(-,root
,root
)
152 %defattr(-,root
,root
)
153 %{_includedir}/%{name}/*
155 %{_libdir}/pkgconfig
/*
158 * Tue Oct
22 2013 Dwight Engen
<dwight.engen@oracle.com
> - 1.0.0-0.1.alpha2
159 - fix some rpmlint warnings
/errors
160 - split lua bits into seperate package
162 * Mon Sep
10 2012 Dwight Engen
<dwight.engen@oracle.com
> - 0.8.0
163 - fix lxc
-init moved to libexec
164 - .pc moved to _libdir
165 - package template files
/usr
/share
/lxc
/templates
167 * Thu Sep
8 2011 Greg Kurz
<gkurz@fr.ibm.com
> - 0.7.5.1
168 - fix installed files
for rpmbuild
169 - introduce lxc
-libs package
171 * Fri Jul
23 2010 Daniel Lezcano
<dlezcano@fr.ibm.com
> - 0.7.2
172 - set attribute
for installed files
173 - fix libraries installation
175 * Tue Mar
24 2009 Daniel Lezcano
<daniel.lezcano@free.fr
> - 0.6.1
176 - Removed capability setting
, let the user to
do that through "lxc
-setcap"
178 * Mon Feb
16 2009 Daniel Lezcano
<daniel.lezcano@free.fr
> - 0.6.0
179 - Added more capabilities to the executables
181 * Sun Jan
25 2009 Daniel Lezcano
<daniel.lezcano@free.fr
> - 0.6.0
184 * Sun Aug
3 2008 Daniel Lezcano
<dlezcano@fr.ibm.com
> - 0.1.0
185 - Initial RPM release.