]>
Commit | Line | Data |
---|---|---|
5e97c3fc | 1 | # |
2 | # lxc: linux Container library | |
3 | # | |
4 | # (C) Copyright IBM Corp. 2007, 2008 | |
5 | # | |
6 | # Authors: | |
9afe19d6 | 7 | # Daniel Lezcano <daniel.lezcano at free.fr> |
5e97c3fc | 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 | |
250b1eec | 21 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
5e97c3fc | 22 | |
0adde0f8 DE |
23 | %global with_python %{?_with_python: 1} %{?!_with_python: 0} |
24 | %global with_lua %{?_with_lua: 1} %{?!_with_lua: 0} | |
25 | ||
5e97c3fc | 26 | Name: @PACKAGE@ |
27 | Version: @VERSION@ | |
c4b697f2 | 28 | Release: 1%{?dist} |
07520b2a SG |
29 | URL: http://linuxcontainers.org |
30 | Source: http://linuxcontainers.org/downloads/%{name}-%{version}.tar.gz | |
0adde0f8 | 31 | Summary: Linux Containers userspace tools |
5e97c3fc | 32 | Group: Applications/System |
0adde0f8 | 33 | License: LGPLv2+ |
cef07149 | 34 | BuildRoot: %{_tmppath}/%{name}-%{version}-build |
0adde0f8 | 35 | Requires: openssl rsync |
f6a8db2d | 36 | BuildRequires: libcap libcap-devel docbook2X |
5e97c3fc | 37 | |
ce951132 DE |
38 | %if %{with_python} |
39 | Requires: python3 | |
40 | BuildRequires: python3-devel | |
41 | %endif | |
42 | ||
5e97c3fc | 43 | %description |
0adde0f8 DE |
44 | Containers are insulated areas inside a system, which have their own namespace |
45 | for filesystem, network, PID, IPC, CPU and memory allocation and which can be | |
46 | created using the Control Group and Namespace features included in the Linux | |
47 | kernel. | |
48 | ||
49 | This package provides the lxc-* tools, which can be used to start a single | |
50 | daemon in a container, or to boot an entire "containerized" system, and to | |
51 | manage and debug your containers. | |
52 | ||
53 | %package libs | |
54 | Summary: Shared library files for %{name} | |
55 | Group: System Environment/Libraries | |
56 | %description libs | |
1c41ddcb GK |
57 | The %{name}-libs package contains libraries for running %{name} applications. |
58 | ||
0adde0f8 DE |
59 | %package devel |
60 | Summary: Development library for %{name} | |
61 | Group: Development/Libraries | |
62 | Requires: %{name} = %{version}-%{release}, pkgconfig | |
63 | %description devel | |
805415fc | 64 | The %{name}-devel package contains header files and library needed for |
0adde0f8 DE |
65 | development of the Linux containers. |
66 | ||
67 | %if %{with_lua} | |
68 | %package lua | |
69 | Summary: Lua bindings for %{name} | |
70 | Group: System Environment/Libraries | |
71 | Requires: lua-filesystem | |
72 | BuildRequires: lua-devel | |
73 | %description lua | |
74 | The %{name}-lua package contains %{name} bindings for lua. | |
75 | %endif | |
5e97c3fc | 76 | |
77 | %prep | |
0adde0f8 | 78 | %setup -q |
5e97c3fc | 79 | %build |
ce951132 | 80 | PATH=$PATH:/usr/sbin:/sbin %configure $args \ |
f080ffd7 DE |
81 | %if %{with_lua} |
82 | --enable-lua \ | |
83 | %endif | |
ce951132 DE |
84 | %if %{with_python} |
85 | --enable-python \ | |
86 | %endif | |
87 | --disable-rpath | |
cef07149 | 88 | make %{?_smp_mflags} |
5e97c3fc | 89 | |
90 | %install | |
b9cb4325 DE |
91 | rm -rf %{buildroot} |
92 | make install DESTDIR=%{buildroot} | |
93 | find %{buildroot} -type f -name '*.la' -exec rm -f {} ';' | |
805415fc | 94 | |
5e97c3fc | 95 | %clean |
96 | rm -rf %{buildroot} | |
97 | ||
cef07149 | 98 | %post |
0adde0f8 DE |
99 | %post libs -p /sbin/ldconfig |
100 | %postun libs -p /sbin/ldconfig | |
805415fc | 101 | |
5e97c3fc | 102 | %files |
103 | %defattr(-,root,root) | |
5e97c3fc | 104 | %{_bindir}/* |
5da9e545 DL |
105 | %attr(4111,root,root) %{_bindir}/lxc-attach |
106 | %attr(4111,root,root) %{_bindir}/lxc-create | |
be8b5972 | 107 | %attr(4111,root,root) %{_bindir}/lxc-clone |
5da9e545 DL |
108 | %attr(4111,root,root) %{_bindir}/lxc-start |
109 | %attr(4111,root,root) %{_bindir}/lxc-netstat | |
110 | %attr(4111,root,root) %{_bindir}/lxc-unshare | |
111 | %attr(4111,root,root) %{_bindir}/lxc-execute | |
112 | %attr(4111,root,root) %{_bindir}/lxc-checkpoint | |
113 | %attr(4111,root,root) %{_bindir}/lxc-restart | |
0adde0f8 DE |
114 | %{_mandir}/man1/lxc* |
115 | %{_mandir}/man5/lxc* | |
116 | %{_mandir}/man7/lxc* | |
117 | %{_mandir}/ja/man1/lxc* | |
118 | %{_mandir}/ja/man5/lxc* | |
119 | %{_mandir}/ja/man7/lxc* | |
411c76ce | 120 | %{_datadir}/doc/* |
b9cb4325 | 121 | %{_datadir}/lxc/* |
0adde0f8 | 122 | %config(noreplace) %{_sysconfdir}/lxc/* |
5e97c3fc | 123 | |
1c41ddcb GK |
124 | %files libs |
125 | %defattr(-,root,root) | |
126 | %{_libdir}/*.so.* | |
127 | %{_libdir}/%{name} | |
ce951132 DE |
128 | %if %{with_python} |
129 | %{_libdir}/python* | |
130 | %endif | |
7323456e | 131 | %{_localstatedir}/* |
b9cb4325 | 132 | %attr(4555,root,root) %{_libexecdir}/%{name}/lxc-init |
1c41ddcb | 133 | |
0adde0f8 DE |
134 | %if %{with_lua} |
135 | %files lua | |
136 | %defattr(-,root,root) | |
137 | %{_datadir}/lua | |
138 | %{_libdir}/lua | |
139 | %endif | |
140 | ||
5e97c3fc | 141 | %files devel |
142 | %defattr(-,root,root) | |
143 | %{_includedir}/%{name}/* | |
1c41ddcb | 144 | %{_libdir}/*.so |
b9cb4325 | 145 | %{_libdir}/pkgconfig/* |
5e97c3fc | 146 | |
147 | %changelog | |
0adde0f8 DE |
148 | * Tue Oct 22 2013 Dwight Engen <dwight.engen@oracle.com> - 1.0.0-0.1.alpha2 |
149 | - fix some rpmlint warnings/errors | |
150 | - split lua bits into seperate package | |
151 | ||
152 | * Mon Sep 10 2012 Dwight Engen <dwight.engen@oracle.com> - 0.8.0 | |
b9cb4325 DE |
153 | - fix lxc-init moved to libexec |
154 | - .pc moved to _libdir | |
155 | - package template files /usr/share/lxc/templates | |
156 | ||
0adde0f8 | 157 | * Thu Sep 8 2011 Greg Kurz <gkurz@fr.ibm.com> - 0.7.5.1 |
1c41ddcb GK |
158 | - fix installed files for rpmbuild |
159 | - introduce lxc-libs package | |
b4915399 | 160 | |
0adde0f8 | 161 | * Fri Jul 23 2010 Daniel Lezcano <dlezcano@fr.ibm.com> - 0.7.2 |
7ef6e440 DL |
162 | - set attribute for installed files |
163 | - fix libraries installation | |
7ef6e440 | 164 | |
0adde0f8 | 165 | * Mon Mar 24 2009 Daniel Lezcano <daniel.lezcano@free.fr> - 0.6.1 |
237315ff DL |
166 | - Removed capability setting, let the user to do that through "lxc-setcap" |
167 | ||
0adde0f8 | 168 | * Mon Feb 16 2009 Daniel Lezcano <daniel.lezcano@free.fr> - 0.6.0 |
44931bc7 | 169 | - Added more capabilities to the executables |
170 | ||
0adde0f8 | 171 | * Sun Jan 25 2009 Daniel Lezcano <daniel.lezcano@free.fr> - 0.6.0 |
cef07149 | 172 | - Reduced spec file |
173 | ||
0adde0f8 | 174 | * Sun Aug 3 2008 Daniel Lezcano <dlezcano@fr.ibm.com> - 0.1.0 |
5e97c3fc | 175 | - Initial RPM release. |
176 | ||
177 | # Local variables: | |
178 | # mode: shell-script | |
179 | # sh-shell: rpm | |
180 | # end: |