Fridrich Strba 2024-05-15 18:22:36 +00:00 committed by Git OBS Bridge
parent 0de6c25e63
commit e704af2016

View File

@ -1,7 +1,7 @@
# #
# spec file for package plexus-velocity # spec file for package plexus-velocity
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -30,12 +30,9 @@ BuildRequires: ant
BuildRequires: apache-commons-collections BuildRequires: apache-commons-collections
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: java-devel >= 1.8 BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-local BuildRequires: javapackages-local >= 6
BuildRequires: plexus-containers-container-default BuildRequires: sisu-plexus
BuildRequires: velocity BuildRequires: velocity
Requires: mvn(commons-collections:commons-collections)
Requires: mvn(org.codehaus.plexus:plexus-container-default)
Requires: mvn(velocity:velocity)
BuildArch: noarch BuildArch: noarch
%description %description
@ -58,11 +55,10 @@ find -name '*.jar' -delete
cp -p %{SOURCE1} build.xml cp -p %{SOURCE1} build.xml
cp -p %{SOURCE2} LICENSE cp -p %{SOURCE2} LICENSE
%pom_xpath_inject pom:project "<groupId>org.codehaus.plexus</groupId>" %pom_change_dep :plexus-container-default org.eclipse.sisu:org.eclipse.sisu.plexus
%pom_remove_parent
mkdir -p lib mkdir -p lib
build-jar-repository -s lib commons-collections plexus-containers/plexus-container-default velocity build-jar-repository -s lib commons-collections org.eclipse.sisu.plexus velocity
%build %build
ant jar javadoc ant jar javadoc
@ -73,7 +69,7 @@ install -dm 0755 %{buildroot}%{_javadir}/%{name}
install -pm 0644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar install -pm 0644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar
# pom # pom
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name} install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom %{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
%add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar %add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar
# javadoc # javadoc
install -dm 0755 %{buildroot}%{_javadocdir}/%{name} install -dm 0755 %{buildroot}%{_javadocdir}/%{name}