-
Notifications
You must be signed in to change notification settings - Fork 5
/
ovirt-engine-api-metamodel.spec.in
154 lines (118 loc) · 4.68 KB
/
ovirt-engine-api-metamodel.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
%global skip_tests @SKIP_TESTS@
Name: ovirt-engine-api-metamodel
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
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 >= 4.0.0
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(jakarta.activation:jakarta.activation-api)
BuildRequires: mvn(javax.json:javax.json-api)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(javax.xml.bind:jaxb-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.antlr:antlr4-runtime)
BuildRequires: mvn(org.antlr:antlr4-maven-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:build-helper-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires: mvn(org.glassfish:javax.json)
BuildRequires: mvn(org.jboss.resteasy:jaxrs-api)
BuildRequires: mvn(org.jboss.weld.se:weld-se)
BuildRequires: mvn(org.ovirt.maven.plugins:ovirt-jboss-modules-maven-plugin)
BuildRequires: mvn(org.slf4j:slf4j-jdk14)
# Required because of old xmvn package on COPR
BuildRequires: maven
Requires: ovirt-engine-api-metamodel-server
Requires: java-11-openjdk-headless >= 1:11.0.0
Requires: javapackages-filesystem
Requires: mvn(com.thoughtworks.qdox:qdox)
Requires: mvn(commons-cli:commons-cli)
Requires: mvn(commons-io:commons-io)
Requires: mvn(javax.json:javax.json-api)
Requires: mvn(javax.xml.bind:jaxb-api)
Requires: mvn(org.antlr:antlr4-runtime)
Requires: mvn(org.glassfish:javax.json)
Requires: mvn(org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.0_spec)
Requires: mvn(org.jboss.weld.se:weld-se)
Requires: mvn(org.slf4j:slf4j-jdk14)
%description
%{name} provides runtime to manage oVirt Engine API Model
%package server
Summary: Server runtime of model management
Group: %{ovirt_product_group}
# 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
Requires: java-11-openjdk-headless >= 1:11.0.0
Requires: javapackages-filesystem
Requires: mvn(jakarta.activation:jakarta.activation-api)
Requires: mvn(javax.servlet:javax.servlet-api)
Requires: mvn(org.slf4j:slf4j-api)
%description server
%{name}-server provides server side runtime used within oVirt Engine
%prep
%setup -c -q
# On EL8 maven-javadoc-plugin has been merged into xmvn, so we need to remove
# reference to it from pom.xml
%if 0%{?rhel} >= 8
%pom_remove_plugin :maven-javadoc-plugin pom.xml
%endif
# 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
# server needs to be in a standalone package, as it needs to be distributed along with oVirt engine
%mvn_package ":metamodel-server" ovirt-engine-api-metamodel-server
# no need to package tests
%mvn_package ":metamodel-tests" __noinstall
# documentation generatio cannot be built withing RPM to remove dependency
# on asciidoctorj
%pom_disable_module doctool
%if %{?skip_tests}
# We need to skip test execution on COPR due to some weld classloading issues
%pom_disable_module tests
%endif
%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
%install
%mvn_install
%files -f .mfiles
%license ASL2
%files server -f .mfiles-ovirt-engine-api-metamodel-server
%changelog
* Thu Sep 29 2022 Ori Liel <oliel@redhat.com> 1.3.10-1
- fix generated document hierarchy
* Tue Aug 2 2022 Ori Liel <oliel@redhat.com> 1.3.9-1
- Change SCM connection details to github
- Change asciidoc link-generation (#28)
- Add RPM packaging
- Enable EL9 builds
- introduce COPR build
- Disable doctool in RPM build
- Create DocTool to generate documentation
- Switch back to weld 2.3
- Use tests module name from pom.xml and not artifactdId
- Require maven-local >= 4.0.0
- Enable debug logging for xmvn_build
- Bump: junit 4.13.1, ovirt-jboss-modules-maven-plugin 2.0.3, antlr 4.9.3, asciidoctor 1.6.2
- Fix maven cache directory
- Use oVirt buildcontainer
- Switch from log4j backend to java.util.logging backend
- Finish moving to github (#6)
- Add build using github actions
* Mon Feb 14 2022 Martin Perina <mperina@redhat.com> 1.3.8-1
- Initial RPM release