-
Notifications
You must be signed in to change notification settings - Fork 2
/
nobara-40-x86_64.cfg
executable file
·112 lines (95 loc) · 3.06 KB
/
nobara-40-x86_64.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
config_opts['releasever'] = '40'
config_opts['target_arch'] = 'x86_64'
config_opts['legal_host_arches'] = ('x86_64',)
config_opts['root'] = 'nobara-{{ releasever }}-{{ target_arch }}'
config_opts['description'] = 'Nobara {{ releasever }}'
# fedora 31+ isn't mirrored, we need to run from koji
config_opts['mirrored'] = config_opts['target_arch'] != 'i686'
config_opts['chroot_setup_cmd'] = 'install @{% if mirrored %}buildsys-{% endif %}build'
config_opts['dist'] = 'fc{{ releasever }}' # only useful for --resultdir variable subst
config_opts['extra_chroot_dirs'] = [ '/run/lock', ]
# https://fedoraproject.org/wiki/Changes/BuildWithDNF5 for Fedora 40+
config_opts['package_manager'] = '{% if releasever|int >= 40 %}dnf5{% else %}dnf{% endif %}'
config_opts['bootstrap_image'] = 'registry.fedoraproject.org/fedora:{{ releasever }}'
config_opts['dnf.conf'] = """
[main]
keepcache=1
system_cachedir=/var/cache/dnf
debuglevel=2
reposdir=/dev/null
logfile=/var/log/yum.log
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
syslog_ident=mock
syslog_device=
install_weak_deps=0
metadata_expire=0
best=1
module_platform_id=platform:f{{ releasever }}
protected_packages=
user_agent={{ user_agent }}
# repos
[local]
name=local
baseurl=https://kojipkgs.fedoraproject.org/repos/f{{ releasever }}-build/latest/$basearch/
cost=2000
enabled={{ not mirrored }}
skip_if_unavailable=False
{% if mirrored %}
[fedora]
name=fedora
baseurl=https://nobara-fedora.nobaraproject.org/$releasever/
gpgkey=file:///usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-{{ releasever }}-primary
gpgcheck=1
skip_if_unavailable=False
cost=99
[fedora-updates]
name=fedora-updates
baseurl=https://nobara-fedora-updates.nobaraproject.org/$releasever/
gpgkey=file:///usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-{{ releasever }}-primary
gpgcheck=1
skip_if_unavailable=False
cost=99
[nobara-baseos]
name=nobara-baseos
baseurl=https://download.copr.fedorainfracloud.org/results/gloriouseggroll/nobara-40/fedora-$releasever-$basearch/
type=rpm-md
gpgcheck=1
gpgkey=https://download.copr.fedorainfracloud.org/results/gloriouseggroll/nobara-40/pubkey.gpg
repo_gpgcheck=0
enabled=1
enabled_metadata=1
cost=1
[nobara-baseos-multilib]
name=nobara-baseos-multilib
baseurl=https://download.copr.fedorainfracloud.org/results/gloriouseggroll/nobara-40/fedora-$releasever-i386/
type=rpm-md
gpgcheck=1
gpgkey=https://download.copr.fedorainfracloud.org/results/gloriouseggroll/nobara-40/pubkey.gpg
repo_gpgcheck=0
enabled=1
enabled_metadata=1
cost=1
[nobara-appstream]
name=nobara-appstream
baseurl=https://nobara-appstream.nobaraproject.org/$releasever/$basearch
#mirrorlist=https://www.nobaraproject.org/mirrorlist-nobara-custom
type=rpm-md
gpgcheck=1
gpgkey=https://nobara-appstream.nobaraproject.org/pubkey.gpg
repo_gpgcheck=0
enabled=1
enabled_metadata=1
cost=1
exclude=nobara-resolve-runtime mesa-va-drivers-freeworld mesa-vdpau-drivers-freeworld
[nobara-rocm-official]
name=nobara-rocm-official
baseurl=https://repo.radeon.com/rocm/rhel9/6.1.1/main/
enabled=1
gpgcheck=1
gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key
cost=1s
{% endif %}
"""