lxc-vl.spec 4.7 KB

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