]>
Commit | Line | Data |
---|---|---|
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 | ||
5e97c3fc | 23 | Name: @PACKAGE@ |
24 | Version: @VERSION@ | |
cef07149 | 25 | Release: 1 |
5e97c3fc | 26 | URL: http://lxc.sourceforge.net |
cef07149 | 27 | Source: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz |
28 | Summary: %{name} : Linux Container | |
5e97c3fc | 29 | Group: Applications/System |
30 | License: LGPL | |
cef07149 | 31 | BuildRoot: %{_tmppath}/%{name}-%{version}-build |
32 | Requires: libcap | |
33 | BuildRequires: libcap libcap-devel docbook-utils | |
5e97c3fc | 34 | |
35 | %description | |
805415fc | 36 | |
cef07149 | 37 | The package "%{name}" provides the command lines to create and manage |
805415fc | 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. | |
5e97c3fc | 46 | |
1c41ddcb GK |
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 | ||
5e97c3fc | 54 | %package devel |
cef07149 | 55 | Release: 1 |
5e97c3fc | 56 | Summary: development library for %{name} |
cef07149 | 57 | Group: Development/Libraries |
5e97c3fc | 58 | |
59 | %description devel | |
805415fc | 60 | The %{name}-devel package contains header files and library needed for |
cef07149 | 61 | development of the linux containers. |
5e97c3fc | 62 | |
63 | %prep | |
cef07149 | 64 | %setup |
5e97c3fc | 65 | %build |
dfb8f06a | 66 | test "%{ksrc}" != "none" && args="--with-linuxdir=%{ksrc}" |
1c41ddcb | 67 | PATH=$PATH:/usr/sbin:/sbin %configure $args --disable-rpath |
cef07149 | 68 | make %{?_smp_mflags} |
5e97c3fc | 69 | |
70 | %install | |
cef07149 | 71 | %makeinstall |
72 | ||
73 | find $RPM_BUILD_ROOT -type f -name '*.la' -exec rm -f {} ';' | |
805415fc | 74 | |
5e97c3fc | 75 | %clean |
76 | rm -rf %{buildroot} | |
77 | ||
cef07149 | 78 | %post |
805415fc | 79 | |
5e97c3fc | 80 | %files |
81 | %defattr(-,root,root) | |
5e97c3fc | 82 | %{_bindir}/* |
5da9e545 DL |
83 | %attr(4111,root,root) %{_bindir}/lxc-attach |
84 | %attr(4111,root,root) %{_bindir}/lxc-create | |
be8b5972 | 85 | %attr(4111,root,root) %{_bindir}/lxc-clone |
5da9e545 DL |
86 | %attr(4111,root,root) %{_bindir}/lxc-start |
87 | %attr(4111,root,root) %{_bindir}/lxc-netstat | |
88 | %attr(4111,root,root) %{_bindir}/lxc-unshare | |
89 | %attr(4111,root,root) %{_bindir}/lxc-execute | |
90 | %attr(4111,root,root) %{_bindir}/lxc-checkpoint | |
91 | %attr(4111,root,root) %{_bindir}/lxc-restart | |
d823d5b9 | 92 | %{_mandir}/* |
411c76ce | 93 | %{_datadir}/doc/* |
5e97c3fc | 94 | |
1c41ddcb GK |
95 | %files libs |
96 | %defattr(-,root,root) | |
97 | %{_libdir}/*.so.* | |
98 | %{_libdir}/%{name} | |
99 | %attr(4555,root,root) %{_libdir}/%{name}/lxc-init | |
100 | ||
5e97c3fc | 101 | %files devel |
102 | %defattr(-,root,root) | |
103 | %{_includedir}/%{name}/* | |
1c41ddcb GK |
104 | %{_libdir}/*.so |
105 | %{_datadir}/pkgconfig/* | |
5e97c3fc | 106 | |
107 | %changelog | |
1c41ddcb GK |
108 | * Thu Sep 8 2011 Greg Kurz <gkurz@fr.ibm.com> - Version 0.7.5.1 |
109 | - fix installed files for rpmbuild | |
110 | - introduce lxc-libs package | |
b4915399 | 111 | |
7ef6e440 DL |
112 | * Fri Jul 23 2010 Daniel Lezcano <dlezcano@fr.ibm.com> - Version 0.7.2 |
113 | - set attribute for installed files | |
114 | - fix libraries installation | |
7ef6e440 | 115 | |
237315ff DL |
116 | * Mon Mar 24 2009 Daniel Lezcano <daniel.lezcano@free.fr> - Version 0.6.1 |
117 | - Removed capability setting, let the user to do that through "lxc-setcap" | |
118 | ||
44931bc7 | 119 | * Mon Feb 16 2009 Daniel Lezcano <daniel.lezcano@free.fr> - Version 0.6.0 |
120 | - Added more capabilities to the executables | |
121 | ||
cef07149 | 122 | * Sun Jan 25 2009 Daniel Lezcano <daniel.lezcano@free.fr> - Version 0.6.0 |
123 | - Reduced spec file | |
124 | ||
b4915399 | 125 | * Sun Aug 3 2008 Daniel Lezcano <dlezcano@fr.ibm.com> - Version 0.1.0 |
5e97c3fc | 126 | - Initial RPM release. |
127 | ||
128 | # Local variables: | |
129 | # mode: shell-script | |
130 | # sh-shell: rpm | |
131 | # end: |