[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 | |
---|
[5504] | 4 | %define version 0.0.51 |
---|
[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 \ |
---|
[4530] | 56 | %if %{?_dist_release} == "vl6" |
---|
[1132] | 57 | VBUILDER_DEFAULT_VERSION=\${VBUILDER_STABLE_VERSION} |
---|
| 58 | %endif |
---|
[4530] | 59 | %if %{?_dist_release} == "vl5" |
---|
| 60 | VBUILDER_DEFAULT_VERSION=5.2 |
---|
| 61 | %endif |
---|
[118] | 62 | |
---|
| 63 | %install |
---|
[513] | 64 | %__make DESTDIR=$RPM_BUILD_ROOT install |
---|
[118] | 65 | |
---|
[2522] | 66 | %find_lang %{name} |
---|
| 67 | |
---|
[118] | 68 | %clean |
---|
| 69 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
| 70 | |
---|
| 71 | |
---|
[2522] | 72 | %files -f %{name}.lang |
---|
[118] | 73 | %defattr(-,root,root) |
---|
[2536] | 74 | %{_bindir}/vbuilder |
---|
[118] | 75 | %{_sbindir}/vbootstrap |
---|
| 76 | %{_sbindir}/vbuilder |
---|
| 77 | %dir %{_datadir}/vbootstrap |
---|
| 78 | %{_datadir}/vbootstrap/* |
---|
[484] | 79 | %{_sysconfdir}/bash_completion.d/vbuilder |
---|
[5364] | 80 | %{_sysconfdir}/vbootstrap/profile.d/sample.conf.skip |
---|
[323] | 81 | %config(noreplace) %{_sysconfdir}/vbootstrap/vbuilder.conf |
---|
[2532] | 82 | %config(noreplace) %{_sysconfdir}/pam.d/vbuilder |
---|
| 83 | %config(noreplace) %{_sysconfdir}/security/console.apps/vbuilder |
---|
[118] | 84 | |
---|
| 85 | |
---|
| 86 | %changelog |
---|
[5504] | 87 | * Fri Jan 27 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.51-1 |
---|
| 88 | - update vbuilder.sh.in, libvbuilder.sh.in |
---|
| 89 | - support aufs |
---|
| 90 | |
---|
[5497] | 91 | * Thu Jan 26 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.50-1 |
---|
| 92 | - update 6.0_{i386,x86_64}.sh |
---|
| 93 | - install nss before glibc on vbootstrap |
---|
| 94 | |
---|
[5452] | 95 | * Sun Jan 22 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.49-1 |
---|
| 96 | - updated vbuilder.sh.in |
---|
| 97 | - fixed Usage() |
---|
| 98 | - avoid to output 'W: Duplicate sources.list entry...' in Build() |
---|
| 99 | |
---|
[5364] | 100 | * Sun Jan 8 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.48-1 |
---|
| 101 | - updated vbootstrap.sh.in |
---|
| 102 | - specify a location to fetch base packages |
---|
| 103 | - updated vbuilder.sh.in |
---|
| 104 | - replaced "rpm --addsign" with "rpmsign --addsign" |
---|
| 105 | - added --fetch-url option |
---|
| 106 | - added --profile option |
---|
| 107 | - added sample.conf.skip |
---|
| 108 | |
---|
[5012] | 109 | * Wed Oct 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.47-1 |
---|
[5364] | 110 | - added the category updates in 5.2_{i386,ppc,x86_64}, 6.0_{i386,x86_64} |
---|
[5012] | 111 | (Thanks to daisuke-san and miyabi-san) |
---|
| 112 | |
---|
[4622] | 113 | * Sat Aug 20 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.46-1 |
---|
[4636] | 114 | - updated vbuilder.sh.in |
---|
| 115 | - optimized Build() |
---|
| 116 | - do not install self-build-setup package in Build() |
---|
[4622] | 117 | |
---|
[4530] | 118 | * Tue Aug 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.45-1 |
---|
| 119 | - set STABLE_VERSION to 6.0 |
---|
| 120 | |
---|
[4171] | 121 | * Sat Jun 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.44-1 |
---|
[4004] | 122 | - updated vbuilder |
---|
| 123 | - allowed some illegal patterns of %%{release} |
---|
[4070] | 124 | - added UGROUPS=wheel in vbuilder.console |
---|
| 125 | - supported 6.0_i386 and 6.0_x86_64 |
---|
[4170] | 126 | - updated ja.po |
---|
[4004] | 127 | |
---|
[3742] | 128 | * Sat Apr 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.43-1 |
---|
[3676] | 129 | - updated vbootstrap |
---|
| 130 | - supported versions format: <version>_<arch> |
---|
[3675] | 131 | - updated vbuilder.sh.in |
---|
| 132 | - dropped the action "show-info" |
---|
[3676] | 133 | - sync the above change for vbootstrap |
---|
[3742] | 134 | - added the target "noarch" in $$RPM_TARGET_LIST |
---|
[3675] | 135 | |
---|
[3479] | 136 | * Sat Apr 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.42-1 |
---|
| 137 | - fixed RPM_Sign(), Login_Chroot() in vbuilder.sh.in |
---|
| 138 | - the command "vbuilder clean" returns 0. |
---|
| 139 | |
---|
[3380] | 140 | * Sat Apr 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.41-1 |
---|
[3343] | 141 | - updated vbuilder.sh.in |
---|
| 142 | - dropped user_from_uid() |
---|
[3380] | 143 | - updated ja.po |
---|
[3343] | 144 | |
---|
[3021] | 145 | * Sun Mar 20 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.40-1 |
---|
[2768] | 146 | - updated vbuilder.sh.in |
---|
[3300] | 147 | - arranged some procedures to mount /proc and unionfs_dir |
---|
| 148 | (Thanks to parrot-san and iwai-san) |
---|
[3021] | 149 | |
---|
| 150 | * Sun Feb 27 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.39-1 |
---|
| 151 | - updated vbuilder.sh.in |
---|
[2768] | 152 | - fixed "unionfs_dir" in mount-chroot-mount() (Thanks to Takemikaduchi-san) |
---|
[2769] | 153 | - improved Clean() |
---|
[2768] | 154 | |
---|
[2711] | 155 | * Fri Feb 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.38-1 |
---|
| 156 | - updated vbuilder.sh.in |
---|
| 157 | - added $$UNIONFS_DIR |
---|
[2718] | 158 | - added --debug, --login options |
---|
| 159 | - applied vbootstrap-0.0.37-armhack.patch (Thanks to parrot-san) |
---|
[2711] | 160 | |
---|
[2668] | 161 | * Wed Feb 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.37-1 |
---|
| 162 | - fixed a little mistake of vbuilder.sh.in |
---|
| 163 | - supported --unionfs for RPM_Sign() |
---|
| 164 | |
---|
[2662] | 165 | * Wed Feb 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.36-1 |
---|
| 166 | - updated vbuilder.sh.in |
---|
| 167 | - improved RPM_Sign() to sign rpms under usermode |
---|
| 168 | |
---|
[2531] | 169 | * Wed Jan 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.35-1 |
---|
| 170 | - updated po translations |
---|
| 171 | - updated vbuilder.sh.in, vbuilder-bash-completion.sh |
---|
| 172 | - added --rpmbuild-define, --rpmbuild-without option |
---|
[2532] | 173 | - supported usermode |
---|
| 174 | - dropped require-root() from vbuilder.sh.in |
---|
[2531] | 175 | |
---|
[2522] | 176 | * Tue Jan 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.34-1 |
---|
| 177 | - updated vbuilder.sh.in |
---|
| 178 | - defined require-root() (Thanks to tomo-p-san) |
---|
| 179 | - gettextlize |
---|
| 180 | - added vbootstrap.po, ja.po, Makefile, POTFILES.in in po/ |
---|
| 181 | |
---|
[2488] | 182 | * Tue Jan 11 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.33-1 |
---|
| 183 | - added /bin/sh option -l at chroot_sh (Thanks to Takemikaduchi-san) |
---|
| 184 | |
---|
[2324] | 185 | * Fri Dec 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.32-1 |
---|
| 186 | - setarch ix86 if ix86 chroot on x86_64 host |
---|
| 187 | |
---|
[2270] | 188 | * Fri Dec 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.31-1 |
---|
| 189 | - supported Vine Linux 5.2 |
---|
| 190 | |
---|
| 191 | * Sun Aug 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.30-1 |
---|
| 192 | - updated vbuilder.sh.in |
---|
| 193 | - added --rpmbuild-with option |
---|
| 194 | |
---|
[1375] | 195 | * Sat Jul 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.29-1 |
---|
[1240] | 196 | - updated vbuilder.sh.in |
---|
| 197 | - added --sign option |
---|
[1267] | 198 | - added --no-install option |
---|
[1240] | 199 | |
---|
[1136] | 200 | * Fri Jun 04 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.28-1 |
---|
| 201 | - updated vbuilder.sh.in |
---|
| 202 | - made /dev/urandom on chroot in Build() |
---|
| 203 | - added "-o APT::Install::Virtual=true" on apt-get build-dep |
---|
| 204 | to solve BuildRequires dependenceies of virtual packages |
---|
[934] | 205 | |
---|
[931] | 206 | * Tue May 04 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.27-1 |
---|
| 207 | - changed an order of BASE_PKGS in vbootstrap/scripts/*, respectively |
---|
| 208 | - apt package has Requires: rpm dependence |
---|
[932] | 209 | - dropped "rpm" from $$BASE_PKGS |
---|
[924] | 210 | |
---|
[921] | 211 | * Mon May 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.26-1 |
---|
| 212 | - updated vbuilder.sh.in |
---|
| 213 | - made /dev/random on chroot in Build() |
---|
[885] | 214 | |
---|
[884] | 215 | * Sat Apr 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.25-1 |
---|
[800] | 216 | - updated vbuilder.sh.in |
---|
| 217 | - supported "test" category |
---|
[852] | 218 | - added some comments for mount-chroot() |
---|
[800] | 219 | - updated vbuilder-bash-completion.sh |
---|
| 220 | |
---|
[796] | 221 | * Sun Apr 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.24-1 |
---|
[791] | 222 | - updated vbootstrap.sh.in (daisuke-san) |
---|
| 223 | - changed to cache /var/lib/apt/lists, /var/cache/apt/archives |
---|
| 224 | in bootstrap (not in host) |
---|
| 225 | - set Dir::State and Dir::Cache in APT_OPTS |
---|
[796] | 226 | |
---|
| 227 | * Sun Apr 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.23-1 |
---|
[791] | 228 | - updated vbuilder.sh.in |
---|
| 229 | - added --category option |
---|
| 230 | |
---|
[725] | 231 | * Fri Apr 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.22-1 |
---|
[709] | 232 | - updated vbuilder.sh.in: |
---|
[725] | 233 | - added --bootstrap-dir, --built-rpms-dir, --cache-dir options |
---|
| 234 | - added show-info action |
---|
| 235 | - defined write-vbuilder-log() |
---|
| 236 | - added CACHE_DIR in vbuilder.conf.in |
---|
[709] | 237 | - updated vbuilder-bash-completion.sh |
---|
| 238 | |
---|
[679] | 239 | * Fri Mar 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.21-1 |
---|
[688] | 240 | - updated vbuilder.sh.in: |
---|
| 241 | - added a compatible name for actions: |
---|
| 242 | dropped two hyphens "--" from the head of an action "--hoge" |
---|
| 243 | (e.g. build-rpm = --build-rpm) |
---|
[689] | 244 | - added about vbuilder in %%description and %%description -l ja |
---|
[691] | 245 | - updated vbuilder-bash-completion.sh: s/5.0/5.1/ |
---|
[679] | 246 | |
---|
[628] | 247 | * Sun Mar 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.20-1 |
---|
| 248 | - fixed RPM_Build() |
---|
| 249 | |
---|
[519] | 250 | * Fri Mar 05 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.0.19-1 |
---|
| 251 | - remove Retry_vbootstrap-post() from the vbuilder script: |
---|
| 252 | the trick (implemented in 0.0.18-1) moved to vbootstrap/scripts/* instead |
---|
| 253 | |
---|
[518] | 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 | |
---|
[516] | 259 | * Thu Mar 04 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.0.17-1 |
---|
| 260 | - add --help option to vbuilder |
---|
| 261 | - ensure all files/subdirectories under BUILT_RPMS_DIR |
---|
| 262 | (i.e. $HOME/vbuilder/{5.1,VineSeed}/{RPMS/{i686,ppc,x86_64},SRPMS}/*) |
---|
| 263 | have ownerships of the user/group who executed "sudo vbuilder" |
---|
| 264 | |
---|
[485] | 265 | * Mon Feb 22 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.16-1 |
---|
| 266 | - added Requires: unionfs-utils |
---|
| 267 | - updated vbuilder.sh.in |
---|
| 268 | - added --unionfs option |
---|
[513] | 269 | - supported 5.1 (by iwai-san) |
---|
[485] | 270 | |
---|
[484] | 271 | * Sat Feb 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.15-1 |
---|
| 272 | - added vbuilder-bash-completion.sh |
---|
| 273 | |
---|
[464] | 274 | * Sat Feb 13 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.14-1 |
---|
[455] | 275 | - updated vbuilder.sh.in |
---|
| 276 | - used __chroot_sh |
---|
| 277 | - improved some functions for mounting file systems |
---|
[464] | 278 | - defined Retry_vbootstrap-post() |
---|
[455] | 279 | |
---|
[452] | 280 | * Sat Feb 06 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.13-1 |
---|
| 281 | - updated vbuilder.sh.in |
---|
| 282 | - fixed /home/vbuilder/.rpmmacros for VineSeed_i386, VineSeed |
---|
| 283 | - improved some mounting processes |
---|
| 284 | - defined mount_cache_dir() |
---|
| 285 | |
---|
[423] | 286 | * Sun Jan 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.12-1 |
---|
| 287 | - added 4.2_i386 |
---|
| 288 | - updated vbuilder.sh.in |
---|
| 289 | - supported 4.2_i386 chroot on x86_64 |
---|
| 290 | |
---|
[418] | 291 | * Tue Jan 05 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.11-1 |
---|
| 292 | - updated vbuilder.sh.in |
---|
| 293 | - added Japanese translations for error messages |
---|
| 294 | - improved some mounting processes |
---|
| 295 | - defined some mount functions |
---|
[455] | 296 | - defined apt-get-update() function |
---|
| 297 | - defined check-parameter() function |
---|
[412] | 298 | |
---|
[411] | 299 | * Tue Dec 29 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.10-1 |
---|
| 300 | - updated vbuilder.sh.in |
---|
| 301 | - added --dist-upgrade option which provides a flag to build |
---|
| 302 | VineSeed bootstrap via stable relase version |
---|
| 303 | |
---|
[407] | 304 | * Sat Dec 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.9-1 |
---|
| 305 | - fixed vbuilder.sh.in around --target option |
---|
| 306 | |
---|
[406] | 307 | * Sat Dec 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.8-1 |
---|
| 308 | - updated vbuilder.sh.in |
---|
| 309 | - added --target option which gives a build target of source rpm |
---|
| 310 | |
---|
[396] | 311 | * Sun Nov 22 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.7-1 |
---|
| 312 | - updated vbuilder.sh.in |
---|
| 313 | |
---|
[371] | 314 | * Sat Oct 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.6-1 |
---|
| 315 | - updated vbuilder.sh.in, little |
---|
| 316 | |
---|
[370] | 317 | * Sat Oct 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.5-1 |
---|
| 318 | - updated vbuilder.sh.in and vbuilder.conf.in |
---|
| 319 | - extended to store built rpms on chroot env. in each arch. of home rpm dir. |
---|
[330] | 320 | |
---|
[323] | 321 | * Sun Sep 13 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.4-1 |
---|
| 322 | - added vine-release in BASE_PKGS of scripts/* |
---|
| 323 | - added vbuilder.conf |
---|
[314] | 324 | - updated vbuilder.sh.in |
---|
| 325 | |
---|
[305] | 326 | * Tue Sep 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.3-2 |
---|
| 327 | - rebuilt to add signature |
---|
| 328 | |
---|
[304] | 329 | * Mon Aug 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.3-1 |
---|
| 330 | - support 5.0 (by daisuke-san) |
---|
[135] | 331 | - update vbuilder.sh.in |
---|
[304] | 332 | - check chroot archtecture |
---|
[135] | 333 | |
---|
[118] | 334 | * Mon Jun 29 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.2-1 |
---|
| 335 | - add vbuilder |
---|
| 336 | |
---|
| 337 | * Wed Mar 18 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.1-1 |
---|
| 338 | - initial build |
---|