]>
Commit | Line | Data |
---|---|---|
0886a606 AM |
1 | Summary: Linux Container Tools |
2 | Name: lxc | |
3 | Version: 0.4.0 | |
4 | Release: 1 | |
5 | License: GPL | |
6 | Group: Base | |
7 | Source0: http://dl.sourceforge.net/lxc/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: 327f0e700858ab5b916aa36517680256 | |
9 | URL: http://sourceforge.net/projects/lxc | |
10 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
11 | ||
12 | %description | |
13 | Tools to create and manage containers. It contains a full featured | |
14 | container with the isolation / virtualization of the pids, the ipc, | |
15 | the utsname, the mount points, /proc, /sys, the network and it takes | |
16 | into account the control groups. It is very light, flexible, and | |
17 | provides a set of tools around the container like the monitoring with | |
18 | asynchronous events notification, or the freeze of the container. This | |
19 | package is useful to create Virtual Private Server, or to run isolated | |
20 | applications like bash or sshd. | |
21 | ||
22 | %package devel | |
23 | Summary: Header files and develpment documentation for lxc | |
24 | Group: Development/Libraries | |
25 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
26 | ||
27 | %description devel | |
28 | lxc development files. | |
29 | ||
30 | %package static | |
31 | Summary: Static lxc library | |
32 | Group: Development/Libraries | |
33 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
34 | ||
35 | %description static | |
36 | Static lxc library. | |
37 | ||
38 | %prep | |
39 | %setup -q | |
40 | ||
41 | %build | |
42 | %configure | |
43 | ||
44 | %{__make} | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %{__make} install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %post -p /sbin/ldconfig | |
56 | %postun -p /sbin/ldconfig | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc AUTHORS ChangeLog README etc/*.conf etc/*-config | |
61 | %attr(755,root,root) %{_bindir}/* | |
62 | %attr(755,root,root) %{_libdir}/liblxc-*.so | |
63 | %dir %{_sysconfdir}/lxc | |
64 | ||
65 | %files devel | |
66 | %defattr(644,root,root,755) | |
67 | %{_includedir}/lxc | |
68 | %attr(755,root,root) %{_libdir}/liblxc.so | |
69 | %{_libdir}/lib*.la | |
70 | ||
71 | %files static | |
72 | %defattr(644,root,root,755) | |
73 | %{_libdir}/lib*.a |