2007-01-15 23:26:47 +00:00
|
|
|
#
|
2017-05-22 08:48:05 +00:00
|
|
|
# spec file for package netcomponents
|
2007-01-15 23:26:47 +00:00
|
|
|
#
|
2024-02-21 21:17:50 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2007-01-15 23:26:47 +00:00
|
|
|
#
|
2009-06-17 22:07:44 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2022-03-23 04:57:36 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:26:47 +00:00
|
|
|
#
|
|
|
|
|
2009-06-17 22:07:44 +00:00
|
|
|
|
2007-01-15 23:26:47 +00:00
|
|
|
Name: netcomponents
|
|
|
|
Version: 1.3.8
|
2017-05-22 08:48:05 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Internet Protocol Suite Java Library
|
2018-05-17 20:05:36 +00:00
|
|
|
License: LGPL-2.1-or-later
|
2007-01-15 23:26:47 +00:00
|
|
|
Group: Development/Libraries/Java
|
2022-03-23 04:57:36 +00:00
|
|
|
URL: https://www.savarese.org/java/
|
|
|
|
# Link does not work any more
|
|
|
|
# Source: http://www.savarese.org/downloads/NetComponents/NetComponents-1.3.8-src.tar.gz
|
|
|
|
Source: NetComponents-1.3.8-src.tar.gz
|
2017-05-22 08:48:05 +00:00
|
|
|
Patch0: %{name}-java14compat.patch
|
2018-10-02 10:10:07 +00:00
|
|
|
# PATCH-FIX-OPENSUSE Fix build due to non-existent overview-frame.html file
|
|
|
|
Patch1: netcomponents-overview-frame.patch
|
2017-05-22 08:48:05 +00:00
|
|
|
BuildRequires: ant
|
2017-09-19 15:39:31 +00:00
|
|
|
BuildRequires: fdupes
|
2022-03-23 04:57:36 +00:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2017-05-22 08:48:05 +00:00
|
|
|
BuildRequires: xml-commons-apis
|
|
|
|
BuildArch: noarch
|
2007-01-15 23:26:47 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
NetComponents is an Internet protocol suite Java library originally
|
|
|
|
developed by ORO, Inc. This version supports Finger, Whois, TFTP,
|
|
|
|
Telnet, POP3, FTP, NNTP, SMTP, and some miscellaneous protocols like
|
|
|
|
Time and Echo as well as BSD R command support. The purpose of the
|
|
|
|
library is to provide fundamental protocol access, not higher-level
|
|
|
|
abstractions. Therefore, some of the design violates object-oriented
|
|
|
|
design principles. Its philosophy is to make the global functionality
|
|
|
|
of a protocal accesible (for example, TFTP send file and receive file)
|
|
|
|
when possible, but also provide access to the fundamental protocols
|
|
|
|
where applicable so that the programmer can construct custom
|
|
|
|
implementations (for example, the TFTP packet classes and the TFTP
|
|
|
|
packet send and receive methods are exposed).
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for netcomponents
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
NetComponents, is an Internet protocol suite Java library originally
|
|
|
|
developed by ORO, Inc. This version supports Finger, Whois, TFTP,
|
|
|
|
Telnet, POP3, FTP, NNTP, SMTP, and some miscellaneous protocols like
|
|
|
|
Time and Echo as well as BSD R command support. The purpose of the
|
|
|
|
library is to provide fundamental protocol access, not higher-level
|
|
|
|
abstractions. Therefore, some of the design violates object-oriented
|
|
|
|
design principles. Our philosophy is to make the global functionality
|
|
|
|
of a protocal accesible (e.g., TFTP send file and receive file) when
|
|
|
|
possible, but also provide access to the fundamental protocols where
|
|
|
|
applicable so that the programmer may construct his own custom
|
|
|
|
implementations (e.g, the TFTP packet classes and the TFTP packet send
|
|
|
|
and receive methods are exposed).
|
|
|
|
|
|
|
|
This package contains the javadoc documentation for netcomponents.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n NetComponents-%{version}
|
2024-02-21 21:17:50 +00:00
|
|
|
%patch -P 0 -p1
|
|
|
|
%patch -P 1 -p1
|
2007-01-15 23:26:47 +00:00
|
|
|
|
|
|
|
%build
|
2017-09-19 15:39:31 +00:00
|
|
|
ant \
|
2022-03-23 04:57:36 +00:00
|
|
|
-Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 \
|
2017-09-19 15:39:31 +00:00
|
|
|
jar javadocs
|
2007-01-15 23:26:47 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jar
|
2017-05-22 08:48:05 +00:00
|
|
|
mkdir -p %{buildroot}%{_javadir}
|
2022-03-23 04:57:36 +00:00
|
|
|
cp -p build/lib/NetComponents-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
2007-01-15 23:26:47 +00:00
|
|
|
# javadoc
|
2017-05-22 08:48:05 +00:00
|
|
|
mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr build/docs/api/* %{buildroot}%{_javadocdir}/%{name}
|
2017-09-19 15:39:31 +00:00
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
2007-01-15 23:26:47 +00:00
|
|
|
|
|
|
|
%files
|
2022-03-23 04:57:36 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGES README COPYRIGHT
|
2007-01-15 23:26:47 +00:00
|
|
|
%{_javadir}/*
|
|
|
|
|
|
|
|
%files javadoc
|
2017-05-22 08:48:05 +00:00
|
|
|
%{_javadocdir}/%{name}
|
2007-01-15 23:26:47 +00:00
|
|
|
|
2007-07-23 19:46:10 +00:00
|
|
|
%changelog
|