-
Notifications
You must be signed in to change notification settings - Fork 16
/
fedora-upgrade.spec
267 lines (220 loc) · 8.63 KB
/
fedora-upgrade.spec
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
Name: fedora-upgrade
Version: 41.2
Release: 1%{?dist}
Summary: Upgrade Fedora to next version using dnf upgrade (unofficial tool)
License: GPL-2.0-only
URL: https://github.com/xsuchy/fedora-upgrade
# Sources can be obtained by
# git clone git://github.com/xsuchy/fedora-upgrade.git
# cd fedora-upgrade
# tito build --tgz
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
%if 0%{?fedora} >= 41
Requires: dnf5
%else
Requires: dnf
Requires: dnf-plugins-core
Recommends: dnf-plugin-system-upgrade
Requires: dnf-utils
%endif
Requires: cpio
Requires: rpmconf
Requires: libselinux-utils
Requires: policycoreutils
Requires: distribution-gpg-keys >= 1.51
Suggests: vim-enhanced
Requires: wget
Requires: remove-retired-packages
BuildRequires: asciidoc
BuildRequires: libxslt
%description
Upgrade Fedora to next version using dnf upgrade.
This is attempt to automatize steps as listed here:
https://fedoraproject.org/wiki/Upgrading_Fedora_using_package_manager
This is an unofficial tool, for official Fedora-supported
upgrades please see:
https://fedoraproject.org/wiki/Upgrading
%package -n remove-retired-packages
Summary: Remove retired distribution's packages
Requires: curl
Requires: python3-dnf
%description -n remove-retired-packages
Script that removes packages removed from
Fedora distribution.
%prep
%setup -q
%build
for i in fedora-remove-old-gpg-keys.8.asciidoc fedora-upgrade.8.asciidoc remove-retired-packages.8.asciidoc; do
a2x -d manpage -f manpage "$i"
done
%install
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man8
mkdir -p %{buildroot}%{_datadir}/%{name}
install -m755 fedora-upgrade %{buildroot}%{_sbindir}
install -m644 fedora-upgrade.8 %{buildroot}/%{_mandir}/man8/
install -m755 remove-retired-packages %{buildroot}%{_sbindir}
install -m644 remove-retired-packages.8 %{buildroot}/%{_mandir}/man8/
install -m755 fedora-remove-old-gpg-keys %{buildroot}%{_sbindir}/
install -m644 fedora-remove-old-gpg-keys.8 %{buildroot}/%{_mandir}/man8/
install -m755 rpm-print-name-from-filename.py %{buildroot}%{_bindir}/rpm-print-name-from-filename
%files
%license LICENSE
%doc README.md
%{_sbindir}/fedora-upgrade
%doc %{_mandir}/man8/fedora-upgrade.8*
%{_datadir}/%{name}
%files -n remove-retired-packages
%{_sbindir}/remove-retired-packages
%{_sbindir}/fedora-remove-old-gpg-keys
%{_bindir}/rpm-print-name-from-filename
%doc %{_mandir}/man8/remove-retired-packages.8*
%doc %{_mandir}/man8/fedora-remove-old-gpg-keys.8*
%license LICENSE
%changelog
* Tue Nov 05 2024 Miroslav Suchý <[email protected]> 41.2-1
- remove-retired-packages: detect removed subpackages
- no need to check if F41 is prerelease
- add new line to repoquery to make remove-retired-packages work with dnf5
* Sat Aug 17 2024 Miroslav Suchý <[email protected]> 41.1-1
- add upgrade to f41
* Sun Mar 24 2024 Miroslav Suchý <[email protected]> 40.1-1
- upgrade to F40
* Sun Mar 24 2024 Miroslav Suchý <[email protected]> 39.2-1
- add upgrade to F40
* Wed Aug 23 2023 Miroslav Suchý <[email protected]> 39.1-1
- remove upgrade to F37
- add upgrade to f39 and remove upgrade to f36
- add f39 to releasers
- Speed up selecting retired installed packages
- Require DNF 5 in Fedora >= 41, not Fedora > 38
* Sun May 28 2023 Miroslav Suchý <[email protected]> 38.2-1
- use dnf5 on F39+
- Fix typo in main script
* Thu Mar 16 2023 Miroslav Suchý <[email protected]> 38.1-1
- add upgrades to F38
- Use "Fedora Linux" to refer to the distro
* Wed Nov 30 2022 Miroslav Suchý <[email protected]> 37.2-1
- do not check if f37 is prerelease
- use spdx license
- 2142229 - reference for log what executed /usr/bin/true
- report reason of the retirement
* Thu Aug 25 2022 Miroslav Suchý <[email protected]> 37.1-1
- bump up version
* Thu Aug 25 2022 Miroslav Suchý <[email protected]> 36.4-1
- add f37 to releasers
- remove upgrade to f35
- remove upgrade to f34
- check if f37 is prerelease
- UPGRADE_FINISHED=2 is for in-progress-to-rawhide
- Add update to F37
- Set current rawhide version
- Do not ignore user request to skip
- Update remove-retired-packages
- do not stop when you want to skip one package
- fixed one typo
* Sun May 08 2022 Miroslav Suchý <[email protected]> 36.3-1
- do not test prerelease for F36
- remove-retired-packages: Normalize grammatical tense in messages
- remove-retired-packages: Rewrite introductory text for better clarity
- remove-retired-packages: Normalize quotation marks in echo commands
- ignore if rpmfusion repos are not present during upgrade to rawhide
- ignore if some gpg keys to be remove are missing
- 2066053 - ask for the GPG key if needed
- remove-retired-packages: Typo
* Fri Mar 18 2022 Miroslav Suchý <[email protected]> 36.2-1
- 2065720 - fix path to fedora-remove-old-gpg-keys
* Wed Feb 09 2022 Miroslav Suchý <[email protected]> 36.1-1
- add upgrade to Feodora 36
- failure during reset of services preset should not be fatal
* Tue Nov 09 2021 Miroslav Suchý <[email protected]> 35.3-1
- do not test prerelease during upgrade to F35
- note fedora-remove-old-gpg-keys in fedora-upgrade man page
- print whole list before asking on individual packages
- add fedora 33 gpg keys to remove
- add fedora 32 gpg keys to remove
- add fedora-remove-old-gpg-key
- fail if something fail, or when user interrupt
- grammar edits
- work on list of removed packages rather than components
- Small changes to reduce dependencies
* Thu Sep 23 2021 Miroslav Suchý <[email protected]> 35.2-1
- add remove-retired-packages
* Thu Sep 16 2021 Miroslav Suchý <[email protected]> 35.1-1
- remove upgrade to f32
- add upgrade to f35
* Thu Apr 29 2021 Miroslav Suchý <[email protected]> 34.3-1
- remove prerelease test for F34
* Tue Feb 23 2021 Miroslav Suchý <[email protected]> 34.2-1
- fedora-repos-modular does not need to be installed
- handle special case of rdma-core.i686
- print info when checking updates
* Thu Feb 11 2021 Miroslav Suchý <[email protected]> 34.1-1
- remove f31
- add f34
- rawhide is f35
* Wed Nov 04 2020 Miroslav Suchý <[email protected]> 33.2-1
- do not test if F33 is prerelease
* Tue Aug 25 2020 Miroslav Suchý <[email protected]> 33.1-1
- bump up version
* Tue Aug 25 2020 Miroslav Suchý <[email protected]> 32.3-1
- do not check prerelease when upgrading to F32
- add Fedora 33
* Wed Mar 04 2020 Miroslav Suchý <[email protected]> 32.2-1
- 1767351 - reset modules before the upgrade
* Tue Mar 03 2020 Miroslav Suchý <[email protected]> 32.1-1
- add upgrade to f32
- try to restore repos in case of failed upgrade to rawhide
- disable rpmfusion-*-updates when updating to rawhide
- do not upgrade dnf before upgrading to rawhide
- disable updates-modular when updating to rawhide
* Sun Oct 27 2019 Miroslav Suchý <[email protected]> 31.3-1
- do not check if F31 is pre-release
* Mon Sep 23 2019 Miroslav Suchý <[email protected]> 31.2-1
- 1747408 - reset modules before upgrading
- enable modulare-testing if needed
* Wed Aug 28 2019 Miroslav Suchý <[email protected]> 31.1-1
- add migration to Fedora 31
- do not run tracer and needs-restarting plugins
* Thu Apr 11 2019 Miroslav Suchý <[email protected]> 30.5-1
- warn when user is not running screen or tmux
- improve exit banner when failure happens
- package fedora-release does not need to be installed, it can be fedora-
release-common
* Tue Mar 19 2019 Miroslav Suchý <[email protected]> 30.4-1
- Fix the offline update path for fedora 30
* Mon Mar 18 2019 Miroslav Suchý <[email protected]> 30.3-1
- unmount tmpfs when error occurs
- trap Ctrl+C
- accept "rawhide" as upgrade-to version
- allow to upgrade to specific version
- add link to common bugs
- allow to mount /var/cache/dnf as tmpfs
* Thu Feb 28 2019 Miroslav Suchý <[email protected]> 30.2-1
- set module_id during upgrade
- add upgrade F29 to F30
- remove old changelog entries
- remove Group tag from spec
* Wed Aug 08 2018 Miroslav Suchý <[email protected]> 29.1-1
- add upgrade from F28 to F29
- Update release notes URL to point towards the correct target version
* Wed Apr 18 2018 Miroslav Suchý <[email protected]> 28.2-1
- remove --distro-sync for dnf system-upgrade
- do not check for dnf-plugins-core, it has been installed by check_dnf_deps()
- be more verbose so we have some progress
* Tue Jan 23 2018 Miroslav Suchý <[email protected]> 28.1-1
- clean caches before doing any other task
- list orphans after upgrade
- warn if not run as root
- add upgrade to F28 and remove upgrade to F25
- Remove PackageKit cache
- choose better wording for reset priorities
- reset services priorities the systemd way
* Wed Sep 20 2017 Miroslav Suchý <[email protected]> 27.1-1
- remove old changelogs
- remove upgrade from f24
- Add support for Fedora 27
* Thu Mar 16 2017 Miroslav Suchý <[email protected]> 26.1-1
- add upgrade to F26