]>
Commit | Line | Data |
---|---|---|
0886a606 AM |
1 | Summary: Linux Container Tools |
2 | Name: lxc | |
dc9a5b3b | 3 | Version: 0.9.0 |
a859d7b5 | 4 | Release: 1 |
0886a606 AM |
5 | License: GPL |
6 | Group: Base | |
a859d7b5 AS |
7 | Source0: http://lxc.sourceforge.net/download/lxc/%{name}-%{version}.tar.gz |
8 | # Source0-md5: 8552a4479090616f4bc04d8473765fc9 | |
33aee790 | 9 | Patch0: %{name}-devpts.patch |
670230e8 | 10 | URL: http://lxc.sourceforge.net |
e5afa52e | 11 | BuildRequires: docbook-dtd30-sgml |
12 | BuildRequires: docbook-utils | |
4e32c712 | 13 | BuildRequires: libcap-devel |
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 | 37 | %prep |
a859d7b5 | 38 | %setup -q -n %{name}-%{version} |
33aee790 | 39 | %patch0 -p1 |
0886a606 AM |
40 | |
41 | %build | |
e5afa52e | 42 | %configure \ |
43 | --with-config-path=%{configpath} | |
0886a606 AM |
44 | |
45 | %{__make} | |
e5afa52e | 46 | %{__make} -C doc |
0886a606 AM |
47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %{__make} install \ | |
e5afa52e | 52 | DESTDIR=$RPM_BUILD_ROOT \ |
53 | pcdatadir=%{_pkgconfigdir} | |
33aee790 | 54 | |
e5afa52e | 55 | %{__make} -C doc install \ |
0886a606 | 56 | DESTDIR=$RPM_BUILD_ROOT |
33aee790 JR |
57 | |
58 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/doc | |
0886a606 | 59 | |
e5afa52e | 60 | install -d $RPM_BUILD_ROOT%{configpath} |
e2e45f68 | 61 | |
0886a606 AM |
62 | %clean |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %post -p /sbin/ldconfig | |
66 | %postun -p /sbin/ldconfig | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
dc9a5b3b | 70 | %doc AUTHORS ChangeLog CONTRIBUTING MAINTAINERS README TODO doc/FAQ.txt doc/examples/*.conf |
0886a606 | 71 | %attr(755,root,root) %{_bindir}/* |
e5afa52e | 72 | %attr(755,root,root) %{_libdir}/liblxc.so.*.*.* |
73 | %attr(755,root,root) %ghost %{_libdir}/liblxc.so.0 | |
70f9d22b | 74 | %{_libdir}/lxc/rootfs/README |
e5afa52e | 75 | %dir %{configpath} |
70f9d22b | 76 | %dir %{_libdir}/lxc |
70f9d22b | 77 | %dir %{_libdir}/lxc/rootfs |
78 | %attr(755,root,root) %{_libdir}/lxc/lxc-init | |
dc9a5b3b A |
79 | %dir %{_sysconfdir}/lxc |
80 | %config(noreplace) %{_sysconfdir}/lxc/default.conf | |
81 | %{_datadir}/lxc | |
0886a606 AM |
82 | |
83 | %files devel | |
84 | %defattr(644,root,root,755) | |
85 | %{_includedir}/lxc | |
86 | %attr(755,root,root) %{_libdir}/liblxc.so | |
e5afa52e | 87 | %{_pkgconfigdir}/lxc.pc |