lxc.spec.in revision e0f2f5c7640f6a9a21fbb4acda2b15cf5d8e0c22
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield# lxc: linux Container library
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield# (C) Copyright IBM Corp. 2007, 2008
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield# Daniel Lezcano <daniel.lezcano at free.fr>
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield# This library is free software; you can redistribute it and/or
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield# modify it under the terms of the GNU Lesser General Public
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield# License as published by the Free Software Foundation; either
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield# version 2.1 of the License, or (at your option) any later version.
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield# This library is distributed in the hope that it will be useful,
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield# but WITHOUT ANY WARRANTY; without even the implied warranty of
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield# Lesser General Public License for more details.
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield# You should have received a copy of the GNU Lesser General Public
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield# License along with this library; if not, write to the Free Software
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%global with_python %{?_with_python: 1} %{?!_with_python: 0}
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%global with_lua %{?_with_lua: 1} %{?!_with_lua: 0}
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield# Set with_systemd on distros that use it, so we can install the service
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield# file, otherwise the sysvinit script will be installed
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%if 0%{?fedora} >= 14 || 0%{?rhel} >= 7 || 0%{?suse_version} >= 1210
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%global with_systemd 1
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%define init_script systemd
164105f6563d98b832f603e28e506dbabed22cf3Michael H. WarfieldBuildRequires: systemd-units
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield%global with_systemd 0
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield%define init_script sysvinit
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield# RPM needs alpha/beta/rc in Release: not Version: to ensure smooth
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield# package upgrades from alpha->beta->rc->release. For more info see:
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield# http://fedoraproject.org/wiki/Packaging%3aNamingGuidelines#NonNumericRelease
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield%if "x@LXC_VERSION_BETA@" != "x"
ec64264d78d4ed608553842ce9e1f07eeab2a032Veres Lajos%global beta_rel @LXC_VERSION_BETA@
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield%global beta_dot .%{beta_rel}
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield%global norm_rel 1
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. WarfieldName: @PACKAGE@
826cde7c2100e1f4419a54b5c930c0854e01e87eMichael H. WarfieldVersion: @LXC_VERSION_BASE@
826cde7c2100e1f4419a54b5c930c0854e01e87eMichael H. WarfieldRelease: %{?beta_rel:0.1.%{beta_rel}}%{?!beta_rel:%{norm_rel}}%{?dist}
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. WarfieldSource: http://linuxcontainers.org/downloads/%{name}-%{version}%{?beta_dot}.tar.gz
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. WarfieldSummary: Linux Containers userspace tools
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. WarfieldLicense: LGPLv2+
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. WarfieldBuildRoot: %{_tmppath}/%{name}-%{version}-build
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. WarfieldRequires: openssl rsync
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. WarfieldBuildRequires: libcap libcap-devel docbook2X graphviz
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield%if %{with_python}
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. WarfieldRequires: python3
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. WarfieldBuildRequires: python3-devel
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. WarfieldContainers are insulated areas inside a system, which have their own namespace
826cde7c2100e1f4419a54b5c930c0854e01e87eMichael H. Warfieldfor filesystem, network, PID, IPC, CPU and memory allocation and which can be
826cde7c2100e1f4419a54b5c930c0854e01e87eMichael H. Warfieldcreated using the Control Group and Namespace features included in the Linux
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. WarfieldThis package provides the lxc-* tools, which can be used to start a single
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfielddaemon in a container, or to boot an entire "containerized" system, and to
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfieldmanage and debug your containers.
164105f6563d98b832f603e28e506dbabed22cf3Michael H. WarfieldSummary: Shared library files for %{name}
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%description libs
164105f6563d98b832f603e28e506dbabed22cf3Michael H. WarfieldThe %{name}-libs package contains libraries for running %{name} applications.
8ec981fc8b0105da5f071e40811e0c2472a6c3c9Stéphane GraberSummary: Development library for %{name}
96283b546081e7ff709968378fca25cb44f1ab6cStéphane GraberRequires: %{name} = %{version}-%{release}, pkgconfig
96283b546081e7ff709968378fca25cb44f1ab6cStéphane Graber%description devel
8ec981fc8b0105da5f071e40811e0c2472a6c3c9Stéphane GraberThe %{name}-devel package contains header files and library needed for
8ec981fc8b0105da5f071e40811e0c2472a6c3c9Stéphane Graberdevelopment of the Linux containers.
8ec981fc8b0105da5f071e40811e0c2472a6c3c9Stéphane Graber%if %{with_lua}
8ec981fc8b0105da5f071e40811e0c2472a6c3c9Stéphane GraberSummary: Lua bindings for %{name}
207bf0e475f1dc6e9a2dac2cee3a209b56427855Stéphane GraberRequires: lua-filesystem
207bf0e475f1dc6e9a2dac2cee3a209b56427855Stéphane GraberBuildRequires: lua-devel
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%description lua
164105f6563d98b832f603e28e506dbabed22cf3Michael H. WarfieldThe %{name}-lua package contains %{name} bindings for lua.
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%setup -q -n %{name}-%{version}%{?beta_dot}
164105f6563d98b832f603e28e506dbabed22cf3Michael H. WarfieldPATH=$PATH:/usr/sbin:/sbin %configure $args \
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%if %{with_lua}
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield --enable-lua \
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield%if %{with_python}
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield --enable-python \
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield --disable-rpath \
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield --with-init-script=%{init_script}
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfieldmake %{?_smp_mflags}
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfieldrm -rf %{buildroot}
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfieldmake install DESTDIR=%{buildroot}
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfieldfind %{buildroot} -type f -name '*.la' -exec rm -f {} ';'
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfieldrm -rf %{buildroot}
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield%defattr(-,root,root)
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%{_datadir}/doc/*
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%{_datadir}/lxc/*
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%config(noreplace) %{_sysconfdir}/lxc/*
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%if %{with_systemd}
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%defattr(-,root,root)
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%{_libdir}/*.so.*
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield%{_libdir}/%{name}
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%if %{with_python}
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%{_libdir}/python*
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%{_localstatedir}/*
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%{_libexecdir}/%{name}
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%attr(4555,root,root) %{_libexecdir}/%{name}/lxc-init
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%attr(4111,root,root) %{_libexecdir}/%{name}/lxc-user-nic
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%if %{with_systemd}
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%attr(555,root,root) %{_libexecdir}/%{name}/lxc-devsetup
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%if %{with_python}
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%if %{with_lua}
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%defattr(-,root,root)
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%{_datadir}/lua
17abf2784de1047fb2904ff130ee5efe4ea7b598Elan Ruusamäe%{_libdir}/lua
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%defattr(-,root,root)
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%{_includedir}/%{name}/*
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%{_libdir}/*.so
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield%{_libdir}/pkgconfig/*
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield* Tue Oct 22 2013 Dwight Engen <dwight.engen@oracle.com> - 1.0.0-0.1.alpha2
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield- fix some rpmlint warnings/errors
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield- split lua bits into seperate package
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield* Mon Sep 10 2012 Dwight Engen <dwight.engen@oracle.com> - 0.8.0
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield- fix lxc-init moved to libexec
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield- .pc moved to _libdir
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield- package template files /usr/share/lxc/templates
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield* Thu Sep 8 2011 Greg Kurz <gkurz@fr.ibm.com> - 0.7.5.1
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield- fix installed files for rpmbuild
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield- introduce lxc-libs package
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield* Fri Jul 23 2010 Daniel Lezcano <dlezcano@fr.ibm.com> - 0.7.2
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield- set attribute for installed files
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield- fix libraries installation
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield* Tue Mar 24 2009 Daniel Lezcano <daniel.lezcano@free.fr> - 0.6.1
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield- Removed capability setting, let the user to do that through "lxc-setcap"
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield* Mon Feb 16 2009 Daniel Lezcano <daniel.lezcano@free.fr> - 0.6.0
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield- Added more capabilities to the executables
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield* Sun Jan 25 2009 Daniel Lezcano <daniel.lezcano@free.fr> - 0.6.0
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield- Reduced spec file
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield* Sun Aug 3 2008 Daniel Lezcano <dlezcano@fr.ibm.com> - 0.1.0
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield- Initial RPM release.
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield# Local variables:
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield# mode: shell-script
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield# sh-shell: rpm