f3949450f030f534034793717dee1328f7ee2125
[tools/depanneur.git] / packaging / depanneur.spec
1 Name:           depanneur
2 Summary:        Manages and executes the builds using the obs-build script.
3 Version:        0.16.4
4 Release:        1
5 License:        GPL-2.0+
6 Group:          Development/Tools
7 Source0:        %{name}_%{version}.tar.gz
8
9 Requires:       createrepo >= 0.9.8
10 Requires:       perl(YAML)
11 Requires:       perl(JSON)
12 Requires:       perl(HTML::Template)
13 Requires:       perl(Config::Tiny)
14 Requires:       tizen-build >= 20180927
15 Requires:       libparallel-forkmanager-perl
16 Requires:       perl(BSSolv)
17 %if 0%{?centos_ver} == 7 || 0%{?suse_version} == 1315
18
19 %else
20 Requires:       tizen-build-initvm-i586 >= 20180927
21 %endif
22 %ifarch         x86_64
23 Requires:       tizen-build-initvm-x86_64 >= 20180927
24 %endif
25
26 %if 0%{?suse_version}
27 BuildRequires:  sudo
28 %endif
29 Autoreq:        0
30 %description
31 The depanneur tool goes through local Git trees and evaluates packaging
32 meta-data to determine packages needed and the build order; it then starts
33 the build process and populates a local repository with the generated
34 binaries; the generated binaries are then used to build the remaining
35 packages in the queue.
36
37 The tool can build one package or multiple packages at a time, making it
38 possible to build hundreds of packages on a single computer with enough
39 power in a matter of hours. Depanneur supports two build modes: traditional
40 build mode and incremental build mode.
41
42 %prep
43 %setup -q
44
45 %install
46 %make_install
47
48 %files
49 %defattr(-,root,root,-)
50 %dir %{_datadir}/depanneur
51 %{_bindir}/depanneur
52 %{_sysconfdir}/sudoers.d/gbs
53 %{_datadir}/depanneur/build-report.tmpl
54 %{_datadir}/depanneur/not-export