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