!5 Update to version 3.5.2

From: @wang--ge 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
This commit is contained in:
openeuler-ci-bot 2023-08-11 08:01:33 +00:00 committed by Gitee
commit 12caa3f514
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 17 additions and 99 deletions

View File

@ -1,84 +0,0 @@
From 2717e6430814267badd3ff2d25a4fddfe8c4f075 Mon Sep 17 00:00:00 2001
From: starlet-dx <15929766099@163.com>
Date: Wed, 1 Jun 2022 11:13:47 +0800
Subject: [PATCH 1/1] dnsjava 2.0.6 java1.5.target
---
build.xml | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/build.xml b/build.xml
index 098c044..e8a30a2 100644
--- a/build.xml
+++ b/build.xml
@@ -17,14 +17,14 @@
</target>
<target name="compile" description="Compile everything">
- <javac destdir="${build_dir}" debug="true" target="1.4" source="1.4">
+ <javac destdir="${build_dir}" debug="true" target="1.5" source="1.4">
<src path="${src_dir}"/>
<exclude name="tests/**"/>
</javac>
</target>
<target name="spi" description="Compile the Name Service Provider code">
- <javac destdir="${build_dir}" debug="true" target="1.4" source="1.4">
+ <javac destdir="${build_dir}" debug="true" target="1.5" source="1.4">
<src path="${src_dir}"/>
<include name="org/xbill/DNS/spi/*.java"/>
</javac>
@@ -35,6 +35,7 @@
basedir="${build_dir}" includes="**/*.class **/*.properties">
<exclude name="org/xbill/DNS/tests/*.class"/>
<exclude name="tests/**"/>
+ <exclude name="*.class"/>
<manifest>
<attribute name="Implementation-Title" value="dnsjava"/>
<attribute name="Implementation-Version" value="${version}"/>
@@ -46,21 +47,18 @@
</target>
<target name="bundle" description="Creates an OSGi bundle" depends="jar">
- <get src="http://www.aqute.biz/repo/biz/aQute/bnd/0.0.384/bnd-0.0.384.jar"
- dest="${build_dir}/bnd.jar"/>
- <taskdef resource="aQute/bnd/ant/taskdef.properties"
- classpath="${build_dir}/bnd.jar"/>
+ <taskdef resource="aQute/bnd/ant/taskdef.properties"/>
<echo file="${dist_dir}/dnsjava-${version}.bnd" append="false">
Bundle-Version: ${version}
Bundle-Name: dnsjava is an implementation of DNS in Java
Bundle-SymbolicName: org.xbill.dns
Export-Package: org.xbill.DNS;version=${version},org.xbill.DNS.spi;version=${version},org.xbill.DNS.utils;version=${version},org.xbill.DNS.windows;version=${version}
Bundle-Vendor: dnsjava.org
- Bundle-RequiredExecutionEnvironment: J2SE-1.4
+ Bundle-RequiredExecutionEnvironment: J2SE-1.5
Import-Package: !org.xbill.DNS*,!sun.*,*
</echo>
<bndwrap
- definitions="${dist_dir}"
+ definitions="${dist_dir}/dnsjava-${version}.bnd"
jars="${dist_dir}/${jarname}"
output="${dist_dir}/org.xbill.dns_${version}.jar"/>
<delete file="${dist_dir}/dnsjava-${version}.bnd"/>
@@ -77,7 +75,7 @@
<javadoc destdir="${doc_dir}"
sourcepath="${src_dir}"
packagenames="org.xbill.DNS,org.xbill.DNS.utils,org.xbill.DNS.spi"
- windowtitle="dnsjava documentation">
+ windowtitle="dnsjava documentation" additionalparam="-Xdoclint:none">
<link href="${j2se.javadoc}"/>
</javadoc>
@@ -107,7 +105,7 @@
</target>
<target name="compile_tests" depends="compile">
- <javac destdir="${tests_dir}" debug="true" target="1.4" source="1.4">
+ <javac destdir="${tests_dir}" debug="true" target="1.5" source="1.4">
<src path="${tests_dir}"/>
<exclude name="org/xbill/DNS/DNSSECWithLunaProviderTest**"/>
</javac>
--
2.30.0

View File

@ -1,16 +1,19 @@
%global do_not_test 1
Name: dnsjava
Version: 2.1.9
Version: 3.5.2
Release: 1
Summary: Java DNS implementation
License: BSD and MIT
URL: http://www.dnsjava.org/
Source0: https://github.com/dnsjava/dnsjava/archive/refs/tags/v%{version}.tar.gz
Patch0: dnsjava-2.0.6-java1.5.target.patch
BuildRequires: ant aqute-bnd javapackages-local ant-junit
BuildRequires: aqute-bnd javapackages-local
BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.jacoco:jacoco-maven-plugin)
BuildRequires: mvn(org.eclipse.aether:aether-connector-basic)
BuildRequires: mvn(org.eclipse.aether:aether-transport-wagon)
BuildRequires: mvn(org.apache.maven.wagon:wagon-http)
BuildRequires: mvn(org.apache.maven.wagon:wagon-provider-api)
BuildArch: noarch
%description
dnsjava is an implementation of DNS in Java. It supports all of the common
@ -40,7 +43,6 @@ Javadoc for %{name}.
rm -rf doc/
find -name "*.class" -print -delete
find -name "*.jar" -print -delete
%patch0 -p1 -b .java1.5
iconv -f iso8859-1 -t utf8 Changelog > Changelog.tmp
touch -r Changelog Changelog.tmp
mv -f Changelog.tmp Changelog
@ -48,30 +50,30 @@ mv -f Changelog.tmp Changelog
%pom_remove_plugin :japicmp-maven-plugin
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :jacoco-maven-plugin
%build
export CLASSPATH=%(build-classpath jce aqute-bnd)
ant -Dj2se.javadoc=%{_javadocdir}/java clean docsclean bundle docs
%mvn_build
%mvn_build -b -f --xmvn-javadoc
%install
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
%mvn_install -J doc
%if ! 0%{?do_not_test}
%check
export CLASSPATH='%(build-classpath junit):%{name}-%{version}.jar'
ant -Dj2se.javadoc=%{_javadocdir}/java compile_tests
ant -Dj2se.javadoc=%{_javadocdir}/java run_tests
%endif
cp -rf target/xmvn-apidocs/* %{buildroot}%{_javadocdir}/%{name}
%files -f .mfiles
%license LICENSE
%doc Changelog README.md USAGE EXAMPLES.md *.java
%doc Changelog README.adoc USAGE.md EXAMPLES.md
%files javadoc -f .mfiles-javadoc
%files javadoc
%{_javadocdir}/%{name}/*
%license LICENSE
%changelog
* Fri Aug 11 2023 Ge Wang <wang__ge@126.com> - 3.5.2-1
- Update to 3.5.2
* Wed Jun 01 2022 yaoxin <yaoxin30@h-partners.com> - 2.1.9-1
- Update to 2.1.9

Binary file not shown.

BIN
v3.5.2.tar.gz Normal file

Binary file not shown.