Increase version to v0.12.0
[Fedora-Rebuild.git] / lib / Fedora / Rebuild / Package / Config.pm
blobfe2559e96257b38fa7e966dc5d0c9b41be998eea
1 package Fedora::Rebuild::Package::Config;
2 use strict;
3 use warnings;
4 use version 0.77; our $VERSION = version->declare("v0.12.0");
6 use Moose;
7 use Fedora::Rebuild::Types qw( Mode );
8 use namespace::clean;
10 =encoding utf8
12 =head1 Fedora::Rebuild::Package::Config
14 Configuration for building a package. This object and its members are not
15 shared.
17 =head2 Constructor arguments and read only accessors
19 =head3 mode
21 A C<Mode> type.
23 Pass C<local> for committing and building locally only,
24 pass C<mock> for committing localy and building in mock,
25 pass C<koji> for pushing commits and building in Koji.
27 =cut
29 has 'mode' => ( is => 'ro', isa => Mode, required => 1);
31 =head3 repositories
33 Reference to array of repository URLs. Usually points to Fedora mirror or
34 Koji repository (baseurl in YUM terminology). This is needed for C<mock>
35 build C<mode>.
37 =cut
39 has 'repositories' => ( is => 'ro', isa => 'ArrayRef[Str]', required => 1);
41 =head3 architecture
43 RPM architecture name, e.g. C<x86_64>.
45 =cut
47 has 'architecture' => ( is => 'ro', isa => 'Str', required => 1);
49 =head3 mock_install_group
51 yum group to install at mock chroot initialization.
52 C<buildsys-build> is needed for mirrored Fedora repositories
53 C<build> is needed for direct koji repositories.
55 =cut
57 has 'mock_install_group' => ( is => 'ro', isa => 'Str', required => 1);