[5495] | 1 | %define gitdate 20120105 |
---|
[3720] | 2 | Name: lxc |
---|
[6027] | 3 | Version: 0.8.0 |
---|
| 4 | Release: 0.rc1%{?_dist_release} |
---|
[3720] | 5 | Summary: Linux Resource Containers |
---|
| 6 | Summary(ja): Linux リソースコンテナ |
---|
| 7 | |
---|
| 8 | Group: Applications/System |
---|
| 9 | License: LGPLv2+ |
---|
| 10 | URL: http://lxc.sourceforge.net |
---|
[6027] | 11 | Source0: http://lxc.sourceforge.net/download/lxc/%{name}-%{version}-rc1.tar.gz |
---|
| 12 | Patch1: lxc-0.8.0-rc1-fix-broken-ns-cgroup.patch |
---|
| 13 | |
---|
[3720] | 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 15 | |
---|
| 16 | BuildRequires: automake |
---|
| 17 | BuildRequires: docbook-utils |
---|
| 18 | BuildRequires: kernel-headers |
---|
| 19 | BuildRequires: libcap-devel |
---|
| 20 | BuildRequires: libtool |
---|
| 21 | |
---|
| 22 | Vendor: Project Vine |
---|
| 23 | Distribution: Vine Linux |
---|
| 24 | Packager: daisuke |
---|
| 25 | |
---|
| 26 | %description |
---|
| 27 | Linux Resource Containers provide process and resource isolation without the |
---|
| 28 | overhead of full virtualization. |
---|
| 29 | |
---|
| 30 | %package libs |
---|
| 31 | Summary: Runtime library files for %{name} |
---|
| 32 | Summary(ja): %{name} のランタイムライブラリ |
---|
| 33 | Group: System Environment/Libraries |
---|
| 34 | Requires: %{name} = %{version}-%{release} |
---|
| 35 | |
---|
| 36 | %description libs |
---|
| 37 | Linux Resource Containers provide process and resource isolation without the |
---|
| 38 | overhead of full virtualization. |
---|
| 39 | |
---|
| 40 | The %{name}-libs package contains libraries for running %{name} applications. |
---|
| 41 | |
---|
| 42 | %package templates |
---|
| 43 | Summary: Templates for %{name} |
---|
| 44 | Summary(ja): %{name} 用のテンプレート |
---|
| 45 | Group: System Environment/Libraries |
---|
| 46 | Requires: %{name} = %{version}-%{release} |
---|
| 47 | Requires: debootstrap |
---|
| 48 | |
---|
| 49 | %description templates |
---|
| 50 | Linux Resource Containers provide process and resource isolation without the |
---|
| 51 | overhead of full virtualization. |
---|
| 52 | |
---|
| 53 | The %{name}-template package contains templates for creating containers. |
---|
| 54 | |
---|
| 55 | %package devel |
---|
| 56 | Summary: Development files for %{name} |
---|
| 57 | Summary(ja): %{name} の開発ライブラリ |
---|
| 58 | Group: Development/Libraries |
---|
| 59 | Requires: %{name} = %{version}-%{release} |
---|
| 60 | Requires: pkgconfig |
---|
| 61 | |
---|
| 62 | %description devel |
---|
| 63 | Linux Resource Containers provide process and resource isolation without the |
---|
| 64 | overhead of full virtualization. |
---|
| 65 | |
---|
| 66 | The %{name}-devel package contains libraries and header files for |
---|
| 67 | developing applications that use %{name}. |
---|
| 68 | |
---|
| 69 | %package doc |
---|
| 70 | Summary: Documentation for %{name} |
---|
| 71 | Summary(ja): %{name} のドキュメント |
---|
| 72 | Group: Documentation |
---|
| 73 | Requires: %{name} = %{version}-%{release} |
---|
| 74 | |
---|
| 75 | %description doc |
---|
| 76 | This package contains documentation for %{name}. |
---|
| 77 | |
---|
| 78 | %prep |
---|
[6027] | 79 | %setup -q -n %{name}-%{version}-rc1 |
---|
| 80 | %patch1 -p1 |
---|
[3720] | 81 | |
---|
| 82 | %build |
---|
| 83 | ./autogen.sh |
---|
| 84 | %configure F77=no |
---|
| 85 | # Fix binary-or-shlib-defines-rpath error |
---|
| 86 | %{__sed} -i '/AM_LDFLAGS = -Wl,-E -Wl,-rpath -Wl,$(libdir)/d' src/lxc/Makefile.in |
---|
| 87 | %{__make} %{?_smp_mflags} |
---|
| 88 | |
---|
| 89 | %check |
---|
| 90 | %{__make} check |
---|
| 91 | |
---|
| 92 | %install |
---|
| 93 | rm -rf %{buildroot} |
---|
| 94 | %{__make} DESTDIR=%{buildroot} install |
---|
| 95 | find %{buildroot} -name '*.la' -delete |
---|
| 96 | %{__mkdir} -p %{buildroot}%{_sharedstatedir}/%{name} |
---|
| 97 | %{__mkdir} -p %{buildroot}%{_localstatedir}/lib/%{name} |
---|
| 98 | |
---|
| 99 | %clean |
---|
| 100 | %{__rm} -rf %{buildroot} |
---|
| 101 | |
---|
| 102 | %post libs -p /sbin/ldconfig |
---|
| 103 | |
---|
| 104 | %postun libs -p /sbin/ldconfig |
---|
| 105 | |
---|
| 106 | %files |
---|
| 107 | %defattr(-,root,root,-) |
---|
| 108 | %doc AUTHORS COPYING README |
---|
| 109 | %{_bindir}/%{name}-* |
---|
| 110 | %{_mandir}/man*/%{name}* |
---|
| 111 | %{_sharedstatedir}/%{name} |
---|
| 112 | %{_localstatedir}/lib/%{name} |
---|
| 113 | |
---|
| 114 | %files libs |
---|
| 115 | %defattr(-,root,root,-) |
---|
| 116 | %doc AUTHORS COPYING |
---|
| 117 | %dir %{_libdir}/lxc |
---|
| 118 | %dir %{_libdir}/lxc/templates |
---|
| 119 | %{_libdir}/liblxc.so.* |
---|
| 120 | %{_libdir}/lxc/rootfs |
---|
[6027] | 121 | %{_libexecdir}/lxc/lxc-init |
---|
[3720] | 122 | |
---|
| 123 | %files templates |
---|
| 124 | %defattr(-,root,root,-) |
---|
| 125 | %{_libdir}/lxc/templates/lxc-* |
---|
| 126 | |
---|
| 127 | %files devel |
---|
| 128 | %defattr(-,root,root,-) |
---|
| 129 | %{_datadir}/pkgconfig/%{name}.pc |
---|
| 130 | %{_includedir}/* |
---|
| 131 | %{_libdir}/liblxc.so |
---|
| 132 | |
---|
| 133 | %files doc |
---|
| 134 | %defattr(-,root,root,-) |
---|
| 135 | %{_docdir}/%{name} |
---|
| 136 | |
---|
| 137 | %changelog |
---|
[6027] | 138 | * Wed Apr 25 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.0-0.rc1 |
---|
| 139 | - new upstream release |
---|
| 140 | |
---|
[5495] | 141 | * Thu Jan 26 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.5-1.20120105 |
---|
| 142 | - update to git current (20120105) |
---|
| 143 | |
---|
[4061] | 144 | * Mon Jun 06 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.4.2-1 |
---|
| 145 | - update to 0.7.4.2 |
---|
| 146 | |
---|
[3720] | 147 | * Thu Apr 28 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.4.1-2 |
---|
| 148 | - include all templates |
---|
| 149 | |
---|
| 150 | * Wed Apr 27 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.4.1-1 |
---|
| 151 | - initial build for Vine Linux |
---|
| 152 | |
---|
| 153 | * Fri Mar 25 2011 Silas Sewell <silas@sewell.ch> - 0.7.4.1-1 |
---|
| 154 | - Update to 0.7.4.1 |
---|
| 155 | |
---|
| 156 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-2 |
---|
| 157 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 158 | |
---|
| 159 | * Mon Jul 26 2010 Silas Sewell <silas@sewell.ch> - 0.7.2-1 |
---|
| 160 | - Update to 0.7.2 |
---|
| 161 | - Remove templates |
---|
| 162 | |
---|
| 163 | * Tue Jul 06 2010 Silas Sewell <silas@sewell.ch> - 0.7.1-1 |
---|
| 164 | - Update to 0.7.1 |
---|
| 165 | |
---|
| 166 | * Wed Feb 17 2010 Silas Sewell <silas@sewell.ch> - 0.6.5-1 |
---|
| 167 | - Update to latest release |
---|
| 168 | - Add /var/lib/lxc directory |
---|
| 169 | - Patch for sys/stat.h |
---|
| 170 | |
---|
| 171 | * Fri Nov 27 2009 Silas Sewell <silas@sewell.ch> - 0.6.4-1 |
---|
| 172 | - Update to latest release |
---|
| 173 | - Add documentation sub-package |
---|
| 174 | |
---|
| 175 | * Mon Jul 27 2009 Silas Sewell <silas@sewell.ch> - 0.6.3-2 |
---|
| 176 | - Apply patch for rawhide kernel |
---|
| 177 | |
---|
| 178 | * Sat Jul 25 2009 Silas Sewell <silas@sewell.ch> - 0.6.3-1 |
---|
| 179 | - Initial package |
---|