Summary: Linux Container Tools
Name: lxc
-Version: 0.6.5
+Version: 0.9.0
Release: 1
License: GPL
Group: Base
-Source0: http://dl.sourceforge.net/lxc/%{name}-%{version}.tar.gz
-# Source0-md5: d648bcf82541c0da6725da502ee1d111
-URL: http://sourceforge.net/projects/lxc
-BuildRequires: autoconf
-BuildRequires: automake
+Source0: http://lxc.sourceforge.net/download/lxc/%{name}-%{version}.tar.gz
+# Source0-md5: 8552a4479090616f4bc04d8473765fc9
+Patch0: %{name}-devpts.patch
+URL: http://lxc.sourceforge.net
BuildRequires: docbook-dtd30-sgml
BuildRequires: docbook-utils
+BuildRequires: libcap-devel
BuildRequires: libtool
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
lxc development files.
%prep
-%setup -q
+%setup -q -n %{name}-%{version}
+%patch0 -p1
%build
-%{__libtoolize}
-%{__aclocal} -I config
-%{__autoconf}
-%{__automake}
%configure \
--with-config-path=%{configpath}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
pcdatadir=%{_pkgconfigdir}
+
%{__make} -C doc install \
DESTDIR=$RPM_BUILD_ROOT
-rm -rf $RPM_BUILD_ROOT%{_datadir}/doc
+
+%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/doc
install -d $RPM_BUILD_ROOT%{configpath}
%files
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README doc/examples/*.conf
+%doc AUTHORS ChangeLog CONTRIBUTING MAINTAINERS README TODO doc/FAQ.txt doc/examples/*.conf
%attr(755,root,root) %{_bindir}/*
%attr(755,root,root) %{_libdir}/liblxc.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/liblxc.so.0
-%{_mandir}/man?/lxc*
+%{_libdir}/lxc/rootfs/README
%dir %{configpath}
-%attr(755,root,root) %{_libdir}/lxc-init
+%dir %{_libdir}/lxc
+%dir %{_libdir}/lxc/rootfs
+%attr(755,root,root) %{_libdir}/lxc/lxc-init
+%dir %{_sysconfdir}/lxc
+%config(noreplace) %{_sysconfdir}/lxc/default.conf
+%{_datadir}/lxc
%files devel
%defattr(644,root,root,755)