Summary: Linux Container Tools
Name: lxc
-Version: 0.7.2
+Version: 0.9.0
Release: 1
License: GPL
Group: Base
-Source0: http://dl.sourceforge.net/lxc/%{name}-%{version}.tar.gz
-# Source0-md5: 5c9c6889ba1255217078ea5d1aaf0c82
+Source0: http://lxc.sourceforge.net/download/lxc/%{name}-%{version}.tar.gz
+# Source0-md5: 8552a4479090616f4bc04d8473765fc9
+Patch0: %{name}-devpts.patch
URL: http://lxc.sourceforge.net
-BuildRequires: autoconf
-BuildRequires: automake
BuildRequires: docbook-dtd30-sgml
BuildRequires: docbook-utils
BuildRequires: libcap-devel
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 CONTRIBUTING MAINTAINERS README TODO doc/FAQ.txt 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
%{_libdir}/lxc/rootfs/README
-%{_mandir}/man?/lxc*
%dir %{configpath}
%dir %{_libdir}/lxc
-%dir %{_libdir}/lxc/templates
%dir %{_libdir}/lxc/rootfs
%attr(755,root,root) %{_libdir}/lxc/lxc-init
-%attr(755,root,root) %{_libdir}/lxc/templates/lxc-*
+%dir %{_sysconfdir}/lxc
+%config(noreplace) %{_sysconfdir}/lxc/default.conf
+%{_datadir}/lxc
%files devel
%defattr(644,root,root,755)