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