[315] | 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. |
---|
[118] | 3 | |
---|
[4070] | 4 | %define version 0.0.44 |
---|
[118] | 5 | |
---|
| 6 | Summary: bootstrap scripts to create a basic Vine Linux system |
---|
| 7 | Summary(ja): Vine Linux の基本システムを作成するためのスクリプト |
---|
| 8 | Name: vbootstrap |
---|
| 9 | Version: %{version} |
---|
[314] | 10 | Release: 1%{?_dist_release} |
---|
[118] | 11 | License: public domain |
---|
| 12 | Group: Development/Tools |
---|
| 13 | Url: http://trac.vinelinux.org/wiki/VineBootstrap |
---|
| 14 | |
---|
| 15 | Source0: %{name}-%{version}.tar.bz2 |
---|
| 16 | |
---|
| 17 | Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 18 | BuildArch: noarch |
---|
| 19 | BuildRequires: sed |
---|
| 20 | Requires: bash, apt |
---|
[485] | 21 | Requires: unionfs-utils |
---|
[118] | 22 | |
---|
| 23 | Vendor: Project Vine |
---|
| 24 | Distribution: Vine Linux |
---|
| 25 | Packager: daisuke, munepi |
---|
| 26 | |
---|
| 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 | |
---|
[689] | 32 | vbuilder constracts a chroot environment with vbootstrap, and builds |
---|
| 33 | a rpm package inside the chroot. |
---|
| 34 | it is a useful system to check that a package has correct BuildRequires |
---|
| 35 | dependencies. |
---|
| 36 | |
---|
| 37 | |
---|
[118] | 38 | %description -l ja |
---|
| 39 | vbootstrap は Vine Linux の基本システムを既存の Vine Linux システム上で |
---|
| 40 | 作成するスクリプトです。rpm および apt を利用して、指定したディレクトリ |
---|
| 41 | 以下に基本の rpm パッケージをインストールし、chroot できるようにします。 |
---|
| 42 | |
---|
[689] | 43 | vbuilder は vbootstrap を利用して chroot 環境の構築し、 |
---|
| 44 | その chroot の中でパッケージをビルドします。 |
---|
| 45 | パッケージが正しい BuildRequires 依存関係を持っているかを確認するために |
---|
| 46 | 有用なシステムです。 |
---|
[118] | 47 | |
---|
[689] | 48 | |
---|
[118] | 49 | %prep |
---|
| 50 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
| 51 | |
---|
| 52 | %setup |
---|
| 53 | |
---|
| 54 | %build |
---|
[1132] | 55 | %__make \ |
---|
| 56 | %if %{?_dist_release} == "vl5" |
---|
| 57 | VBUILDER_DEFAULT_VERSION=\${VBUILDER_STABLE_VERSION} |
---|
| 58 | %endif |
---|
[118] | 59 | |
---|
| 60 | %install |
---|
[513] | 61 | %__make DESTDIR=$RPM_BUILD_ROOT install |
---|
[118] | 62 | |
---|
[2522] | 63 | %find_lang %{name} |
---|
| 64 | |
---|
[118] | 65 | %clean |
---|
| 66 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
| 67 | |
---|
| 68 | |
---|
[2522] | 69 | %files -f %{name}.lang |
---|
[118] | 70 | %defattr(-,root,root) |
---|
[2536] | 71 | %{_bindir}/vbuilder |
---|
[118] | 72 | %{_sbindir}/vbootstrap |
---|
| 73 | %{_sbindir}/vbuilder |
---|
| 74 | %dir %{_datadir}/vbootstrap |
---|
| 75 | %{_datadir}/vbootstrap/* |
---|
[484] | 76 | %{_sysconfdir}/bash_completion.d/vbuilder |
---|
[323] | 77 | %config(noreplace) %{_sysconfdir}/vbootstrap/vbuilder.conf |
---|
[2532] | 78 | %config(noreplace) %{_sysconfdir}/pam.d/vbuilder |
---|
| 79 | %config(noreplace) %{_sysconfdir}/security/console.apps/vbuilder |
---|
[118] | 80 | |
---|
| 81 | |
---|
| 82 | %changelog |
---|
[4171] | 83 | * Sat Jun 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.44-1 |
---|
[4004] | 84 | - updated vbuilder |
---|
| 85 | - allowed some illegal patterns of %%{release} |
---|
[4070] | 86 | - added UGROUPS=wheel in vbuilder.console |
---|
| 87 | - supported 6.0_i386 and 6.0_x86_64 |
---|
[4170] | 88 | - updated ja.po |
---|
[4004] | 89 | |
---|
[3742] | 90 | * Sat Apr 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.43-1 |
---|
[3676] | 91 | - updated vbootstrap |
---|
| 92 | - supported versions format: <version>_<arch> |
---|
[3675] | 93 | - updated vbuilder.sh.in |
---|
| 94 | - dropped the action "show-info" |
---|
[3676] | 95 | - sync the above change for vbootstrap |
---|
[3742] | 96 | - added the target "noarch" in $$RPM_TARGET_LIST |
---|
[3675] | 97 | |
---|
[3479] | 98 | * Sat Apr 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.42-1 |
---|
| 99 | - fixed RPM_Sign(), Login_Chroot() in vbuilder.sh.in |
---|
| 100 | - the command "vbuilder clean" returns 0. |
---|
| 101 | |
---|
[3380] | 102 | * Sat Apr 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.41-1 |
---|
[3343] | 103 | - updated vbuilder.sh.in |
---|
| 104 | - dropped user_from_uid() |
---|
[3380] | 105 | - updated ja.po |
---|
[3343] | 106 | |
---|
[3021] | 107 | * Sun Mar 20 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.40-1 |
---|
[2768] | 108 | - updated vbuilder.sh.in |
---|
[3300] | 109 | - arranged some procedures to mount /proc and unionfs_dir |
---|
| 110 | (Thanks to parrot-san and iwai-san) |
---|
[3021] | 111 | |
---|
| 112 | * Sun Feb 27 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.39-1 |
---|
| 113 | - updated vbuilder.sh.in |
---|
[2768] | 114 | - fixed "unionfs_dir" in mount-chroot-mount() (Thanks to Takemikaduchi-san) |
---|
[2769] | 115 | - improved Clean() |
---|
[2768] | 116 | |
---|
[2711] | 117 | * Fri Feb 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.38-1 |
---|
| 118 | - updated vbuilder.sh.in |
---|
| 119 | - added $$UNIONFS_DIR |
---|
[2718] | 120 | - added --debug, --login options |
---|
| 121 | - applied vbootstrap-0.0.37-armhack.patch (Thanks to parrot-san) |
---|
[2711] | 122 | |
---|
[2668] | 123 | * Wed Feb 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.37-1 |
---|
| 124 | - fixed a little mistake of vbuilder.sh.in |
---|
| 125 | - supported --unionfs for RPM_Sign() |
---|
| 126 | |
---|
[2662] | 127 | * Wed Feb 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.36-1 |
---|
| 128 | - updated vbuilder.sh.in |
---|
| 129 | - improved RPM_Sign() to sign rpms under usermode |
---|
| 130 | |
---|
[2531] | 131 | * Wed Jan 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.35-1 |
---|
| 132 | - updated po translations |
---|
| 133 | - updated vbuilder.sh.in, vbuilder-bash-completion.sh |
---|
| 134 | - added --rpmbuild-define, --rpmbuild-without option |
---|
[2532] | 135 | - supported usermode |
---|
| 136 | - dropped require-root() from vbuilder.sh.in |
---|
[2531] | 137 | |
---|
[2522] | 138 | * Tue Jan 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.34-1 |
---|
| 139 | - updated vbuilder.sh.in |
---|
| 140 | - defined require-root() (Thanks to tomo-p-san) |
---|
| 141 | - gettextlize |
---|
| 142 | - added vbootstrap.po, ja.po, Makefile, POTFILES.in in po/ |
---|
| 143 | |
---|
[2488] | 144 | * Tue Jan 11 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.33-1 |
---|
| 145 | - added /bin/sh option -l at chroot_sh (Thanks to Takemikaduchi-san) |
---|
| 146 | |
---|
[2324] | 147 | * Fri Dec 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.32-1 |
---|
| 148 | - setarch ix86 if ix86 chroot on x86_64 host |
---|
| 149 | |
---|
[2270] | 150 | * Fri Dec 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.31-1 |
---|
| 151 | - supported Vine Linux 5.2 |
---|
| 152 | |
---|
| 153 | * Sun Aug 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.30-1 |
---|
| 154 | - updated vbuilder.sh.in |
---|
| 155 | - added --rpmbuild-with option |
---|
| 156 | |
---|
[1375] | 157 | * Sat Jul 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.29-1 |
---|
[1240] | 158 | - updated vbuilder.sh.in |
---|
| 159 | - added --sign option |
---|
[1267] | 160 | - added --no-install option |
---|
[1240] | 161 | |
---|
[1136] | 162 | * Fri Jun 04 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.28-1 |
---|
| 163 | - updated vbuilder.sh.in |
---|
| 164 | - made /dev/urandom on chroot in Build() |
---|
| 165 | - added "-o APT::Install::Virtual=true" on apt-get build-dep |
---|
| 166 | to solve BuildRequires dependenceies of virtual packages |
---|
[934] | 167 | |
---|
[931] | 168 | * Tue May 04 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.27-1 |
---|
| 169 | - changed an order of BASE_PKGS in vbootstrap/scripts/*, respectively |
---|
| 170 | - apt package has Requires: rpm dependence |
---|
[932] | 171 | - dropped "rpm" from $$BASE_PKGS |
---|
[924] | 172 | |
---|
[921] | 173 | * Mon May 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.26-1 |
---|
| 174 | - updated vbuilder.sh.in |
---|
| 175 | - made /dev/random on chroot in Build() |
---|
[885] | 176 | |
---|
[884] | 177 | * Sat Apr 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.25-1 |
---|
[800] | 178 | - updated vbuilder.sh.in |
---|
| 179 | - supported "test" category |
---|
[852] | 180 | - added some comments for mount-chroot() |
---|
[800] | 181 | - updated vbuilder-bash-completion.sh |
---|
| 182 | |
---|
[796] | 183 | * Sun Apr 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.24-1 |
---|
[791] | 184 | - updated vbootstrap.sh.in (daisuke-san) |
---|
| 185 | - changed to cache /var/lib/apt/lists, /var/cache/apt/archives |
---|
| 186 | in bootstrap (not in host) |
---|
| 187 | - set Dir::State and Dir::Cache in APT_OPTS |
---|
[796] | 188 | |
---|
| 189 | * Sun Apr 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.23-1 |
---|
[791] | 190 | - updated vbuilder.sh.in |
---|
| 191 | - added --category option |
---|
| 192 | |
---|
[725] | 193 | * Fri Apr 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.22-1 |
---|
[709] | 194 | - updated vbuilder.sh.in: |
---|
[725] | 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 |
---|
[709] | 199 | - updated vbuilder-bash-completion.sh |
---|
| 200 | |
---|
[679] | 201 | * Fri Mar 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.21-1 |
---|
[688] | 202 | - updated vbuilder.sh.in: |
---|
| 203 | - added a compatible name for actions: |
---|
| 204 | dropped two hyphens "--" from the head of an action "--hoge" |
---|
| 205 | (e.g. build-rpm = --build-rpm) |
---|
[689] | 206 | - added about vbuilder in %%description and %%description -l ja |
---|
[691] | 207 | - updated vbuilder-bash-completion.sh: s/5.0/5.1/ |
---|
[679] | 208 | |
---|
[628] | 209 | * Sun Mar 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.20-1 |
---|
| 210 | - fixed RPM_Build() |
---|
| 211 | |
---|
[519] | 212 | * Fri Mar 05 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.0.19-1 |
---|
| 213 | - remove Retry_vbootstrap-post() from the vbuilder script: |
---|
| 214 | the trick (implemented in 0.0.18-1) moved to vbootstrap/scripts/* instead |
---|
| 215 | |
---|
[518] | 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 | |
---|
[516] | 221 | * Thu Mar 04 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.0.17-1 |
---|
| 222 | - add --help option to vbuilder |
---|
| 223 | - ensure all files/subdirectories under BUILT_RPMS_DIR |
---|
| 224 | (i.e. $HOME/vbuilder/{5.1,VineSeed}/{RPMS/{i686,ppc,x86_64},SRPMS}/*) |
---|
| 225 | have ownerships of the user/group who executed "sudo vbuilder" |
---|
| 226 | |
---|
[485] | 227 | * Mon Feb 22 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.16-1 |
---|
| 228 | - added Requires: unionfs-utils |
---|
| 229 | - updated vbuilder.sh.in |
---|
| 230 | - added --unionfs option |
---|
[513] | 231 | - supported 5.1 (by iwai-san) |
---|
[485] | 232 | |
---|
[484] | 233 | * Sat Feb 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.15-1 |
---|
| 234 | - added vbuilder-bash-completion.sh |
---|
| 235 | |
---|
[464] | 236 | * Sat Feb 13 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.14-1 |
---|
[455] | 237 | - updated vbuilder.sh.in |
---|
| 238 | - used __chroot_sh |
---|
| 239 | - improved some functions for mounting file systems |
---|
[464] | 240 | - defined Retry_vbootstrap-post() |
---|
[455] | 241 | |
---|
[452] | 242 | * Sat Feb 06 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.13-1 |
---|
| 243 | - updated vbuilder.sh.in |
---|
| 244 | - fixed /home/vbuilder/.rpmmacros for VineSeed_i386, VineSeed |
---|
| 245 | - improved some mounting processes |
---|
| 246 | - defined mount_cache_dir() |
---|
| 247 | |
---|
[423] | 248 | * Sun Jan 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.12-1 |
---|
| 249 | - added 4.2_i386 |
---|
| 250 | - updated vbuilder.sh.in |
---|
| 251 | - supported 4.2_i386 chroot on x86_64 |
---|
| 252 | |
---|
[418] | 253 | * Tue Jan 05 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.11-1 |
---|
| 254 | - updated vbuilder.sh.in |
---|
| 255 | - added Japanese translations for error messages |
---|
| 256 | - improved some mounting processes |
---|
| 257 | - defined some mount functions |
---|
[455] | 258 | - defined apt-get-update() function |
---|
| 259 | - defined check-parameter() function |
---|
[412] | 260 | |
---|
[411] | 261 | * Tue Dec 29 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.10-1 |
---|
| 262 | - updated vbuilder.sh.in |
---|
| 263 | - added --dist-upgrade option which provides a flag to build |
---|
| 264 | VineSeed bootstrap via stable relase version |
---|
| 265 | |
---|
[407] | 266 | * Sat Dec 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.9-1 |
---|
| 267 | - fixed vbuilder.sh.in around --target option |
---|
| 268 | |
---|
[406] | 269 | * Sat Dec 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.8-1 |
---|
| 270 | - updated vbuilder.sh.in |
---|
| 271 | - added --target option which gives a build target of source rpm |
---|
| 272 | |
---|
[396] | 273 | * Sun Nov 22 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.7-1 |
---|
| 274 | - updated vbuilder.sh.in |
---|
| 275 | |
---|
[371] | 276 | * Sat Oct 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.6-1 |
---|
| 277 | - updated vbuilder.sh.in, little |
---|
| 278 | |
---|
[370] | 279 | * Sat Oct 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.5-1 |
---|
| 280 | - updated vbuilder.sh.in and vbuilder.conf.in |
---|
| 281 | - extended to store built rpms on chroot env. in each arch. of home rpm dir. |
---|
[330] | 282 | |
---|
[323] | 283 | * Sun Sep 13 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.4-1 |
---|
| 284 | - added vine-release in BASE_PKGS of scripts/* |
---|
| 285 | - added vbuilder.conf |
---|
[314] | 286 | - updated vbuilder.sh.in |
---|
| 287 | |
---|
[305] | 288 | * Tue Sep 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.3-2 |
---|
| 289 | - rebuilt to add signature |
---|
| 290 | |
---|
[304] | 291 | * Mon Aug 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.3-1 |
---|
| 292 | - support 5.0 (by daisuke-san) |
---|
[135] | 293 | - update vbuilder.sh.in |
---|
[304] | 294 | - check chroot archtecture |
---|
[135] | 295 | |
---|
[118] | 296 | * Mon Jun 29 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.2-1 |
---|
| 297 | - add vbuilder |
---|
| 298 | |
---|
| 299 | * Wed Mar 18 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.1-1 |
---|
| 300 | - initial build |
---|