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