forked from LINBIT/linstor-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
linstor.spec
409 lines (296 loc) · 15.4 KB
/
linstor.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
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
Name: linstor
Version: 1.20.3
Release: 1%{?dist}
Summary: LINSTOR SDS
BuildArch: noarch
%define GRADLE_TASKS installdist
%define GRADLE_FLAGS --offline --gradle-user-home /tmp --no-daemon --exclude-task generateJava
%define LS_PREFIX /usr/share/linstor-server
%define FIREWALLD_SERVICES /usr/lib/firewalld/services
%define FILE_VERSION %(echo %{version} | sed -e 's/~/\-/')
%define NAME_VERS %{name}-server-%{FILE_VERSION}
# Prevent brp-java-repack-jars from being run.
%define __jar_repack %{nil}
Group: System Environment/Daemons
License: GPLv2+
URL: https://github.com/LINBIT/linstor-server
Source0: http://pkg.linbit.com/downloads/linstor/linstor-server-%{FILE_VERSION}.tar.gz
%if 0%{?suse_version} >= 1500
BuildRequires: java-1_8_0-openjdk-headless java-1_8_0-openjdk-devel python
%else
%if 0%{?rhel} > 8
BuildRequires: java-1.8.0-openjdk-headless java-1.8.0-openjdk-devel python3
%else
BuildRequires: java-1.8.0-openjdk-headless java-1.8.0-openjdk-devel python2
%endif
%endif
%description
TODO.
%prep
%setup -q -n %{NAME_VERS}
%build
rm -rf ./build/install
gradle %{GRADLE_TASKS} %{GRADLE_FLAGS}
for p in server satellite controller jclcrypto; do echo "%{LS_PREFIX}/.$p" >> "%{_builddir}/%{NAME_VERS}/$p/jar.deps"; done
%install
mkdir -p %{buildroot}/%{LS_PREFIX}
cp -r %{_builddir}/%{NAME_VERS}/build/install/linstor-server/lib %{buildroot}/%{LS_PREFIX}
if [ -f "%{_builddir}/%{NAME_VERS}/libs/server-st.jar" ]; then cp "%{_builddir}/%{NAME_VERS}/libs/server-st.jar" %{buildroot}/%{LS_PREFIX}/lib; fi
if [ -f "%{_builddir}/%{NAME_VERS}/libs/controller-st.jar" ]; then cp "%{_builddir}/%{NAME_VERS}/libs/controller-st.jar" %{buildroot}/%{LS_PREFIX}/lib; fi
if [ -f "%{_builddir}/%{NAME_VERS}/libs/satellite-st.jar" ]; then cp "%{_builddir}/%{NAME_VERS}/libs/satellite-st.jar" %{buildroot}/%{LS_PREFIX}/lib; fi
rm %{buildroot}/%{LS_PREFIX}/lib/%{NAME_VERS}.jar
cp -r %{_builddir}/%{NAME_VERS}/server/build/install/server/lib/conf %{buildroot}/%{LS_PREFIX}/lib
mkdir -p %{buildroot}/%{LS_PREFIX}/bin
cp -r %{_builddir}/%{NAME_VERS}/build/install/linstor-server/bin/Controller %{buildroot}/%{LS_PREFIX}/bin
cp -r %{_builddir}/%{NAME_VERS}/build/install/linstor-server/bin/Satellite %{buildroot}/%{LS_PREFIX}/bin
cp -r %{_builddir}/%{NAME_VERS}/build/install/linstor-server/bin/linstor-config %{buildroot}/%{LS_PREFIX}/bin
cp -r %{_builddir}/%{NAME_VERS}/scripts/postinstall.sh %{buildroot}/%{LS_PREFIX}/bin/controller.postinst.sh
mkdir -p %{buildroot}/%{_unitdir}
cp -r %{_builddir}/%{NAME_VERS}/scripts/linstor-controller.service %{buildroot}/%{_unitdir}
cp -r %{_builddir}/%{NAME_VERS}/scripts/linstor-satellite.service %{buildroot}/%{_unitdir}
mkdir -p %{buildroot}/%{FIREWALLD_SERVICES}
cp %{_builddir}/%{NAME_VERS}/scripts/firewalld/drbd.xml %{buildroot}/%{FIREWALLD_SERVICES}
cp %{_builddir}/%{NAME_VERS}/scripts/firewalld/linstor-controller.xml %{buildroot}/%{FIREWALLD_SERVICES}
cp %{_builddir}/%{NAME_VERS}/scripts/firewalld/linstor-satellite.xml %{buildroot}/%{FIREWALLD_SERVICES}
mkdir -p %{buildroot}/%{_sysconfdir}/drbd.d/
cp %{_builddir}/%{NAME_VERS}/scripts/linstor-resources.res %{buildroot}/%{_sysconfdir}/drbd.d/
touch %{buildroot}/%{LS_PREFIX}/{.server,.satellite,.controller}
mkdir -p %{buildroot}/%{_sysconfdir}/linstor
cp %{_builddir}/%{NAME_VERS}/docs/linstor.toml-example %{buildroot}/%{_sysconfdir}/linstor/
### common
%package common
Summary: Common files shared between controller and satellite
Requires: jre-headless
%description common
Linstor shared components between linstor-controller and linstor-satellite
%files common -f %{_builddir}/%{NAME_VERS}/server/jar.deps
%dir %{LS_PREFIX}
%dir %{LS_PREFIX}/lib
%{LS_PREFIX}/lib/server-%{FILE_VERSION}.jar
%{LS_PREFIX}/lib/jclcrypto-%{FILE_VERSION}.jar
%dir %{LS_PREFIX}/lib/conf
%{LS_PREFIX}/lib/conf/logback.xml
### controller
%package controller
Summary: Linstor controller specific files
Requires: linstor-common = %{version}
Requires(post): jre-headless
%description controller
Linstor controller manages linstor satellites and persistant data storage.
%files controller -f %{_builddir}/%{NAME_VERS}/controller/jar.deps
%dir %{LS_PREFIX}
%dir %{LS_PREFIX}/lib
%{LS_PREFIX}/lib/controller-%{FILE_VERSION}.jar
%dir %{LS_PREFIX}/bin
%{LS_PREFIX}/bin/Controller
%{LS_PREFIX}/bin/linstor-config
%{LS_PREFIX}/bin/controller.postinst.sh
%{_unitdir}/linstor-controller.service
%{FIREWALLD_SERVICES}/linstor-controller.xml
%{_sysconfdir}/linstor/linstor.toml-example
%posttrans controller
%{LS_PREFIX}/bin/controller.postinst.sh
%systemd_post linstor-controller.service
test -f %{_bindir}/firewall-cmd && firewall-cmd --reload --quiet || :
%preun controller
%systemd_preun linstor-controller.service
### satellite
%package satellite
Summary: Linstor satellite specific files
Requires: linstor-common = %{version}
Requires: lvm2
%description satellite
Linstor satellite, communicates with linstor-controller
and creates drbd resource files.
%files satellite -f %{_builddir}/%{NAME_VERS}/satellite/jar.deps
%dir %{LS_PREFIX}
%dir %{LS_PREFIX}/lib
%{LS_PREFIX}/lib/satellite-%{FILE_VERSION}.jar
%dir %{LS_PREFIX}/bin
%{LS_PREFIX}/bin/Satellite
%{_unitdir}/linstor-satellite.service
%{FIREWALLD_SERVICES}/linstor-satellite.xml
%{FIREWALLD_SERVICES}/drbd.xml
%config(noreplace) %{_sysconfdir}/drbd.d/linstor-resources.res
%post satellite
%systemd_post linstor-satellite.service
test -f %{_bindir}/firewall-cmd && firewall-cmd --reload --quiet || :
%preun satellite
%systemd_preun linstor-satellite.service
%changelog
* Thu Jan 26 2023 Rene Peinthor <[email protected]> 1.20.3-1
- New upstream release. Bug fixes
* Wed Dec 14 2022 Rene Peinthor <[email protected]> 1.20.2-1
- New upstream release. Bug fixes
* Tue Dec 13 2022 Rene Peinthor <[email protected]> 1.20.1-1
- New upstream release. Bug fixes
* Tue Oct 18 2022 Rene Peinthor <[email protected]> 1.20.0-1
- New upstream release. Bug fixes
* Tue Sep 20 2022 Rene Peinthor <[email protected]> 1.20.0~rc.1-1
- New upstream release. Bug fixes
* Wed Jul 27 2022 Rene Peinthor <[email protected]> 1.19.1-1
- New upstream release. Bug fixes
* Wed Jul 20 2022 Rene Peinthor <[email protected]> 1.19.0-1
- New upstream release. Bug fixes
* Wed Jul 6 2022 Rene Peinthor <[email protected]> 1.19.0~rc.1-1
- New upstream release. Bug fixes
* Mon May 23 2022 Rene Peinthor <[email protected]> 1.18.2-1
- New upstream release. Bug fixes
* Thu May 12 2022 Rene Peinthor <[email protected]> 1.18.1-1
- New upstream release. Bug fixes
* Mon May 2 2022 Gabor Hernadi <[email protected]> 1.18.1~rc.2-1
- New upstream release. Bug fixes
* Mon Apr 25 2022 Moritz Wanzenböck <[email protected]> 1.18.1~rc.1-1
- New upstream release. Bug fixes
* Tue Mar 15 2022 Rene Peinthor <[email protected]> 1.18.0-1
- New upstream release. Bug fixes
* Wed Feb 23 2022 Rene Peinthor <[email protected]> 1.18.0~rc.3-1
- New upstream release. Bug fixes
* Tue Feb 22 2022 Rene Peinthor <[email protected]> 1.18.0~rc.2-1
- New upstream release. Bug fixes
* Tue Feb 22 2022 Rene Peinthor <[email protected]> 1.18.0~rc.1-1
- New upstream release. Bug fixes
* Thu Dec 9 2021 Rene Peinthor <[email protected]> 1.17.0-1
- New upstream release. Bug fixes
* Thu Nov 11 2021 Rene Peinthor <[email protected]> 1.16.0-1
- New upstream release. Bug fixes
* Thu Nov 4 2021 Rene Peinthor <[email protected]> 1.16.0~rc.3-1
- New upstream release. Bug fixes
* Thu Oct 14 2021 Rene Peinthor <[email protected]> 1.16.0~rc.2-1
- New upstream release. Bug fixes
* Tue Oct 12 2021 Rene Peinthor <[email protected]> 1.16.0~rc.1-1
- New upstream release. Kubernetes CRD support, Bug fixes
* Thu Sep 23 2021 Rene Peinthor <[email protected]> 1.15.0-1
- New upstream release. Bug fixes
* Tue Sep 7 2021 Rene Peinthor <[email protected]> 1.15.0~rc.2-1
- New upstream release. Bug fixes
* Fri Aug 27 2021 Rene Peinthor <[email protected]> 1.15.0~rc.1-1
- New upstream release. Bug fixes
* Tue Aug 3 2021 Rene Peinthor <[email protected]> 1.14.0-1
- New upstream release. Bug fixes
* Mon Jul 19 2021 Rene Peinthor <[email protected]> 1.14.0~rc.1-1
- New upstream release. Bug fixes
* Mon Jul 12 2021 Rene Peinthor <[email protected]> 1.13.1-1
- New upstream release. Bug fixes
* Mon Jun 21 2021 Gabor Hernadi <[email protected]> 1.13.0-1
- New upstream release. Bug fixes
* Mon Jun 14 2021 Rene Peinthor <[email protected]> 1.13.0~rc.1-1
- New upstream release. Bcache support, Bug fixes
* Mon Jun 7 2021 Rene Peinthor <[email protected]> 1.12.6-1
- New upstream release. Bug fixes
* Wed Jun 2 2021 Rene Peinthor <[email protected]> 1.12.5-1
- New upstream release. Bug fixes
* Tue May 18 2021 Rene Peinthor <[email protected]> 1.12.4-1
- New upstream release. Bug fixes
* Fri May 7 2021 Rene Peinthor <[email protected]> 1.12.3-1
- New upstream release. Postgresql resource-group fixes. Bug fixes
* Tue May 4 2021 Rene Peinthor <[email protected]> 1.12.2-1
- New upstream release. Fix db migrations
* Fri Apr 30 2021 Rene Peinthor <[email protected]> 1.12.1-1
- New upstream release. Bug fixes
* Tue Apr 27 2021 Rene Peinthor <[email protected]> 1.12.0-1
- New upstream release. Auto-verify-algo, exxos, Bug fixes
* Wed Jan 13 2021 Rene Peinthor <[email protected]> 1.11.1-1
- New upstream release. Bug fixes
* Fri Dec 18 2020 Rene Peinthor <[email protected]> 1.11.0-1
- New upstream release. Snapshot port config, Bug fixes
* Mon Nov 9 2020 Rene Peinthor <[email protected]> 1.10.0-1
- New upstream release. Auto-evict, etcd prefixes, Bug fixes.
* Wed Sep 23 2020 Rene Peinthor <[email protected]> 1.9.0-1
- New upstream release. Auto-unplace, deletion API, bug fixes.
* Mon Aug 17 2020 Rene Peinthor <[email protected]> 1.8.0-1
- New upstream release. Snapshot-shipping, Bug fixes.
* Wed Jul 22 2020 Rene Peinthor <[email protected]> 1.7.3-1
- New upstream release. LvCreateOptions, Bug fixes.
* Mon Jul 13 2020 Rene Peinthor <[email protected]> 1.7.2-1
- New upstream release. Bug fixes.
* Thu May 14 2020 Rene Peinthor <[email protected]> 1.7.1-1
- New upstream release. Bug fixes.
* Thu May 07 2020 Rene Peinthor <[email protected]> 1.7.0-1
- New upstream release. New auto-placer, snapshot view, bug fixes.
* Mon Apr 27 2020 Rene Peinthor <[email protected]> 1.6.2-1
- New upstream release. Fix query-max-volume-size, cache-layer fixes.
* Tue Apr 14 2020 Gabor Hernadi <[email protected]> 1.6.1-1
- New upstream release. Fix startup bug.
* Wed Apr 08 2020 Rene Peinthor <[email protected]> 1.6.0-1
- New upstream release. Cache layer, resource group modify fixes, bug fixes.
* Tue Mar 24 2020 Rene Peinthor <[email protected]> 1.5.2-1
- New upstream release. Fix LVM-filters on physical-storage.
* Mon Mar 23 2020 Rene Peinthor <[email protected]> 1.5.1-1
- New upstream release. Add LVM-filters, fix db password login.
* Wed Mar 11 2020 Rene Peinthor <[email protected]> 1.5.0-1
- New upstream release. OpenFlex support, drbd-connection info, bug fixes.
* Tue Mar 3 2020 Rene Peinthor <[email protected]> 1.4.3-1
- New upstream release. Remove ETCD trans-limit, bug fixes.
* Mon Jan 27 2020 Rene Peinthor <[email protected]> 1.4.2-1
- New upstream release. VlmGrp gross-size, resize bug-fix.
* Thu Jan 16 2020 Rene Peinthor <[email protected]> 1.4.1-1
- New upstream release. DB migration fixes.
* Tue Jan 14 2020 Rene Peinthor <[email protected]> 1.4.0-1
- New upstream release. Write-cache, Snapshot-fixes, bug fixes.
* Thu Dec 5 2019 Rene Peinthor <[email protected]> 1.3.1-1
- New upstream release. ETCD-migrations, REST-API fixes, bug fixes.
* Tue Dec 3 2019 Rene Peinthor <[email protected]> 1.3.0-1
- New upstream release. SPDK support, bug fixes.
* Thu Nov 7 2019 Rene Peinthor <[email protected]> 1.2.1-1
- New upstream release. ETCD-ssl support, bug fixes.
* Thu Oct 24 2019 Rene Peinthor <[email protected]> 1.2.0-1
- New upstream release. Auto-tiebreaker, bug fixes.
* Mon Sep 16 2019 Rene Peinthor <[email protected]> 1.1.2-1
- New upstream release. Fix resource connection loading.
* Tue Sep 10 2019 Rene Peinthor <[email protected]> 1.1.1-1
- New upstream release. Bug fixes.
* Fri Aug 30 2019 Gabor Hernadi <[email protected]> 1.1.0-1
- New upstream release. Added ETCD support.
* Fri Aug 9 2019 Rene Peinthor <[email protected]> 1.0.1-1
- New upstream release. Fix postgresql migration.
* Thu Aug 8 2019 Rene Peinthor <[email protected]> 1.0.0-1
- New upstream release. Added resource groups, REST-API 1.0.8, Bug fixes.
* Thu Jul 25 2019 Rene Peinthor <[email protected]> 0.9.13-1
- New upstream release. File provider, Toml config, REST-API 1.0.7, Bug fixes.
* Tue Jun 25 2019 Rene Peinthor <[email protected]> 0.9.12-1
- New upstream release. REST-API 1.0.6, Bug fixes.
* Tue Jun 11 2019 Rene Peinthor <[email protected]> 0.9.11-1
- New upstream release. REST-API 1.0.5, Bug fixes.
* Mon May 27 2019 Rene Peinthor <[email protected]> 0.9.10-1
- New upstream release. Bug fixes.
* Thu May 23 2019 Rene Peinthor <[email protected]> 0.9.9-1
- New upstream release. REST-API 1.0.4, bug fixes.
* Thu May 16 2019 Rene Peinthor <[email protected]> 0.9.8-1
- New upstream release. NVMe fixes, REST-API 1.0.3, bug fixes.
* Thu May 9 2019 Rene Peinthor <[email protected]> 0.9.7-1
- New upstream release. Bug fixes.
* Thu Apr 18 2019 Rene Peinthor <[email protected]> 0.9.6-1
- New upstream release. NVMe storage layer, bug fixes.
* Mon Apr 8 2019 Rene Peinthor <[email protected]> 0.9.5-1
- New upstream release. Migration multi volume fixes.
* Fri Mar 29 2019 Rene Peinthor <[email protected]> 0.9.4-1
- New upstream release. Fix zfs root thin pools and zfs dataset pools.
* Thu Mar 28 2019 Rene Peinthor <[email protected]> 0.9.3-1
- New upstream release. Fix zfs storage pools and activate lvm-thin volumes.
* Mon Mar 25 2019 Rene Peinthor <[email protected]> 0.9.2-1
- New upstream release. Fix persisting layer stacks.
* Mon Mar 25 2019 Rene Peinthor <[email protected]> 0.9.1-1
- New upstream release. REST-API, DeviceManager Rework, bug fixes.
* Fri Mar 15 2019 Rene Peinthor <[email protected]> 0.9.0-1
- New upstream release. REST-API, DeviceManager Rework.
* Fri Dec 21 2018 Rene Peinthor <[email protected]> 0.7.5-1
- New upstream release. Bug fixes.
* Mon Dec 17 2018 Rene Peinthor <[email protected]> 0.7.4-1
- New upstream release. Bug fixes.
* Thu Nov 22 2018 Rene Peinthor <[email protected]> 0.7.3-1
- New upstream release. Bug fixes.
* Mon Nov 12 2018 Rene Peinthor <[email protected]> 0.7.2-1
- New upstream release. Bug fixes.
* Tue Nov 06 2018 Rene Peinthor <[email protected]> 0.7.1-2
- Correctly clean intermediate build files.
* Wed Oct 31 2018 Rene Peinthor <[email protected]> 0.7.1-1
- New upstream release. Fix thin resource deletion.
* Tue Oct 30 2018 Rene Peinthor <[email protected]> 0.7.0-1
- New upstream release. Proxy support, transactional resource create, ...
* Tue Oct 02 2018 Rene Peinthor <[email protected]> 0.6.5-1
- New upstream release. Sync delete, fixes.
* Fri Sep 14 2018 Rene Peinthor <[email protected]> 0.6.4-1
- Atomic move fix, fix storage pool list on error case
* Mon Jul 30 2018 Roland Kammerer <[email protected]> 0.2.6-1
- New upstream release.