]> git.proxmox.com Git - mirror_lxc.git/blob - lxc.spec.in
9fbd6b0f62c61f14f46c1355075795011cdbae62
[mirror_lxc.git] / lxc.spec.in
1 #
2 # lxc: linux Container library
3 #
4 # (C) Copyright IBM Corp. 2007, 2008
5 #
6 # Authors:
7 # Daniel Lezcano <dlezcano at fr.ibm.com>
8 #
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.
13 #
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.
18 #
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
23 Name: @PACKAGE@
24 Version: @VERSION@
25 Release: 1%{?dist}
26 URL: http://lxc.sourceforge.net
27 Source: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz
28 Summary: %{name} : Linux Container
29 Group: Applications/System
30 License: LGPL
31 BuildRoot: %{_tmppath}/%{name}-%{version}-build
32 Requires: libcap openssl rsync
33 BuildRequires: libcap libcap-devel docbook2X
34
35 %define with_python %{?_with_python: 1} %{?!_with_python: 0}
36 %if %{with_python}
37 Requires: python3
38 BuildRequires: python3-devel
39 %endif
40
41 %define with_lua %{?_with_lua: 1} %{?!_with_lua: 0}
42 %if %{with_lua}
43 Requires: lua-filesystem
44 BuildRequires: lua-devel
45 %endif
46
47 %description
48
49 The package "%{name}" provides the command lines to create and manage
50 containers. It contains a full featured container with the isolation
51 / virtualization of the pids, the ipc, the utsname, the mount points,
52 /proc, /sys, the network and it takes into account the control groups.
53 It is very light, flexible, and provides a set of tools around the
54 container like the monitoring with asynchronous events notification,
55 or the freeze of the container. This package is useful to create
56 Virtual Private Server, or to run isolated applications like bash or
57 sshd.
58
59 %package libs
60 Summary: runtime library files for %{name}
61 Group: System Environment/Libraries
62
63 %description libs
64 The %{name}-libs package contains libraries for running %{name} applications.
65
66 %package devel
67 Summary: development library for %{name}
68 Group: Development/Libraries
69
70 %description devel
71 The %{name}-devel package contains header files and library needed for
72 development of the linux containers.
73
74 %prep
75 %setup
76 %build
77 PATH=$PATH:/usr/sbin:/sbin %configure $args \
78 %if %{with_lua}
79 --enable-lua \
80 %endif
81 %if %{with_python}
82 --enable-python \
83 %endif
84 --disable-rpath
85 make %{?_smp_mflags}
86
87 %install
88 rm -rf %{buildroot}
89 make install DESTDIR=%{buildroot}
90 find %{buildroot} -type f -name '*.la' -exec rm -f {} ';'
91
92 %clean
93 rm -rf %{buildroot}
94
95 %post
96
97 %files
98 %defattr(-,root,root)
99 %{_bindir}/*
100 %attr(4111,root,root) %{_bindir}/lxc-attach
101 %attr(4111,root,root) %{_bindir}/lxc-create
102 %attr(4111,root,root) %{_bindir}/lxc-clone
103 %attr(4111,root,root) %{_bindir}/lxc-shutdown
104 %attr(4111,root,root) %{_bindir}/lxc-start
105 %attr(4111,root,root) %{_bindir}/lxc-netstat
106 %attr(4111,root,root) %{_bindir}/lxc-unshare
107 %attr(4111,root,root) %{_bindir}/lxc-execute
108 %attr(4111,root,root) %{_bindir}/lxc-checkpoint
109 %attr(4111,root,root) %{_bindir}/lxc-restart
110 %{_mandir}/*
111 %{_datadir}/doc/*
112 %{_datadir}/lxc/*
113 %{_sysconfdir}/lxc/*
114
115 %files libs
116 %defattr(-,root,root)
117 %{_libdir}/*.so.*
118 %{_libdir}/%{name}
119 %if %{with_lua}
120 %{_datadir}/lua
121 %{_libdir}/lua
122 %endif
123 %if %{with_python}
124 %{_libdir}/python*
125 %endif
126 %{_localstatedir}/*
127 %attr(4555,root,root) %{_libexecdir}/%{name}/lxc-init
128
129 %files devel
130 %defattr(-,root,root)
131 %{_includedir}/%{name}/*
132 %{_libdir}/*.so
133 %{_libdir}/pkgconfig/*
134
135 %changelog
136 * Mon Sep 10 2012 Dwight Engen <dwight.engen@oracle.com> - Version 0.8.0
137 - fix lxc-init moved to libexec
138 - .pc moved to _libdir
139 - package template files /usr/share/lxc/templates
140
141 * Thu Sep 8 2011 Greg Kurz <gkurz@fr.ibm.com> - Version 0.7.5.1
142 - fix installed files for rpmbuild
143 - introduce lxc-libs package
144
145 * Fri Jul 23 2010 Daniel Lezcano <dlezcano@fr.ibm.com> - Version 0.7.2
146 - set attribute for installed files
147 - fix libraries installation
148
149 * Mon Mar 24 2009 Daniel Lezcano <daniel.lezcano@free.fr> - Version 0.6.1
150 - Removed capability setting, let the user to do that through "lxc-setcap"
151
152 * Mon Feb 16 2009 Daniel Lezcano <daniel.lezcano@free.fr> - Version 0.6.0
153 - Added more capabilities to the executables
154
155 * Sun Jan 25 2009 Daniel Lezcano <daniel.lezcano@free.fr> - Version 0.6.0
156 - Reduced spec file
157
158 * Sun Aug 3 2008 Daniel Lezcano <dlezcano@fr.ibm.com> - Version 0.1.0
159 - Initial RPM release.
160
161 # Local variables:
162 # mode: shell-script
163 # sh-shell: rpm
164 # end: