-
Notifications
You must be signed in to change notification settings - Fork 343
/
Copy pathtito.props
21 lines (20 loc) · 1.04 KB
/
tito.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[buildconfig]
builder = custom.NativeFetchBuilder
tagger = tito.tagger.VersionTagger
lib_dir = .tito
[builder]
fetch_prep_command = $(test $(id -u) -eq 0 && echo "ln -s" || echo :) \
/usr/bin/false /usr/local/bin/rpmbuild \
&& git rev-list --count HEAD ^$(git describe \
--tags --abbrev=0) > build.counter \
&& export WITH="$(git rev-parse --abbrev-ref --quiet HEAD \
| grep -vqE '^[1-9].[0-9][0-9]*$' \
|| echo '--with pre_release')" \
&& { make srpm-temp || :; } \
&& test -z "${WITH}" || { \
echo '%define _with_pre_release --with-pre_release' \
> new.spec \
&& cat pacemaker.spec >> new.spec \
&& mv new.spec pacemaker.spec; } \
&& $(test $(id -u) -eq 0 && echo "rm -f" || echo :) \
/usr/local/bin/rpmbuild