1TITO.PROPS(5) Tito User Manual TITO.PROPS(5)
2
3
4
6 tito.props - directives for tito(5) how to build package.
7
9 None
10
12 Project settings can be stored in files:
13
14 GITROOT/.tito/tito.props
15
16 GITROOT/SOME/PACKAGE/tito.props
17
18 The global .tito/tito.props is generally where settings are defined.
19 For some multi-project git repositories, individual packages can
20 override these settings by placing a tito.props in the project
21 directory. (i.e. same location as it’s .spec file)
22
24 tito.props can contain several sections:
25
27 This section and a couple of its properties are required. You can use
28 following variables:
29
30 builder
31 The fully qualified Builder class implementation to use. You can
32 either specify builders shipped with tito(5) (see BUILDERS section
33 below), or a custom builder located within the directory your
34 lib_dir option points to. This property is required.
35
36 tagger
37 The fully qualified Tagger class implementation to use. You can
38 either specify taggers shipped with tito(5) (see TAGGERS section
39 below), or a custom tagger located within the directory your
40 lib_dir option points to. This property is required.
41
42 lib_dir
43 Optional property defining a directory to be added to the Python
44 path when executing tito. Allows you to store custom
45 implementations of Builder, Tagger, and Releaser.
46
47 changelog_format
48 This option is used to control the formatting of entries when
49 generating changelog entries. The default value is "%s (%ae)". See
50 PRETTY FORMATS in git-log(1) for more information.
51
52 changelog_with_email
53 If set to 0, then entries in changelog (subject of commits) are not
54 followed by email of committer. Default is 1. This option is
55 deprecated and provided for backwards-compatibility only. New
56 configurations should consider changelog_format instead.
57
58 changelog_do_not_remove_cherrypick
59 If set to 0, it will not remove from cherry picked commits the part
60 "(cherry picked from commit ...)"
61
62 changelog_date_with_time
63 By default, changelog dates don’t contain time (e.g. Wed Nov 1
64 2017). When this option is set to True, changelog entries are
65 generated in a datetime format (e.g. Wed Nov 1 11:08:13 EDT 2017).
66 This feature requires RPM 4.14, therefore it is supported only on
67 Fedora 27, EPEL8, openSUSE Leap 15 and higher.
68
69 tag_suffix
70 An optional specification of a suffix to append to all tags created
71 by tito for this repo. Can be useful for situations where one git
72 repository is inheriting from another, but tags are created in
73 both. The suffix will be an indicator as to which repo the tag
74 originated in. (i.e. tag_suffix = -mysuffix)
75
76 tag_commit_message_format
77 This option is used control the text of git commit message that is
78 used when new tag is generated. You can use "%(name)s",
79 "%(release_type)s" and "%(version)s" placeholders.
80
81 tag_format
82 This option controls the format used in VersionTagger. If not
83 specified other taggers.
84
85 sign_tag
86 This boolean enables GnuPG signed tags using git tag -s.
87
88 fetch_sources
89 If true, download sources from predefined Source<N> addresses to
90 the SOURCE folder.
91
93 disttag
94 Dist tag variable, which is passed to rpmbuild for packages build
95 in this tag.
96
97 blacklist
98 Space separated list of packages, which should not be built in this
99 tag.
100
101 whitelist
102 If whitelist is present, only packages listed here can be built in
103 this tag. This also override blacklist.
104
105 scl
106 Specify name of Software Collection into which package should be
107 build.
108
110 Allows the user to write out a template file containing version and/or
111 release and add it to git during the tagging process.
112
113 template_file
114 Path to a file conforming to a Python string.Template, as described
115 at http://docs.python.org/2/library/string.html#template-strings.
116 Path is relative to root of the entire git checkout, as this is
117 likely to be stored in the top level .tito directory. The variables
118 $version and $release are available inside the template.
119
120 destination_file
121 Specifies a file to write, relative to the directory for the
122 package being tagged.
123
124 Example:
125
126 [version_template]
127 destination_file = version.txt
128 template_file = .tito/templates/version.rb
129
131 tito
132 If tito is older then specified version, it will refuse to
133 continue.
134
136 require_package
137 Comma separated list of packages, which needs to be installed prior
138 tagging. If those packages are not installed, tito will refuse to
139 continue.
140
142 tito.builder.Builder
143 Basic package builder. It create tar.gz of whole directory and
144 create src.rpm and build rpm using some supported method.
145
146 tito.builder.NoTgzBuilder
147 Builder for packages that do not require the creation of tarball.
148 Usually these package have source files checked directly into git.
149
150 tito.builder.UpstreamBuilder
151 Builder for packages that are based off an upstream git tag.
152 Commits applied in downstream git become patches applied to the
153 upstream tarball. For example - you are building package
154 foo-1.2-3... Tar.gz file is created from commit, which is tagged by
155 foo-1.2-1 and the diff between release 1 and 3 is put in spec file
156 as Patch0.
157
158 tito.builder.GemBuilder
159 Builder for packages that list a .gem as Source0, the .gemspec
160 shares a directory hierarchy with the .spec file and the upstream
161 does not want to check .gem files into their git repository.
162
163 tito.distributionbuilder.DistributionBuilder
164 Behave similar as tito.builder.UpstreamBuilder, but patch is
165 created for every release. Therefore package from previous example
166 will end up with tar.gz file created from tag foo-1.2-1 and with
167 Patch0: foo-1.2-1-to-foo-1.2-2.patch Patch1:
168 foo-1.2-1-to-foo-1.2-3.patch
169
170 tito.builder.FetchBuilder
171 See doc/builders.mkd.
172
173 [builder]
174 fetch_strategy = tito.builder.fetch.ArgSourceStrategy
175
176 ArgSourceStrategy here could be replaced with a custom strategy if you
177 were to have one in your lib_dir.
178
179 tito.builder.GitAnnexBuilder
180 See doc/builders.mkd.
181
182 Builder for packages with existing tarballs checked in using git-annex,
183 e.g. referencing an external source (web remote). This builder will
184 "unlock" the source files to get the real contents, include them in the
185 SRPM, then restore the automatic git-annex symlinks on completion.
186
188 All taggers which inherit from tito.tagger.VersionTagger (all to this
189 date), will update file GITROOT/.tito/packages/name-of-package and put
190 there one line which consist of version-release of package, space
191 delimiter, path to package directory relative to GITROOT.
192
193 tito.tagger.VersionTagger
194 Standard tagger class, used for tagging packages build from source
195 in git. Release will be tagged by incrementing the package version,
196 and the actual "Release" will be always set to 1.
197
198 tito.tagger.ReleaseTagger
199 Keep version and increment release.
200
201 tito.zstreamtagger.zStreamTagger
202 It is used for EUS packages.
203
204 tito.rheltagger.RHELTagger
205 Tagger which is based on ReleaseTagger and uses Red Hat Enterprise
206 Linux changelog format:
207
208 • Resolves: #1111 - description
209
210 • Related: #1111 - description
211
213 You can create section with the name same as releaser target and there
214 you can specify this option:
215
216 remote_git_name
217 This is useful for FedoraGitReleaser and DistGitReleaser and will
218 allow you to specify name of remote dist-git branch.
219
220 For example let say you have in releaser.conf: [git-sat] releaser =
221 tito.release.DistGitReleaser branches = satellite-6.0-rhel-6
222
223 and then you can add remote_git_name: [git-sat] releaser =
224 tito.release.DistGitReleaser branches = satellite-6.0-rhel-6
225 remote_git_name = ruby193-rubygem-simple-navigation And it will
226 push package into ruby193-rubygem-simple-navigation dist-git
227 despite the fact that it is in /rubygem-simple-navigation
228 directory. And project name (as taken from spec file) is
229 rubygem-simple-navigation.
230
231 tito.susetagger.SUSETagger
232 Tagger which is based on VersionTagger and deal with SUSE / OBS
233 specific separate changes file and format.
234
236 [buildconfig]
237 builder = tito.builder.Builder
238 tagger = tito.tagger.VersionTagger
239
240 [koji]
241 autobuild_tags = dist-5E-sw-1.2-candidate dist-f12-sw-1.2-candidate dist-f13-sw-1.2-candidate
242
243 [dist-5E-sw-1.2-candidate]
244 disttag = .el5
245
246 [dist-f12-sw-1.2-candidate]
247 disttag = .fc12
248 blacklist=jabberd-selinux
249
250 [dist-f13-sw-1.2-candidate]
251 disttag = .fc13
252 blacklist=jabberd-selinux
253
254 [requirements]
255 tito=0.3.0
256
258 tito(8) titorc(5)
259
261 Devan Goodwin <dgoodwin@rm-rf.ca>
262
263 James Bowes <jbowes@repl.ca>
264
265 Jan Pazdziora
266
267 Jesus M Rodriguez <jesusr@redhat.com>
268
269 Pall Sigurdsson <palli@opensource.is>
270
271 Miroslav Suchý <msuchy@redhat.com>
272
273 and: Adam Miller, Alex Wood, Aron Parsons, Brenton Leanhardt, Ivan
274 Nečas, John Eckersberg, Kenny MacDermid, Lukáš Zapletal, Luke Meyer,
275 Marian Csontos, Martin Bačovský, Michael Stead, Mike McCune, mscherer,
276 Paul Morgan, Sean P. Kane, Steve Ashcrow Milner
277
278
279
280tito 08/15/2021 TITO.PROPS(5)