]> git.proxmox.com Git - mirror_lxc.git/blob - lxc.spec.in
Add distro config file /etc/lxc/lxc.conf
[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
33 BuildRequires: libcap libcap-devel docbook-utils
34
35 %description
36
37 The package "%{name}" provides the command lines to create and manage
38 containers. It contains a full featured container with the isolation
39 / virtualization of the pids, the ipc, the utsname, the mount points,
40 /proc, /sys, the network and it takes into account the control groups.
41 It is very light, flexible, and provides a set of tools around the
42 container like the monitoring with asynchronous events notification,
43 or the freeze of the container. This package is useful to create
44 Virtual Private Server, or to run isolated applications like bash or
45 sshd.
46
47 %package libs
48 Summary: runtime library files for %{name}
49 Group: System Environment/Libraries
50
51 %description libs
52 The %{name}-libs package contains libraries for running %{name} applications.
53
54 %package devel
55 Summary: development library for %{name}
56 Group: Development/Libraries
57
58 %description devel
59 The %{name}-devel package contains header files and library needed for
60 development of the linux containers.
61
62 %prep
63 %setup
64 %build
65 PATH=$PATH:/usr/sbin:/sbin %configure $args --disable-rpath
66 make %{?_smp_mflags}
67
68 %install
69 rm -rf %{buildroot}
70 make install DESTDIR=%{buildroot}
71 find %{buildroot} -type f -name '*.la' -exec rm -f {} ';'
72
73 %clean
74 rm -rf %{buildroot}
75
76 %post
77
78 %files
79 %defattr(-,root,root)
80 %{_bindir}/*
81 %attr(4111,root,root) %{_bindir}/lxc-attach
82 %attr(4111,root,root) %{_bindir}/lxc-create
83 %attr(4111,root,root) %{_bindir}/lxc-clone
84 %attr(4111,root,root) %{_bindir}/lxc-shutdown
85 %attr(4111,root,root) %{_bindir}/lxc-start
86 %attr(4111,root,root) %{_bindir}/lxc-netstat
87 %attr(4111,root,root) %{_bindir}/lxc-unshare
88 %attr(4111,root,root) %{_bindir}/lxc-execute
89 %attr(4111,root,root) %{_bindir}/lxc-checkpoint
90 %attr(4111,root,root) %{_bindir}/lxc-restart
91 %{_mandir}/*
92 %{_datadir}/doc/*
93 %{_datadir}/lxc/*
94 %{_sysconfdir}/lxc/*
95
96 %files libs
97 %defattr(-,root,root)
98 %{_libdir}/*.so.*
99 %{_libdir}/%{name}
100 %attr(4555,root,root) %{_libexecdir}/%{name}/lxc-init
101
102 %files devel
103 %defattr(-,root,root)
104 %{_includedir}/%{name}/*
105 %{_libdir}/*.so
106 %{_libdir}/pkgconfig/*
107
108 %changelog
109 * Mon Sep 10 2012 Dwight Engen <dwight.engen@oracle.com> - Version 0.8.0
110 - fix lxc-init moved to libexec
111 - .pc moved to _libdir
112 - package template files /usr/share/lxc/templates
113
114 * Thu Sep 8 2011 Greg Kurz <gkurz@fr.ibm.com> - Version 0.7.5.1
115 - fix installed files for rpmbuild
116 - introduce lxc-libs package
117
118 * Fri Jul 23 2010 Daniel Lezcano <dlezcano@fr.ibm.com> - Version 0.7.2
119 - set attribute for installed files
120 - fix libraries installation
121
122 * Mon Mar 24 2009 Daniel Lezcano <daniel.lezcano@free.fr> - Version 0.6.1
123 - Removed capability setting, let the user to do that through "lxc-setcap"
124
125 * Mon Feb 16 2009 Daniel Lezcano <daniel.lezcano@free.fr> - Version 0.6.0
126 - Added more capabilities to the executables
127
128 * Sun Jan 25 2009 Daniel Lezcano <daniel.lezcano@free.fr> - Version 0.6.0
129 - Reduced spec file
130
131 * Sun Aug 3 2008 Daniel Lezcano <dlezcano@fr.ibm.com> - Version 0.1.0
132 - Initial RPM release.
133
134 # Local variables:
135 # mode: shell-script
136 # sh-shell: rpm
137 # end: