|
|
7fb6d74 |
# Test of properly function library need DNS querys. It work perfectly on my machine and pass all tests.
|
|
|
7fb6d74 |
# But internet access is not allowed from mock chroot. So, I need disable it by default. Yo may enable it if you want.
|
|
|
7fb6d74 |
%define do_not_test 1
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
Name: dnsjava
|
|
|
7fb6d74 |
Version: 2.0.6
|
|
|
efbc266 |
Release: 6%{?dist}
|
|
|
7fb6d74 |
Summary: Java DNS implementation
|
|
|
7fb6d74 |
License: BSD and MIT
|
|
|
7fb6d74 |
URL: http://www.dnsjava.org/
|
|
|
7fb6d74 |
Source0: http://www.dnsjava.org/download/%{name}-%{version}.tar.gz
|
|
|
7fb6d74 |
Group: System Environment/Libraries
|
|
|
7fb6d74 |
#Epoch: 0
|
|
|
7fb6d74 |
#Vendor: JPackage Project
|
|
|
7fb6d74 |
#Distribution: JPackage
|
|
|
7fb6d74 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
BuildRequires: ant, jpackage-utils >= 0:1.5
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
BuildRequires: java-devel >= 1.7
|
|
|
7fb6d74 |
Requires: java >= 1.7
|
|
|
7fb6d74 |
Requires: jpackage-utils
|
|
|
7fb6d74 |
BuildArch: noarch
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
# For tests
|
|
|
7fb6d74 |
BuildRequires: ant-junit
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
%description
|
|
|
7fb6d74 |
dnsjava is an implementation of DNS in Java. It supports all of the common
|
|
|
7fb6d74 |
record types and the DNSSEC types. It can be used for queries, zone transfers,
|
|
|
7fb6d74 |
and dynamic updates. It includes a cache which can be used by clients, and a
|
|
|
7fb6d74 |
minimal implementation of a server. It supports TSIG authenticated messages,
|
|
|
7fb6d74 |
partial DNSSEC verification, and EDNS0.
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
dnsjava provides functionality above and beyond that of the InetAddress class.
|
|
|
7fb6d74 |
Since it is written in pure Java, dnsjava is fully threadable, and in many
|
|
|
7fb6d74 |
cases is faster than using InetAddress.
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
dnsjava provides both high and low level access to DNS. The high level
|
|
|
7fb6d74 |
functions perform queries for records of a given name, type, and class, and
|
|
|
7fb6d74 |
return an array of records. There is also a clone of InetAddress, which is
|
|
|
7fb6d74 |
even simpler. A cache is used to reduce the number of DNS queries sent. The
|
|
|
7fb6d74 |
low level functions allow direct manipulation of dns messages and records, as
|
|
|
7fb6d74 |
well as allowing additional resolver properties to be set.
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
A 'dig' clone and a dynamic update program are included, as well as a
|
|
|
7fb6d74 |
primary-only server.
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
%package javadoc
|
|
|
7fb6d74 |
Summary: Javadoc for %{name}
|
|
|
7fb6d74 |
Group: Documentation
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
%description javadoc
|
|
|
7fb6d74 |
Javadoc for %{name}.
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
%prep
|
|
|
7fb6d74 |
%setup -q
|
|
|
7fb6d74 |
rm -rf doc/
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
iconv -f iso8859-1 -t utf8 Changelog > Changelog.tmp
|
|
|
7fb6d74 |
touch -r Changelog Changelog.tmp
|
|
|
7fb6d74 |
mv -f Changelog.tmp Changelog
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
%build
|
|
|
7fb6d74 |
export CLASSPATH=%(build-classpath jce)
|
|
|
7fb6d74 |
ant -Dj2se.javadoc=%{_javadocdir}/java clean docsclean jar docs
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
%install
|
|
|
7fb6d74 |
rm -rf %{buildroot}
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
# jars
|
|
|
7fb6d74 |
mkdir -p %{buildroot}%{_javadir}
|
|
|
7fb6d74 |
cp -p %{name}-%{version}.jar %{buildroot}%{_javadir}
|
|
|
7fb6d74 |
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
# javadoc
|
|
|
7fb6d74 |
mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version}
|
|
|
7fb6d74 |
cp -pr doc/* %{buildroot}%{_javadocdir}/%{name}-%{version}
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
%clean
|
|
|
7fb6d74 |
rm -rf %{buildroot}
|
|
|
7fb6d74 |
|
|
|
efbc266 |
%if ! 0%{?do_not_test}
|
|
|
7fb6d74 |
%check
|
|
|
7fb6d74 |
export CLASSPATH='%(build-classpath junit):%{name}-%{version}.jar'
|
|
|
7fb6d74 |
ant -Dj2se.javadoc=%{_javadocdir}/java compile_tests
|
|
|
7fb6d74 |
ant -Dj2se.javadoc=%{_javadocdir}/java run_tests
|
|
|
7fb6d74 |
%endif
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
%files
|
|
|
7fb6d74 |
%defattr(-,root,root,-)
|
|
|
7fb6d74 |
%doc Changelog README USAGE examples.html *.java
|
|
|
7fb6d74 |
%{_javadir}/*
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
%files javadoc
|
|
|
7fb6d74 |
%defattr(-,root,root,-)
|
|
|
7fb6d74 |
%doc %{_javadocdir}/%{name}-%{version}
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
%changelog
|
|
|
efbc266 |
* Sun Apr 19 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 2.0.6-6
|
|
|
efbc266 |
- Fix test condition logick for %%check
|
|
|
efbc266 |
|
|
|
7fb6d74 |
* Wed Apr 15 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 2.0.6-5
|
|
|
7fb6d74 |
- Continue review.
|
|
|
7fb6d74 |
- As it can't be build by gcj, delete back this stuff from spec.
|
|
|
7fb6d74 |
- Tests made now by conditional. As internet access is not allowed in default mock chroot, it is disabled now.
|
|
|
7fb6d74 |
- Changelog recoded form iso8859-1 (charset is guessed by Orcan 'oget' Ogetbil)
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
* Wed Apr 15 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 2.0.6-4
|
|
|
7fb6d74 |
- Continue review.
|
|
|
7fb6d74 |
- Delete explicit installation in %%install *.java files.
|
|
|
7fb6d74 |
- License from BSD changed to "BSD and MIT"
|
|
|
7fb6d74 |
- Delete unneeded BR: jce, java-javadoc
|
|
|
7fb6d74 |
- Fix mistake: Add Requires: jpackage-utils and delete listed twice BuildRequires: jpackage-utils
|
|
|
7fb6d74 |
- BR: java-devel >= 1.7, R: java >= 1.7
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
* Tue Apr 14 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 2.0.6-3
|
|
|
7fb6d74 |
- Review in progress. Thanks to Orcan 'oget' Ogetbil.
|
|
|
7fb6d74 |
- Add *.java examplees into documentation (it is mentioned in USAGE)
|
|
|
7fb6d74 |
- Add testing:
|
|
|
7fb6d74 |
o Add BuildRequires: ant-junit
|
|
|
7fb6d74 |
o Add %%check section.
|
|
|
7fb6d74 |
- Group from "Development/Libraries" changed to "System Environment/Libraries" by Orcan 'oget' Ogetbil suggestion.
|
|
|
7fb6d74 |
- rm -rf doc/ in %%prep section.
|
|
|
7fb6d74 |
- Removee listed twice Requires: jpackage-utils
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
* Mon Apr 13 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 2.0.6-2
|
|
|
7fb6d74 |
- Issues from review:
|
|
|
7fb6d74 |
o Add
|
|
|
7fb6d74 |
. BuildRequires: java-devel
|
|
|
7fb6d74 |
. BuildRequires: jpackage-utils
|
|
|
7fb6d74 |
. Requires: java >= specific_version
|
|
|
7fb6d74 |
. Requires: jpackage-utils
|
|
|
7fb6d74 |
o Delete "%%define section free"
|
|
|
7fb6d74 |
o "%%defattr(0644,root,root,0755)" replaced by "%%defattr(-,root,root,-)" in both packages.
|
|
|
7fb6d74 |
o Add gcj-related stuff.
|
|
|
7fb6d74 |
o Remove Javadoc scriptlets
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
* Sun Apr 12 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 2.0.6-1
|
|
|
7fb6d74 |
- Import src.rpm from JPackage - http://ftp.heanet.ie/pub/jpackage/1.6/generic/free/SRPMS/dnsjava-1.5.1-2jpp.src.rpm
|
|
|
7fb6d74 |
- Step to last version 2.0.6
|
|
|
7fb6d74 |
- Reformat spec with tabs.
|
|
|
7fb6d74 |
- In Source0 tag inject %%{name} and %%{version} macroses.
|
|
|
7fb6d74 |
- $RPM_BUILD_ROOT replaced by %%{buildroot}
|
|
|
7fb6d74 |
- Delete (comment out) tags:
|
|
|
7fb6d74 |
o Epoch: 0
|
|
|
7fb6d74 |
o Vendor: JPackage Project
|
|
|
7fb6d74 |
o Distribution: JPackage
|
|
|
7fb6d74 |
- Add %%{?dist} into relese instead of "jpp"
|
|
|
7fb6d74 |
- Introduced by rpmlint:
|
|
|
7fb6d74 |
o Group Development/Libraries/Java changed to simple Development/Libraries
|
|
|
7fb6d74 |
o Licence changed to BSD
|
|
|
7fb6d74 |
o javadoc ackage group changed form Development/Documentation to simple Documentation
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
* Fri Aug 20 2004 Ralph Apel <r.ape at r-apel.de> 0:1.5.1-2jpp
|
|
|
7fb6d74 |
- Build with ant-1.6.2
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
* Thu Jan 22 2004 David Walluck <david@anti-microsoft.org> 0:1.5.1-1jpp
|
|
|
7fb6d74 |
- 1.5.1
|
|
|
7fb6d74 |
- remove crosslink patch (merged upstream)
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
* Fri Oct 10 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.4.3-1jpp
|
|
|
7fb6d74 |
- Update to 1.4.3.
|
|
|
7fb6d74 |
- Crosslink with local J2SE javadocs.
|
|
|
7fb6d74 |
- Spec cleanups, save in UTF-8.
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
* Tue May 06 2003 David Walluck <david@anti-microsoft.org> 0:1.3.2-2jpp
|
|
|
7fb6d74 |
- update for JPackage 1.5
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
* Wed Mar 12 2003 Ville Skyttä <ville.skytta at iki.fi> - 1.3.2-1jpp
|
|
|
7fb6d74 |
- Update to 1.3.2.
|
|
|
7fb6d74 |
- Use ant instead of make for building.
|
|
|
7fb6d74 |
- Drop patches, and include DNSSEC/JCE code.
|
|
|
7fb6d74 |
- Use sed instead of bash 2 extension when symlinking jars during build.
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
* Sat May 11 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.2.4-1jpp
|
|
|
7fb6d74 |
- updated by Ville Skyttä <ville.skytta@iki.fi>
|
|
|
7fb6d74 |
- Updated to 1.2.4.
|
|
|
7fb6d74 |
- Fixed Vendor, Distribution and Group tags.
|
|
|
7fb6d74 |
- Updated description.
|
|
|
7fb6d74 |
- Versioned javadocs.
|
|
|
7fb6d74 |
- Added -no-debug and -no-jce patches.
|
|
|
7fb6d74 |
- Doesn't BuildRequire ant.
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
* Fri Dec 7 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.2.3-2jpp
|
|
|
7fb6d74 |
- javadoc into javadoc package
|
|
|
7fb6d74 |
|
|
|
7fb6d74 |
* Fri Nov 2 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.2.3-1jpp
|
|
|
7fb6d74 |
- first JPackage release
|