[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 | |
---|
[3481] | 4 | %define version 0.0.42 |
---|
[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 \ |
---|
| 56 | %if %{?_dist_release} == "vl5" |
---|
| 57 | VBUILDER_DEFAULT_VERSION=\${VBUILDER_STABLE_VERSION} |
---|
| 58 | %endif |
---|
[521] | 59 | |
---|
| 60 | %install |
---|
| 61 | %__make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 62 | |
---|
[2524] | 63 | %find_lang %{name} |
---|
| 64 | |
---|
[521] | 65 | %clean |
---|
| 66 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
| 67 | |
---|
| 68 | |
---|
[2524] | 69 | %files -f %{name}.lang |
---|
[521] | 70 | %defattr(-,root,root) |
---|
[2663] | 71 | %{_bindir}/vbuilder |
---|
[521] | 72 | %{_sbindir}/vbootstrap |
---|
| 73 | %{_sbindir}/vbuilder |
---|
| 74 | %dir %{_datadir}/vbootstrap |
---|
| 75 | %{_datadir}/vbootstrap/* |
---|
| 76 | %{_sysconfdir}/bash_completion.d/vbuilder |
---|
| 77 | %config(noreplace) %{_sysconfdir}/vbootstrap/vbuilder.conf |
---|
[2534] | 78 | %config(noreplace) %{_sysconfdir}/pam.d/vbuilder |
---|
| 79 | %config(noreplace) %{_sysconfdir}/security/console.apps/vbuilder |
---|
[521] | 80 | |
---|
| 81 | |
---|
| 82 | %changelog |
---|
[3481] | 83 | * Sat Apr 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.42-1 |
---|
| 84 | - fixed RPM_Sign(), Login_Chroot() in vbuilder.sh.in |
---|
| 85 | - the command "vbuilder clean" returns 0. |
---|
| 86 | |
---|
[3382] | 87 | * Sat Apr 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.41-1 |
---|
| 88 | - updated vbuilder.sh.in |
---|
| 89 | - dropped user_from_uid() |
---|
| 90 | - updated ja.po |
---|
| 91 | |
---|
[3301] | 92 | * Sun Mar 20 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.40-1 |
---|
| 93 | - updated vbuilder.sh.in |
---|
| 94 | - arranged some procedures to mount /proc and unionfs_dir |
---|
| 95 | (Thanks to parrot-san and iwai-san) |
---|
| 96 | |
---|
[2780] | 97 | * Sun Feb 27 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.39-1 |
---|
| 98 | - updated vbuilder.sh.in |
---|
| 99 | - fixed "unionfs_dir" in mount-chroot-mount() (Thanks to Takemikaduchi-san) |
---|
| 100 | - improved Clean() |
---|
| 101 | |
---|
[2750] | 102 | * Fri Feb 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.38-1 |
---|
| 103 | - updated vbuilder.sh.in |
---|
| 104 | - added $$UNIONFS_DIR |
---|
| 105 | - added --debug, --login options |
---|
| 106 | - applied vbootstrap-0.0.37-armhack.patch (Thanks to parrot-san) |
---|
| 107 | |
---|
[2669] | 108 | * Wed Feb 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.37-1 |
---|
| 109 | - fixed a little mistake of vbuilder.sh.in |
---|
| 110 | - supported --unionfs for RPM_Sign() |
---|
| 111 | |
---|
[2663] | 112 | * Wed Feb 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.36-1 |
---|
| 113 | - updated vbuilder.sh.in |
---|
| 114 | - improved RPM_Sign() to sign rpms under usermode |
---|
| 115 | |
---|
[2534] | 116 | * Wed Jan 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.35-1 |
---|
| 117 | - updated po translations |
---|
| 118 | - updated vbuilder.sh.in, vbuilder-bash-completion.sh |
---|
| 119 | - added --rpmbuild-define, --rpmbuild-without option |
---|
| 120 | - supported usermode |
---|
| 121 | - dropped require-root() from vbuilder.sh.in |
---|
| 122 | |
---|
[2524] | 123 | * Tue Jan 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.34-1 |
---|
| 124 | - updated vbuilder.sh.in |
---|
| 125 | - defined require-root() (Thanks to tomo-p-san) |
---|
| 126 | - gettextlize |
---|
| 127 | - added vbootstrap.po, ja.po, Makefile, POTFILES.in in po/ |
---|
| 128 | |
---|
| 129 | * Tue Jan 11 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.33-1 |
---|
| 130 | - added /bin/sh option -l at chroot_sh (Thanks to Takemikaduchi-san) |
---|
| 131 | |
---|
[2326] | 132 | * Fri Dec 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.32-1 |
---|
| 133 | - setarch ix86 if ix86 chroot on x86_64 host |
---|
| 134 | |
---|
[2271] | 135 | * Fri Dec 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.31-1 |
---|
| 136 | - supported Vine Linux 5.2 |
---|
| 137 | |
---|
| 138 | * Sun Aug 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.30-1 |
---|
| 139 | - updated vbuilder.sh.in |
---|
| 140 | - added --rpmbuild-with option |
---|
| 141 | |
---|
[1377] | 142 | * Sat Jul 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.29-1 |
---|
| 143 | - updated vbuilder.sh.in |
---|
| 144 | - added --sign option |
---|
| 145 | - added --no-install option |
---|
| 146 | |
---|
[1137] | 147 | * Fri Jun 04 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.28-1 |
---|
| 148 | - updated vbuilder.sh.in |
---|
| 149 | - made /dev/urandom on chroot in Build() |
---|
| 150 | - added "-o APT::Install::Virtual=true" on apt-get build-dep |
---|
| 151 | to solve BuildRequires dependenceies of virtual packages |
---|
| 152 | |
---|
[935] | 153 | * Tue May 04 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.27-1 |
---|
| 154 | - changed an order of BASE_PKGS in vbootstrap/scripts/*, respectively |
---|
| 155 | - apt package has Requires: rpm dependence |
---|
| 156 | - dropped "rpm" from $$BASE_PKGS |
---|
| 157 | |
---|
[922] | 158 | * Mon May 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.26-1 |
---|
| 159 | - updated vbuilder.sh.in |
---|
| 160 | - made /dev/random on chroot in Build() |
---|
| 161 | |
---|
[886] | 162 | * Sat Apr 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.25-1 |
---|
| 163 | - updated vbuilder.sh.in |
---|
| 164 | - supported "test" category |
---|
| 165 | - added some comments for mount-chroot() |
---|
| 166 | - updated vbuilder-bash-completion.sh |
---|
| 167 | |
---|
[797] | 168 | * Sun Apr 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.24-1 |
---|
[793] | 169 | - updated vbootstrap.sh.in (daisuke-san) |
---|
| 170 | - changed to cache /var/lib/apt/lists, /var/cache/apt/archives |
---|
| 171 | in bootstrap (not in host) |
---|
| 172 | - set Dir::State and Dir::Cache in APT_OPTS |
---|
[797] | 173 | |
---|
| 174 | * Sun Apr 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.23-1 |
---|
[793] | 175 | - updated vbuilder.sh.in |
---|
| 176 | - added --category option |
---|
| 177 | |
---|
[727] | 178 | * Fri Apr 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.22-1 |
---|
| 179 | - updated vbuilder.sh.in: |
---|
| 180 | - added --bootstrap-dir, --built-rpms-dir, --cache-dir options |
---|
| 181 | - added show-info action |
---|
| 182 | - defined write-vbuilder-log() |
---|
| 183 | - added CACHE_DIR in vbuilder.conf.in |
---|
| 184 | - updated vbuilder-bash-completion.sh |
---|
| 185 | |
---|
[693] | 186 | * Fri Mar 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.21-1 |
---|
| 187 | - updated vbuilder.sh.in: |
---|
| 188 | - added a compatible name for actions: |
---|
| 189 | dropped two hyphens "--" from the head of an action "--hoge" |
---|
| 190 | (e.g. build-rpm = --build-rpm) |
---|
| 191 | - added about vbuilder in %%description and %%description -l ja |
---|
| 192 | - updated vbuilder-bash-completion.sh: s/5.0/5.1/ |
---|
| 193 | |
---|
[630] | 194 | * Sun Mar 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.20-1 |
---|
| 195 | - fixed RPM_Build() |
---|
| 196 | |
---|
[521] | 197 | * Fri Mar 05 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.0.19-1 |
---|
| 198 | - remove Retry_vbootstrap-post() from the vbuilder script: |
---|
| 199 | the trick (implemented in 0.0.18-1) moved to vbootstrap/scripts/* instead |
---|
| 200 | |
---|
| 201 | * Thu Mar 04 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.0.18-1 |
---|
| 202 | - vbuilder:Retry_vbootstrap-post(): pass --justdb option to rpm |
---|
| 203 | so that apt-get don't have to actually install packages again |
---|
| 204 | (this will help avoid creating annoying .rpmorig/.rpmnew files) |
---|
| 205 | |
---|
| 206 | * Thu Mar 04 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.0.17-1 |
---|
| 207 | - add --help option to vbuilder |
---|
| 208 | - ensure all files/subdirectories under BUILT_RPMS_DIR |
---|
| 209 | (i.e. $HOME/vbuilder/{5.1,VineSeed}/{RPMS/{i686,ppc,x86_64},SRPMS}/*) |
---|
| 210 | have ownerships of the user/group who executed "sudo vbuilder" |
---|
| 211 | |
---|
| 212 | * Mon Feb 22 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.16-1 |
---|
| 213 | - added Requires: unionfs-utils |
---|
| 214 | - updated vbuilder.sh.in |
---|
| 215 | - added --unionfs option |
---|
| 216 | - supported 5.1 (by iwai-san) |
---|
| 217 | |
---|
| 218 | * Sat Feb 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.15-1 |
---|
| 219 | - added vbuilder-bash-completion.sh |
---|
| 220 | |
---|
| 221 | * Sat Feb 13 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.14-1 |
---|
| 222 | - updated vbuilder.sh.in |
---|
| 223 | - used __chroot_sh |
---|
| 224 | - improved some functions for mounting file systems |
---|
| 225 | - defined Retry_vbootstrap-post() |
---|
| 226 | |
---|
| 227 | * Sat Feb 06 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.13-1 |
---|
| 228 | - updated vbuilder.sh.in |
---|
| 229 | - fixed /home/vbuilder/.rpmmacros for VineSeed_i386, VineSeed |
---|
| 230 | - improved some mounting processes |
---|
| 231 | - defined mount_cache_dir() |
---|
| 232 | |
---|
| 233 | * Sun Jan 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.12-1 |
---|
| 234 | - added 4.2_i386 |
---|
| 235 | - updated vbuilder.sh.in |
---|
| 236 | - supported 4.2_i386 chroot on x86_64 |
---|
| 237 | |
---|
| 238 | * Tue Jan 05 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.11-1 |
---|
| 239 | - updated vbuilder.sh.in |
---|
| 240 | - added Japanese translations for error messages |
---|
| 241 | - improved some mounting processes |
---|
| 242 | - defined some mount functions |
---|
| 243 | - defined apt-get-update() function |
---|
| 244 | - defined check-parameter() function |
---|
| 245 | |
---|
| 246 | * Tue Dec 29 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.10-1 |
---|
| 247 | - updated vbuilder.sh.in |
---|
| 248 | - added --dist-upgrade option which provides a flag to build |
---|
| 249 | VineSeed bootstrap via stable relase version |
---|
| 250 | |
---|
| 251 | * Sat Dec 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.9-1 |
---|
| 252 | - fixed vbuilder.sh.in around --target option |
---|
| 253 | |
---|
| 254 | * Sat Dec 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.8-1 |
---|
| 255 | - updated vbuilder.sh.in |
---|
| 256 | - added --target option which gives a build target of source rpm |
---|
| 257 | |
---|
| 258 | * Sun Nov 22 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.7-1 |
---|
| 259 | - updated vbuilder.sh.in |
---|
| 260 | |
---|
| 261 | * Sat Oct 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.6-1 |
---|
| 262 | - updated vbuilder.sh.in, little |
---|
| 263 | |
---|
| 264 | * Sat Oct 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.5-1 |
---|
| 265 | - updated vbuilder.sh.in and vbuilder.conf.in |
---|
| 266 | - extended to store built rpms on chroot env. in each arch. of home rpm dir. |
---|
| 267 | |
---|
| 268 | * Sun Sep 13 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.4-1 |
---|
| 269 | - added vine-release in BASE_PKGS of scripts/* |
---|
| 270 | - added vbuilder.conf |
---|
| 271 | - updated vbuilder.sh.in |
---|
| 272 | |
---|
| 273 | * Tue Sep 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.3-2 |
---|
| 274 | - rebuilt to add signature |
---|
| 275 | |
---|
| 276 | * Mon Aug 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.3-1 |
---|
| 277 | - support 5.0 (by daisuke-san) |
---|
| 278 | - update vbuilder.sh.in |
---|
| 279 | - check chroot archtecture |
---|
| 280 | |
---|
| 281 | * Mon Jun 29 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.2-1 |
---|
| 282 | - add vbuilder |
---|
| 283 | |
---|
| 284 | * Wed Mar 18 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.1-1 |
---|
| 285 | - initial build |
---|