vbootstrap-vl.spec 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. # This package is maintained on trac svn repository. Please do not change on local.
  2. # If you find a BUG, please report to Vine@vinelinux.org or mailing list or BTS.
  3. %define version 0.0.28
  4. Summary: bootstrap scripts to create a basic Vine Linux system
  5. Summary(ja): Vine Linux の基本システムを作成するためのスクリプト
  6. Name: vbootstrap
  7. Version: %{version}
  8. Release: 1%{?_dist_release}
  9. License: public domain
  10. Group: Development/Tools
  11. Url: http://trac.vinelinux.org/wiki/VineBootstrap
  12. Source0: %{name}-%{version}.tar.bz2
  13. Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
  14. BuildArch: noarch
  15. BuildRequires: sed
  16. Requires: bash, apt
  17. Requires: unionfs-utils
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. Packager: daisuke, munepi
  21. %description
  22. vbootstrap is used to create a basic Vine Linux system on existing Vine Linux
  23. system. It uses rpm and apt to install basic rpm package into a directory
  24. which can be chrooted into.
  25. vbuilder constracts a chroot environment with vbootstrap, and builds
  26. a rpm package inside the chroot.
  27. it is a useful system to check that a package has correct BuildRequires
  28. dependencies.
  29. %description -l ja
  30. vbootstrap は Vine Linux の基本システムを既存の Vine Linux システム上で
  31. 作成するスクリプトです。rpm および apt を利用して、指定したディレクトリ
  32. 以下に基本の rpm パッケージをインストールし、chroot できるようにします。
  33. vbuilder は vbootstrap を利用して chroot 環境の構築し、
  34. その chroot の中でパッケージをビルドします。
  35. パッケージが正しい BuildRequires 依存関係を持っているかを確認するために
  36. 有用なシステムです。
  37. %prep
  38. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  39. %setup
  40. %build
  41. %__make
  42. %install
  43. %__make DESTDIR=$RPM_BUILD_ROOT install
  44. %clean
  45. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  46. %files
  47. %defattr(-,root,root)
  48. %{_sbindir}/vbootstrap
  49. %{_sbindir}/vbuilder
  50. %dir %{_datadir}/vbootstrap
  51. %{_datadir}/vbootstrap/*
  52. %{_sysconfdir}/bash_completion.d/vbuilder
  53. %config(noreplace) %{_sysconfdir}/vbootstrap/vbuilder.conf
  54. %changelog
  55. * Xxx Yyy ZZ 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.28-1
  56. * Tue May 04 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.27-1
  57. - changed an order of BASE_PKGS in vbootstrap/scripts/*, respectively
  58. - apt package has Requires: rpm dependence
  59. - dropped "rpm" from $$BASE_PKGS
  60. * Mon May 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.26-1
  61. - updated vbuilder.sh.in
  62. - made /dev/random on chroot in Build()
  63. * Sat Apr 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.25-1
  64. - updated vbuilder.sh.in
  65. - supported "test" category
  66. - added some comments for mount-chroot()
  67. - updated vbuilder-bash-completion.sh
  68. * Sun Apr 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.24-1
  69. - updated vbootstrap.sh.in (daisuke-san)
  70. - changed to cache /var/lib/apt/lists, /var/cache/apt/archives
  71. in bootstrap (not in host)
  72. - set Dir::State and Dir::Cache in APT_OPTS
  73. * Sun Apr 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.23-1
  74. - updated vbuilder.sh.in
  75. - added --category option
  76. * Fri Apr 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.22-1
  77. - updated vbuilder.sh.in:
  78. - added --bootstrap-dir, --built-rpms-dir, --cache-dir options
  79. - added show-info action
  80. - defined write-vbuilder-log()
  81. - added CACHE_DIR in vbuilder.conf.in
  82. - updated vbuilder-bash-completion.sh
  83. * Fri Mar 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.21-1
  84. - updated vbuilder.sh.in:
  85. - added a compatible name for actions:
  86. dropped two hyphens "--" from the head of an action "--hoge"
  87. (e.g. build-rpm = --build-rpm)
  88. - added about vbuilder in %%description and %%description -l ja
  89. - updated vbuilder-bash-completion.sh: s/5.0/5.1/
  90. * Sun Mar 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.20-1
  91. - fixed RPM_Build()
  92. * Fri Mar 05 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.0.19-1
  93. - remove Retry_vbootstrap-post() from the vbuilder script:
  94. the trick (implemented in 0.0.18-1) moved to vbootstrap/scripts/* instead
  95. * Thu Mar 04 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.0.18-1
  96. - vbuilder:Retry_vbootstrap-post(): pass --justdb option to rpm
  97. so that apt-get don't have to actually install packages again
  98. (this will help avoid creating annoying .rpmorig/.rpmnew files)
  99. * Thu Mar 04 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.0.17-1
  100. - add --help option to vbuilder
  101. - ensure all files/subdirectories under BUILT_RPMS_DIR
  102. (i.e. $HOME/vbuilder/{5.1,VineSeed}/{RPMS/{i686,ppc,x86_64},SRPMS}/*)
  103. have ownerships of the user/group who executed "sudo vbuilder"
  104. * Mon Feb 22 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.16-1
  105. - added Requires: unionfs-utils
  106. - updated vbuilder.sh.in
  107. - added --unionfs option
  108. - supported 5.1 (by iwai-san)
  109. * Sat Feb 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.15-1
  110. - added vbuilder-bash-completion.sh
  111. * Sat Feb 13 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.14-1
  112. - updated vbuilder.sh.in
  113. - used __chroot_sh
  114. - improved some functions for mounting file systems
  115. - defined Retry_vbootstrap-post()
  116. * Sat Feb 06 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.13-1
  117. - updated vbuilder.sh.in
  118. - fixed /home/vbuilder/.rpmmacros for VineSeed_i386, VineSeed
  119. - improved some mounting processes
  120. - defined mount_cache_dir()
  121. * Sun Jan 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.12-1
  122. - added 4.2_i386
  123. - updated vbuilder.sh.in
  124. - supported 4.2_i386 chroot on x86_64
  125. * Tue Jan 05 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.11-1
  126. - updated vbuilder.sh.in
  127. - added Japanese translations for error messages
  128. - improved some mounting processes
  129. - defined some mount functions
  130. - defined apt-get-update() function
  131. - defined check-parameter() function
  132. * Tue Dec 29 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.10-1
  133. - updated vbuilder.sh.in
  134. - added --dist-upgrade option which provides a flag to build
  135. VineSeed bootstrap via stable relase version
  136. * Sat Dec 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.9-1
  137. - fixed vbuilder.sh.in around --target option
  138. * Sat Dec 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.8-1
  139. - updated vbuilder.sh.in
  140. - added --target option which gives a build target of source rpm
  141. * Sun Nov 22 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.7-1
  142. - updated vbuilder.sh.in
  143. * Sat Oct 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.6-1
  144. - updated vbuilder.sh.in, little
  145. * Sat Oct 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.5-1
  146. - updated vbuilder.sh.in and vbuilder.conf.in
  147. - extended to store built rpms on chroot env. in each arch. of home rpm dir.
  148. * Sun Sep 13 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.4-1
  149. - added vine-release in BASE_PKGS of scripts/*
  150. - added vbuilder.conf
  151. - updated vbuilder.sh.in
  152. * Tue Sep 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.3-2
  153. - rebuilt to add signature
  154. * Mon Aug 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.3-1
  155. - support 5.0 (by daisuke-san)
  156. - update vbuilder.sh.in
  157. - check chroot archtecture
  158. * Mon Jun 29 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.2-1
  159. - add vbuilder
  160. * Wed Mar 18 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.1-1
  161. - initial build