Sync from SUSE:SLFO:Main xpp3 revision 424c6bb7969f7e3ec4ebad455ae9cb29

This commit is contained in:
Adrian Schröter 2024-05-31 15:06:41 +02:00
parent ec4d2c8252
commit fd62ddb417
2 changed files with 31 additions and 40 deletions

View File

@ -1,3 +1,19 @@
-------------------------------------------------------------------
Tue Apr 30 11:54:40 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Simplify the spec: remove old macros and avoid versioned jars
-------------------------------------------------------------------
Fri Apr 5 13:51:18 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Fetch the tarball from internet archives in order to have at least
some trackability of the sources after the main domain disappeared
-------------------------------------------------------------------
Wed Feb 21 10:56:08 UTC 2024 - Gus Kenion <gus.kenion@suse.com>
- Use %patch -P N instead of deprecated %patchN.
-------------------------------------------------------------------
Fri Jan 12 11:37:59 UTC 2024 - Fridrich Strba <fstrba@suse.com>

View File

@ -22,10 +22,9 @@ Release: 0
Summary: XML Pull Parser
License: Apache-1.1
Group: Development/Libraries/Java
URL: http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/index.html
# The http://www.extreme.indiana.edu/dist/java-repository/xpp3/distributions/ does not exist any
# more. So we used our cached tarball
Source0: xpp3-%{version}_src.tgz
# The http://www.extreme.indiana.edu/ does not exist anymore
URL: https://web.archive.org/web/20201024082744/http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/index.html
Source0: https://web.archive.org/web/20201024082744/http://www.extreme.indiana.edu/dist/java-repository/xpp3/distributions/xpp3-%{version}_src.tgz
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
@ -67,7 +66,7 @@ Hotspot in JDK 1.4.
%prep
%setup -q
%patch0 -p1
%patch -P 0 -p1
# remove all binary libs
find . -name "*.jar" -exec rm -f {} \;
# "src/java/addons_tests" does not exist
@ -82,16 +81,15 @@ jar ufm build/%{name}-%{version}.jar %{SOURCE4}
%install
# jars
mkdir -p %{buildroot}%{_javadir}
cp -p build/%{name}-%{version}.jar \
%{buildroot}%{_javadir}/%{name}-%{version}.jar
cp -p build/%{name}_min-%{version}.jar \
%{buildroot}%{_javadir}/%{name}-minimal-%{version}.jar
cp -p build/%{name}_xpath-%{version}.jar \
%{buildroot}%{_javadir}/%{name}-xpath-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
install -d -m 0755 %{buildroot}%{_javadir}
install -p -m 0644 build/%{name}-%{version}.jar \
%{buildroot}%{_javadir}/%{name}.jar
install -p -m 0644 build/%{name}_min-%{version}.jar \
%{buildroot}%{_javadir}/%{name}-minimal.jar
install -p -m 0644 build/%{name}_xpath-%{version}.jar \
%{buildroot}%{_javadir}/%{name}-xpath.jar
# javadoc
mkdir -p %{buildroot}%{_javadocdir}/%{name}
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
cp -pr doc/api/* %{buildroot}%{_javadocdir}/%{name}
rm -rf doc/{build.txt,api}
@ -102,36 +100,13 @@ install -d -m 755 %{buildroot}%{_mavenpomdir}
%{mvn_install_pom} %{SOURCE3} %{buildroot}%{_mavenpomdir}/%{name}-xpath.pom
%add_maven_depmap %{name}.pom %{name}.jar
%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
%files
%defattr(0644,root,root,0755)
%files -f .mfiles
%license LICENSE.txt
%doc README.html doc/*
%{_javadir}/%{name}.jar
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}-xpath.jar
%{_javadir}/%{name}-xpath-%{version}.jar
%{_mavenpomdir}/%{name}.pom
%{_mavenpomdir}/%{name}-xpath.pom
%if %{defined _maven_repository}
%{_mavendepmapfragdir}/%{name}
%{_mavendepmapfragdir}/%{name}-xpath
%else
%{_datadir}/maven-metadata/%{name}.xml*
%{_datadir}/maven-metadata/%{name}-xpath.xml*
%endif
%files minimal
%defattr(0644,root,root,0755)
%{_javadir}/%{name}-minimal.jar
%{_javadir}/%{name}-minimal-%{version}.jar
%{_mavenpomdir}/%{name}-minimal.pom
%if %{defined _maven_repository}
%{_mavendepmapfragdir}/%{name}-minimal
%else
%{_datadir}/maven-metadata/%{name}-minimal.xml*
%endif
%files minimal -f .mfiles-minimal
%files javadoc
%defattr(0644,root,root,0755)