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