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