|
|
@ -1,14 +1,11 @@
|
|
|
|
Name: lxc
|
|
|
|
Name: lxc
|
|
|
|
Version: 0.7.5
|
|
|
|
Version: 0.8.0
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Linux Resource Containers
|
|
|
|
Summary: Linux Resource Containers
|
|
|
|
|
|
|
|
|
|
|
|
Group: Applications/System
|
|
|
|
Group: Applications/System
|
|
|
|
License: LGPLv2+
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: http://lxc.sourceforge.net
|
|
|
|
URL: http://lxc.sourceforge.net
|
|
|
|
Source0: http://lxc.sourceforge.net/download/lxc/%{name}-%{version}.tar.gz
|
|
|
|
Source0: http://lxc.sourceforge.net/download/lxc/%{name}-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: docbook-utils
|
|
|
|
BuildRequires: docbook-utils
|
|
|
|
BuildRequires: kernel-headers
|
|
|
|
BuildRequires: kernel-headers
|
|
|
|
BuildRequires: libcap-devel
|
|
|
|
BuildRequires: libcap-devel
|
|
|
@ -18,6 +15,7 @@ BuildRequires: libtool
|
|
|
|
Linux Resource Containers provide process and resource isolation without the
|
|
|
|
Linux Resource Containers provide process and resource isolation without the
|
|
|
|
overhead of full virtualization.
|
|
|
|
overhead of full virtualization.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
%package libs
|
|
|
|
Summary: Runtime library files for %{name}
|
|
|
|
Summary: Runtime library files for %{name}
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Group: System Environment/Libraries
|
|
|
@ -29,11 +27,20 @@ overhead of full virtualization.
|
|
|
|
|
|
|
|
|
|
|
|
The %{name}-libs package contains libraries for running %{name} applications.
|
|
|
|
The %{name}-libs package contains libraries for running %{name} applications.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package templates
|
|
|
|
%package templates
|
|
|
|
Summary: Templates for %{name}
|
|
|
|
Summary: Templates for %{name}
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
# needed for lxc-busybox
|
|
|
|
|
|
|
|
Requires: busybox
|
|
|
|
|
|
|
|
# needed for lxc-debian
|
|
|
|
|
|
|
|
Requires: dpkg
|
|
|
|
|
|
|
|
# needed for lxc-debian, lxc-ubuntu:
|
|
|
|
Requires: debootstrap
|
|
|
|
Requires: debootstrap
|
|
|
|
|
|
|
|
# needed for lxc-sshd
|
|
|
|
|
|
|
|
Requires: openssh-server dhclient
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description templates
|
|
|
|
%description templates
|
|
|
|
Linux Resource Containers provide process and resource isolation without the
|
|
|
|
Linux Resource Containers provide process and resource isolation without the
|
|
|
@ -41,6 +48,7 @@ overhead of full virtualization.
|
|
|
|
|
|
|
|
|
|
|
|
The %{name}-template package contains templates for creating containers.
|
|
|
|
The %{name}-template package contains templates for creating containers.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Group: Development/Libraries
|
|
|
@ -54,6 +62,7 @@ overhead of full virtualization.
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation
|
|
|
|
Group: Documentation
|
|
|
@ -62,70 +71,80 @@ Requires: %{name} = %{version}-%{release}
|
|
|
|
%description doc
|
|
|
|
%description doc
|
|
|
|
This package contains documentation for %{name}.
|
|
|
|
This package contains documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
# Fix binary-or-shlib-defines-rpath error
|
|
|
|
%configure --enable-doc --disable-rpath --disable-apparmor
|
|
|
|
sed -i '/AM_LDFLAGS = -Wl,-E -Wl,-rpath -Wl,$(libdir)/d' src/lxc/Makefile.in
|
|
|
|
|
|
|
|
# We know the exact location of asm/unistd.h
|
|
|
|
|
|
|
|
sed -i 's,\$(LINUX_DIR)/arch/\$(LINUX_SRCARCH),/usr,' src/lxc/Makefile.in
|
|
|
|
|
|
|
|
%configure --disable-rpath F77=no
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
|
|
|
make check
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
%{make_install}
|
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
find %{buildroot} -name '*.la' -delete
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_sharedstatedir}/%{name}
|
|
|
|
mkdir -p %{buildroot}%{_sharedstatedir}/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
find %{buildroot}%{_libdir}/lxc/templates \
|
|
|
|
|
|
|
|
-type f \
|
|
|
|
|
|
|
|
-not -name lxc-maverick \
|
|
|
|
|
|
|
|
-not -name lxc-sshd \
|
|
|
|
|
|
|
|
-delete
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%check
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
make check
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
%doc AUTHORS COPYING README
|
|
|
|
%doc AUTHORS COPYING README
|
|
|
|
%{_bindir}/%{name}-*
|
|
|
|
%{_bindir}/%{name}-*
|
|
|
|
%{_mandir}/man*/%{name}*
|
|
|
|
%{_mandir}/man*/%{name}*
|
|
|
|
%{_sharedstatedir}/%{name}
|
|
|
|
%{_sharedstatedir}/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
%files libs
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
%doc AUTHORS COPYING
|
|
|
|
%doc AUTHORS COPYING
|
|
|
|
%dir %{_libdir}/lxc
|
|
|
|
%dir %{_datadir}/lxc
|
|
|
|
%dir %{_libdir}/lxc/templates
|
|
|
|
%dir %{_datadir}/lxc/templates
|
|
|
|
%{_libdir}/liblxc.so.*
|
|
|
|
%{_libdir}/liblxc.so.*
|
|
|
|
%{_libdir}/lxc/lxc-init
|
|
|
|
%dir %{_libdir}/lxc
|
|
|
|
%{_libdir}/lxc/rootfs
|
|
|
|
%{_libdir}/lxc/rootfs
|
|
|
|
|
|
|
|
%dir %{_libexecdir}/lxc
|
|
|
|
|
|
|
|
%{_libexecdir}/lxc/lxc-init
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files templates
|
|
|
|
%files templates
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_datadir}/lxc/templates/lxc-*
|
|
|
|
%{_libdir}/lxc/templates/lxc-*
|
|
|
|
# needs apt
|
|
|
|
|
|
|
|
%exclude %{_datadir}/lxc/templates/lxc-altlinux
|
|
|
|
|
|
|
|
# needs pacman
|
|
|
|
|
|
|
|
%exclude %{_datadir}/lxc/templates/lxc-archlinux
|
|
|
|
|
|
|
|
# probably outdated
|
|
|
|
|
|
|
|
%exclude %{_datadir}/lxc/templates/lxc-lenny
|
|
|
|
|
|
|
|
# needs zypper
|
|
|
|
|
|
|
|
%exclude %{_datadir}/lxc/templates/lxc-opensuse
|
|
|
|
|
|
|
|
# needs ubuntu-cloudimg-query
|
|
|
|
|
|
|
|
%exclude %{_datadir}/lxc/templates/lxc-ubuntu-cloud
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
%{_datadir}/pkgconfig/%{name}.pc
|
|
|
|
%{_includedir}/lxc
|
|
|
|
%{_includedir}/*
|
|
|
|
|
|
|
|
%{_libdir}/liblxc.so
|
|
|
|
%{_libdir}/liblxc.so
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
%{_docdir}/%{name}
|
|
|
|
%{_docdir}/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Fri Feb 15 2013 Thomas Moschny <thomas.moschny@gmx.de> - 0.8.0-1
|
|
|
|
|
|
|
|
- Update to 0.8.0.
|
|
|
|
|
|
|
|
- Modernize spec file.
|
|
|
|
|
|
|
|
- Include more templates.
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-3
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|