]> git.proxmox.com Git - mirror_lxc.git/blame - lxc.spec.in
Use actual length of socket's name for abstract sockets (v3)
[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
250b1eec 21# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
5e97c3fc 22
0adde0f8
DE
23%global with_python %{?_with_python: 1} %{?!_with_python: 0}
24%global with_lua %{?_with_lua: 1} %{?!_with_lua: 0}
25
5e97c3fc 26Name: @PACKAGE@
27Version: @VERSION@
c4b697f2 28Release: 1%{?dist}
07520b2a
SG
29URL: http://linuxcontainers.org
30Source: http://linuxcontainers.org/downloads/%{name}-%{version}.tar.gz
0adde0f8 31Summary: Linux Containers userspace tools
5e97c3fc 32Group: Applications/System
0adde0f8 33License: LGPLv2+
cef07149 34BuildRoot: %{_tmppath}/%{name}-%{version}-build
0adde0f8 35Requires: openssl rsync
f6a8db2d 36BuildRequires: libcap libcap-devel docbook2X
5e97c3fc 37
ce951132
DE
38%if %{with_python}
39Requires: python3
40BuildRequires: python3-devel
41%endif
42
5e97c3fc 43%description
0adde0f8
DE
44Containers are insulated areas inside a system, which have their own namespace
45for filesystem, network, PID, IPC, CPU and memory allocation and which can be
46created using the Control Group and Namespace features included in the Linux
47kernel.
48
49This package provides the lxc-* tools, which can be used to start a single
50daemon in a container, or to boot an entire "containerized" system, and to
51manage and debug your containers.
52
53%package libs
54Summary: Shared library files for %{name}
55Group: System Environment/Libraries
56%description libs
1c41ddcb
GK
57The %{name}-libs package contains libraries for running %{name} applications.
58
0adde0f8
DE
59%package devel
60Summary: Development library for %{name}
61Group: Development/Libraries
62Requires: %{name} = %{version}-%{release}, pkgconfig
63%description devel
805415fc 64The %{name}-devel package contains header files and library needed for
0adde0f8
DE
65development of the Linux containers.
66
67%if %{with_lua}
68%package lua
69Summary: Lua bindings for %{name}
70Group: System Environment/Libraries
71Requires: lua-filesystem
72BuildRequires: lua-devel
73%description lua
74The %{name}-lua package contains %{name} bindings for lua.
75%endif
5e97c3fc 76
77%prep
0adde0f8 78%setup -q
5e97c3fc 79%build
ce951132 80PATH=$PATH:/usr/sbin:/sbin %configure $args \
f080ffd7
DE
81%if %{with_lua}
82 --enable-lua \
83%endif
ce951132
DE
84%if %{with_python}
85 --enable-python \
86%endif
87 --disable-rpath
cef07149 88make %{?_smp_mflags}
5e97c3fc 89
90%install
b9cb4325
DE
91rm -rf %{buildroot}
92make install DESTDIR=%{buildroot}
93find %{buildroot} -type f -name '*.la' -exec rm -f {} ';'
805415fc 94
5e97c3fc 95%clean
96rm -rf %{buildroot}
97
cef07149 98%post
0adde0f8
DE
99%post libs -p /sbin/ldconfig
100%postun libs -p /sbin/ldconfig
805415fc 101
5e97c3fc 102%files
103%defattr(-,root,root)
5e97c3fc 104%{_bindir}/*
5da9e545
DL
105%attr(4111,root,root) %{_bindir}/lxc-attach
106%attr(4111,root,root) %{_bindir}/lxc-create
be8b5972 107%attr(4111,root,root) %{_bindir}/lxc-clone
5da9e545
DL
108%attr(4111,root,root) %{_bindir}/lxc-start
109%attr(4111,root,root) %{_bindir}/lxc-netstat
110%attr(4111,root,root) %{_bindir}/lxc-unshare
111%attr(4111,root,root) %{_bindir}/lxc-execute
112%attr(4111,root,root) %{_bindir}/lxc-checkpoint
113%attr(4111,root,root) %{_bindir}/lxc-restart
0adde0f8
DE
114%{_mandir}/man1/lxc*
115%{_mandir}/man5/lxc*
116%{_mandir}/man7/lxc*
117%{_mandir}/ja/man1/lxc*
118%{_mandir}/ja/man5/lxc*
119%{_mandir}/ja/man7/lxc*
411c76ce 120%{_datadir}/doc/*
b9cb4325 121%{_datadir}/lxc/*
0adde0f8 122%config(noreplace) %{_sysconfdir}/lxc/*
5e97c3fc 123
1c41ddcb
GK
124%files libs
125%defattr(-,root,root)
126%{_libdir}/*.so.*
127%{_libdir}/%{name}
ce951132
DE
128%if %{with_python}
129%{_libdir}/python*
130%endif
7323456e 131%{_localstatedir}/*
b9cb4325 132%attr(4555,root,root) %{_libexecdir}/%{name}/lxc-init
1c41ddcb 133
0adde0f8
DE
134%if %{with_lua}
135%files lua
136%defattr(-,root,root)
137%{_datadir}/lua
138%{_libdir}/lua
139%endif
140
5e97c3fc 141%files devel
142%defattr(-,root,root)
143%{_includedir}/%{name}/*
1c41ddcb 144%{_libdir}/*.so
b9cb4325 145%{_libdir}/pkgconfig/*
5e97c3fc 146
147%changelog
0adde0f8
DE
148* Tue Oct 22 2013 Dwight Engen <dwight.engen@oracle.com> - 1.0.0-0.1.alpha2
149- fix some rpmlint warnings/errors
150- split lua bits into seperate package
151
152* Mon Sep 10 2012 Dwight Engen <dwight.engen@oracle.com> - 0.8.0
b9cb4325
DE
153- fix lxc-init moved to libexec
154- .pc moved to _libdir
155- package template files /usr/share/lxc/templates
156
0adde0f8 157* Thu Sep 8 2011 Greg Kurz <gkurz@fr.ibm.com> - 0.7.5.1
1c41ddcb
GK
158- fix installed files for rpmbuild
159- introduce lxc-libs package
b4915399 160
0adde0f8 161* Fri Jul 23 2010 Daniel Lezcano <dlezcano@fr.ibm.com> - 0.7.2
7ef6e440
DL
162- set attribute for installed files
163- fix libraries installation
7ef6e440 164
0adde0f8 165* Mon Mar 24 2009 Daniel Lezcano <daniel.lezcano@free.fr> - 0.6.1
237315ff
DL
166- Removed capability setting, let the user to do that through "lxc-setcap"
167
0adde0f8 168* Mon Feb 16 2009 Daniel Lezcano <daniel.lezcano@free.fr> - 0.6.0
44931bc7 169- Added more capabilities to the executables
170
0adde0f8 171* Sun Jan 25 2009 Daniel Lezcano <daniel.lezcano@free.fr> - 0.6.0
cef07149 172- Reduced spec file
173
0adde0f8 174* Sun Aug 3 2008 Daniel Lezcano <dlezcano@fr.ibm.com> - 0.1.0
5e97c3fc 175- Initial RPM release.
176
177# Local variables:
178# mode: shell-script
179# sh-shell: rpm
180# end: