File JTOpen.spec of Package JTOpen

#
# spec file for package JTOpen
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           JTOpen
BuildRequires:  unzip
%define cvs_version 6_3
License:        IBM Public License
Group:          Development/Libraries/Java
Url:            http://oss.software.ibm.com/developerworks/opensource/jt400/index.html
Requires:       jre1.1.x
Summary:        The Open Source Version of the IBM Toolbox for Java
Version:        6.3
Release:        1
Source0:        jtopen_%{cvs_version}.zip
Source1:        jtopen_%{cvs_version}_source.zip
Source2:        README.SuSE
Source3:        jtopen_%{cvs_version}_javadoc.zip
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
The IBM Toolbox for Java is a library of Java classes supporting the
client/server and Internet programming models to an iSeries or AS/400
server. The classes can be used by Java applets, servlets, and
applications to easily access iSeries and AS/400 data and resources.

The toolbox does not require additional client support beyond what is
provided by the Java Virtual Machine and TCP/IP.



%package doc
License:        IBM Public License
Summary:        Additional Package Documentation
Group:          Development/Libraries/Java

%description doc
JTOpen is an Open Source version of the IBM Toolbox for Java.

The IBM Toolbox for Java is a library of Java classes supporting
client/server and internet programming models for an iSeries or AS/400
server. The classes can be used by Java applets, servlets, and
applications to easily access iSeries and AS/400 data and resources.

The Toolbox does not require additional client support over and above
what is provided by the Java Virtual Machine and TCP/IP.



%prep
%setup -q -c
#
install -m 644 %{S:1} %{S:2} .
# unpack javadoc
install -m 755 -d ./javadoc
unzip -qq %{S:3} -d ./javadoc 

%build

%install
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/
install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}/
cp -r lib $RPM_BUILD_ROOT%{_datadir}/%{name}/
cp  *.zip $RPM_BUILD_ROOT%{_datadir}/%{name}/
cp -r javadoc *.html README.SuSE $RPM_BUILD_ROOT%{_docdir}/%{name}/

%files
%defattr(-,root,root)
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/*.html
%{_docdir}/%{name}/README.SuSE
%{_datadir}/%{name}/

%files doc
%defattr(-,root,root)
%{_docdir}/%{name}/javadoc

%changelog
openSUSE Build Service is sponsored by