-
Notifications
You must be signed in to change notification settings - Fork 32
/
ovirt-engine-api-model.spec.in
85 lines (62 loc) · 2.4 KB
/
ovirt-engine-api-model.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
Name: ovirt-engine-api-model
Version: @VERSION@
Release: @RELEASE@%{?dist}
Summary: Model management tools for the oVirt Engine API.
Group: %{ovirt_product_group}
License: ASL 2.0
URL: http://www.ovirt.org
Source0: %{name}-%{version}.tar.gz
Source1: %{name}-doc-%{version}.jar
BuildArch: noarch
# We need to disable automatic generation of "Requires: java-headless >= 1:11"
# by xmvn, becase JDK 11 doesn't provide java-headless artifact, but it
# provides java-11-headless.
AutoReq: no
BuildRequires: java-11-openjdk-devel
BuildRequires: maven-local
BuildRequires: ovirt-engine-api-metamodel >= 1.3.8
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-compiler-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-surefire-plugin)
BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires: mvn(org.ovirt.maven.plugins:ovirt-jboss-modules-maven-plugin)
# Required to pass COPR build, which uses old xmvn package
BuildRequires: maven
Requires: ovirt-engine-api-metamodel-server
Requires: java-11-openjdk-headless >= 1:11.0.0
Requires: javapackages-filesystem
Requires: mvn(org.ovirt.engine.api:metamodel-annotations)
Requires: mvn(org.ovirt.engine.api:metamodel-server)
%description
%{name} provides model management tools for the oVirt Engine API.
%prep
%setup -c -q
# maven-release-plugin is not used during package build, so we can remove it
# from pom.xml
%pom_remove_plugin :maven-release-plugin pom.xml
%build
# Necessary to override the default JVM for xmvn in COPR, which is JDK 8
export JAVA_HOME="/usr/lib/jvm/java-11-openjdk"
%mvn_build -j -d
%install
%mvn_install
mkdir -p %{buildroot}/%{_docdir}/%{name}
unzip %{SOURCE1} -d %{buildroot}/%{_docdir}/%{name}
%files -f .mfiles
%license ASL2
%{_docdir}/%{name}
%changelog
* Thu Nov 24 2022 Martin Perina <[email protected]> 4.6.0-1
- Add loongarch64 architecture type
* Thu Sep 29 2022 Ori Liel <[email protected]> 4.5.12-1
- bump metamodel to 1.3.10
* Tue Aug 02 2022 Ori Liel <[email protected]> 4.5.11-1
- bump metamodel to 1.3.9
- Image I/O Proxy is replaced by ovirt-imageio
- Deprecate VmPool.display attribute
- Add TpmSupport to OperatingSystemInfo
- git safe dir
* Sun Mar 06 2022 Martin Perina <[email protected]> 4.5.3-1
- Initial RPM release