1 .TH build 1 "(c) 1997-2005 SuSE Linux AG Nuernberg, Germany"
3 build \- build SuSE Linux RPMs in a chroot environment
6 .RB [ --clean | --no-init]
8 .IR path1 : path2 : ... ]
10 .IR arch1 : arch2 : ... ]
13 .RB [ specfile | srcrpm ]
21 \fBbuild\fR is a tool to build SuSE Linux RPMs in a safe and clean way.
23 will install a minimal SuSE Linux as build system into some directory
24 and will chroot to this system to compile the package.
25 This way you don't risk to corrupt your working system (due to a broken spec
26 file for example), even if the package does not use BuildRoot.
29 searches the spec file for a
31 line; if such a line is found, all the specified rpms are installed.
32 Otherwise a selection of default packages are used. Note that
34 doesn't automatically resolve missing dependencies, so the specified
35 rpms have to be sufficient for the build.
37 If a spec file is specified on the command line,
39 will use this file and all other files in the directory for building
40 the package. If a srcrpm is specified,
42 automatically unpacks it for the build.
45 will use all the specfiles in the current directory.
49 remove the build system and reinitialize it from scratch.
52 skip the build system initialization and start with build immediately.
54 .BI "\-\-rpms " path1 : path2 : path3\fR...\fP
55 Where build can find the SuSE Linux RPMs needed to create the
56 build system. This option overrides the BUILD_RPMS environment
59 .BI "\-\-arch " arch1 : arch2 : arch3\fR...\fP
60 What architectures to select from the RPMs.
62 automatically sets this to a sensible value for your host if you
63 don't specify this option.
65 .BI "\-\-root " buildroot
66 Specifies where the build system is set up. Overrides the
67 BUILD_ROOT enviroment variable.
69 .B "\-\-useusedforbuild"
70 Tell build not to do dependency expansion, but to extract the
71 list of packages to install from "usedforbuild" lines or, if none
72 are found, from all "BuildRequires" lines. This option is useful
73 if you want to re-build a package from a srcrpm with exactly the
74 same packages used for the srcrpm build.
77 Print a short help text.
80 verify the files in an existing build system.
84 The directory where build should install the chrooted build system.
85 "/var/tmp/build-root" is used by default.
88 Where build can find the SuSE Linux RPMs. build needs them to create the
89 build system. "/media/dvd/suse" is the default value which will do
90 the trick if you have the SuSE Linux DVD mounted.
92 .B BUILD_RPM_BUILD_STAGE
93 The rpm build stage (-ba, -bb, ...). This is just passed through to
94 rpm, check the rpm manpage for a complete list and descriptions.
96 You can use this to add more options to RPM.
102 .I http://www.rpm.org/max-rpm/