vbootstrap-vl.spec 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  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.54
  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. %if %{?_dist_release} >= "vl7"
  18. Requires: aufs-util
  19. %else
  20. Requires: unionfs-utils
  21. %endif
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. Packager: daisuke, munepi
  25. %description
  26. vbootstrap is used to create a basic Vine Linux system on existing Vine Linux
  27. system. It uses rpm and apt to install basic rpm package into a directory
  28. which can be chrooted into.
  29. vbuilder constracts a chroot environment with vbootstrap, and builds
  30. a rpm package inside the chroot.
  31. it is a useful system to check that a package has correct BuildRequires
  32. dependencies.
  33. %description -l ja
  34. vbootstrap は Vine Linux の基本システムを既存の Vine Linux システム上で
  35. 作成するスクリプトです。rpm および apt を利用して、指定したディレクトリ
  36. 以下に基本の rpm パッケージをインストールし、chroot できるようにします。
  37. vbuilder は vbootstrap を利用して chroot 環境の構築し、
  38. その chroot の中でパッケージをビルドします。
  39. パッケージが正しい BuildRequires 依存関係を持っているかを確認するために
  40. 有用なシステムです。
  41. %prep
  42. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  43. %setup
  44. %build
  45. %__make \
  46. %if %{?_dist_release} == "vl6"
  47. VBUILDER_DEFAULT_VERSION=\${VBUILDER_STABLE_VERSION}
  48. %endif
  49. %if %{?_dist_release} == "vl5"
  50. VBUILDER_DEFAULT_VERSION=5.2
  51. %endif
  52. %install
  53. %__make DESTDIR=$RPM_BUILD_ROOT install
  54. %find_lang %{name}
  55. %clean
  56. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  57. %files -f %{name}.lang
  58. %defattr(-,root,root)
  59. %{_bindir}/vbuilder
  60. %{_sbindir}/vbootstrap
  61. %{_sbindir}/vbuilder
  62. %dir %{_datadir}/vbootstrap
  63. %{_datadir}/vbootstrap/*
  64. %{_sysconfdir}/bash_completion.d/vbuilder
  65. %{_sysconfdir}/vbootstrap/profile.d/sample.conf.skip
  66. %config(noreplace) %{_sysconfdir}/vbootstrap/vbuilder.conf
  67. %config(noreplace) %{_sysconfdir}/pam.d/vbuilder
  68. %config(noreplace) %{_sysconfdir}/security/console.apps/vbuilder
  69. %changelog
  70. * Sun Feb 5 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.54-1
  71. - rename _filedir() as _vbootstrap_filedir()
  72. * Sat Jan 28 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.53-1
  73. - fix unmounting aufs
  74. * Fri Jan 27 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.52-1
  75. - update vbuilder.sh.in
  76. - add "--no-build-essential" option
  77. - R: aufs-util on vl7 or upper
  78. * Fri Jan 27 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.51-1
  79. - update vbuilder.sh.in, libvbuilder.sh.in
  80. - support aufs
  81. * Thu Jan 26 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.50-1
  82. - update 6.0_{i386,x86_64}.sh
  83. - install nss before glibc on vbootstrap
  84. * Sun Jan 22 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.49-1
  85. - updated vbuilder.sh.in
  86. - fixed Usage()
  87. - avoid to output 'W: Duplicate sources.list entry...' in Build()
  88. * Sun Jan 8 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.48-1
  89. - updated vbootstrap.sh.in
  90. - specify a location to fetch base packages
  91. - updated vbuilder.sh.in
  92. - replaced "rpm --addsign" with "rpmsign --addsign"
  93. - added --fetch-url option
  94. - added --profile option
  95. - added sample.conf.skip
  96. * Wed Oct 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.47-1
  97. - added the category updates in 5.2_{i386,ppc,x86_64}, 6.0_{i386,x86_64}
  98. (Thanks to daisuke-san and miyabi-san)
  99. * Sat Aug 20 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.46-1
  100. - updated vbuilder.sh.in
  101. - optimized Build()
  102. - do not install self-build-setup package in Build()
  103. * Tue Aug 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.45-1
  104. - set STABLE_VERSION to 6.0
  105. * Sat Jun 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.44-1
  106. - updated vbuilder
  107. - allowed some illegal patterns of %%{release}
  108. - added UGROUPS=wheel in vbuilder.console
  109. - supported 6.0_i386 and 6.0_x86_64
  110. - updated ja.po
  111. * Sat Apr 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.43-1
  112. - updated vbootstrap
  113. - supported versions format: <version>_<arch>
  114. - updated vbuilder.sh.in
  115. - dropped the action "show-info"
  116. - sync the above change for vbootstrap
  117. - added the target "noarch" in $$RPM_TARGET_LIST
  118. * Sat Apr 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.42-1
  119. - fixed RPM_Sign(), Login_Chroot() in vbuilder.sh.in
  120. - the command "vbuilder clean" returns 0.
  121. * Sat Apr 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.41-1
  122. - updated vbuilder.sh.in
  123. - dropped user_from_uid()
  124. - updated ja.po
  125. * Sun Mar 20 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.40-1
  126. - updated vbuilder.sh.in
  127. - arranged some procedures to mount /proc and unionfs_dir
  128. (Thanks to parrot-san and iwai-san)
  129. * Sun Feb 27 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.39-1
  130. - updated vbuilder.sh.in
  131. - fixed "unionfs_dir" in mount-chroot-mount() (Thanks to Takemikaduchi-san)
  132. - improved Clean()
  133. * Fri Feb 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.38-1
  134. - updated vbuilder.sh.in
  135. - added $$UNIONFS_DIR
  136. - added --debug, --login options
  137. - applied vbootstrap-0.0.37-armhack.patch (Thanks to parrot-san)
  138. * Wed Feb 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.37-1
  139. - fixed a little mistake of vbuilder.sh.in
  140. - supported --unionfs for RPM_Sign()
  141. * Wed Feb 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.36-1
  142. - updated vbuilder.sh.in
  143. - improved RPM_Sign() to sign rpms under usermode
  144. * Wed Jan 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.35-1
  145. - updated po translations
  146. - updated vbuilder.sh.in, vbuilder-bash-completion.sh
  147. - added --rpmbuild-define, --rpmbuild-without option
  148. - supported usermode
  149. - dropped require-root() from vbuilder.sh.in
  150. * Tue Jan 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.34-1
  151. - updated vbuilder.sh.in
  152. - defined require-root() (Thanks to tomo-p-san)
  153. - gettextlize
  154. - added vbootstrap.po, ja.po, Makefile, POTFILES.in in po/
  155. * Tue Jan 11 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.33-1
  156. - added /bin/sh option -l at chroot_sh (Thanks to Takemikaduchi-san)
  157. * Fri Dec 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.32-1
  158. - setarch ix86 if ix86 chroot on x86_64 host
  159. * Fri Dec 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.31-1
  160. - supported Vine Linux 5.2
  161. * Sun Aug 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.30-1
  162. - updated vbuilder.sh.in
  163. - added --rpmbuild-with option
  164. * Sat Jul 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.29-1
  165. - updated vbuilder.sh.in
  166. - added --sign option
  167. - added --no-install option
  168. * Fri Jun 04 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.28-1
  169. - updated vbuilder.sh.in
  170. - made /dev/urandom on chroot in Build()
  171. - added "-o APT::Install::Virtual=true" on apt-get build-dep
  172. to solve BuildRequires dependenceies of virtual packages
  173. * Tue May 04 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.27-1
  174. - changed an order of BASE_PKGS in vbootstrap/scripts/*, respectively
  175. - apt package has Requires: rpm dependence
  176. - dropped "rpm" from $$BASE_PKGS
  177. * Mon May 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.26-1
  178. - updated vbuilder.sh.in
  179. - made /dev/random on chroot in Build()
  180. * Sat Apr 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.25-1
  181. - updated vbuilder.sh.in
  182. - supported "test" category
  183. - added some comments for mount-chroot()
  184. - updated vbuilder-bash-completion.sh
  185. * Sun Apr 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.24-1
  186. - updated vbootstrap.sh.in (daisuke-san)
  187. - changed to cache /var/lib/apt/lists, /var/cache/apt/archives
  188. in bootstrap (not in host)
  189. - set Dir::State and Dir::Cache in APT_OPTS
  190. * Sun Apr 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.23-1
  191. - updated vbuilder.sh.in
  192. - added --category option
  193. * Fri Apr 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.22-1
  194. - updated vbuilder.sh.in:
  195. - added --bootstrap-dir, --built-rpms-dir, --cache-dir options
  196. - added show-info action
  197. - defined write-vbuilder-log()
  198. - added CACHE_DIR in vbuilder.conf.in
  199. - updated vbuilder-bash-completion.sh
  200. * Fri Mar 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.21-1
  201. - updated vbuilder.sh.in:
  202. - added a compatible name for actions:
  203. dropped two hyphens "--" from the head of an action "--hoge"
  204. (e.g. build-rpm = --build-rpm)
  205. - added about vbuilder in %%description and %%description -l ja
  206. - updated vbuilder-bash-completion.sh: s/5.0/5.1/
  207. * Sun Mar 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.20-1
  208. - fixed RPM_Build()
  209. * Fri Mar 05 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.0.19-1
  210. - remove Retry_vbootstrap-post() from the vbuilder script:
  211. the trick (implemented in 0.0.18-1) moved to vbootstrap/scripts/* instead
  212. * Thu Mar 04 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.0.18-1
  213. - vbuilder:Retry_vbootstrap-post(): pass --justdb option to rpm
  214. so that apt-get don't have to actually install packages again
  215. (this will help avoid creating annoying .rpmorig/.rpmnew files)
  216. * Thu Mar 04 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.0.17-1
  217. - add --help option to vbuilder
  218. - ensure all files/subdirectories under BUILT_RPMS_DIR
  219. (i.e. $HOME/vbuilder/{5.1,VineSeed}/{RPMS/{i686,ppc,x86_64},SRPMS}/*)
  220. have ownerships of the user/group who executed "sudo vbuilder"
  221. * Mon Feb 22 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.16-1
  222. - added Requires: unionfs-utils
  223. - updated vbuilder.sh.in
  224. - added --unionfs option
  225. - supported 5.1 (by iwai-san)
  226. * Sat Feb 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.15-1
  227. - added vbuilder-bash-completion.sh
  228. * Sat Feb 13 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.14-1
  229. - updated vbuilder.sh.in
  230. - used __chroot_sh
  231. - improved some functions for mounting file systems
  232. - defined Retry_vbootstrap-post()
  233. * Sat Feb 06 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.13-1
  234. - updated vbuilder.sh.in
  235. - fixed /home/vbuilder/.rpmmacros for VineSeed_i386, VineSeed
  236. - improved some mounting processes
  237. - defined mount_cache_dir()
  238. * Sun Jan 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.12-1
  239. - added 4.2_i386
  240. - updated vbuilder.sh.in
  241. - supported 4.2_i386 chroot on x86_64
  242. * Tue Jan 05 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.11-1
  243. - updated vbuilder.sh.in
  244. - added Japanese translations for error messages
  245. - improved some mounting processes
  246. - defined some mount functions
  247. - defined apt-get-update() function
  248. - defined check-parameter() function
  249. * Tue Dec 29 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.10-1
  250. - updated vbuilder.sh.in
  251. - added --dist-upgrade option which provides a flag to build
  252. VineSeed bootstrap via stable relase version
  253. * Sat Dec 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.9-1
  254. - fixed vbuilder.sh.in around --target option
  255. * Sat Dec 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.8-1
  256. - updated vbuilder.sh.in
  257. - added --target option which gives a build target of source rpm
  258. * Sun Nov 22 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.7-1
  259. - updated vbuilder.sh.in
  260. * Sat Oct 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.6-1
  261. - updated vbuilder.sh.in, little
  262. * Sat Oct 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.5-1
  263. - updated vbuilder.sh.in and vbuilder.conf.in
  264. - extended to store built rpms on chroot env. in each arch. of home rpm dir.
  265. * Sun Sep 13 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.4-1
  266. - added vine-release in BASE_PKGS of scripts/*
  267. - added vbuilder.conf
  268. - updated vbuilder.sh.in
  269. * Tue Sep 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.3-2
  270. - rebuilt to add signature
  271. * Mon Aug 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.3-1
  272. - support 5.0 (by daisuke-san)
  273. - update vbuilder.sh.in
  274. - check chroot archtecture
  275. * Mon Jun 29 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.2-1
  276. - add vbuilder
  277. * Wed Mar 18 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.1-1
  278. - initial build