vbootstrap-vl.spec 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  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.56
  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. * Tue Jun 19 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.56-1
  71. - use /proc/filesystem to detect aufs capability
  72. * Tue May 1 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.55-1
  73. - added util-linux in $$BASE_PKGS (scripts/VineSeed_{i386,x86_64})
  74. * Sun Feb 5 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.54-1
  75. - rename _filedir() as _vbootstrap_filedir()
  76. * Sat Jan 28 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.53-1
  77. - fix unmounting aufs
  78. * Fri Jan 27 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.52-1
  79. - update vbuilder.sh.in
  80. - add "--no-build-essential" option
  81. - R: aufs-util on vl7 or upper
  82. * Fri Jan 27 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.51-1
  83. - update vbuilder.sh.in, libvbuilder.sh.in
  84. - support aufs
  85. * Thu Jan 26 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.50-1
  86. - update 6.0_{i386,x86_64}.sh
  87. - install nss before glibc on vbootstrap
  88. * Sun Jan 22 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.49-1
  89. - updated vbuilder.sh.in
  90. - fixed Usage()
  91. - avoid to output 'W: Duplicate sources.list entry...' in Build()
  92. * Sun Jan 8 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.48-1
  93. - updated vbootstrap.sh.in
  94. - specify a location to fetch base packages
  95. - updated vbuilder.sh.in
  96. - replaced "rpm --addsign" with "rpmsign --addsign"
  97. - added --fetch-url option
  98. - added --profile option
  99. - added sample.conf.skip
  100. * Wed Oct 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.47-1
  101. - added the category updates in 5.2_{i386,ppc,x86_64}, 6.0_{i386,x86_64}
  102. (Thanks to daisuke-san and miyabi-san)
  103. * Sat Aug 20 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.46-1
  104. - updated vbuilder.sh.in
  105. - optimized Build()
  106. - do not install self-build-setup package in Build()
  107. * Tue Aug 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.45-1
  108. - set STABLE_VERSION to 6.0
  109. * Sat Jun 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.44-1
  110. - updated vbuilder
  111. - allowed some illegal patterns of %%{release}
  112. - added UGROUPS=wheel in vbuilder.console
  113. - supported 6.0_i386 and 6.0_x86_64
  114. - updated ja.po
  115. * Sat Apr 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.43-1
  116. - updated vbootstrap
  117. - supported versions format: <version>_<arch>
  118. - updated vbuilder.sh.in
  119. - dropped the action "show-info"
  120. - sync the above change for vbootstrap
  121. - added the target "noarch" in $$RPM_TARGET_LIST
  122. * Sat Apr 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.42-1
  123. - fixed RPM_Sign(), Login_Chroot() in vbuilder.sh.in
  124. - the command "vbuilder clean" returns 0.
  125. * Sat Apr 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.41-1
  126. - updated vbuilder.sh.in
  127. - dropped user_from_uid()
  128. - updated ja.po
  129. * Sun Mar 20 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.40-1
  130. - updated vbuilder.sh.in
  131. - arranged some procedures to mount /proc and unionfs_dir
  132. (Thanks to parrot-san and iwai-san)
  133. * Sun Feb 27 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.39-1
  134. - updated vbuilder.sh.in
  135. - fixed "unionfs_dir" in mount-chroot-mount() (Thanks to Takemikaduchi-san)
  136. - improved Clean()
  137. * Fri Feb 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.38-1
  138. - updated vbuilder.sh.in
  139. - added $$UNIONFS_DIR
  140. - added --debug, --login options
  141. - applied vbootstrap-0.0.37-armhack.patch (Thanks to parrot-san)
  142. * Wed Feb 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.37-1
  143. - fixed a little mistake of vbuilder.sh.in
  144. - supported --unionfs for RPM_Sign()
  145. * Wed Feb 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.36-1
  146. - updated vbuilder.sh.in
  147. - improved RPM_Sign() to sign rpms under usermode
  148. * Wed Jan 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.35-1
  149. - updated po translations
  150. - updated vbuilder.sh.in, vbuilder-bash-completion.sh
  151. - added --rpmbuild-define, --rpmbuild-without option
  152. - supported usermode
  153. - dropped require-root() from vbuilder.sh.in
  154. * Tue Jan 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.34-1
  155. - updated vbuilder.sh.in
  156. - defined require-root() (Thanks to tomo-p-san)
  157. - gettextlize
  158. - added vbootstrap.po, ja.po, Makefile, POTFILES.in in po/
  159. * Tue Jan 11 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.33-1
  160. - added /bin/sh option -l at chroot_sh (Thanks to Takemikaduchi-san)
  161. * Fri Dec 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.32-1
  162. - setarch ix86 if ix86 chroot on x86_64 host
  163. * Fri Dec 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.31-1
  164. - supported Vine Linux 5.2
  165. * Sun Aug 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.30-1
  166. - updated vbuilder.sh.in
  167. - added --rpmbuild-with option
  168. * Sat Jul 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.29-1
  169. - updated vbuilder.sh.in
  170. - added --sign option
  171. - added --no-install option
  172. * Fri Jun 04 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.28-1
  173. - updated vbuilder.sh.in
  174. - made /dev/urandom on chroot in Build()
  175. - added "-o APT::Install::Virtual=true" on apt-get build-dep
  176. to solve BuildRequires dependenceies of virtual packages
  177. * Tue May 04 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.27-1
  178. - changed an order of BASE_PKGS in vbootstrap/scripts/*, respectively
  179. - apt package has Requires: rpm dependence
  180. - dropped "rpm" from $$BASE_PKGS
  181. * Mon May 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.26-1
  182. - updated vbuilder.sh.in
  183. - made /dev/random on chroot in Build()
  184. * Sat Apr 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.25-1
  185. - updated vbuilder.sh.in
  186. - supported "test" category
  187. - added some comments for mount-chroot()
  188. - updated vbuilder-bash-completion.sh
  189. * Sun Apr 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.24-1
  190. - updated vbootstrap.sh.in (daisuke-san)
  191. - changed to cache /var/lib/apt/lists, /var/cache/apt/archives
  192. in bootstrap (not in host)
  193. - set Dir::State and Dir::Cache in APT_OPTS
  194. * Sun Apr 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.23-1
  195. - updated vbuilder.sh.in
  196. - added --category option
  197. * Fri Apr 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.22-1
  198. - updated vbuilder.sh.in:
  199. - added --bootstrap-dir, --built-rpms-dir, --cache-dir options
  200. - added show-info action
  201. - defined write-vbuilder-log()
  202. - added CACHE_DIR in vbuilder.conf.in
  203. - updated vbuilder-bash-completion.sh
  204. * Fri Mar 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.21-1
  205. - updated vbuilder.sh.in:
  206. - added a compatible name for actions:
  207. dropped two hyphens "--" from the head of an action "--hoge"
  208. (e.g. build-rpm = --build-rpm)
  209. - added about vbuilder in %%description and %%description -l ja
  210. - updated vbuilder-bash-completion.sh: s/5.0/5.1/
  211. * Sun Mar 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.20-1
  212. - fixed RPM_Build()
  213. * Fri Mar 05 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.0.19-1
  214. - remove Retry_vbootstrap-post() from the vbuilder script:
  215. the trick (implemented in 0.0.18-1) moved to vbootstrap/scripts/* instead
  216. * Thu Mar 04 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.0.18-1
  217. - vbuilder:Retry_vbootstrap-post(): pass --justdb option to rpm
  218. so that apt-get don't have to actually install packages again
  219. (this will help avoid creating annoying .rpmorig/.rpmnew files)
  220. * Thu Mar 04 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.0.17-1
  221. - add --help option to vbuilder
  222. - ensure all files/subdirectories under BUILT_RPMS_DIR
  223. (i.e. $HOME/vbuilder/{5.1,VineSeed}/{RPMS/{i686,ppc,x86_64},SRPMS}/*)
  224. have ownerships of the user/group who executed "sudo vbuilder"
  225. * Mon Feb 22 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.16-1
  226. - added Requires: unionfs-utils
  227. - updated vbuilder.sh.in
  228. - added --unionfs option
  229. - supported 5.1 (by iwai-san)
  230. * Sat Feb 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.15-1
  231. - added vbuilder-bash-completion.sh
  232. * Sat Feb 13 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.14-1
  233. - updated vbuilder.sh.in
  234. - used __chroot_sh
  235. - improved some functions for mounting file systems
  236. - defined Retry_vbootstrap-post()
  237. * Sat Feb 06 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.13-1
  238. - updated vbuilder.sh.in
  239. - fixed /home/vbuilder/.rpmmacros for VineSeed_i386, VineSeed
  240. - improved some mounting processes
  241. - defined mount_cache_dir()
  242. * Sun Jan 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.12-1
  243. - added 4.2_i386
  244. - updated vbuilder.sh.in
  245. - supported 4.2_i386 chroot on x86_64
  246. * Tue Jan 05 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.11-1
  247. - updated vbuilder.sh.in
  248. - added Japanese translations for error messages
  249. - improved some mounting processes
  250. - defined some mount functions
  251. - defined apt-get-update() function
  252. - defined check-parameter() function
  253. * Tue Dec 29 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.10-1
  254. - updated vbuilder.sh.in
  255. - added --dist-upgrade option which provides a flag to build
  256. VineSeed bootstrap via stable relase version
  257. * Sat Dec 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.9-1
  258. - fixed vbuilder.sh.in around --target option
  259. * Sat Dec 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.8-1
  260. - updated vbuilder.sh.in
  261. - added --target option which gives a build target of source rpm
  262. * Sun Nov 22 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.7-1
  263. - updated vbuilder.sh.in
  264. * Sat Oct 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.6-1
  265. - updated vbuilder.sh.in, little
  266. * Sat Oct 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.5-1
  267. - updated vbuilder.sh.in and vbuilder.conf.in
  268. - extended to store built rpms on chroot env. in each arch. of home rpm dir.
  269. * Sun Sep 13 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.4-1
  270. - added vine-release in BASE_PKGS of scripts/*
  271. - added vbuilder.conf
  272. - updated vbuilder.sh.in
  273. * Tue Sep 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.3-2
  274. - rebuilt to add signature
  275. * Mon Aug 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.3-1
  276. - support 5.0 (by daisuke-san)
  277. - update vbuilder.sh.in
  278. - check chroot archtecture
  279. * Mon Jun 29 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.2-1
  280. - add vbuilder
  281. * Wed Mar 18 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.1-1
  282. - initial build