[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 | |
---|
[2326] | 4 | %define version 0.0.32 |
---|
[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 | |
---|
| 63 | %clean |
---|
| 64 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | %files |
---|
| 68 | %defattr(-,root,root) |
---|
| 69 | %{_sbindir}/vbootstrap |
---|
| 70 | %{_sbindir}/vbuilder |
---|
| 71 | %dir %{_datadir}/vbootstrap |
---|
| 72 | %{_datadir}/vbootstrap/* |
---|
| 73 | %{_sysconfdir}/bash_completion.d/vbuilder |
---|
| 74 | %config(noreplace) %{_sysconfdir}/vbootstrap/vbuilder.conf |
---|
| 75 | |
---|
| 76 | |
---|
| 77 | %changelog |
---|
[2326] | 78 | * Fri Dec 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.32-1 |
---|
| 79 | - setarch ix86 if ix86 chroot on x86_64 host |
---|
| 80 | |
---|
[2271] | 81 | * Fri Dec 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.31-1 |
---|
| 82 | - supported Vine Linux 5.2 |
---|
| 83 | |
---|
| 84 | * Sun Aug 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.30-1 |
---|
| 85 | - updated vbuilder.sh.in |
---|
| 86 | - added --rpmbuild-with option |
---|
| 87 | |
---|
[1377] | 88 | * Sat Jul 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.29-1 |
---|
| 89 | - updated vbuilder.sh.in |
---|
| 90 | - added --sign option |
---|
| 91 | - added --no-install option |
---|
| 92 | |
---|
[1137] | 93 | * Fri Jun 04 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.28-1 |
---|
| 94 | - updated vbuilder.sh.in |
---|
| 95 | - made /dev/urandom on chroot in Build() |
---|
| 96 | - added "-o APT::Install::Virtual=true" on apt-get build-dep |
---|
| 97 | to solve BuildRequires dependenceies of virtual packages |
---|
| 98 | |
---|
[935] | 99 | * Tue May 04 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.27-1 |
---|
| 100 | - changed an order of BASE_PKGS in vbootstrap/scripts/*, respectively |
---|
| 101 | - apt package has Requires: rpm dependence |
---|
| 102 | - dropped "rpm" from $$BASE_PKGS |
---|
| 103 | |
---|
[922] | 104 | * Mon May 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.26-1 |
---|
| 105 | - updated vbuilder.sh.in |
---|
| 106 | - made /dev/random on chroot in Build() |
---|
| 107 | |
---|
[886] | 108 | * Sat Apr 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.25-1 |
---|
| 109 | - updated vbuilder.sh.in |
---|
| 110 | - supported "test" category |
---|
| 111 | - added some comments for mount-chroot() |
---|
| 112 | - updated vbuilder-bash-completion.sh |
---|
| 113 | |
---|
[797] | 114 | * Sun Apr 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.24-1 |
---|
[793] | 115 | - updated vbootstrap.sh.in (daisuke-san) |
---|
| 116 | - changed to cache /var/lib/apt/lists, /var/cache/apt/archives |
---|
| 117 | in bootstrap (not in host) |
---|
| 118 | - set Dir::State and Dir::Cache in APT_OPTS |
---|
[797] | 119 | |
---|
| 120 | * Sun Apr 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.23-1 |
---|
[793] | 121 | - updated vbuilder.sh.in |
---|
| 122 | - added --category option |
---|
| 123 | |
---|
[727] | 124 | * Fri Apr 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.22-1 |
---|
| 125 | - updated vbuilder.sh.in: |
---|
| 126 | - added --bootstrap-dir, --built-rpms-dir, --cache-dir options |
---|
| 127 | - added show-info action |
---|
| 128 | - defined write-vbuilder-log() |
---|
| 129 | - added CACHE_DIR in vbuilder.conf.in |
---|
| 130 | - updated vbuilder-bash-completion.sh |
---|
| 131 | |
---|
[693] | 132 | * Fri Mar 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.21-1 |
---|
| 133 | - updated vbuilder.sh.in: |
---|
| 134 | - added a compatible name for actions: |
---|
| 135 | dropped two hyphens "--" from the head of an action "--hoge" |
---|
| 136 | (e.g. build-rpm = --build-rpm) |
---|
| 137 | - added about vbuilder in %%description and %%description -l ja |
---|
| 138 | - updated vbuilder-bash-completion.sh: s/5.0/5.1/ |
---|
| 139 | |
---|
[630] | 140 | * Sun Mar 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.20-1 |
---|
| 141 | - fixed RPM_Build() |
---|
| 142 | |
---|
[521] | 143 | * Fri Mar 05 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.0.19-1 |
---|
| 144 | - remove Retry_vbootstrap-post() from the vbuilder script: |
---|
| 145 | the trick (implemented in 0.0.18-1) moved to vbootstrap/scripts/* instead |
---|
| 146 | |
---|
| 147 | * Thu Mar 04 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.0.18-1 |
---|
| 148 | - vbuilder:Retry_vbootstrap-post(): pass --justdb option to rpm |
---|
| 149 | so that apt-get don't have to actually install packages again |
---|
| 150 | (this will help avoid creating annoying .rpmorig/.rpmnew files) |
---|
| 151 | |
---|
| 152 | * Thu Mar 04 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.0.17-1 |
---|
| 153 | - add --help option to vbuilder |
---|
| 154 | - ensure all files/subdirectories under BUILT_RPMS_DIR |
---|
| 155 | (i.e. $HOME/vbuilder/{5.1,VineSeed}/{RPMS/{i686,ppc,x86_64},SRPMS}/*) |
---|
| 156 | have ownerships of the user/group who executed "sudo vbuilder" |
---|
| 157 | |
---|
| 158 | * Mon Feb 22 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.16-1 |
---|
| 159 | - added Requires: unionfs-utils |
---|
| 160 | - updated vbuilder.sh.in |
---|
| 161 | - added --unionfs option |
---|
| 162 | - supported 5.1 (by iwai-san) |
---|
| 163 | |
---|
| 164 | * Sat Feb 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.15-1 |
---|
| 165 | - added vbuilder-bash-completion.sh |
---|
| 166 | |
---|
| 167 | * Sat Feb 13 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.14-1 |
---|
| 168 | - updated vbuilder.sh.in |
---|
| 169 | - used __chroot_sh |
---|
| 170 | - improved some functions for mounting file systems |
---|
| 171 | - defined Retry_vbootstrap-post() |
---|
| 172 | |
---|
| 173 | * Sat Feb 06 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.13-1 |
---|
| 174 | - updated vbuilder.sh.in |
---|
| 175 | - fixed /home/vbuilder/.rpmmacros for VineSeed_i386, VineSeed |
---|
| 176 | - improved some mounting processes |
---|
| 177 | - defined mount_cache_dir() |
---|
| 178 | |
---|
| 179 | * Sun Jan 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.12-1 |
---|
| 180 | - added 4.2_i386 |
---|
| 181 | - updated vbuilder.sh.in |
---|
| 182 | - supported 4.2_i386 chroot on x86_64 |
---|
| 183 | |
---|
| 184 | * Tue Jan 05 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.11-1 |
---|
| 185 | - updated vbuilder.sh.in |
---|
| 186 | - added Japanese translations for error messages |
---|
| 187 | - improved some mounting processes |
---|
| 188 | - defined some mount functions |
---|
| 189 | - defined apt-get-update() function |
---|
| 190 | - defined check-parameter() function |
---|
| 191 | |
---|
| 192 | * Tue Dec 29 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.10-1 |
---|
| 193 | - updated vbuilder.sh.in |
---|
| 194 | - added --dist-upgrade option which provides a flag to build |
---|
| 195 | VineSeed bootstrap via stable relase version |
---|
| 196 | |
---|
| 197 | * Sat Dec 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.9-1 |
---|
| 198 | - fixed vbuilder.sh.in around --target option |
---|
| 199 | |
---|
| 200 | * Sat Dec 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.8-1 |
---|
| 201 | - updated vbuilder.sh.in |
---|
| 202 | - added --target option which gives a build target of source rpm |
---|
| 203 | |
---|
| 204 | * Sun Nov 22 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.7-1 |
---|
| 205 | - updated vbuilder.sh.in |
---|
| 206 | |
---|
| 207 | * Sat Oct 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.6-1 |
---|
| 208 | - updated vbuilder.sh.in, little |
---|
| 209 | |
---|
| 210 | * Sat Oct 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.5-1 |
---|
| 211 | - updated vbuilder.sh.in and vbuilder.conf.in |
---|
| 212 | - extended to store built rpms on chroot env. in each arch. of home rpm dir. |
---|
| 213 | |
---|
| 214 | * Sun Sep 13 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.4-1 |
---|
| 215 | - added vine-release in BASE_PKGS of scripts/* |
---|
| 216 | - added vbuilder.conf |
---|
| 217 | - updated vbuilder.sh.in |
---|
| 218 | |
---|
| 219 | * Tue Sep 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.3-2 |
---|
| 220 | - rebuilt to add signature |
---|
| 221 | |
---|
| 222 | * Mon Aug 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.3-1 |
---|
| 223 | - support 5.0 (by daisuke-san) |
---|
| 224 | - update vbuilder.sh.in |
---|
| 225 | - check chroot archtecture |
---|
| 226 | |
---|
| 227 | * Mon Jun 29 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.2-1 |
---|
| 228 | - add vbuilder |
---|
| 229 | |
---|
| 230 | * Wed Mar 18 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.1-1 |
---|
| 231 | - initial build |
---|