Commit graph

37 commits

Author SHA1 Message Date
Neal Gompa
9494cc13b7 Tagger: Add SUSETagger to support SUSE-style detached changelogs
SUSE-style RPM packaging generally prefers having the RPM changelog
detached from the main RPM spec file as a changes file. This file is
typically named <pkg>.changes (corresponding to <pkg>.spec).

At package build time in the Open Build Service, the content of the
changes file is reformatted to the RPM changelog structure and
appended to the spec file by the build system before rpmbuild
processes it.

This change adds support for this particular workflow, which is
common in communities using an instance of the Open Build Service,
such as (open)SUSE.

This was originally authored by Michael Calmer. The code was ported
to work on Python 3 and adapted for the current tito codebase
by Neal Gompa.

Co-authored-by: Michael Calmer <mc@suse.de>
Co-authored-by: Neal Gompa <ngompa13@gmail.com>
2018-09-16 18:34:35 -04:00
Steve Kuznetsov
db654d1437
Added --quiet and --verbose to tito build
The current output levels from `tito build` are both very verbose in the
case that nothing goes wrong and often missing full context when some-
thing does go wrong. By exposing `--quiet` and `--verbose`, the build
process should be able to modulate the amount of output coming from the
internal process and from `rpmbuild`.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2017-01-26 09:57:47 -05:00
Steve Kuznetsov
44b18596ec
Document tito tag --use-release in the manpage
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2017-01-25 10:10:08 -05:00
Steve Kuznetsov
b537fe0607
Added an option to not escalate privileges on tito build --install
When using `tito build --install` on a system without `sudo`, such as
inside of a Linux container build, the current implementation fails.
Furthermore, if the user is running `tito build --install` with the
correct level of privilege, it is not necessary to escalate privileges
further for the installation step.

This patch adds the `--dont-escalate-privileges` flag to `tito build`
and defaults it to `True`, which keeps the behavior backwards compat-
ible. Users will want to use this flag when building RPMs inside of a
container or when running `tito build` with the requisite permissions
for installing in the first place.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2017-01-25 10:10:08 -05:00
jesus m. rodriguez
cd3ef6af29 fixes #29 - remove --list-tags and --only-tags 2017-01-16 21:47:47 -05:00
Lubomír Sedlář
d774afec78 Fix typos in man pages 2017-01-02 13:11:36 +01:00
Eric D Helms
092dc1e6c5 Add ability to specify a custom changelog during tag 2016-04-07 14:04:44 -04:00
Dominic Cleal
905162172b Add tito tag --use-version argument to man page
Fixes #191
2015-07-28 14:36:30 +01:00
Devan Goodwin
35baac73e0 Merge pull request #173 from xsuchy/pr161
substitute /releng for /.tito #161
2015-05-14 15:59:36 -03:00
Miroslav Suchý
f5f9e22437 clarify --offline option #141 2015-04-26 15:17:26 +02:00
Miroslav Suchý
843dd2cc51 substitute /releng for /.tito #161
if /releng is present it will be used. Otherwise /.tito will be used.
2015-04-26 14:56:26 +02:00
James Slagle
f1af6f6dcf Update tito.8.asciidoc
--builder-arg is now just called --arg.
2014-04-08 09:08:44 -04:00
Devan Goodwin
a49649ce3e Fix some missed references to deprecated config names. 2014-03-07 14:29:10 -04:00
Devan Goodwin
11b58b62ae Remove legacy CvsBuilder and CvsReleaser.
These build systems no longer exist to the best of my knowledge.
2014-03-07 14:18:43 -04:00
Devan Goodwin
ecb85783f2 Fix broken asciidoc. 2013-10-21 15:34:59 -03:00
Adam Miller
b894757726 tito report man page missing options 2013-08-28 12:19:02 -05:00
Adam Miller
90ecad1b2e docs clean up and additions for build_targets 2013-06-19 13:19:12 -05:00
Miroslav Suchý
9bcee4f80c document DEBUG environment variable 2013-04-24 22:57:55 +02:00
Miroslav Suchý
7cc7cdae66 document environment variable EDITOR for tagger 2013-04-24 22:57:55 +02:00
Devan Goodwin
e8ca22b1e8 Merge pull request #74 from sosiouxme/release-test
Enable tito release --test for git releasers
2013-04-24 09:06:38 -07:00
Miroslav Suchý
637d8ec3fa new option --scl which will allows you to build srpm for software collection 2013-04-24 16:12:11 +02:00
Luke Meyer
c8e9b941ab add --yes on tito release to keep from requiring input 2013-04-24 09:42:39 -04:00
jesus m. rodriguez
3c8569f7ac Merge pull request #71 from xsuchy/pull-req-scratch
document SCRATCH environment variable
2013-04-18 07:24:49 -07:00
Miroslav Suchý
3dc94aba2f document SCRATCH environment variable 2013-04-16 10:44:09 +02:00
Miroslav Suchý
d069bf4a8a document ONLY_TAGS variable 2013-04-15 11:43:23 +02:00
Aron Parsons
e2b5f5d3ca add a --scratch option for KojiReleaser
Add a command-line option of --scratch to perform a scratch
build in Koji.  This is easier to use than always setting
the environment variable of SCRATCH=1.
2012-12-27 22:12:28 -05:00
Adam Miller
69ca590905 a more clear explanation for man page 2012-11-26 10:56:43 -06:00
Adam Miller
03529cbab7 first run at adding --no-build; this will allow
scripted DistGit commits and koji/brew chain-builds

Needs testing.

pep8 cleanup from my changes

switch --no_build to --no-build for consistency

scope matters ... should pay attention to that
2012-11-26 10:45:50 -06:00
James Bowes
e6127dedbe encourage users to push only their new tag 2012-06-26 10:57:44 -03:00
Devan Goodwin
8298b5e304 List releasers option. 2011-10-17 14:26:31 -03:00
Devan Goodwin
f5fd187352 Add --all option for release. 2011-10-17 12:18:23 -03:00
Devan Goodwin
d2c7fdf042 Documentation update.
More to come...
2011-10-16 14:34:23 -03:00
Paul Morgan
2a801f1629 resolve "[FIXME: manual]" in manpages
For consistency across manpages, just include a single file
providing refmiscinfo attributes as described at
http://www.methods.co.nz/asciidoc/chunked/ch21.html
2011-07-22 11:55:25 -04:00
Miroslav Suchý
dd45b47eda implement --only-tags option for builder class
Build in koji only for specified tags. Can be specified multiple times.
2010-12-09 12:13:23 +01:00
Miroslav Suchý
7834bf46d8 implement --list-tags option for builder
this should get plain list. One tag per each line. Eg.:
dist-5E-sw-1.3-candidate
dist-f13-sw-1.3-candidate

if run --list-tags --debug, it should list all tags with explanation
why it is included or not listed. E.g:
dist-5E-sw-1.3-candidate
dist-f13-sw-1.3-candidate whitelisted
dist-f14-sw-1.3-candidate blacklisted
2010-12-09 11:29:56 +01:00
Miroslav Suchý
807aaa45da add option --scratch to builder class 2010-12-07 16:35:06 +01:00
Paul Morgan
9dc2b38219 add manpage source: tito(8) 2010-09-09 21:50:22 +08:00