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 rm -f modello-maven-plugin/src/main/java/org/codehaus/modello/maven/ModelloVelocityMojo.java
%pom_disable_module modello-test
%build %build
pushd %{name} pushd %{name}
%{mvn_build} -f -- -Dsource=8 %{mvn_build} -f -- -Dsource=8

View File

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