lxc.spec.in revision c79ea89b19cdf961e604e7c85e1458f0559b1a6d
52N/A#
52N/A# lxc: linux Container library
292N/A#
52N/A# (C) Copyright IBM Corp. 2007, 2008
52N/A#
695N/A# Authors:
52N/A# Daniel Lezcano <dlezcano at fr.ibm.com>
52N/A#
52N/A# This library is free software; you can redistribute it and/or
52N/A# modify it under the terms of the GNU Lesser General Public
292N/A# License as published by the Free Software Foundation; either
292N/A# version 2.1 of the License, or (at your option) any later version.
292N/A#
292N/A# This library is distributed in the hope that it will be useful,
52N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of
52N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
52N/A# Lesser General Public License for more details.
292N/A#
292N/A# You should have received a copy of the GNU Lesser General Public
292N/A# License along with this library; if not, write to the Free Software
292N/A# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
292N/A
292N/A%define _unpackaged_files_terminate_build 0
292N/A
292N/A%define RELEASE 1
292N/A%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE: %RELEASE}
292N/A
292N/A#
52N/A# Arguments that can be passed to the rpm builder:
52N/A#
52N/A# --define 'confargs <extra args to configure args>' (def. '')
52N/A#
52N/A
52N/A%{!?confargs: %{expand:%%define confargs ''}}
52N/A
52N/A# What kernel are we building for?
52N/A%{!?kernel: %{expand:%%define kernel %(uname -r)}}
52N/A
52N/A%define _prefix /usr
52N/A
292N/AName: @PACKAGE@
52N/AVersion: @VERSION@
52N/ARelease: %{rel}
6N/APackager: <dlezcano@fr.ibm.com>
6N/AURL: http://lxc.sourceforge.net
6N/ASummary: %name
6N/AGroup: Applications/System
377N/ALicense: LGPL
377N/ASource: %name/%name-%version.tar.gz
377N/ABuildRoot: %_tmppath/%name-%version-root
377N/A
377N/A%description
6N/A%name is a set of command line to manage containers
15N/A
6N/A%package devel
6N/ARelease: %{rel}
735N/ASummary: development library for %{name}
6N/AGroup: Application/System
15N/A
549N/A%description devel
6N/AThe %{name}-devel package contains header files and library needed for development
377N/Aof containers
549N/A
549N/A%prep
549N/A%setup -q
377N/A
377N/A%build
377N/A%configure $args
377N/A
377N/Ancpus=`egrep -c "^cpu[0-9]+" /proc/stat || :`
377N/Amake -j$ncpus
377N/A
6N/A%install
6N/Arm -rf %{buildroot}
549N/A%makeinstall
467N/A
467N/A%clean
549N/Arm -rf %{buildroot}
6N/A
6N/A%post
6N/A
6N/A%files
302N/A%defattr(-,root,root)
302N/A%{_sysconfdir}/%{name}/*
6N/A%{_libdir}/*.so*
6N/A%{_bindir}/*
6N/A
735N/A%files devel
121N/A%defattr(-,root,root)
735N/A%{_includedir}/%{name}/*
525N/A%{_libdir}/*.a
6N/A
15N/A%post devel
15N/A
15N/A%changelog
15N/A
15N/A* Wed Sep 10 2008 Daniel Lezcano <dlezcano@fr.ibm.com> - Version 0.2.1
15N/A- Added lxc-wait command line
15N/A- Added tty support for lxc-start
15N/A- Fixed rootfs absolute directory
15N/A- Improved system containers
15N/A
302N/A* Fri Sep 5 2008 Daniel Lezcano <dlezcano@fr.ibm.com> - Version 0.2.0
302N/A- Fix typos in README
302N/A- Added empty container configuration
545N/A- Added empty network container configuration
545N/A- Added bind option for mount configuration
545N/A- Merged lxc and liblxc directories
44N/A- Changed monitoring mechanism
44N/A- Fixed child process should exit instead of returning on error
44N/A- Fixed lxc.h headers can be included in C++ code
191N/A- A lot of code cleanup and improvements
191N/A
191N/A* Sun Aug 3 2008 Daniel Lezcano <dlezcano@fr.ibm.com> - Version 0.1.0
191N/A- Initial RPM release.
191N/A
44N/A# Local variables:
44N/A# mode: shell-script
44N/A# sh-shell: rpm
190N/A# end:
194N/A