]> git.proxmox.com Git - mirror_lxc.git/blob - lxc.spec.in
Initial revision
[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 %define _unpackaged_files_terminate_build 0
24
25 %define RELEASE 1
26 %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE: %RELEASE}
27
28 #
29 # Arguments that can be passed to the rpm builder:
30 #
31 # --define 'confargs <extra args to configure args>' (def. '')
32 #
33
34 %{!?confargs: %{expand:%%define confargs ''}}
35
36 # What kernel are we building for?
37 %{!?kernel: %{expand:%%define kernel %(uname -r)}}
38
39 %define _prefix /usr
40
41 Name: @PACKAGE@
42 Version: @VERSION@
43 Release: %{rel}
44 Packager: <dlezcano@fr.ibm.com>
45 URL: http://lxc.sourceforge.net
46 Summary: %name
47 Group: Applications/System
48 License: LGPL
49 Source: %name/%name-%version.tar.gz
50 BuildRoot: %_tmppath/%name-%version-root
51
52 %description
53 %name is a set of command line to manage containers
54
55 %package devel
56 Release: %{rel}
57 Summary: development library for %{name}
58 Group: Application/System
59
60 %description devel
61 The %{name}-devel package contains header files and library needed for development
62 of containers
63
64 %prep
65 %setup -q
66
67 %build
68 %configure $args
69
70 ncpus=`egrep -c "^cpu[0-9]+" /proc/stat || :`
71 make -j$ncpus
72
73 %install
74 rm -rf %{buildroot}
75 %makeinstall
76
77 %clean
78 rm -rf %{buildroot}
79
80 %post
81
82 %files
83 %defattr(-,root,root)
84 %{_sysconfdir}/%{name}/*
85 %{_bindir}/*
86
87 %files devel
88 %defattr(-,root,root)
89 %{_includedir}/%{name}/*
90 %{_libdir}/*.a
91
92 %changelog
93 * Sun Aug 3 2008 Daniel Lezcano <dlezcano@fr.ibm.com>
94 - Initial RPM release.
95
96 # Local variables:
97 # mode: shell-script
98 # sh-shell: rpm
99 # end: