-
Notifications
You must be signed in to change notification settings - Fork 8
/
mini-tps.spec
206 lines (149 loc) · 6.41 KB
/
mini-tps.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
%if 0%{?rhel} == 7
%define yumcmd yum
%else
%define yumcmd dnf
%endif
Name: mini-tps
Version: 0.1
Release: 183%{?dist}
Summary: Mini TPS - Test Package Sanity
License: GPLv2
URL: https://github.com/fedora-ci/mini-tps
Source0: mini-tps-0.1.tar.gz
BuildArch: noarch
# Don't add any Requires here because those would become protected, see mini-tps.conf
%description
Light version of TPS
%prep
%autosetup -n mini-tps-0.1
%build
%install
mkdir -p %{buildroot}%{_sbindir} # epel7
install -pD -m 0755 --target-directory=%{buildroot}%{_sbindir} mtps-*
mkdir -p %{buildroot}%{_sysconfdir}/%{yumcmd}/protected.d/
cat > %{buildroot}%{_sysconfdir}/%{yumcmd}/protected.d/mini-tps.conf <<EOF
# Packages for which mini-tps won't run the 'remove' test (i.e. won't try to remove them).
mini-tps
openssh-server
dnf5
python3-dnf
dnf-utils
yum
yum-utils
EOF
%if 0%{?rhel} > 7
cat >> %{buildroot}%{_sysconfdir}/%{yumcmd}/protected.d/mini-tps.conf <<EOF
# https://bugzilla.redhat.com/show_bug.cgi?id=1641631
dnf-plugins-core
libselinux-utils
rpm-plugin-selinux
EOF
%endif
# viewer
install -pD -m 0755 viewer/generate-result-json %{buildroot}%{_libexecdir}/mini-tps/viewer/generate-result-json
install -pD -m 0644 viewer/viewer.html %{buildroot}%{_datarootdir}/mini-tps/viewer/viewer.html
# profiles
mkdir -p %{buildroot}%{_datarootdir}/mini-tps/profiles/{rhel,centos-stream,fedora}/
cp -rfp profiles/rhel/{repos,optrepos}/ %{buildroot}%{_datarootdir}/mini-tps/profiles/rhel/
cp -rfp profiles/centos-stream/{repos,optrepos}/ %{buildroot}%{_datarootdir}/mini-tps/profiles/centos-stream/
cp -rfp profiles/fedora/repos/ %{buildroot}%{_datarootdir}/mini-tps/profiles/fedora/
# prepare scripts
install -pD -m 0755 profiles/rhel/prepare-system %{buildroot}%{_libexecdir}/mini-tps/rhel/prepare-system
install -pD -m 0755 profiles/centos-stream/prepare-system %{buildroot}%{_libexecdir}/mini-tps/centos-stream/prepare-system
install -pD -m 0755 profiles/fedora/prepare-system %{buildroot}%{_libexecdir}/mini-tps/fedora/prepare-system
%files
%{_sbindir}/mtps-*
%config %{_sysconfdir}/%{yumcmd}/protected.d/mini-tps.conf
%{_datarootdir}/mini-tps/*
%{_libexecdir}/mini-tps/*
%changelog
* Fri Nov 01 2024 Michal Srb <[email protected]> - 0.1-183
- Remove Resilient Storage repos for 10
* Wed Sep 11 2024 Michal Srb <[email protected]> - 0.1-182
- Add repo for RHEL 10.0
* Wed Aug 14 2024 Jiri Popelka <[email protected]> - 0.1-181
- Workaround for downgrade test when yum v3.4.3
* Mon Jul 1 2024 Michal Srb <[email protected]> - 0.1-180
- Temporarily ignore warnings about removed systemd unit files being changed on disk
* Tue Jun 18 2024 Jiri Popelka <[email protected]> - 0.1-179
- Use dnf5 if installed
* Wed Jun 12 2024 Jiri Popelka <[email protected]> - 0.1-178
- Add repo for RHEL 7.7 z-stream
* Tue Jun 04 2024 Jiri Popelka <[email protected]> - 0.1-177
- Treat SELinux AVCs as warnings
* Tue May 28 2024 Jiri Popelka <[email protected]> - 0.1-176
- hack for missing config-manager
* Tue May 21 2024 Jiri Popelka <[email protected]> - 0.1-175
- revert a SELinux-related change
* Thu May 16 2024 Jiri Popelka <[email protected]> - 0.1-174
- Add dnf to protected packages
* Tue May 07 2024 Jiri Popelka <[email protected]> - 0.1-173
- More RHEL7-related changes
* Fri Apr 19 2024 Jiri Popelka <[email protected]> - 0.1-172
- Use https://download.devel.redhat.com everywhere
* Fri Mar 22 2024 Jan Blazek <[email protected]> - 0.1-171
- Add compatibility with RHEL 7
* Thu Feb 22 2024 Jiri Popelka <[email protected]> - 0.1-170
- rhel-10.0-beta repo file
* Thu Feb 01 2024 Jiri Popelka <[email protected]> - 0.1-169
- rebuilt
* Mon Jan 29 2024 Jiri Popelka <[email protected]> - 0.1-168
- Handle missing compose (id)
* Thu Jan 25 2024 Jiri Popelka <[email protected]> - 0.1-167
- mtps-get-module improvements
* Fri Jan 19 2024 Jiri Popelka <[email protected]> - 0.1-166
- Skip update if old package can't be installed
- Separate exit code for skipped tests
* Fri Jan 12 2024 Jiri Popelka <[email protected]> - 0.1-165
- multi-arch repos
* Tue Jan 02 2024 Jiri Popelka <[email protected]> - 0.1-164
- viewer (generate-result-json) related updates
* Thu Dec 07 2023 Jiri Popelka <[email protected]> - 0.1-163
- Remove the Requires: python-gobject-base
- Move Requires: to mini-tps.conf
- Improve messages
* Fri Nov 24 2023 Jiri Popelka <[email protected]> - 0.1-162
- URL update
- Move mtps-* executables from /usr/local/bin/ to /usr/sbin/
- Use install instead of mkdir & cp
- mtps-mutils Requires: python-gobject-base
* Mon Jul 31 2023 Andrei Stepanov <[email protected]> - 0.1-161
- new build
* Fri Jul 28 2023 Michal Srb <[email protected]> - 0.1-160
- Add profiles for Fedora
* Wed Jul 26 2023 Michal Srb <[email protected]> - 0.1-159
- Add option to rpm-verify installed packages (OSCI-1240)
* Wed Mar 29 2023 Michal Srb <[email protected]> - 0.1-158
- Ignore known scriptlet false positives
* Wed Mar 29 2023 Michal Srb <[email protected]> - 0.1-157
- Add HTML result viewer
* Wed Mar 08 2023 Michal Srb <[email protected]> - 0.1-156
- Add option to check for problems in scriptlet outputs (OSCI-1230)
* Wed Feb 08 2023 Michal Srb <[email protected]> - 0.1-155
- Add flatpak repos for RHEL 9
* Tue Jan 17 2023 Andrei Stepanov <[email protected]> - 0.1-154
- Build with the latest merged PRs.
* Sun Dec 04 2022 Andrei Stepanov <[email protected]> - 0.1-153
- Build with the latest merged PRs.
* Tue Oct 25 2022 Michal Srb <[email protected]> - 0.1-152
- Add support for scratch builds
* Tue Sep 13 2022 Michal Srb <[email protected]> - 0.1-151
- Add profile for CentOS Stream 9
* Fri Sep 09 2022 Michal Srb <[email protected]> - 0.1-150
- Make profiles configurable for different operating systems.
* Tue Sep 06 2022 Michal Srb <[email protected]> - 0.1-149
- Fix --onlyinrepo option in mtps-get-task.
* Wed Oct 13 2021 Michal Srb <[email protected]> - 0.1-145
- Build with the latest changes.
* Tue Feb 02 2021 Andrei Stepanov <[email protected]> - 0.1-144
- Build with the latest changes.
* Tue Feb 02 2021 Andrei Stepanov <[email protected]> - 0.1-143
- Build with the latest changes.
* Mon Jan 25 2021 Andrei Stepanov <[email protected]> - 0.1-142
- Build with the latest changes.
* Mon Jan 25 2021 Andrei Stepanov <[email protected]> - 0.1-141
- Build with the latest changes.
* Mon Jan 18 2021 Andrei Stepanov <[email protected]> - 0.1-140
- Build with the latest changes.
* Thu Jun 25 2020 Andrei Stepanov <[email protected]> - 0.1-139
- Build with the latest merged PRs.