]> git.proxmox.com Git - mirror_lxc.git/blob - lxc.spec.in
include python files in make dist and rpm
[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 <dlezcano at fr.ibm.com>
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
23 Name: @PACKAGE@
24 Version: @VERSION@
25 Release: 1%{?dist}
26 URL: http://lxc.sourceforge.net
27 Source: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz
28 Summary: %{name} : Linux Container
29 Group: Applications/System
30 License: LGPL
31 BuildRoot: %{_tmppath}/%{name}-%{version}-build
32 Requires: libcap openssl rsync
33 BuildRequires: libcap libcap-devel docbook2X
34
35 %define with_python %{?_with_python: 1} %{?!_with_python: 0}
36 %if %{with_python}
37 Requires: python3
38 BuildRequires: python3-devel
39 %endif
40
41 %description
42
43 The package "%{name}" provides the command lines to create and manage
44 containers. It contains a full featured container with the isolation
45 / virtualization of the pids, the ipc, the utsname, the mount points,
46 /proc, /sys, the network and it takes into account the control groups.
47 It is very light, flexible, and provides a set of tools around the
48 container like the monitoring with asynchronous events notification,
49 or the freeze of the container. This package is useful to create
50 Virtual Private Server, or to run isolated applications like bash or
51 sshd.
52
53 %package libs
54 Summary: runtime library files for %{name}
55 Group: System Environment/Libraries
56
57 %description libs
58 The %{name}-libs package contains libraries for running %{name} applications.
59
60 %package devel
61 Summary: development library for %{name}
62 Group: Development/Libraries
63
64 %description devel
65 The %{name}-devel package contains header files and library needed for
66 development of the linux containers.
67
68 %prep
69 %setup
70 %build
71 PATH=$PATH:/usr/sbin:/sbin %configure $args \
72 %if %{with_python}
73 --enable-python \
74 %endif
75 --disable-rpath
76 make %{?_smp_mflags}
77
78 %install
79 rm -rf %{buildroot}
80 make install DESTDIR=%{buildroot}
81 find %{buildroot} -type f -name '*.la' -exec rm -f {} ';'
82
83 %clean
84 rm -rf %{buildroot}
85
86 %post
87
88 %files
89 %defattr(-,root,root)
90 %{_bindir}/*
91 %attr(4111,root,root) %{_bindir}/lxc-attach
92 %attr(4111,root,root) %{_bindir}/lxc-create
93 %attr(4111,root,root) %{_bindir}/lxc-clone
94 %attr(4111,root,root) %{_bindir}/lxc-shutdown
95 %attr(4111,root,root) %{_bindir}/lxc-start
96 %attr(4111,root,root) %{_bindir}/lxc-netstat
97 %attr(4111,root,root) %{_bindir}/lxc-unshare
98 %attr(4111,root,root) %{_bindir}/lxc-execute
99 %attr(4111,root,root) %{_bindir}/lxc-checkpoint
100 %attr(4111,root,root) %{_bindir}/lxc-restart
101 %{_mandir}/*
102 %{_datadir}/doc/*
103 %{_datadir}/lxc/*
104 %{_sysconfdir}/lxc/*
105
106 %files libs
107 %defattr(-,root,root)
108 %{_libdir}/*.so.*
109 %{_libdir}/%{name}
110 %if %{with_python}
111 %{_libdir}/python*
112 %endif
113 %{_localstatedir}/*
114 %attr(4555,root,root) %{_libexecdir}/%{name}/lxc-init
115
116 %files devel
117 %defattr(-,root,root)
118 %{_includedir}/%{name}/*
119 %{_libdir}/*.so
120 %{_libdir}/pkgconfig/*
121
122 %changelog
123 * Mon Sep 10 2012 Dwight Engen <dwight.engen@oracle.com> - Version 0.8.0
124 - fix lxc-init moved to libexec
125 - .pc moved to _libdir
126 - package template files /usr/share/lxc/templates
127
128 * Thu Sep 8 2011 Greg Kurz <gkurz@fr.ibm.com> - Version 0.7.5.1
129 - fix installed files for rpmbuild
130 - introduce lxc-libs package
131
132 * Fri Jul 23 2010 Daniel Lezcano <dlezcano@fr.ibm.com> - Version 0.7.2
133 - set attribute for installed files
134 - fix libraries installation
135
136 * Mon Mar 24 2009 Daniel Lezcano <daniel.lezcano@free.fr> - Version 0.6.1
137 - Removed capability setting, let the user to do that through "lxc-setcap"
138
139 * Mon Feb 16 2009 Daniel Lezcano <daniel.lezcano@free.fr> - Version 0.6.0
140 - Added more capabilities to the executables
141
142 * Sun Jan 25 2009 Daniel Lezcano <daniel.lezcano@free.fr> - Version 0.6.0
143 - Reduced spec file
144
145 * Sun Aug 3 2008 Daniel Lezcano <dlezcano@fr.ibm.com> - Version 0.1.0
146 - Initial RPM release.
147
148 # Local variables:
149 # mode: shell-script
150 # sh-shell: rpm
151 # end: