package init
This commit is contained in:
parent
48c6f054fe
commit
0930444345
70
dnsjava-2.0.6-java1.5.target.patch
Normal file
70
dnsjava-2.0.6-java1.5.target.patch
Normal file
@ -0,0 +1,70 @@
|
||||
--- build.xml.java1.5 2011-10-24 22:10:29.000000000 +0100
|
||||
+++ build.xml 2016-09-15 14:52:27.047032691 +0100
|
||||
@@ -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}"/>
|
||||
</javac>
|
||||
</target>
|
||||
6
dnsjava-2.1.3.pom
Normal file
6
dnsjava-2.1.3.pom
Normal file
@ -0,0 +1,6 @@
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>dnsjava</groupId>
|
||||
<artifactId>dnsjava</artifactId>
|
||||
<version>2.1.3</version>
|
||||
</project>
|
||||
BIN
dnsjava-2.1.3.tar.gz
Normal file
BIN
dnsjava-2.1.3.tar.gz
Normal file
Binary file not shown.
71
dnsjava.spec
Normal file
71
dnsjava.spec
Normal file
@ -0,0 +1,71 @@
|
||||
%global do_not_test 1
|
||||
Name: dnsjava
|
||||
Version: 2.1.3
|
||||
Release: 1
|
||||
Summary: Java DNS implementation
|
||||
License: BSD and MIT
|
||||
URL: http://www.dnsjava.org/
|
||||
Source0: https://sourceforge.net/projects/dnsjava/files/dnsjava/2.1.3/%{name}-%{version}.tar.gz
|
||||
Source1: %{name}-%{version}.pom
|
||||
Patch0: dnsjava-2.0.6-java1.5.target.patch
|
||||
BuildRequires: ant aqute-bnd javapackages-local ant-junit
|
||||
BuildArch: noarch
|
||||
%description
|
||||
dnsjava is an implementation of DNS in Java. It supports all of the common
|
||||
record types and the DNSSEC types. It can be used for queries, zone transfers,
|
||||
and dynamic updates. It includes a cache which can be used by clients, and a
|
||||
minimal implementation of a server. It supports TSIG authenticated messages,
|
||||
partial DNSSEC verification, and EDNS0.
|
||||
dnsjava provides functionality above and beyond that of the InetAddress class.
|
||||
Since it is written in pure Java, dnsjava is fully threadable, and in many
|
||||
cases is faster than using InetAddress.
|
||||
dnsjava provides both high and low level access to DNS. The high level
|
||||
functions perform queries for records of a given name, type, and class, and
|
||||
return an array of records. There is also a clone of InetAddress, which is
|
||||
even simpler. A cache is used to reduce the number of DNS queries sent. The
|
||||
low level functions allow direct manipulation of dns messages and records, as
|
||||
well as allowing additional resolver properties to be set.
|
||||
A 'dig' clone and a dynamic update program are included, as well as a
|
||||
primary-only server.
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadoc for %{name}
|
||||
%description javadoc
|
||||
Javadoc for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
rm -rf doc/
|
||||
find -name "*.class" -print -delete
|
||||
find -name "*.jar" -print -delete
|
||||
%patch0 -p0 -b .java1.5
|
||||
iconv -f iso8859-1 -t utf8 Changelog > Changelog.tmp
|
||||
touch -r Changelog Changelog.tmp
|
||||
mv -f Changelog.tmp Changelog
|
||||
%mvn_file %{name}:%{name} %{name}
|
||||
|
||||
%build
|
||||
export CLASSPATH=%(build-classpath jce aqute-bnd)
|
||||
ant -Dj2se.javadoc=%{_javadocdir}/java clean docsclean bundle docs
|
||||
%mvn_artifact %{SOURCE1} org.xbill.dns_%{version}.jar
|
||||
|
||||
%install
|
||||
%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
|
||||
|
||||
%files -f .mfiles
|
||||
%license LICENSE
|
||||
%doc Changelog README USAGE examples.html *.java
|
||||
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
* Sat Aug 15 2020 yanan li <liyanan032@huawei.com> - 2.1.3-1
|
||||
- Package init
|
||||
5
dnsjava.yaml
Normal file
5
dnsjava.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
git_url: http://github.com/dnsjava/dnsjava.git
|
||||
version_control: github
|
||||
src_repo: dnsjava/dnsjava
|
||||
tag_prefix: "^v"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user