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 | |
---|
4 | %define version 0.0.51 |
---|
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 | |
---|
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 | |
---|
38 | %description -l ja |
---|
39 | vbootstrap は Vine Linux の基本システムを既存の Vine Linux システム上で |
---|
40 | 作成するスクリプトです。rpm および apt を利用して、指定したディレクトリ |
---|
41 | 以下に基本の rpm パッケージをインストールし、chroot できるようにします。 |
---|
42 | |
---|
43 | vbuilder は vbootstrap を利用して chroot 環境の構築し、 |
---|
44 | その chroot の中でパッケージをビルドします。 |
---|
45 | パッケージが正しい BuildRequires 依存関係を持っているかを確認するために |
---|
46 | 有用なシステムです。 |
---|
47 | |
---|
48 | |
---|
49 | %prep |
---|
50 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
51 | |
---|
52 | %setup |
---|
53 | |
---|
54 | %build |
---|
55 | %__make \ |
---|
56 | %if %{?_dist_release} == "vl6" |
---|
57 | VBUILDER_DEFAULT_VERSION=\${VBUILDER_STABLE_VERSION} |
---|
58 | %endif |
---|
59 | %if %{?_dist_release} == "vl5" |
---|
60 | VBUILDER_DEFAULT_VERSION=5.2 |
---|
61 | %endif |
---|
62 | |
---|
63 | %install |
---|
64 | %__make DESTDIR=$RPM_BUILD_ROOT install |
---|
65 | |
---|
66 | %find_lang %{name} |
---|
67 | |
---|
68 | %clean |
---|
69 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
70 | |
---|
71 | |
---|
72 | %files -f %{name}.lang |
---|
73 | %defattr(-,root,root) |
---|
74 | %{_bindir}/vbuilder |
---|
75 | %{_sbindir}/vbootstrap |
---|
76 | %{_sbindir}/vbuilder |
---|
77 | %dir %{_datadir}/vbootstrap |
---|
78 | %{_datadir}/vbootstrap/* |
---|
79 | %{_sysconfdir}/bash_completion.d/vbuilder |
---|
80 | %{_sysconfdir}/vbootstrap/profile.d/sample.conf.skip |
---|
81 | %config(noreplace) %{_sysconfdir}/vbootstrap/vbuilder.conf |
---|
82 | %config(noreplace) %{_sysconfdir}/pam.d/vbuilder |
---|
83 | %config(noreplace) %{_sysconfdir}/security/console.apps/vbuilder |
---|
84 | |
---|
85 | |
---|
86 | %changelog |
---|
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 | |
---|
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 | |
---|
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 | |
---|
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 | |
---|
109 | * Wed Oct 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.47-1 |
---|
110 | - added the category updates in 5.2_{i386,ppc,x86_64}, 6.0_{i386,x86_64} |
---|
111 | (Thanks to daisuke-san and miyabi-san) |
---|
112 | |
---|
113 | * Sat Aug 20 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.46-1 |
---|
114 | - updated vbuilder.sh.in |
---|
115 | - optimized Build() |
---|
116 | - do not install self-build-setup package in Build() |
---|
117 | |
---|
118 | * Tue Aug 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.45-1 |
---|
119 | - set STABLE_VERSION to 6.0 |
---|
120 | |
---|
121 | * Sat Jun 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.44-1 |
---|
122 | - updated vbuilder |
---|
123 | - allowed some illegal patterns of %%{release} |
---|
124 | - added UGROUPS=wheel in vbuilder.console |
---|
125 | - supported 6.0_i386 and 6.0_x86_64 |
---|
126 | - updated ja.po |
---|
127 | |
---|
128 | * Sat Apr 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.43-1 |
---|
129 | - updated vbootstrap |
---|
130 | - supported versions format: <version>_<arch> |
---|
131 | - updated vbuilder.sh.in |
---|
132 | - dropped the action "show-info" |
---|
133 | - sync the above change for vbootstrap |
---|
134 | - added the target "noarch" in $$RPM_TARGET_LIST |
---|
135 | |
---|
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 | |
---|
140 | * Sat Apr 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.41-1 |
---|
141 | - updated vbuilder.sh.in |
---|
142 | - dropped user_from_uid() |
---|
143 | - updated ja.po |
---|
144 | |
---|
145 | * Sun Mar 20 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.40-1 |
---|
146 | - updated vbuilder.sh.in |
---|
147 | - arranged some procedures to mount /proc and unionfs_dir |
---|
148 | (Thanks to parrot-san and iwai-san) |
---|
149 | |
---|
150 | * Sun Feb 27 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.39-1 |
---|
151 | - updated vbuilder.sh.in |
---|
152 | - fixed "unionfs_dir" in mount-chroot-mount() (Thanks to Takemikaduchi-san) |
---|
153 | - improved Clean() |
---|
154 | |
---|
155 | * Fri Feb 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.38-1 |
---|
156 | - updated vbuilder.sh.in |
---|
157 | - added $$UNIONFS_DIR |
---|
158 | - added --debug, --login options |
---|
159 | - applied vbootstrap-0.0.37-armhack.patch (Thanks to parrot-san) |
---|
160 | |
---|
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 | |
---|
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 | |
---|
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 |
---|
173 | - supported usermode |
---|
174 | - dropped require-root() from vbuilder.sh.in |
---|
175 | |
---|
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 | |
---|
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 | |
---|
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 | |
---|
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 | |
---|
195 | * Sat Jul 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.29-1 |
---|
196 | - updated vbuilder.sh.in |
---|
197 | - added --sign option |
---|
198 | - added --no-install option |
---|
199 | |
---|
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 |
---|
205 | |
---|
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 |
---|
209 | - dropped "rpm" from $$BASE_PKGS |
---|
210 | |
---|
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() |
---|
214 | |
---|
215 | * Sat Apr 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.25-1 |
---|
216 | - updated vbuilder.sh.in |
---|
217 | - supported "test" category |
---|
218 | - added some comments for mount-chroot() |
---|
219 | - updated vbuilder-bash-completion.sh |
---|
220 | |
---|
221 | * Sun Apr 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.24-1 |
---|
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 |
---|
226 | |
---|
227 | * Sun Apr 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.23-1 |
---|
228 | - updated vbuilder.sh.in |
---|
229 | - added --category option |
---|
230 | |
---|
231 | * Fri Apr 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.22-1 |
---|
232 | - updated vbuilder.sh.in: |
---|
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 |
---|
237 | - updated vbuilder-bash-completion.sh |
---|
238 | |
---|
239 | * Fri Mar 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.21-1 |
---|
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) |
---|
244 | - added about vbuilder in %%description and %%description -l ja |
---|
245 | - updated vbuilder-bash-completion.sh: s/5.0/5.1/ |
---|
246 | |
---|
247 | * Sun Mar 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.20-1 |
---|
248 | - fixed RPM_Build() |
---|
249 | |
---|
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 | |
---|
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 | |
---|
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 | |
---|
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 |
---|
269 | - supported 5.1 (by iwai-san) |
---|
270 | |
---|
271 | * Sat Feb 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.15-1 |
---|
272 | - added vbuilder-bash-completion.sh |
---|
273 | |
---|
274 | * Sat Feb 13 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.14-1 |
---|
275 | - updated vbuilder.sh.in |
---|
276 | - used __chroot_sh |
---|
277 | - improved some functions for mounting file systems |
---|
278 | - defined Retry_vbootstrap-post() |
---|
279 | |
---|
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 | |
---|
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 | |
---|
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 |
---|
296 | - defined apt-get-update() function |
---|
297 | - defined check-parameter() function |
---|
298 | |
---|
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 | |
---|
304 | * Sat Dec 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.9-1 |
---|
305 | - fixed vbuilder.sh.in around --target option |
---|
306 | |
---|
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 | |
---|
311 | * Sun Nov 22 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.7-1 |
---|
312 | - updated vbuilder.sh.in |
---|
313 | |
---|
314 | * Sat Oct 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.6-1 |
---|
315 | - updated vbuilder.sh.in, little |
---|
316 | |
---|
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. |
---|
320 | |
---|
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 |
---|
324 | - updated vbuilder.sh.in |
---|
325 | |
---|
326 | * Tue Sep 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.3-2 |
---|
327 | - rebuilt to add signature |
---|
328 | |
---|
329 | * Mon Aug 31 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.3-1 |
---|
330 | - support 5.0 (by daisuke-san) |
---|
331 | - update vbuilder.sh.in |
---|
332 | - check chroot archtecture |
---|
333 | |
---|
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 |
---|