2009-07-28 07:07:50 +00:00
|
|
|
Name: lxc
|
2012-03-26 15:23:35 +00:00
|
|
|
Version: 0.7.5
|
|
|
|
Release: 1%{?dist}
|
2009-07-28 07:07:50 +00:00
|
|
|
Summary: Linux Resource Containers
|
|
|
|
|
|
|
|
Group: Applications/System
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: http://lxc.sourceforge.net
|
|
|
|
Source0: http://lxc.sourceforge.net/download/lxc/%{name}-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
BuildRequires: docbook-utils
|
|
|
|
BuildRequires: kernel-headers
|
|
|
|
BuildRequires: libcap-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
|
|
|
%description
|
|
|
|
Linux Resource Containers provide process and resource isolation without the
|
|
|
|
overhead of full virtualization.
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
Summary: Runtime library files for %{name}
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description libs
|
|
|
|
Linux Resource Containers provide process and resource isolation without the
|
|
|
|
overhead of full virtualization.
|
|
|
|
|
|
|
|
The %{name}-libs package contains libraries for running %{name} applications.
|
|
|
|
|
2011-03-28 03:00:01 +00:00
|
|
|
%package templates
|
|
|
|
Summary: Templates for %{name}
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: debootstrap
|
|
|
|
|
|
|
|
%description templates
|
|
|
|
Linux Resource Containers provide process and resource isolation without the
|
|
|
|
overhead of full virtualization.
|
|
|
|
|
|
|
|
The %{name}-template package contains templates for creating containers.
|
|
|
|
|
2009-07-28 07:07:50 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Linux Resource Containers provide process and resource isolation without the
|
|
|
|
overhead of full virtualization.
|
|
|
|
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
2009-11-27 22:42:04 +00:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description doc
|
2010-02-18 05:25:09 +00:00
|
|
|
This package contains documentation for %{name}.
|
2009-11-27 22:42:04 +00:00
|
|
|
|
2009-07-28 07:07:50 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2009-11-27 22:42:04 +00:00
|
|
|
# Fix binary-or-shlib-defines-rpath error
|
2012-03-26 15:23:35 +00:00
|
|
|
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}
|
2009-07-28 07:07:50 +00:00
|
|
|
|
2010-07-26 17:05:45 +00:00
|
|
|
%check
|
2012-03-26 15:23:35 +00:00
|
|
|
make check
|
2010-07-26 17:05:45 +00:00
|
|
|
|
2009-07-28 07:07:50 +00:00
|
|
|
%install
|
2010-07-26 17:05:45 +00:00
|
|
|
rm -rf %{buildroot}
|
2012-03-26 15:23:35 +00:00
|
|
|
make DESTDIR=%{buildroot} install
|
2009-07-28 07:07:50 +00:00
|
|
|
find %{buildroot} -name '*.la' -delete
|
2012-03-26 15:23:35 +00:00
|
|
|
mkdir -p %{buildroot}%{_sharedstatedir}/%{name}
|
2011-03-28 03:00:01 +00:00
|
|
|
|
|
|
|
find %{buildroot}%{_libdir}/lxc/templates \
|
|
|
|
-type f \
|
|
|
|
-not -name lxc-maverick \
|
|
|
|
-not -name lxc-sshd \
|
|
|
|
-delete
|
2009-07-28 07:07:50 +00:00
|
|
|
|
|
|
|
%clean
|
2012-03-26 15:23:35 +00:00
|
|
|
rm -rf %{buildroot}
|
2009-07-28 07:07:50 +00:00
|
|
|
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc AUTHORS COPYING README
|
|
|
|
%{_bindir}/%{name}-*
|
|
|
|
%{_mandir}/man*/%{name}*
|
2010-02-18 05:25:09 +00:00
|
|
|
%{_sharedstatedir}/%{name}
|
2009-07-28 07:07:50 +00:00
|
|
|
|
|
|
|
%files libs
|
|
|
|
%defattr(-,root,root,-)
|
2011-03-28 03:00:01 +00:00
|
|
|
%doc AUTHORS COPYING
|
|
|
|
%dir %{_libdir}/lxc
|
|
|
|
%dir %{_libdir}/lxc/templates
|
2009-11-27 22:42:04 +00:00
|
|
|
%{_libdir}/liblxc.so.*
|
2011-03-28 03:00:01 +00:00
|
|
|
%{_libdir}/lxc/lxc-init
|
|
|
|
%{_libdir}/lxc/rootfs
|
|
|
|
|
|
|
|
%files templates
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/lxc/templates/lxc-*
|
2009-07-28 07:07:50 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_datadir}/pkgconfig/%{name}.pc
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/liblxc.so
|
|
|
|
|
2009-11-27 22:42:04 +00:00
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_docdir}/%{name}
|
|
|
|
|
2009-07-28 07:07:50 +00:00
|
|
|
%changelog
|
2012-03-26 15:23:35 +00:00
|
|
|
* Mon Mar 26 2012 Thomas Moschny <thomas.moschny@gmx.de> - 0.7.5-1
|
|
|
|
- Update to upstream 0.7.5
|
|
|
|
- No need to run autogen.sh
|
|
|
|
- Fix: kernel header asm/unistd.h was not found
|
|
|
|
- Specfile cleanups
|
|
|
|
|
2012-01-13 09:07:42 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.4.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-07-29 16:48:40 +00:00
|
|
|
* Wed Jul 06 2011 Adam Miller <maxamillion@fedoraproject.org> - 0.7.4.2-1
|
|
|
|
- Update to upstream 0.7.4.2
|
|
|
|
|
2011-03-28 03:00:01 +00:00
|
|
|
* Fri Mar 25 2011 Silas Sewell <silas@sewell.ch> - 0.7.4.1-1
|
|
|
|
- Update to 0.7.4.1
|
|
|
|
|
2011-02-08 14:32:36 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-07-26 17:05:45 +00:00
|
|
|
* Mon Jul 26 2010 Silas Sewell <silas@sewell.ch> - 0.7.2-1
|
|
|
|
- Update to 0.7.2
|
|
|
|
- Remove templates
|
|
|
|
|
|
|
|
* Tue Jul 06 2010 Silas Sewell <silas@sewell.ch> - 0.7.1-1
|
|
|
|
- Update to 0.7.1
|
|
|
|
|
2010-02-18 05:25:09 +00:00
|
|
|
* Wed Feb 17 2010 Silas Sewell <silas@sewell.ch> - 0.6.5-1
|
|
|
|
- Update to latest release
|
|
|
|
- Add /var/lib/lxc directory
|
|
|
|
- Patch for sys/stat.h
|
|
|
|
|
2009-11-27 22:42:04 +00:00
|
|
|
* Fri Nov 27 2009 Silas Sewell <silas@sewell.ch> - 0.6.4-1
|
|
|
|
- Update to latest release
|
|
|
|
- Add documentation sub-package
|
|
|
|
|
2009-07-28 07:07:50 +00:00
|
|
|
* Mon Jul 27 2009 Silas Sewell <silas@sewell.ch> - 0.6.3-2
|
2009-11-27 22:42:04 +00:00
|
|
|
- Apply patch for rawhide kernel
|
2009-07-28 07:07:50 +00:00
|
|
|
|
|
|
|
* Sat Jul 25 2009 Silas Sewell <silas@sewell.ch> - 0.6.3-1
|
2009-11-27 22:42:04 +00:00
|
|
|
- Initial package
|
2011-07-29 16:48:40 +00:00
|
|
|
|