]>
Commit | Line | Data |
---|---|---|
0886a606 AM |
1 | Summary: Linux Container Tools |
2 | Name: lxc | |
a3918b69 | 3 | Version: 0.7.2 |
0886a606 AM |
4 | Release: 1 |
5 | License: GPL | |
6 | Group: Base | |
7 | Source0: http://dl.sourceforge.net/lxc/%{name}-%{version}.tar.gz | |
a3918b69 | 8 | # Source0-md5: 5c9c6889ba1255217078ea5d1aaf0c82 |
670230e8 | 9 | URL: http://lxc.sourceforge.net |
e2e45f68 AM |
10 | BuildRequires: autoconf |
11 | BuildRequires: automake | |
e5afa52e | 12 | BuildRequires: docbook-dtd30-sgml |
13 | BuildRequires: docbook-utils | |
4e32c712 | 14 | BuildRequires: libcap-devel |
e2e45f68 | 15 | BuildRequires: libtool |
0886a606 AM |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
e5afa52e | 18 | %define configpath /var/lib/lxc |
19 | ||
0886a606 AM |
20 | %description |
21 | Tools to create and manage containers. It contains a full featured | |
22 | container with the isolation / virtualization of the pids, the ipc, | |
23 | the utsname, the mount points, /proc, /sys, the network and it takes | |
24 | into account the control groups. It is very light, flexible, and | |
25 | provides a set of tools around the container like the monitoring with | |
26 | asynchronous events notification, or the freeze of the container. This | |
27 | package is useful to create Virtual Private Server, or to run isolated | |
28 | applications like bash or sshd. | |
29 | ||
30 | %package devel | |
31 | Summary: Header files and develpment documentation for lxc | |
32 | Group: Development/Libraries | |
33 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
34 | ||
35 | %description devel | |
36 | lxc development files. | |
37 | ||
0886a606 AM |
38 | %prep |
39 | %setup -q | |
40 | ||
41 | %build | |
e2e45f68 | 42 | %{__libtoolize} |
1476741b | 43 | %{__aclocal} -I config |
e2e45f68 AM |
44 | %{__autoconf} |
45 | %{__automake} | |
e5afa52e | 46 | %configure \ |
47 | --with-config-path=%{configpath} | |
0886a606 AM |
48 | |
49 | %{__make} | |
e5afa52e | 50 | %{__make} -C doc |
0886a606 AM |
51 | |
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %{__make} install \ | |
e5afa52e | 56 | DESTDIR=$RPM_BUILD_ROOT \ |
57 | pcdatadir=%{_pkgconfigdir} | |
58 | %{__make} -C doc install \ | |
0886a606 | 59 | DESTDIR=$RPM_BUILD_ROOT |
e5afa52e | 60 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc |
0886a606 | 61 | |
e5afa52e | 62 | install -d $RPM_BUILD_ROOT%{configpath} |
e2e45f68 | 63 | |
0886a606 AM |
64 | %clean |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %post -p /sbin/ldconfig | |
68 | %postun -p /sbin/ldconfig | |
69 | ||
70 | %files | |
71 | %defattr(644,root,root,755) | |
70f9d22b | 72 | %doc AUTHORS ChangeLog CONTRIBUTING MAINTAINERS README TODO doc/FAQ.txt doc/examples/*.conf |
0886a606 | 73 | %attr(755,root,root) %{_bindir}/* |
e5afa52e | 74 | %attr(755,root,root) %{_libdir}/liblxc.so.*.*.* |
75 | %attr(755,root,root) %ghost %{_libdir}/liblxc.so.0 | |
70f9d22b | 76 | %{_libdir}/lxc/rootfs/README |
e5afa52e | 77 | %{_mandir}/man?/lxc* |
78 | %dir %{configpath} | |
70f9d22b | 79 | %dir %{_libdir}/lxc |
80 | %dir %{_libdir}/lxc/templates | |
81 | %dir %{_libdir}/lxc/rootfs | |
82 | %attr(755,root,root) %{_libdir}/lxc/lxc-init | |
83 | %attr(755,root,root) %{_libdir}/lxc/templates/lxc-* | |
0886a606 AM |
84 | |
85 | %files devel | |
86 | %defattr(644,root,root,755) | |
87 | %{_includedir}/lxc | |
88 | %attr(755,root,root) %{_libdir}/liblxc.so | |
e5afa52e | 89 | %{_pkgconfigdir}/lxc.pc |