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: eb4e14c2d58663f5ebcd6cd3d6a61fe6
10 Patch0: %{name}-ldflags.patch
11 URL: http://sourceforge.net/projects/lxc
12 BuildRequires: autoconf
13 BuildRequires: automake
14 BuildRequires: libtool
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Tools to create and manage containers. It contains a full featured
19 container with the isolation / virtualization of the pids, the ipc,
20 the utsname, the mount points, /proc, /sys, the network and it takes
21 into account the control groups. It is very light, flexible, and
22 provides a set of tools around the container like the monitoring with
23 asynchronous events notification, or the freeze of the container. This
24 package is useful to create Virtual Private Server, or to run isolated
25 applications like bash or sshd.
28 Summary: Header files and develpment documentation for lxc
29 Group: Development/Libraries
30 Requires: %{name} = %{epoch}:%{version}-%{release}
33 lxc development files.
36 Summary: Static lxc library
37 Group: Development/Libraries
38 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
46 sed -i -e 's#^lxcpath=.*#lxcpath=/var/lxc#g' src/lxc/Makefile.am
50 %{__aclocal} -I config
58 rm -rf $RPM_BUILD_ROOT
61 DESTDIR=$RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT/var/lxc
66 rm -rf $RPM_BUILD_ROOT
68 %post -p /sbin/ldconfig
69 %postun -p /sbin/ldconfig
72 %defattr(644,root,root,755)
73 %doc AUTHORS ChangeLog README etc/*.conf etc/*-config
74 %dir %{_sysconfdir}/lxc
75 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lxc/*
76 %attr(755,root,root) %{_bindir}/*
77 %attr(755,root,root) %{_libdir}/liblxc-*.so
79 %dir %{_sysconfdir}/lxc
81 %attr(755,root,root) %{_libdir}/lxc-init
84 %defattr(644,root,root,755)
86 %attr(755,root,root) %{_libdir}/liblxc.so
90 %defattr(644,root,root,755)