]> git.proxmox.com Git - mirror_lxc.git/blame - lxc.spec.in
lxc-alpine: make --release work when apk exists
[mirror_lxc.git] / lxc.spec.in
CommitLineData
5e97c3fc 1#
2# lxc: linux Container library
3#
4# (C) Copyright IBM Corp. 2007, 2008
5#
6# Authors:
9afe19d6 7# Daniel Lezcano <daniel.lezcano at free.fr>
5e97c3fc 8#
9# This library is free software; you can redistribute it and/or
10# modify it under the terms of the GNU Lesser General Public
11# License as published by the Free Software Foundation; either
12# version 2.1 of the License, or (at your option) any later version.
13#
14# This library is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17# Lesser General Public License for more details.
18#
19# You should have received a copy of the GNU Lesser General Public
20# License along with this library; if not, write to the Free Software
21# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
5e97c3fc 23Name: @PACKAGE@
24Version: @VERSION@
c4b697f2 25Release: 1%{?dist}
5e97c3fc 26URL: http://lxc.sourceforge.net
cef07149 27Source: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz
28Summary: %{name} : Linux Container
5e97c3fc 29Group: Applications/System
30License: LGPL
cef07149 31BuildRoot: %{_tmppath}/%{name}-%{version}-build
1c6085cd 32Requires: libcap openssl rsync
f6a8db2d 33BuildRequires: libcap libcap-devel docbook2X
5e97c3fc 34
ce951132
DE
35%define with_python %{?_with_python: 1} %{?!_with_python: 0}
36%if %{with_python}
37Requires: python3
38BuildRequires: python3-devel
39%endif
40
f080ffd7
DE
41%define with_lua %{?_with_lua: 1} %{?!_with_lua: 0}
42%if %{with_lua}
43Requires: lua-filesystem
44BuildRequires: lua-devel
45%endif
46
5e97c3fc 47%description
805415fc 48
cef07149 49The package "%{name}" provides the command lines to create and manage
805415fc 50containers. It contains a full featured container with the isolation
51/ virtualization of the pids, the ipc, the utsname, the mount points,
52/proc, /sys, the network and it takes into account the control groups.
53It is very light, flexible, and provides a set of tools around the
54container like the monitoring with asynchronous events notification,
55or the freeze of the container. This package is useful to create
56Virtual Private Server, or to run isolated applications like bash or
57sshd.
5e97c3fc 58
1c41ddcb
GK
59%package libs
60Summary: runtime library files for %{name}
61Group: System Environment/Libraries
62
63%description libs
64The %{name}-libs package contains libraries for running %{name} applications.
65
5e97c3fc 66%package devel
5e97c3fc 67Summary: development library for %{name}
cef07149 68Group: Development/Libraries
5e97c3fc 69
70%description devel
805415fc 71The %{name}-devel package contains header files and library needed for
cef07149 72development of the linux containers.
5e97c3fc 73
74%prep
cef07149 75%setup
5e97c3fc 76%build
ce951132 77PATH=$PATH:/usr/sbin:/sbin %configure $args \
f080ffd7
DE
78%if %{with_lua}
79 --enable-lua \
80%endif
ce951132
DE
81%if %{with_python}
82 --enable-python \
83%endif
84 --disable-rpath
cef07149 85make %{?_smp_mflags}
5e97c3fc 86
87%install
b9cb4325
DE
88rm -rf %{buildroot}
89make install DESTDIR=%{buildroot}
90find %{buildroot} -type f -name '*.la' -exec rm -f {} ';'
805415fc 91
5e97c3fc 92%clean
93rm -rf %{buildroot}
94
cef07149 95%post
805415fc 96
5e97c3fc 97%files
98%defattr(-,root,root)
5e97c3fc 99%{_bindir}/*
5da9e545
DL
100%attr(4111,root,root) %{_bindir}/lxc-attach
101%attr(4111,root,root) %{_bindir}/lxc-create
be8b5972 102%attr(4111,root,root) %{_bindir}/lxc-clone
5da9e545
DL
103%attr(4111,root,root) %{_bindir}/lxc-start
104%attr(4111,root,root) %{_bindir}/lxc-netstat
105%attr(4111,root,root) %{_bindir}/lxc-unshare
106%attr(4111,root,root) %{_bindir}/lxc-execute
107%attr(4111,root,root) %{_bindir}/lxc-checkpoint
108%attr(4111,root,root) %{_bindir}/lxc-restart
d823d5b9 109%{_mandir}/*
411c76ce 110%{_datadir}/doc/*
b9cb4325 111%{_datadir}/lxc/*
6f75ba0b 112%{_sysconfdir}/lxc/*
5e97c3fc 113
1c41ddcb
GK
114%files libs
115%defattr(-,root,root)
116%{_libdir}/*.so.*
117%{_libdir}/%{name}
f080ffd7
DE
118%if %{with_lua}
119%{_datadir}/lua
120%{_libdir}/lua
121%endif
ce951132
DE
122%if %{with_python}
123%{_libdir}/python*
124%endif
7323456e 125%{_localstatedir}/*
b9cb4325 126%attr(4555,root,root) %{_libexecdir}/%{name}/lxc-init
1c41ddcb 127
5e97c3fc 128%files devel
129%defattr(-,root,root)
130%{_includedir}/%{name}/*
1c41ddcb 131%{_libdir}/*.so
b9cb4325 132%{_libdir}/pkgconfig/*
5e97c3fc 133
134%changelog
b9cb4325
DE
135* Mon Sep 10 2012 Dwight Engen <dwight.engen@oracle.com> - Version 0.8.0
136- fix lxc-init moved to libexec
137- .pc moved to _libdir
138- package template files /usr/share/lxc/templates
139
1c41ddcb
GK
140* Thu Sep 8 2011 Greg Kurz <gkurz@fr.ibm.com> - Version 0.7.5.1
141- fix installed files for rpmbuild
142- introduce lxc-libs package
b4915399 143
7ef6e440
DL
144* Fri Jul 23 2010 Daniel Lezcano <dlezcano@fr.ibm.com> - Version 0.7.2
145- set attribute for installed files
146- fix libraries installation
7ef6e440 147
237315ff
DL
148* Mon Mar 24 2009 Daniel Lezcano <daniel.lezcano@free.fr> - Version 0.6.1
149- Removed capability setting, let the user to do that through "lxc-setcap"
150
44931bc7 151* Mon Feb 16 2009 Daniel Lezcano <daniel.lezcano@free.fr> - Version 0.6.0
152- Added more capabilities to the executables
153
cef07149 154* Sun Jan 25 2009 Daniel Lezcano <daniel.lezcano@free.fr> - Version 0.6.0
155- Reduced spec file
156
b4915399 157* Sun Aug 3 2008 Daniel Lezcano <dlezcano@fr.ibm.com> - Version 0.1.0
5e97c3fc 158- Initial RPM release.
159
160# Local variables:
161# mode: shell-script
162# sh-shell: rpm
163# end: