Fridrich Strba 2023-09-04 23:39:55 +00:00 committed by Git OBS Bridge
parent 5bdcce0ca8
commit 333cf1b7c4
3 changed files with 33 additions and 16 deletions

BIN
modello-build.tar.xz (Stored with Git LFS)

Binary file not shown.

View File

@ -103,6 +103,8 @@ cp -p %{SOURCE1} LICENSE
rm -f modello-maven-plugin/src/main/java/org/codehaus/modello/maven/ModelloVelocityMojo.java
%pom_disable_module modello-test
%build
pushd %{name}
%{mvn_build} -f -- -Dsource=8

View File

@ -39,6 +39,7 @@ BuildRequires: plexus-build-api
BuildRequires: plexus-classworlds
BuildRequires: plexus-compiler
BuildRequires: plexus-containers-component-annotations
BuildRequires: plexus-metadata-generator
BuildRequires: plexus-utils
BuildRequires: sisu-plexus
BuildRequires: unzip
@ -89,12 +90,32 @@ cp -p %{SOURCE1} LICENSE
rm -f modello-maven-plugin/src/main/java/org/codehaus/modello/maven/ModelloVelocityMojo.java
%pom_disable_module modello-test
%build
mkdir -p lib
build-jar-repository -s lib plexus/classworlds plexus/utils plexus/plexus-build-api \
plexus-compiler/plexus-compiler-api plexus-compiler/plexus-compiler-javac \
plexus-containers/plexus-component-annotations jsoup guava/guava junit org.eclipse.sisu.plexus
# skip tests because we have too old xmlunit in openSUSE now (1.5)
build-jar-repository -s lib \
atinject \
commons-cli \
guava/guava \
guice/google-guice \
jdom2/jdom2 \
jsoup \
junit \
objectweb-asm/asm \
org.eclipse.sisu.inject \
org.eclipse.sisu.plexus \
plexus/classworlds \
plexus/cli \
plexus/plexus-build-api \
plexus/utils \
plexus-compiler/plexus-compiler-api \
plexus-compiler/plexus-compiler-javac \
plexus-containers/plexus-component-annotations \
plexus-metadata-generator \
qdox \
xbean/xbean-reflect
%{ant} \
-Dtest.skip=true \
package javadoc
@ -103,7 +124,7 @@ build-jar-repository -s lib plexus/classworlds plexus/utils plexus/plexus-build-
# jars
install -dm 0755 %{buildroot}%{_javadir}/%{name}
for i in core test; do
for i in core; do
install -pm 0644 %{name}-${i}/target/%{name}-${i}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}-${i}.jar
done
@ -114,13 +135,7 @@ done
# poms
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
%add_maven_depmap %{name}/%{name}.pom
install -pm 0644 %{name}-plugins/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}-plugins.pom
%add_maven_depmap %{name}/%{name}-plugins.pom
for i in core test; do
for i in core; do
%mvn_install_pom %{name}-${i}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}-${i}.pom
%add_maven_depmap %{name}/%{name}-${i}.pom %{name}/%{name}-${i}.jar
done
@ -133,7 +148,7 @@ done
# javadoc
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
for i in core test; do
for i in core; do
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}/%{name}-${i}
cp -pr %{name}-${i}/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/%{name}-${i}/
done
@ -146,7 +161,7 @@ done
%fdupes -s %{buildroot}%{_javadocdir}
# script
%jpackage_script org.codehaus.modello.ModelloCli "" "" modello:org.eclipse.sisu.plexus:org.eclipse.sisu.inject:google-guice-no_aop:atinject:plexus-containers/plexus-component-annotations:plexus/classworlds:plexus/utils:plexus/plexus-build-api:guava:plexus-compiler/plexus-compiler-api:plexus-compiler/plexus-compiler-javac %{name} true
%jpackage_script org.codehaus.modello.ModelloCli "" "" modello:org.eclipse.sisu.plexus:org.eclipse.sisu.inject:google-guice:aopalliance:atinject:plexus-containers/plexus-component-annotations:plexus/classworlds:plexus/utils:plexus/plexus-build-api:guava:plexus-compiler/plexus-compiler-api:plexus-compiler/plexus-compiler-javac %{name} true
%files -f .mfiles
%license LICENSE