|
|
badfa8b |
# Test of properly function library need DNS querys. It work perfectly on my machine and pass all tests.
|
|
|
badfa8b |
# But internet access is not allowed from mock chroot. So, I need disable it by default. Yo may enable it if you want.
|
|
|
edb3445 |
%global do_not_test 1
|
|
|
edb3445 |
|
|
|
edb3445 |
Name: dnsjava
|
|
|
edb3445 |
Version: 2.1.3
|
|
|
6f0ba33 |
Release: 11%{?dist}
|
|
|
edb3445 |
Summary: Java DNS implementation
|
|
|
edb3445 |
License: BSD and MIT
|
|
|
edb3445 |
URL: http://www.dnsjava.org/
|
|
|
edb3445 |
Source0: http://www.dnsjava.org/download/%{name}-%{version}.tar.gz
|
|
|
edb3445 |
Source1: %{name}-%{version}.pom
|
|
|
edb3445 |
# bz#842582
|
|
|
edb3445 |
Patch0: dnsjava-2.0.6-java1.5.target.patch
|
|
|
edb3445 |
|
|
|
edb3445 |
BuildRequires: ant
|
|
|
6f0ba33 |
BuildRequires: aqute-bnd
|
|
|
8e8478f |
# see https://fedorahosted.org/released/javapackages/doc/#_add_maven_depmap_macro_2
|
|
|
8e8478f |
BuildRequires: javapackages-local
|
|
|
badfa8b |
# For tests
|
|
|
edb3445 |
BuildRequires: ant-junit
|
|
|
edb3445 |
BuildArch: noarch
|
|
|
5a127a2 |
|
|
|
badfa8b |
%description
|
|
|
badfa8b |
dnsjava is an implementation of DNS in Java. It supports all of the common
|
|
|
badfa8b |
record types and the DNSSEC types. It can be used for queries, zone transfers,
|
|
|
badfa8b |
and dynamic updates. It includes a cache which can be used by clients, and a
|
|
|
badfa8b |
minimal implementation of a server. It supports TSIG authenticated messages,
|
|
|
badfa8b |
partial DNSSEC verification, and EDNS0.
|
|
|
badfa8b |
|
|
|
badfa8b |
dnsjava provides functionality above and beyond that of the InetAddress class.
|
|
|
badfa8b |
Since it is written in pure Java, dnsjava is fully threadable, and in many
|
|
|
badfa8b |
cases is faster than using InetAddress.
|
|
|
badfa8b |
|
|
|
badfa8b |
dnsjava provides both high and low level access to DNS. The high level
|
|
|
badfa8b |
functions perform queries for records of a given name, type, and class, and
|
|
|
badfa8b |
return an array of records. There is also a clone of InetAddress, which is
|
|
|
badfa8b |
even simpler. A cache is used to reduce the number of DNS queries sent. The
|
|
|
badfa8b |
low level functions allow direct manipulation of dns messages and records, as
|
|
|
badfa8b |
well as allowing additional resolver properties to be set.
|
|
|
badfa8b |
|
|
|
badfa8b |
A 'dig' clone and a dynamic update program are included, as well as a
|
|
|
badfa8b |
primary-only server.
|
|
|
badfa8b |
|
|
|
edb3445 |
%package javadoc
|
|
|
edb3445 |
Summary: Javadoc for %{name}
|
|
|
badfa8b |
|
|
|
edb3445 |
%description javadoc
|
|
|
badfa8b |
Javadoc for %{name}.
|
|
|
badfa8b |
|
|
|
badfa8b |
%prep
|
|
|
badfa8b |
%setup -q
|
|
|
badfa8b |
rm -rf doc/
|
|
|
8e8478f |
find -name "*.class" -print -delete
|
|
|
8e8478f |
find -name "*.jar" -print -delete
|
|
|
badfa8b |
|
|
|
6f0ba33 |
%patch0 -p0 -b .java1.5
|
|
|
5a127a2 |
|
|
|
badfa8b |
iconv -f iso8859-1 -t utf8 Changelog > Changelog.tmp
|
|
|
badfa8b |
touch -r Changelog Changelog.tmp
|
|
|
badfa8b |
mv -f Changelog.tmp Changelog
|
|
|
8e8478f |
# install in _javadir
|
|
|
8e8478f |
%mvn_file %{name}:%{name} %{name}
|
|
|
badfa8b |
|
|
|
badfa8b |
%build
|
|
|
8e8478f |
|
|
|
6f0ba33 |
export CLASSPATH=%(build-classpath jce aqute-bnd)
|
|
|
6f0ba33 |
ant -Dj2se.javadoc=%{_javadocdir}/java clean docsclean bundle docs
|
|
|
badfa8b |
|
|
|
6f0ba33 |
%mvn_artifact %{SOURCE1} org.xbill.dns_%{version}.jar
|
|
|
badfa8b |
|
|
|
8e8478f |
%install
|
|
|
8e8478f |
%mvn_install -J doc
|
|
|
badfa8b |
|
|
|
75471e9 |
%if ! 0%{?do_not_test}
|
|
|
badfa8b |
%check
|
|
|
badfa8b |
export CLASSPATH='%(build-classpath junit):%{name}-%{version}.jar'
|
|
|
badfa8b |
ant -Dj2se.javadoc=%{_javadocdir}/java compile_tests
|
|
|
badfa8b |
ant -Dj2se.javadoc=%{_javadocdir}/java run_tests
|
|
|
badfa8b |
%endif
|
|
|
badfa8b |
|
|
|
8e8478f |
%files -f .mfiles
|
|
|
6f0ba33 |
%license LICENSE
|
|
|
badfa8b |
%doc Changelog README USAGE examples.html *.java
|
|
|
badfa8b |
|
|
|
8e8478f |
%files javadoc -f .mfiles-javadoc
|
|
|
6f0ba33 |
%license LICENSE
|
|
|
badfa8b |
|
|
|
badfa8b |
%changelog
|
|
|
6f0ba33 |
* Thu Sep 15 2016 Mat Booth <mat.booth@redhat.com> - 2.1.3-11
|
|
|
6f0ba33 |
- Build with OSGi metadata
|
|
|
6f0ba33 |
- Include license
|
|
|
6f0ba33 |
- Disable java 8 doclinting
|
|
|
6f0ba33 |
|
|
|
ac36f30 |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.3-10
|
|
|
ac36f30 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
ac36f30 |
|
|
|
1d10be6 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.3-9
|
|
|
1d10be6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
1d10be6 |
|
|
|
8e8478f |
* Wed Jul 16 2014 gil cattaneo <puntogil@libero.it> - 2.1.3-8
|
|
|
8e8478f |
- FTBFS in rawhide rhbz#1106150
|
|
|
8e8478f |
- Adapt to current guideline:
|
|
|
8e8478f |
o Remove Javadoc scriptlets (no more required)
|
|
|
8e8478f |
o Remove Requires (automatically generated by xmvn)
|
|
|
8e8478f |
o Remove BuildRequires: jpackage-utils (provided by javapackages package)
|
|
|
8e8478f |
o Remove Group (no more required)
|
|
|
8e8478f |
|
|
|
8059fa0 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.3-7
|
|
|
8059fa0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
8059fa0 |
|
|
|
bb5ab60 |
* Mon Mar 3 2014 Pavel Alexeev <Pahan@Hubbitus.info> - 2.1.3-6
|
|
|
bb5ab60 |
- Switch to java-headless. Bz#1068028.
|
|
|
bb5ab60 |
|
|
|
3fe9a11 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.3-5
|
|
|
3fe9a11 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
3fe9a11 |
|
|
|
ef843c9 |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.3-4
|
|
|
ef843c9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
ef843c9 |
|
|
|
edb3445 |
* Sat Sep 1 2012 Pavel Alexeev <Pahan@Hubbitus.info> - 2.1.3-3
|
|
|
edb3445 |
- For changes and patch thanks to Gil Cattaneo <puntogil@libero.it>
|
|
|
edb3445 |
- Added maven pom
|
|
|
edb3445 |
- Fixes according to new guidelines (versionless jars, javadocs)
|
|
|
edb3445 |
|
|
|
e013264 |
* Sun Aug 12 2012 Pavel Alexeev <Pahan@Hubbitus.info> - 2.1.3-2
|
|
|
5a127a2 |
- Update to 2.1.3.
|
|
|
5a127a2 |
- Add Patch0: dnsjava-2.0.6-java1.5.target.patch to compile with 1.5 java target (bz#842582).
|
|
|
5a127a2 |
|
|
|
c9b976c |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.6-10
|
|
|
c9b976c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
c9b976c |
|
|
|
2e2df19 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.6-9
|
|
|
2e2df19 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
2e2df19 |
|
|
|
e70a8c8 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.6-8
|
|
|
e70a8c8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
e70a8c8 |
|
|
|
816f64f |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.6-7
|
|
|
816f64f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
816f64f |
|
|
|
304198a |
* Sun Apr 19 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 2.0.6-6
|
|
|
304198a |
- Fix test condition logick for %%check
|
|
|
304198a |
|
|
|
badfa8b |
* Wed Apr 15 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 2.0.6-5
|
|
|
badfa8b |
- Continue review.
|
|
|
badfa8b |
- As it can't be build by gcj, delete back this stuff from spec.
|
|
|
badfa8b |
- Tests made now by conditional. As internet access is not allowed in default mock chroot, it is disabled now.
|
|
|
badfa8b |
- Changelog recoded form iso8859-1 (charset is guessed by Orcan 'oget' Ogetbil)
|
|
|
badfa8b |
|
|
|
badfa8b |
* Wed Apr 15 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 2.0.6-4
|
|
|
badfa8b |
- Continue review.
|
|
|
badfa8b |
- Delete explicit installation in %%install *.java files.
|
|
|
badfa8b |
- License from BSD changed to "BSD and MIT"
|
|
|
badfa8b |
- Delete unneeded BR: jce, java-javadoc
|
|
|
badfa8b |
- Fix mistake: Add Requires: jpackage-utils and delete listed twice BuildRequires: jpackage-utils
|
|
|
badfa8b |
- BR: java-devel >= 1.7, R: java >= 1.7
|
|
|
badfa8b |
|
|
|
badfa8b |
* Tue Apr 14 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 2.0.6-3
|
|
|
badfa8b |
- Review in progress. Thanks to Orcan 'oget' Ogetbil.
|
|
|
badfa8b |
- Add *.java examplees into documentation (it is mentioned in USAGE)
|
|
|
badfa8b |
- Add testing:
|
|
|
badfa8b |
o Add BuildRequires: ant-junit
|
|
|
badfa8b |
o Add %%check section.
|
|
|
badfa8b |
- Group from "Development/Libraries" changed to "System Environment/Libraries" by Orcan 'oget' Ogetbil suggestion.
|
|
|
badfa8b |
- rm -rf doc/ in %%prep section.
|
|
|
badfa8b |
- Removee listed twice Requires: jpackage-utils
|
|
|
badfa8b |
|
|
|
badfa8b |
* Mon Apr 13 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 2.0.6-2
|
|
|
badfa8b |
- Issues from review:
|
|
|
badfa8b |
o Add
|
|
|
badfa8b |
. BuildRequires: java-devel
|
|
|
badfa8b |
. BuildRequires: jpackage-utils
|
|
|
badfa8b |
. Requires: java >= specific_version
|
|
|
badfa8b |
. Requires: jpackage-utils
|
|
|
badfa8b |
o Delete "%%define section free"
|
|
|
badfa8b |
o "%%defattr(0644,root,root,0755)" replaced by "%%defattr(-,root,root,-)" in both packages.
|
|
|
badfa8b |
o Add gcj-related stuff.
|
|
|
badfa8b |
o Remove Javadoc scriptlets
|
|
|
badfa8b |
|
|
|
badfa8b |
* Sun Apr 12 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 2.0.6-1
|
|
|
badfa8b |
- Import src.rpm from JPackage - http://ftp.heanet.ie/pub/jpackage/1.6/generic/free/SRPMS/dnsjava-1.5.1-2jpp.src.rpm
|
|
|
badfa8b |
- Step to last version 2.0.6
|
|
|
badfa8b |
- Reformat spec with tabs.
|
|
|
badfa8b |
- In Source0 tag inject %%{name} and %%{version} macroses.
|
|
|
badfa8b |
- $RPM_BUILD_ROOT replaced by %%{buildroot}
|
|
|
badfa8b |
- Delete (comment out) tags:
|
|
|
badfa8b |
o Epoch: 0
|
|
|
badfa8b |
o Vendor: JPackage Project
|
|
|
badfa8b |
o Distribution: JPackage
|
|
|
badfa8b |
- Add %%{?dist} into relese instead of "jpp"
|
|
|
badfa8b |
- Introduced by rpmlint:
|
|
|
badfa8b |
o Group Development/Libraries/Java changed to simple Development/Libraries
|
|
|
badfa8b |
o Licence changed to BSD
|
|
|
badfa8b |
o javadoc ackage group changed form Development/Documentation to simple Documentation
|
|
|
badfa8b |
|
|
|
badfa8b |
* Fri Aug 20 2004 Ralph Apel <r.ape at r-apel.de> 0:1.5.1-2jpp
|
|
|
badfa8b |
- Build with ant-1.6.2
|
|
|
badfa8b |
|
|
|
badfa8b |
* Thu Jan 22 2004 David Walluck <david@anti-microsoft.org> 0:1.5.1-1jpp
|
|
|
badfa8b |
- 1.5.1
|
|
|
badfa8b |
- remove crosslink patch (merged upstream)
|
|
|
badfa8b |
|
|
|
badfa8b |
* Fri Oct 10 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.4.3-1jpp
|
|
|
badfa8b |
- Update to 1.4.3.
|
|
|
badfa8b |
- Crosslink with local J2SE javadocs.
|
|
|
badfa8b |
- Spec cleanups, save in UTF-8.
|
|
|
badfa8b |
|
|
|
badfa8b |
* Tue May 06 2003 David Walluck <david@anti-microsoft.org> 0:1.3.2-2jpp
|
|
|
badfa8b |
- update for JPackage 1.5
|
|
|
badfa8b |
|
|
|
badfa8b |
* Wed Mar 12 2003 Ville Skyttä <ville.skytta at iki.fi> - 1.3.2-1jpp
|
|
|
badfa8b |
- Update to 1.3.2.
|
|
|
badfa8b |
- Use ant instead of make for building.
|
|
|
badfa8b |
- Drop patches, and include DNSSEC/JCE code.
|
|
|
badfa8b |
- Use sed instead of bash 2 extension when symlinking jars during build.
|
|
|
badfa8b |
|
|
|
badfa8b |
* Sat May 11 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.2.4-1jpp
|
|
|
badfa8b |
- updated by Ville Skyttä <ville.skytta@iki.fi>
|
|
|
badfa8b |
- Updated to 1.2.4.
|
|
|
badfa8b |
- Fixed Vendor, Distribution and Group tags.
|
|
|
badfa8b |
- Updated description.
|
|
|
badfa8b |
- Versioned javadocs.
|
|
|
badfa8b |
- Added -no-debug and -no-jce patches.
|
|
|
badfa8b |
- Doesn't BuildRequire ant.
|
|
|
badfa8b |
|
|
|
badfa8b |
* Fri Dec 7 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.2.3-2jpp
|
|
|
badfa8b |
- javadoc into javadoc package
|
|
|
badfa8b |
|
|
|
badfa8b |
* Fri Nov 2 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.2.3-1jpp
|
|
|
badfa8b |
- first JPackage release
|