NAME

rt_buildpackage - build an RPM from within the project's source tree

SYNOPSIS

 rt_buildpackage [OPTIONS]
 rt_buildpackage [OPTIONS] PROJECT.bootstrap
 rt_buildpackage [OPTIONS] PROJECT.spec.in
 rt_buildpackage [OPTIONS] PROJECT.spec

DESCRIPTION

rt_buildpackage alows one to build RPM-based projects from within the project's source tree. It can generate packages in the current directory, as well as the usual RPM output locations under %_topdir.

Upon startup, if no filenames are provided rt_buildpackage searches "." and ".." for the files *.bootstrap, *.spec.in and *.spec in that order and exits with an error message if eiher directory contains more than one file of each kind, or if neither directory contains any matching files.

Next if -x option was given it calls rt_bootstrap(1) to configure the project.

Next it calls rt_makedist(1) to create/update an source files required to build the project.

Finally it calls rpmbuild(8) with the appropriate arguments to generate the RPMs, and, if -O or -c options were given, moves them into their intended destinations.

OPTIONS

SEE ALSO

rt_makedist(1), rt_bootstrap(1), autoconf(1), Module::Build, ExtUtils::MakeMaker

AUTHORS

Davlet Panech - dpanech at users dot sourceforge dot net

COPYRIGHT AND LICENSE

Copyright 2010 Davlet Panech.

Rpmtoolbox is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Rpmtoolbox is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with rpmtoolbox. If not, see <www.gnu.org>.