Accepting request 1114389 from Java:packages:test

simplify

OBS-URL: https://build.opensuse.org/request/show/1114389
OBS-URL: https://build.opensuse.org/package/show/Java:packages/xpp3?expand=0&rev=21
This commit is contained in:
Fridrich Strba 2023-09-29 13:49:08 +00:00 committed by Git OBS Bridge
parent 377b792b0b
commit 1f287f594d

View File

@ -1,7 +1,7 @@
# #
# spec file for package xpp3 # spec file for package xpp3
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2023 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
@ -23,20 +23,20 @@ Summary: XML Pull Parser
License: Apache-1.1 License: Apache-1.1
Group: Development/Libraries/Java Group: Development/Libraries/Java
URL: http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/index.html URL: http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/index.html
Source0: http://www.extreme.indiana.edu/dist/java-repository/xpp3/distributions/xpp3-%{version}_src.tgz # The http://www.extreme.indiana.edu/dist/java-repository/xpp3/distributions/ does not exist any
Source1: http://central.maven.org/maven2/xpp3/xpp3/%{version}/xpp3-%{version}.pom # more. So we used our cached tarball
Source2: http://central.maven.org/maven2/xpp3/xpp3_min/%{version}/xpp3_min-%{version}.pom Source0: xpp3-%{version}_src.tgz
Source3: http://central.maven.org/maven2/xpp3/xpp3_xpath/%{version}/xpp3_xpath-%{version}.pom Source1: https://repo1.maven.org/maven2/xpp3/xpp3/%{version}/xpp3-%{version}.pom
Source2: https://repo1.maven.org/maven2/xpp3/xpp3_min/%{version}/xpp3_min-%{version}.pom
Source3: https://repo1.maven.org/maven2/xpp3/xpp3_xpath/%{version}/xpp3_xpath-%{version}.pom
Source4: %{name}-%{version}-OSGI-MANIFEST.MF Source4: %{name}-%{version}-OSGI-MANIFEST.MF
Patch0: xpp3-sourcetarget.patch Patch0: xpp3-sourcetarget.patch
BuildRequires: ant >= 1.6 BuildRequires: ant >= 1.6
BuildRequires: java-devel >= 1.8 BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-local BuildRequires: javapackages-local >= 6
BuildRequires: javapackages-tools
BuildRequires: junit BuildRequires: junit
BuildRequires: perl BuildRequires: perl
BuildRequires: xml-commons-apis BuildRequires: xml-commons-apis
Requires: java >= 1.4.2
BuildArch: noarch BuildArch: noarch
%description %description
@ -97,9 +97,9 @@ rm -rf doc/{build.txt,api}
# Install pom file # Install pom file
install -d -m 755 %{buildroot}%{_mavenpomdir} install -d -m 755 %{buildroot}%{_mavenpomdir}
install -p -m 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/%{name}.pom %{mvn_install_pom} %{SOURCE1} %{buildroot}%{_mavenpomdir}/%{name}.pom
install -p -m 644 %{SOURCE2} %{buildroot}%{_mavenpomdir}/%{name}-minimal.pom %{mvn_install_pom} %{SOURCE2} %{buildroot}%{_mavenpomdir}/%{name}-minimal.pom
install -p -m 644 %{SOURCE3} %{buildroot}%{_mavenpomdir}/%{name}-xpath.pom %{mvn_install_pom} %{SOURCE3} %{buildroot}%{_mavenpomdir}/%{name}-xpath.pom
%add_maven_depmap %{name}.pom %{name}.jar %add_maven_depmap %{name}.pom %{name}.jar
%add_maven_depmap %{name}-minimal.pom %{name}-minimal.jar -f minimal %add_maven_depmap %{name}-minimal.pom %{name}-minimal.jar -f minimal
%add_maven_depmap %{name}-xpath.pom %{name}-xpath.jar -f xpath %add_maven_depmap %{name}-xpath.pom %{name}-xpath.jar -f xpath