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