summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilas Sewell <silas@fedoraproject.org>2009-07-28 07:07:50 +0000
committerSilas Sewell <silas@fedoraproject.org>2009-07-28 07:07:50 +0000
commit3e09dcfbb9b2f01a1796095b9acb87ba4e4deda4 (patch)
treefbcf0c32d58e8af5f5d8645f2716bc648779f30b
parent1cdc2f5da0a78e74d8b46beb8ce5cba72f73022f (diff)
downloadlxc-3e09dcfbb9b2f01a1796095b9acb87ba4e4deda4.tar.gz
lxc-3e09dcfbb9b2f01a1796095b9acb87ba4e4deda4.tar.xz
lxc-3e09dcfbb9b2f01a1796095b9acb87ba4e4deda4.zip
- Apply patch for rawhide kernel.lxc-0_6_3-2_fc12F-12-startF-12-split
Sat Jul 25 2009 Silas Sewell <silas@sewell.ch> - 0.6.3-1 - Initial package.
-rw-r--r--.cvsignore1
-rw-r--r--import.log1
-rw-r--r--lxc-0.6.3.netlink-fix.patch19
-rw-r--r--lxc.spec95
-rw-r--r--sources1
5 files changed, 117 insertions, 0 deletions
diff --git a/.cvsignore b/.cvsignore
index e69de29..0836f7e 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -0,0 +1 @@
+lxc-0.6.3.tar.gz
diff --git a/import.log b/import.log
new file mode 100644
index 0000000..d0c17ff
--- /dev/null
+++ b/import.log
@@ -0,0 +1 @@
+lxc-0_6_3-2_fc11:HEAD:lxc-0.6.3-2.fc11.src.rpm:1248764868
diff --git a/lxc-0.6.3.netlink-fix.patch b/lxc-0.6.3.netlink-fix.patch
new file mode 100644
index 0000000..e2beceb
--- /dev/null
+++ b/lxc-0.6.3.netlink-fix.patch
@@ -0,0 +1,19 @@
+diff -up lxc-0.6.3/configure.ac.orig lxc-0.6.3/configure.ac
+--- lxc-0.6.3/configure.ac.orig 2009-07-28 00:59:14.737542987 -0400
++++ lxc-0.6.3/configure.ac 2009-07-28 01:03:22.907540449 -0400
+@@ -25,10 +25,11 @@ AS_AC_EXPAND(LOCALSTATEDIR, $localstated
+ AS_AC_EXPAND(LXCPATH, "${localstatedir}/lib/lxc")
+ AS_AC_EXPAND(LXC_GENERATE_DATE, "$(date)")
+
+-AC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h], [], AC_MSG_ERROR([netlink headers not found. Please install the linux kernel headers.]),
+-[#include <linux/types.h>
+-#include <bits/sockaddr.h>
+-#include <linux/socket.h>])
++AC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h],
++ [],
++ AC_MSG_ERROR([netlink headers not found. Please install the linux kernel headers.]),
++ [#include <sys/socket.h>
++ ])
+
+ AC_CHECK_HEADERS([sys/capability.h], [], AC_MSG_ERROR([please install libcap-devel.]),
+ [#include <sys/types.h>
diff --git a/lxc.spec b/lxc.spec
new file mode 100644
index 0000000..433bb60
--- /dev/null
+++ b/lxc.spec
@@ -0,0 +1,95 @@
+Name: lxc
+Version: 0.6.3
+Release: 2%{?dist}
+Summary: Linux Resource Containers
+
+Group: Applications/System
+License: LGPLv2+
+URL: http://lxc.sourceforge.net
+Source0: http://lxc.sourceforge.net/download/lxc/%{name}-%{version}.tar.gz
+# Upstream commit 90e0a869ac5f3a889487126568f1d3c7c34b7046
+Patch0: lxc-0.6.3.netlink-fix.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: automake
+BuildRequires: docbook-utils
+BuildRequires: kernel-headers
+BuildRequires: libcap-devel
+BuildRequires: libtool
+
+%description
+Linux Resource Containers provide process and resource isolation without the
+overhead of full virtualization.
+
+%package libs
+Summary: Runtime library files for %{name}
+Group: System Environment/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description libs
+Linux Resource Containers provide process and resource isolation without the
+overhead of full virtualization.
+
+The %{name}-libs package contains libraries for running %{name} applications.
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: pkgconfig
+
+%description devel
+Linux Resource Containers provide process and resource isolation without the
+overhead of full virtualization.
+
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+./autogen.sh
+%configure F77=no --enable-static=no
+%{__make} %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+%{__make} DESTDIR=%{buildroot} install
+find %{buildroot} -name '*.la' -delete
+
+%clean
+rm -rf %{buildroot}
+
+%post libs -p /sbin/ldconfig
+
+%postun libs -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING README
+%dir %{_sysconfdir}/%{name}
+%config(noreplace) %{_sysconfdir}/%{name}/*
+%{_bindir}/%{name}-*
+%{_libexecdir}/%{name}-init
+%{_mandir}/man*/%{name}*
+
+%files libs
+%defattr(-,root,root,-)
+%doc COPYING
+%{_libdir}/liblxc-%{version}.so
+
+%files devel
+%defattr(-,root,root,-)
+%doc COPYING
+%{_datadir}/pkgconfig/%{name}.pc
+%{_includedir}/*
+%{_libdir}/liblxc.so
+
+%changelog
+* Mon Jul 27 2009 Silas Sewell <silas@sewell.ch> - 0.6.3-2
+- Apply patch for rawhide kernel.
+
+* Sat Jul 25 2009 Silas Sewell <silas@sewell.ch> - 0.6.3-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..3e666ac 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+417bb6dd61ba0c65996df5c3adbb549f lxc-0.6.3.tar.gz