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 }
2021Version: 0
2122Release: 0
2223Summary: Kubernetes operator to support OS management
@@ -26,6 +27,9 @@ URL: https://github.com/rancher/%{name}
2627Source: %{name }-%{version }.tar
2728Source1: %{name }.obsinfo
2829
30+ Provides: elemental-operator
31+ Conflicts: elemental-operator < %{minorv }
32+
2933# go-tpm-tools aren't _that_ portable :-(
3034ExclusiveArch: 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
6364The Elemental operator is responsible for managing the OS
6465versions and maintaining a machine inventory to assist with edge or
6566baremetal 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 }
6875The elemental-register command is responsible of the node registration
6976against an elemental-operator instance running under Rancher.
7077
71- %package -n elemental-support
78+ %package -n elemental-support%{ minorv }
7279Summary: 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 }
7585This collects essential configuration files and logs to improve issue
7686resolution.
7787
78- %package -n elemental-httpfy
88+ %package -n elemental-httpfy%{ minorv }
7989Summary: 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 }
8295httpfy 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 }
8598Summary: 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 }
88104Hooks 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