vbootstrap-vl.spec 14 KB

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