]> git.proxmox.com Git - mirror_lxc.git/blame - lxc.spec.in
Exit instead of returning in the child processes, otherwise the execution
[mirror_lxc.git] / lxc.spec.in
CommitLineData
5e97c3fc 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%define _unpackaged_files_terminate_build 0
24
25%define RELEASE 1
26%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE: %RELEASE}
27
28#
29# Arguments that can be passed to the rpm builder:
30#
31# --define 'confargs <extra args to configure args>' (def. '')
32#
33
34%{!?confargs: %{expand:%%define confargs ''}}
35
36# What kernel are we building for?
37%{!?kernel: %{expand:%%define kernel %(uname -r)}}
38
39%define _prefix /usr
40
41Name: @PACKAGE@
42Version: @VERSION@
43Release: %{rel}
44Packager: <dlezcano@fr.ibm.com>
45URL: http://lxc.sourceforge.net
46Summary: %name
47Group: Applications/System
48License: LGPL
49Source: %name/%name-%version.tar.gz
50BuildRoot: %_tmppath/%name-%version-root
51
52%description
53%name is a set of command line to manage containers
54
55%package devel
56Release: %{rel}
57Summary: development library for %{name}
58Group: Application/System
59
60%description devel
61The %{name}-devel package contains header files and library needed for development
62of containers
63
64%prep
65%setup -q
66
67%build
68%configure $args
69
70ncpus=`egrep -c "^cpu[0-9]+" /proc/stat || :`
71make -j$ncpus
72
73%install
74rm -rf %{buildroot}
75%makeinstall
76
77%clean
78rm -rf %{buildroot}
79
80%post
81
82%files
83%defattr(-,root,root)
84%{_sysconfdir}/%{name}/*
c2cc9f0a 85%{_libdir}/*.so*
5e97c3fc 86%{_bindir}/*
87
88%files devel
89%defattr(-,root,root)
90%{_includedir}/%{name}/*
91%{_libdir}/*.a
92
c2cc9f0a 93%post devel
c2cc9f0a 94
5e97c3fc 95%changelog
b4915399 96
e704563b 97* Thu Oct 9 2008 Daniel Lezcano <dlezcano@fr.ibm.com> - Version 0;3.0
98- Added checkpoint/restart API and CLI
99- Added cgroup support
100- Misc fixes - Details in Changelog file
101
c79ea89b 102* Wed Sep 10 2008 Daniel Lezcano <dlezcano@fr.ibm.com> - Version 0.2.1
103- Added lxc-wait command line
104- Added tty support for lxc-start
105- Fixed rootfs absolute directory
106- Improved system containers
107
b4915399 108* Fri Sep 5 2008 Daniel Lezcano <dlezcano@fr.ibm.com> - Version 0.2.0
109- Fix typos in README
110- Added empty container configuration
111- Added empty network container configuration
112- Added bind option for mount configuration
113- Merged lxc and liblxc directories
114- Changed monitoring mechanism
115- Fixed child process should exit instead of returning on error
116- Fixed lxc.h headers can be included in C++ code
117- A lot of code cleanup and improvements
118
119* Sun Aug 3 2008 Daniel Lezcano <dlezcano@fr.ibm.com> - Version 0.1.0
5e97c3fc 120- Initial RPM release.
121
122# Local variables:
123# mode: shell-script
124# sh-shell: rpm
125# end: