-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathvdsm-jsonrpc-java.spec.in
314 lines (242 loc) · 10.3 KB
/
vdsm-jsonrpc-java.spec.in
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
#
# vdsm-jsonrpc-java - vdsm json rpc
# Copyright (C) 2013-2016 Red Hat, Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
# Workaround for build issues on CBS due to https://bugzilla.redhat.com/2128991
%if 0%{!?block_maven_38:1}
%global block_maven_38 0
%endif
%global package_version @PACKAGE_VERSION@
%global package_maven_version @PACKAGE_MAVEN_VERSION@
%global _java_jdk_home /usr/lib/jvm/java-11-openjdk
%global _mvn_opts -Pno-test
Summary: JsonRpc java client (%{name}) for oVirt
Name: @PACKAGE_NAME@
Version: @PACKAGE_RPM_VERSION@
Release: @PACKAGE_RPM_RELEASE@%{?release_suffix}%{?dist}
License: LGPL-2.0-or-later
URL: http://www.ovirt.org
Source: http://resources.ovirt.org/pub/ovirt-master-snapshot/src/%{name}/%{name}-%{package_version}.tar.gz
Group: Development/Libraries
# We need to disable automatic generation of "Requires: java-headless >=1:11"
# by xmvn, because JDK 11 doesn't provide java-headless, but it
# provides java-11-headless
AutoReq: no
BuildArch: noarch
BuildRequires: apache-commons-lang3
BuildRequires: gcc
BuildRequires: jackson-annotations >= 2.10.0
BuildRequires: jackson-core >= 2.10.0
BuildRequires: jackson-databind >= 2.10.0
BuildRequires: java-11-openjdk-devel >= 11.0.4
BuildRequires: javapackages-tools
BuildRequires: slf4j-jdk14 >= 1.7.0
BuildRequires: junit
BuildRequires: mockito
BuildRequires: maven >= 3.6.0
BuildRequires: maven-compiler-plugin
BuildRequires: maven-enforcer-plugin
BuildRequires: maven-jar-plugin
BuildRequires: maven-local
BuildRequires: maven-source-plugin
BuildRequires: maven-surefire-provider-junit
%if %{block_maven_38}
# Block packages from maven:3.8 to pass CBS build due to https://bugzilla.redhat.com/2128991
BuildRequires: maven < 1:3.8.0
BuildRequires: maven-lib < 1:3.8.0
BuildRequires: maven-resolver < 1:1.7.0
BuildRequires: maven-shared-utils < 3.3.4-3
BuildRequires: maven-wagon < 3.5.0
BuildRequires: plexus-cipher < 1.8
BuildRequires: plexus-classworlds < 2.6.0-11
BuildRequires: plexus-containers-component-annotations < 2.1.1
BuildRequires: plexus-interpolation < 1.26-11
BuildRequires: plexus-sec-dispatcher < 1.5
BuildRequires: plexus-utils < 3.3.0-10
BuildRequires: sisu < 1:0.3.5
%endif
# Explicit mvn imports because 'AutoReq: no'
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires: mvn(org.apache.commons:commons-lang3)
BuildRequires: mvn(org.apache.maven.plugins:maven-compiler-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
# On EL8 maven-javadoc-plugin has been merged into xmvn , but on Fedora
# we still need to require it
%if 0%{?fedora} >=30
BuildRequires: mvn(org.apache.maven.plugins:maven-javadoc-plugin)
%endif
Requires: apache-commons-lang3 >= 3.7
Requires: jackson-annotations >= 2.9.0
Requires: jackson-core >= 2.9.0
Requires: jackson-databind >= 2.9.0
Requires: java-11-openjdk-headless >= 11.0.4
Requires: slf4j >= 1.7.0
%description
vdsm jsonrpc java
%package javadoc
Summary: Java-docs for %{name}
Group: Documentation
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -q -n %{name}-%{package_version}
%if 0%{?rhel} > 7
# No need for maven-javadoc-plugin in RHEL8, xmvn will take care of it.
%pom_remove_plugin :maven-javadoc-plugin client/pom.xml.in
%endif
%build
%configure
# necessary because jdk 1.8 comes as default with xmvn
export JAVA_HOME="%{_java_jdk_home}"
%mvn_build -- %{?_mvn_opts}
%install
%mvn_install
%files -f .mfiles
%dir %{_javadir}/%{name}
%files javadoc -f .mfiles-javadoc
%changelog
* Tue Nov 28 2023 Sandro Bonazzola <sandro.bonazzola@gmail.com> - 1.7.3
- Rebase on upstream 1.7.3.
- Migrated to SPDX license.
- Disconnect the session after SSL handshake issue.
- Replace secret data with asterisks in debug logs.
- Bump fasterxml jackson to avoid CVEs.
* Mon Jul 25 2022 Artur Socha <asocha@redhat.com> 1.7.2
- Fix expired SSL certificates validation on connect
- Fix bogus date in changelog
- Drop slf4j depedency
* Mon Dec 20 2021 Artur Socha <asocha@redhat.com> 1.7.1
- Jackson upgrade to 2.12.1
* Mon Dec 20 2021 Artur Socha <asocha@redhat.com> 1.7.0
- Batch calls support removed
- Migrated to GitHub and GitHub Actions
- Apache commons lang bumped to lang3
- Log4j12 depedency droped
- Logging improved
* Wed Nov 25 2020 Artur Socha <asocha@redhat.com> 1.6.0
- Replace org.reactivestreams with standard Java implementation
* Tue Oct 27 2020 Artur Socha <asocha@redhant.com> 1.5.7
- Fix for negative subscription count, correct bug-url
* Tue Oct 27 2020 Artur Socha <asocha@redhant.com> 1.5.6
- Fix for negative subscription count
* Wed Aug 5 2020 Artur Socha <asocha@redhat.com> 1.5.5
- Automation: drop fc30 support
- Jackson upgrade to 2.10.3
- ReactorClient: half flag made atomic
- More verbose logging in ReactorListener
- Unit tests enabled for CI
- Unit tests hardening & refactoring
* Thu Feb 13 2020 Artur Socha <asocha@redhat.com> 1.5.4
- No more plain java build for release process
- fix for incorrect dependencies generation by xmvn
- oss parent removed from maven pom
* Thu Feb 6 2020 Artur Socha <asocha@redhat.com> 1.5.3
- Jackson migration to com.fasterxml.* v2.9.x
- STDCI V2 configuration
- Centos 7 CI build configuration removed
* Mon Dec 2 2019 Artur Socha <asocha@redhat.com> 1.5.2
- Fix for rpm datadir location
- Use always maven to build project
- Use tabs character in spec file consistently
* Wed Nov 27 2019 Artur Socha <asocha@redhat.com> 1.5.1
- downstream build fix
* Tue Nov 26 2019 Artur Socha <asocha@redhat.com> 1.5.0
- migration to java 11
* Tue May 28 2019 Piotr Kliczewski <pkliczew@redhat.com> 1.4.18
- heartbeat: improve how we process
* Mon Apr 15 2019 Piotr Kliczewski <pkliczew@redhat.com> 1.4.17
- Provide default timeout to purge events
* Fri Apr 12 2019 Piotr Kliczewski <pkliczew@redhat.com> 1.4.16
- Purge old events and EventPublisher should handle exceptions
* Fri Oct 5 2018 Piotr Kliczewski <pkliczew@redhat.com> - 1.4.15-2
- packaging: spec: fix spec changelog
* Fri Sep 14 2018 Piotr Kliczewski <pkliczew@redhat.com> - 1.4.15
- All hosts stuck in connecting/not responding state until engine restarted
* Mon Jul 9 2018 Piotr Kliczewski <pkliczew@redhat.com> - 1.4.14
- Rephrase Heartbeat exceeded error message
- Log response when message not found
* Wed May 9 2018 Piotr Kliczewski <pkliczew@redhat.com> - 1.4.13
- Rephrase Heartbeat exceeded error message
- Connections shouldn't be closed after the connection to the host was recovered
* Fri Apr 13 2018 Piotr Kliczewski <pkliczew@redhat.com> - 1.4.12
- Don't retry async calls on connection error
* Fri Dec 15 2017 Piotr Kliczewski <pkliczew@redhat.com> - 1.4.11
- Heartbeat logging
* Mon Dec 4 2017 Piotr Kliczewski <pkliczew@redhat.com> - 1.4.10
- Heartbeat logging improvements
* Mon Nov 20 2017 Piotr Kliczewski <pkliczew@redhat.com> - 1.4.9
- Release host level lock faster
* Thu Oct 19 2017 Piotr Kliczewski <pkliczew@redhat.com> - 1.4.8
- host to id mapping needs to be cleared on failure
* Wed Sep 20 2017 Piotr Kliczewski <pkliczew@redhat.com> - 1.4.7
- Adding callbacks infrastructure to use non-blocking threads
* Tue Apr 11 2017 Piotr Kliczewski <pkliczew@redhat.com> - 1.4.6
- send correlation id to the server
* Mon Mar 27 2017 Piotr Kliczewski <pkliczew@redhat.com> - 1.4.5
- java exception visible in Events when upgrade check is done on recently fenced host
- packaging: spec: move to headless java
* Thu Mar 9 2017 Piotr Kliczewski <pkliczew@redhat.com> - 1.4.4
- remove end of line before command
* Wed Feb 22 2017 Piotr Kliczewski <pkliczew@redhat.com> - 1.4.3
- incomplete message BZ #1425725
* Wed Jan 18 2017 Piotr Kliczewski <pkliczew@redhat.com> - 1.4.2
- process messages one by one
* Thu Jan 12 2017 Piotr Kliczewski <pkliczew@redhat.com> - 1.4.1
- handle ssl closed status
* Mon Jan 9 2017 Piotr Kliczewski <pkliczew@redhat.com> - 1.4.0
- Make sure to match host properly
- Add cause exception upon re-throwing IOException in ReactorClient
- Frame split when using multiple hosts
* Fri Dec 2 2016 Piotr Kliczewski <pkliczew@redhat.com> - 1.3.5
- stop processing if closing
* Fri Nov 18 2016 Piotr Kliczewski <pkliczew@redhat.com> - 1.3.4
- Closing channel could take too much reactor's time
* Fri Nov 4 2016 Piotr Kliczewski <pkliczew@redhat.com> - 1.3.3
- Release for 4.1
* Wed Oct 12 2016 Piotr Kliczewski <pkliczew@redhat.com> - 1.3.2
- No reconnect during setupNetworks
* Mon Sep 5 2016 Piotr Kliczewski <pkliczew@redhat.com> - 1.3.1
- Release of 1.3.1
* Wed Jun 29 2016 Piotr Kliczewski <pkliczew@redhat.com> - 1.2.5
- wait on close
* Tue Jun 28 2016 Piotr Kliczewski <pkliczew@redhat.com> - 1.2.4
- schedule close when we reset policy
* Tue May 31 2016 Piotr Kliczewski <pkliczew@redhat.com> - 1.2.3
- Release of 1.2.3
* Mon Feb 8 2016 Piotr Kliczewski <pkliczew@redhat.com> - 1.2.1
- Initial release of 4.0
* Tue Jan 19 2016 Piotr Kliczewski <pkliczew@redhat.com> - 1.1.7-1
- Exception shouldn't be recursive
* Fri Jan 8 2016 Piotr Kliczewski <pkliczew@redhat.com> - 1.1.6-1
- scheduled tasks do not check whether a channel is there
- i/o thread blocked during connection
* Thu Sep 24 2015 Piotr Kliczewski <pkliczew@redhat.com> - 1.1.5-1
- Releasing for RC
* Wed Jul 15 2015 Piotr Kliczewski <pkliczew@redhat.com> - 1.1.4
- Update report ceritification expiration date
- Fix spelling mistake
* Sun Jul 5 2015 Piotr Kliczewski <pkliczew@redhat.com> - 1.1.3-2
- Version update
* Wed Jul 1 2015 Piotr Kliczewski <pkliczew@redhat.com> - 1.1.3-1
- Matching side effect fix
- Report certification expiration date
* Wed Jun 10 2015 Piotr Kliczewski <pkliczew@redhat.com> - 1.1.2-1
- Introduced new queue for events
* Mon Apr 20 2015 Piotr Kliczewski <pkliczew@redhat.com> - 1.1.1
- Introduction of Events
* Tue Apr 7 2015 Piotr Kliczewski <pkliczew@redhat.com> - 1.1.0
- Initial release for 3.6