vbootstrap-vl.spec 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  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.42
  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. %if %{?_dist_release} == "vl5"
  43. VBUILDER_DEFAULT_VERSION=\${VBUILDER_STABLE_VERSION}
  44. %endif
  45. %install
  46. %__make DESTDIR=$RPM_BUILD_ROOT install
  47. %find_lang %{name}
  48. %clean
  49. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  50. %files -f %{name}.lang
  51. %defattr(-,root,root)
  52. %{_bindir}/vbuilder
  53. %{_sbindir}/vbootstrap
  54. %{_sbindir}/vbuilder
  55. %dir %{_datadir}/vbootstrap
  56. %{_datadir}/vbootstrap/*
  57. %{_sysconfdir}/bash_completion.d/vbuilder
  58. %config(noreplace) %{_sysconfdir}/vbootstrap/vbuilder.conf
  59. %config(noreplace) %{_sysconfdir}/pam.d/vbuilder
  60. %config(noreplace) %{_sysconfdir}/security/console.apps/vbuilder
  61. %changelog
  62. * Sat Apr 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.42-1
  63. - fixed RPM_Sign(), Login_Chroot() in vbuilder.sh.in
  64. - the command "vbuilder clean" returns 0.
  65. * Sat Apr 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.41-1
  66. - updated vbuilder.sh.in
  67. - dropped user_from_uid()
  68. - updated ja.po
  69. * Sun Mar 20 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.40-1
  70. - updated vbuilder.sh.in
  71. - arranged some procedures to mount /proc and unionfs_dir
  72. (Thanks to parrot-san and iwai-san)
  73. * Sun Feb 27 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.39-1
  74. - updated vbuilder.sh.in
  75. - fixed "unionfs_dir" in mount-chroot-mount() (Thanks to Takemikaduchi-san)
  76. - improved Clean()
  77. * Fri Feb 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.38-1
  78. - updated vbuilder.sh.in
  79. - added $$UNIONFS_DIR
  80. - added --debug, --login options
  81. - applied vbootstrap-0.0.37-armhack.patch (Thanks to parrot-san)
  82. * Wed Feb 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.37-1
  83. - fixed a little mistake of vbuilder.sh.in
  84. - supported --unionfs for RPM_Sign()
  85. * Wed Feb 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.36-1
  86. - updated vbuilder.sh.in
  87. - improved RPM_Sign() to sign rpms under usermode
  88. * Wed Jan 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.35-1
  89. - updated po translations
  90. - updated vbuilder.sh.in, vbuilder-bash-completion.sh
  91. - added --rpmbuild-define, --rpmbuild-without option
  92. - supported usermode
  93. - dropped require-root() from vbuilder.sh.in
  94. * Tue Jan 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.34-1
  95. - updated vbuilder.sh.in
  96. - defined require-root() (Thanks to tomo-p-san)
  97. - gettextlize
  98. - added vbootstrap.po, ja.po, Makefile, POTFILES.in in po/
  99. * Tue Jan 11 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.33-1
  100. - added /bin/sh option -l at chroot_sh (Thanks to Takemikaduchi-san)
  101. * Fri Dec 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.32-1
  102. - setarch ix86 if ix86 chroot on x86_64 host
  103. * Fri Dec 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.31-1
  104. - supported Vine Linux 5.2
  105. * Sun Aug 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.30-1
  106. - updated vbuilder.sh.in
  107. - added --rpmbuild-with option
  108. * Sat Jul 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.29-1
  109. - updated vbuilder.sh.in
  110. - added --sign option
  111. - added --no-install option
  112. * Fri Jun 04 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.28-1
  113. - updated vbuilder.sh.in
  114. - made /dev/urandom on chroot in Build()
  115. - added "-o APT::Install::Virtual=true" on apt-get build-dep
  116. to solve BuildRequires dependenceies of virtual packages
  117. * Tue May 04 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.27-1
  118. - changed an order of BASE_PKGS in vbootstrap/scripts/*, respectively
  119. - apt package has Requires: rpm dependence
  120. - dropped "rpm" from $$BASE_PKGS
  121. * Mon May 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.26-1
  122. - updated vbuilder.sh.in
  123. - made /dev/random on chroot in Build()
  124. * Sat Apr 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.25-1
  125. - updated vbuilder.sh.in
  126. - supported "test" category
  127. - added some comments for mount-chroot()
  128. - updated vbuilder-bash-completion.sh
  129. * Sun Apr 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.24-1
  130. - updated vbootstrap.sh.in (daisuke-san)
  131. - changed to cache /var/lib/apt/lists, /var/cache/apt/archives
  132. in bootstrap (not in host)
  133. - set Dir::State and Dir::Cache in APT_OPTS
  134. * Sun Apr 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.23-1
  135. - updated vbuilder.sh.in
  136. - added --category option
  137. * Fri Apr 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.22-1
  138. - updated vbuilder.sh.in:
  139. - added --bootstrap-dir, --built-rpms-dir, --cache-dir options
  140. - added show-info action
  141. - defined write-vbuilder-log()
  142. - added CACHE_DIR in vbuilder.conf.in
  143. - updated vbuilder-bash-completion.sh
  144. * Fri Mar 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.21-1
  145. - updated vbuilder.sh.in:
  146. - added a compatible name for actions:
  147. dropped two hyphens "--" from the head of an action "--hoge"
  148. (e.g. build-rpm = --build-rpm)
  149. - added about vbuilder in %%description and %%description -l ja
  150. - updated vbuilder-bash-completion.sh: s/5.0/5.1/
  151. * Sun Mar 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.20-1
  152. - fixed RPM_Build()
  153. * Fri Mar 05 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.0.19-1
  154. - remove Retry_vbootstrap-post() from the vbuilder script:
  155. the trick (implemented in 0.0.18-1) moved to vbootstrap/scripts/* instead
  156. * Thu Mar 04 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.0.18-1
  157. - vbuilder:Retry_vbootstrap-post(): pass --justdb option to rpm
  158. so that apt-get don't have to actually install packages again
  159. (this will help avoid creating annoying .rpmorig/.rpmnew files)
  160. * Thu Mar 04 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.0.17-1
  161. - add --help option to vbuilder
  162. - ensure all files/subdirectories under BUILT_RPMS_DIR
  163. (i.e. $HOME/vbuilder/{5.1,VineSeed}/{RPMS/{i686,ppc,x86_64},SRPMS}/*)
  164. have ownerships of the user/group who executed "sudo vbuilder"
  165. * Mon Feb 22 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.16-1
  166. - added Requires: unionfs-utils
  167. - updated vbuilder.sh.in
  168. - added --unionfs option
  169. - supported 5.1 (by iwai-san)
  170. * Sat Feb 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.15-1
  171. - added vbuilder-bash-completion.sh
  172. * Sat Feb 13 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.14-1
  173. - updated vbuilder.sh.in
  174. - used __chroot_sh
  175. - improved some functions for mounting file systems
  176. - defined Retry_vbootstrap-post()
  177. * Sat Feb 06 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.13-1
  178. - updated vbuilder.sh.in
  179. - fixed /home/vbuilder/.rpmmacros for VineSeed_i386, VineSeed
  180. - improved some mounting processes
  181. - defined mount_cache_dir()
  182. * Sun Jan 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.12-1
  183. - added 4.2_i386
  184. - updated vbuilder.sh.in
  185. - supported 4.2_i386 chroot on x86_64
  186. * Tue Jan 05 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.11-1
  187. - updated vbuilder.sh.in
  188. - added Japanese translations for error messages
  189. - improved some mounting processes
  190. - defined some mount functions
  191. - defined apt-get-update() function
  192. - defined check-parameter() function
  193. * Tue Dec 29 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.10-1
  194. - updated vbuilder.sh.in
  195. - added --dist-upgrade option which provides a flag to build
  196. VineSeed bootstrap via stable relase version
  197. * Sat Dec 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.9-1
  198. - fixed vbuilder.sh.in around --target option
  199. * Sat Dec 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.8-1
  200. - updated vbuilder.sh.in
  201. - added --target option which gives a build target of source rpm
  202. * Sun Nov 22 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.7-1
  203. - updated vbuilder.sh.in
  204. * Sat Oct 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.6-1
  205. - updated vbuilder.sh.in, little
  206. * Sat Oct 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.5-1
  207. - updated vbuilder.sh.in and vbuilder.conf.in
  208. - extended to store built rpms on chroot env. in each arch. of home rpm dir.
  209. * Sun Sep 13 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.4-1
  210. - added vine-release in BASE_PKGS of scripts/*
  211. - added vbuilder.conf
  212. - updated vbuilder.sh.in
  213. * Tue Sep 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.3-2
  214. - rebuilt to add signature
  215. * Mon Aug 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.3-1
  216. - support 5.0 (by daisuke-san)
  217. - update vbuilder.sh.in
  218. - check chroot archtecture
  219. * Mon Jun 29 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.2-1
  220. - add vbuilder
  221. * Wed Mar 18 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.1-1
  222. - initial build