File lxc.spec of Package lxc
#
# spec file for package lxc
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: lxc
Version: 0.7.4
Release: 1.<RELEASE2>
Url: http://lxc.sourceforge.net/
Summary: Linux containers implementation
Group: System/Management
AutoReqProv: on
License: LGPLv2.1
Source: http://dl.sourceforge.net/sourceforge/lxc/lxc-%{version}.tar.bz2
Source1: README.SUSE
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: docbook-utils libcap-devel pkg-config
%if 0%{?suse_version} >= 1130
BuildRequires: linux-glibc-devel
%else
BuildRequires: linux-kernel-headers
%endif
Requires: /sbin/setcap
%description
It provides commands to create and manage containers. It contains a
full featured container with the isolation/virtualization of the pids,
the ipc, the utsname, the mount points, /proc, /sys, the network and it
takes into account the control groups. It is very light, flexible, and
provides a set of tools around the container like the monitoring with
asynchronous events notification, or the freeze of the container. This
package is useful to create Virtual Private Server, or to run isolated
applications like bash or sshd.
Authors:
--------
Daniel Lezcano <dlezcano at fr.ibm.com>
%package devel
License: LGPLv2.1
Summary: Development library for lxc
Requires: %{name} = %{version} glibc-devel
Group: Development/Libraries/C and C++
%description devel
Lxc header files and library needed for development of containers.
Authors:
--------
Daniel Lezcano <dlezcano at fr.ibm.com>
%prep
%setup -q
%build
aclocal -I config
autoheader
autoconf
automake --add-missing --copy
%configure --libexecdir=%{_prefix}/lib/%{name} --disable-examples
%{__make} %{?jobs:-j%jobs}
cp %{SOURCE1} .
# copy to separate dir do we can use rpm's %%doc
rm -rf .doc
mkdir -p .doc/examples
cp doc/examples/*.conf .doc/examples
%install
%makeinstall
install -d -m 755 %{buildroot}/var/lib/lxc
find $RPM_BUILD_ROOT -type f -name '*.la' -exec rm -f {} ';'
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS MAINTAINERS COPYING README
%doc README.SUSE
%doc .doc/examples
%{_libdir}/liblxc.so.*
%{_libdir}/lxc
%{_bindir}/%{name}-*
%{_mandir}/man[^3]/*
%files devel
%defattr(-,root,root)
%{_includedir}/%{name}
%{_libdir}/liblxc.so
%{_datadir}/pkgconfig/%{name}.pc
%changelog