lxc.spec.in revision 07520b2af5495cbde94645d09b523de73047542d
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose# lxc: linux Container library
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose# (C) Copyright IBM Corp. 2007, 2008
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose# This library is free software; you can redistribute it and/or
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose# modify it under the terms of the GNU Lesser General Public
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose# License as published by the Free Software Foundation; either
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose# version 2.1 of the License, or (at your option) any later version.
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose# This library is distributed in the hope that it will be useful,
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose# but WITHOUT ANY WARRANTY; without even the implied warranty of
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose# Lesser General Public License for more details.
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose# You should have received a copy of the GNU Lesser General Public
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose# License along with this library; if not, write to the Free Software
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6cb34580ee6e9e2c9190b77b10db8a3c43e3c9c8Sumit BoseName: @PACKAGE@
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit BoseVersion: @VERSION@
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit BoseRelease: 1%{?dist}
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit BoseSource: http://linuxcontainers.org/downloads/%{name}-%{version}.tar.gz
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit BoseSummary: %{name} : Linux Container
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit BoseLicense: LGPL
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit BoseBuildRoot: %{_tmppath}/%{name}-%{version}-build
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit BoseRequires: libcap openssl rsync
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit BoseBuildRequires: libcap libcap-devel docbook2X
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%define with_python %{?_with_python: 1} %{?!_with_python: 0}
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%if %{with_python}
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit BoseRequires: python3
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit BoseBuildRequires: python3-devel
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%define with_lua %{?_with_lua: 1} %{?!_with_lua: 0}
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%if %{with_lua}
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit BoseRequires: lua-filesystem
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit BoseBuildRequires: lua-devel
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit BoseThe package "%{name}" provides the command lines to create and manage
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bosecontainers. It contains a full featured container with the isolation
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose/ virtualization of the pids, the ipc, the utsname, the mount points,
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose/proc, /sys, the network and it takes into account the control groups.
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit BoseIt is very light, flexible, and provides a set of tools around the
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bosecontainer like the monitoring with asynchronous events notification,
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Boseor the freeze of the container. This package is useful to create
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit BoseVirtual Private Server, or to run isolated applications like bash or
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%package libs
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit BoseSummary: runtime library files for %{name}
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%description libs
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit BoseThe %{name}-libs package contains libraries for running %{name} applications.
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%package devel
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit BoseSummary: development library for %{name}
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%description devel
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit BoseThe %{name}-devel package contains header files and library needed for
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bosedevelopment of the linux containers.
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit BosePATH=$PATH:/usr/sbin:/sbin %configure $args \
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%if %{with_lua}
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose --enable-lua \
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%if %{with_python}
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose --enable-python \
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose --disable-rpath
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bosemake %{?_smp_mflags}
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Boserm -rf %{buildroot}
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bosemake install DESTDIR=%{buildroot}
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bosefind %{buildroot} -type f -name '*.la' -exec rm -f {} ';'
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Boserm -rf %{buildroot}
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%defattr(-,root,root)
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%attr(4111,root,root) %{_bindir}/lxc-attach
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%attr(4111,root,root) %{_bindir}/lxc-create
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%attr(4111,root,root) %{_bindir}/lxc-clone
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%attr(4111,root,root) %{_bindir}/lxc-start
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%attr(4111,root,root) %{_bindir}/lxc-netstat
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%attr(4111,root,root) %{_bindir}/lxc-unshare
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%attr(4111,root,root) %{_bindir}/lxc-execute
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%attr(4111,root,root) %{_bindir}/lxc-checkpoint
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%attr(4111,root,root) %{_bindir}/lxc-restart
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%{_datadir}/doc/*
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%{_datadir}/lxc/*
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%{_sysconfdir}/lxc/*
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%defattr(-,root,root)
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%{_libdir}/*.so.*
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%{_libdir}/%{name}
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%if %{with_lua}
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%{_datadir}/lua
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%{_libdir}/lua
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%if %{with_python}
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%{_libdir}/python*
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%{_localstatedir}/*
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%attr(4555,root,root) %{_libexecdir}/%{name}/lxc-init
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%defattr(-,root,root)
cd5033e86bb4065d75188e2b6ef287a4421344c8Sumit Bose%{_includedir}/%{name}/*
cd5033e86bb4065d75188e2b6ef287a4421344c8Sumit Bose%{_libdir}/*.so
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose%{_libdir}/pkgconfig/*
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose* Mon Sep 10 2012 Dwight Engen <dwight.engen@oracle.com> - Version 0.8.0
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose- fix lxc-init moved to libexec
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose- .pc moved to _libdir
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose- package template files /usr/share/lxc/templates
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose* Thu Sep 8 2011 Greg Kurz <gkurz@fr.ibm.com> - Version 0.7.5.1
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose- fix installed files for rpmbuild
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose- introduce lxc-libs package
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose* Fri Jul 23 2010 Daniel Lezcano <dlezcano@fr.ibm.com> - Version 0.7.2
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose- set attribute for installed files
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose- fix libraries installation
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose* Mon Mar 24 2009 Daniel Lezcano <daniel.lezcano@free.fr> - Version 0.6.1
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose- Removed capability setting, let the user to do that through "lxc-setcap"
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose* Mon Feb 16 2009 Daniel Lezcano <daniel.lezcano@free.fr> - Version 0.6.0
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose- Added more capabilities to the executables
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose* Sun Jan 25 2009 Daniel Lezcano <daniel.lezcano@free.fr> - Version 0.6.0
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose- Reduced spec file
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose* Sun Aug 3 2008 Daniel Lezcano <dlezcano@fr.ibm.com> - Version 0.1.0
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose- Initial RPM release.
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose# Local variables:
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose# mode: shell-script
2ef62c64e7f07c8aced3f72850008ecb72860162Sumit Bose# sh-shell: rpm