Skip to content

Commit a9a907b

Browse files
committed
Repurpose v1.5.x branch for SLE Micro 5.5
This commit renames elemental-operator package to allow both, v1.4.x and v1.5.x, versions to be build against SLE Micro 5.5. Signed-off-by: David Cassany <dcassany@suse.com>
1 parent ab16a2b commit a9a907b

File tree

3 files changed

+41
-22
lines changed

3 files changed

+41
-22
lines changed

.obs/dockerfile/operator/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
#!BuildTag: rancher/elemental-operator:%OPERATOR_VERSION%-%RELEASE%
66
#!UseOBSRepositories
77

8-
ARG SLMICRO_VERSION
8+
ARG SLE_VERSION
99

10-
FROM suse/sl-micro/$SLMICRO_VERSION/toolbox as BASE
10+
FROM suse/sle15:$SLE_VERSION as BASE
1111

1212
RUN mkdir /installroot
1313
RUN zypper --installroot /installroot in -y --no-recommends \
14-
elemental-operator ca-certificates ca-certificates-mozilla
14+
elemental-operator1.5 ca-certificates ca-certificates-mozilla
1515

1616
FROM scratch as OPERATOR
1717

.obs/dockerfile/seedimage/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@
55
#!BuildTag: rancher/seedimage-builder:%OPERATOR_VERSION%-%RELEASE%
66
#!UseOBSRepositories
77

8-
ARG SLMICRO_VERSION
8+
ARG SLE_VERSION
99

10-
FROM suse/sl-micro/$SLMICRO_VERSION/toolbox as BASE
10+
FROM suse/sle15:$SLE_VERSION as BASE
1111

1212
RUN mkdir -p /installroot && \
13-
zypper --gpg-auto-import-keys --installroot /installroot in -y --no-recommends elemental-toolkit elemental-httpfy elemental-seedimage-hooks xorriso curl coreutils ca-certificates ca-certificates-mozilla gptfdisk squashfs util-linux dosfstools mtools e2fsprogs grub2
13+
zypper --gpg-auto-import-keys --installroot /installroot in -y --no-recommends \
14+
elemental-toolkit elemental-httpfy1.5 elemental-seedimage-hooks1.5 xorriso curl \
15+
coreutils ca-certificates ca-certificates-mozilla gptfdisk squashfs util-linux \
16+
dosfstools mtools e2fsprogs grub2
1417

1518

1619
FROM scratch as SEEDIMAGE_BUILDER
Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
# Please submit bugfixes or comments via https://bugs.opensuse.org/
1616
#
1717

18+
%define minorv 1.5
1819

19-
Name: elemental-operator
20+
Name: elemental-operator%{minorv}
2021
Version: 0
2122
Release: 0
2223
Summary: Kubernetes operator to support OS management
@@ -26,6 +27,9 @@ URL: https://github.com/rancher/%{name}
2627
Source: %{name}-%{version}.tar
2728
Source1: %{name}.obsinfo
2829

30+
Provides: elemental-operator
31+
Conflicts: elemental-operator < %{minorv}
32+
2933
# go-tpm-tools aren't _that_ portable :-(
3034
ExclusiveArch: x86_64 aarch64
3135

@@ -56,35 +60,47 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
5660
%define systemdir /system
5761
%define oemdir %{systemdir}/oem
5862

59-
%package -n elemental-register
60-
Summary: The registration client
61-
6263
%description
6364
The Elemental operator is responsible for managing the OS
6465
versions and maintaining a machine inventory to assist with edge or
6566
baremetal installations.
6667

67-
%description -n elemental-register
68+
%package -n elemental-register%{minorv}
69+
Summary: The registration client
70+
71+
Provides: elemental-register
72+
Conflicts: elemental-register < %{minorv}
73+
74+
%description -n elemental-register%{minorv}
6875
The elemental-register command is responsible of the node registration
6976
against an elemental-operator instance running under Rancher.
7077

71-
%package -n elemental-support
78+
%package -n elemental-support%{minorv}
7279
Summary: Collect important logs for support
7380

74-
%description -n elemental-support
81+
Provides: elemental-support
82+
Conflicts: elemental-support < %{minorv}
83+
84+
%description -n elemental-support%{minorv}
7585
This collects essential configuration files and logs to improve issue
7686
resolution.
7787

78-
%package -n elemental-httpfy
88+
%package -n elemental-httpfy%{minorv}
7989
Summary: Simple http server
8090

81-
%description -n elemental-httpfy
91+
Provides: elemental-httpfy
92+
Conflicts: elemental-httpfy < %{minorv}
93+
94+
%description -n elemental-httpfy%{minorv}
8295
httpfy starts a simple http server, serving files from the current dir.
8396

84-
%package -n elemental-seedimage-hooks
97+
%package -n elemental-seedimage-hooks%{minorv}
8598
Summary: Hooks used in SeedImage builder
8699

87-
%description -n elemental-seedimage-hooks
100+
Provides: elemental-seedimage-hooks
101+
Conflicts: elemental-seedimage-hooks < %{minorv}
102+
103+
%description -n elemental-seedimage-hooks%{minorv}
88104
Hooks used in SeedImage builder to copy firmware when building disk-images.
89105

90106
%prep
@@ -135,25 +151,25 @@ mkdir -p %{buildroot}%{oemdir}
135151
%files
136152
%defattr(-,root,root,-)
137153
%license LICENSE
138-
%{_sbindir}/%{name}
154+
%{_sbindir}/elemental-operator
139155

140-
%files -n elemental-register
156+
%files -n elemental-register%{minorv}
141157
%defattr(-,root,root,-)
142158
%license LICENSE
143159
%{_sbindir}/elemental-register
144160

145-
%files -n elemental-support
161+
%files -n elemental-support%{minorv}
146162
%defattr(-,root,root,-)
147163
%license LICENSE
148164
%{_sbindir}/elemental-support
149165

150166

151-
%files -n elemental-httpfy
167+
%files -n elemental-httpfy%{minorv}
152168
%defattr(-,root,root,-)
153169
%license LICENSE
154170
%{_sbindir}/elemental-httpfy
155171

156-
%files -n elemental-seedimage-hooks
172+
%files -n elemental-seedimage-hooks%{minorv}
157173
%defattr(-,root,root,-)
158174
%license LICENSE
159175
%dir %{systemdir}

0 commit comments

Comments
 (0)