1 # TODO: FHS (/var/lxc -> /var/lib/lxc)
2 Summary: Linux Container Tools
8 Source0: http://dl.sourceforge.net/lxc/%{name}-%{version}.tar.gz
9 # Source0-md5: 327f0e700858ab5b916aa36517680256
10 URL: http://sourceforge.net/projects/lxc
11 BuildRequires: autoconf
12 BuildRequires: automake
13 BuildRequires: libtool
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
27 Summary: Header files and develpment documentation for lxc
28 Group: Development/Libraries
29 Requires: %{name} = %{epoch}:%{version}-%{release}
32 lxc development files.
35 Summary: Static lxc library
36 Group: Development/Libraries
37 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
44 sed -i -e 's#^lxcpath=.*#lxcpath=/var/lxc#g' src/lxc/Makefile.am
56 rm -rf $RPM_BUILD_ROOT
59 DESTDIR=$RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT/var/lxc
64 rm -rf $RPM_BUILD_ROOT
66 %post -p /sbin/ldconfig
67 %postun -p /sbin/ldconfig
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
78 %defattr(644,root,root,755)
80 %attr(755,root,root) %{_libdir}/liblxc.so
84 %defattr(644,root,root,755)