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