2011-02-11 16:12:12 +01:00
tito.props(5)
============
2011-07-22 11:39:08 -04:00
include::man.asciidoc[]
2011-02-11 16:12:12 +01:00
NAME
----
2013-04-24 22:57:10 +02:00
tito.props - directives for tito(5) how to build package.
2011-02-11 16:12:12 +01:00
SYNOPSIS
--------
None
// older asciidoc versions (such as the version for .el5) require a synopsis section
DESCRIPTION
-----------
Project settings can be stored in files:
`GITROOT/rel-eng/tito.props`
2011-10-17 12:18:23 -03:00
`GITROOT/SOME/PACKAGE/tito.props`
2011-02-11 16:12:12 +01:00
2013-11-12 12:16:12 -04:00
The global rel-eng/tito.props is generally where settings are defined. For
some multi-project git repositories, individual packages can override these
settings by placing a tito.props in the project directory. (i.e. same location
2013-06-19 11:30:53 -05:00
as it's .spec file)
2011-02-11 16:12:12 +01:00
SECTIONS
--------
2011-10-16 13:31:57 -03:00
tito.props can contain several sections:
2011-02-11 16:12:12 +01:00
2014-03-07 14:29:10 -04:00
BUILDCONFIG
2011-02-11 16:12:12 +01:00
------------
2014-03-07 14:29:10 -04:00
This section and a couple of it's properties are required.
You can use following variables:
2011-02-11 16:12:12 +01:00
2014-03-07 14:29:10 -04:00
builder::
2011-10-16 13:31:57 -03:00
The fully qualified Builder class implementation to use.
2013-11-12 12:16:12 -04:00
You can either specify builders shipped with tito(5) (see BUILDERS section
below), or a custom builder located within the directory your `lib_dir` option
2014-03-07 14:29:10 -04:00
points to. This property is required.
2011-02-11 16:12:12 +01:00
2014-03-07 14:29:10 -04:00
tagger::
2011-10-16 13:31:57 -03:00
The fully qualified Tagger class implementation to use.
2013-11-12 12:16:12 -04:00
You can either specify builders shipped with tito(5) (see TAGGERS section
below), or a custom builder located within the directory your `lib_dir` option
2014-03-07 14:29:10 -04:00
points to. This property is required.
2011-10-16 13:31:57 -03:00
lib_dir::
2013-11-12 12:16:12 -04:00
Optional property defining a directory to be added to the Python path when
executing tito. Allows you to store custom implementations of Builder, Tagger,
2013-06-19 11:30:53 -05:00
and Releaser.
2011-02-11 16:12:12 +01:00
2012-02-01 14:36:47 -04:00
changelog_format::
This option is used to control the formatting of entries when
generating changelog entries. The default value is "%s (%ae)". See
PRETTY FORMATS in git-log(1) for more information.
2011-02-11 16:12:12 +01:00
changelog_with_email::
2012-02-01 14:36:47 -04:00
If set to 0, then entries in changelog (subject of commits) are not
followed by email of commiter. Default is 1. This option is
deprecated and provided for backwards-compatibility only. New
configurations should consider changelog_format instead.
2011-02-11 16:12:12 +01:00
changelog_do_not_remove_cherrypick::
If set to 0, it will not remove from cherry picked commits the part "(cherry
picked from commit ...)"
2011-10-16 13:31:57 -03:00
tag_suffix::
2013-11-12 12:16:12 -04:00
An optional specification of a suffix to append to all tags created by tito
for this repo. Can be useful for situations where one git repository is
inheriting from another, but tags are created in both. The suffix will be an
2013-06-19 11:30:53 -05:00
indicator as to which repo the tag originated in. (i.e. tag_suffix = -mysuffix)
2011-10-16 13:31:57 -03:00
2011-02-11 16:12:12 +01:00
2013-11-01 14:01:54 +01:00
KOJI and COPR
-------------
2011-10-16 13:31:57 -03:00
2011-02-11 16:12:12 +01:00
disttag::
Dist tag variable, which is passed to rpmbuild for packages build in this tag.
blacklist::
Space separated list of packages, which should not be built in this tag.
2013-04-24 22:03:18 +02:00
whitelist::
If whitelist is present, only packages listed here can be built in this tag.
This also override blacklist.
scl::
Specify name of Software Collection into which package should be build.
2013-11-12 12:16:12 -04:00
VERSION_TEMPLATE
----------------
Allows the user to write out a template file containing version and/or release and add it to git during the tagging process.
template_file::
2014-02-28 16:42:14 -05:00
Path to a file conforming to a Python string.Template, as described at http://docs.python.org/2/library/string.html#template-strings. Path is relative to root of the entire git checkout, as this is likely to be stored in the top level rel-eng directory. The variables $version and $release are available inside the template.
2013-11-12 12:16:12 -04:00
destination_file::
Specifies a file to write, relative to the directory for the package being tagged.
Example:
----
[version_template]
destination_file = version.txt
template_file = rel-eng/templates/version.rb
----
2011-02-11 16:12:12 +01:00
REQUIREMENTS
------------
tito::
If tito is older then specified version, it will refuse to continue.
2013-04-24 22:57:10 +02:00
2013-02-20 11:40:41 +01:00
TAGCONFIG
---------
require_package::
Comma separated list of packages, which needs to be installed prior tagging. If those
packages are not installed, tito will refuse to continue.
2011-10-16 13:31:57 -03:00
2011-02-11 16:12:12 +01:00
BUILDERS
--------
tito.builder.Builder::
Basic package builder. It create tar.gz of whole directory and create src.rpm
and build rpm using some supported method.
tito.builder.NoTgzBuilder::
Builder for packages that do not require the creation of tarball.
Usually these package have source files checked directly into git.
tito.builder.UpstreamBuilder::
Builder for packages that are based off an upstream git tag.
Commits applied in downstream git become patches applied to the upstream
tarball.
For example - you are building package foo-1.2-3... Tar.gz file is created from
commit, which is tagged by foo-1.2-1 and the diff between release 1 and 3 is
put in spec file as Patch0.
2012-11-20 16:19:47 -06:00
tito.builder.GemBuilder::
Builder for packages that list a .gem as Source0, the .gemspec shares a
directory hierarchy with the .spec file and the upstream does not want to check
.gem files into their git repository.
2011-02-11 16:12:12 +01:00
tito.distributionbuilder.DistributionBuilder::
Behave similar as tito.builder.UpstreamBuilder, but patch is created for every
release. Therefore package from previous example will end up with tar.gz file
created from tag foo-1.2-1 and with
Patch0: foo-1.2-1-to-foo-1.2-2.patch
Patch1: foo-1.2-1-to-foo-1.2-3.patch
2014-02-27 12:02:50 -04:00
tito.builder.FetchBuilder::
2014-02-27 12:26:17 -04:00
See doc/builders.mkd.
2014-02-27 12:02:50 -04:00
----
[builder]
fetch_strategy = tito.builder.fetch.ArgSourceStrategy
----
ArgSourceStrategy here could be replaced with a custom strategy if you were to
have one in your lib_dir.
2014-01-25 21:24:01 +00:00
tito.builder.GitAnnexBuilder::
See doc/builders.mkd.
Builder for packages with existing tarballs checked in using git-annex, e.g.
referencing an external source (web remote). This builder will "unlock" the
source files to get the real contents, include them in the SRPM, then restore
the automatic git-annex symlinks on completion.
2011-02-11 16:12:12 +01:00
TAGGERS
-------
All taggers which inherit fom tito.tagger.VersionTagger (all to this date),
will update file GITROOT/rel-eng/packages/name-of-package and put there one
line which consist of version-release of package, space delimiter, path to
package directory relative to GITROOT.
tito.tagger.VersionTagger::
Standard tagger class, used for tagging packages build from source in git.
Releaase will be tagged by incrementing the package version, and the actual
"Release" will be always set to 1.
tito.tagger.ReleaseTagger::
Keep version and increment release.
tito.zstreamtagger.zStreamTagger::
Tagger which increments zstream number in release. I.e. x.y.z-r%{dist}.Z+1
It is used for EUS packages.
tito.rheltagger.RHELTagger::
2011-10-16 13:31:57 -03:00
Tagger which is based on ReleaseTagger and uses Red Hat Enterprise Linux
changelog format:
2011-02-11 16:12:12 +01:00
- Resolves: #1111 - description
- Related: #1111 - description
2013-05-09 15:19:30 +02:00
RELEASER
--------
You can create section with the name same as releaser target and there you can
specify this option:
remote_git_name::
This is usefull for FedoraGitReleaser and DistGitReleaser and will allow you to
specify name of remote dist-git branch.
2013-05-09 17:11:24 +02:00
+
For example let say you have in releaser.conf:
[git-sat]
releaser = tito.release.DistGitReleaser
branches = satellite-6.0-rhel-6
+
and then in package directory you can create tito.props with content:
[git-sat]
remote_git_name = ruby193-rubygem-simple-navigation
And it will push package into ruby193-rubygem-simple-navigation dist-git despite the
fact that it is in /rubygem-simple-navigation directory. And project name (as taken
from spec file) is rubygem-simple-navigation.
2013-05-09 15:19:30 +02:00
2011-02-11 16:12:12 +01:00
EXAMPLE
-------
2014-03-07 14:29:10 -04:00
[buildconfig]
builder = tito.builder.Builder
tagger = tito.tagger.VersionTagger
2011-02-11 16:12:12 +01:00
[koji]
autobuild_tags = dist-5E-sw-1.2-candidate dist-f12-sw-1.2-candidate dist-f13-sw-1.2-candidate
[dist-5E-sw-1.2-candidate]
disttag = .el5
[dist-f12-sw-1.2-candidate]
disttag = .fc12
blacklist=jabberd-selinux
[dist-f13-sw-1.2-candidate]
disttag = .fc13
blacklist=jabberd-selinux
[requirements]
tito=0.3.0
SEE ALSO
--------
tito(8) titorc(5)
AUTHORS
-------
include::AUTHORS[]