lxc-vl.spec 4.9 KB

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