A new user interface for you! Read more...

File sun_java_wireless_toolkit.spec of Package sun_java_wireless_toolkit

# norootforbuild
# icecream 0

%define instdir %{_prefix}/lib/sjwtoolkit

BuildRequires:  unzip
BuildRequires:  fdupes
Name:           sun_java_wireless_toolkit
Version:        2.5.2
Release:        1
Summary:        SUN Java Wireless Toolkit
License:        Proprietary
Group:          Development/Languages/Java
Source0:        sun_java_wireless_toolkit-2.5.2_01-linuxi486.bin.sh
Url:            http://java.sun.com/products/sjwtoolkit/
ExclusiveArch:  %ix86 x86_64
Requires:       java
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
NoSource:       0

%description
SUN Java Wireless Toolkit

%prep
%setup -qTc
dd bs=1024 if=%{SOURCE0} of=j2mewtk-unix.zip skip=26

%build

%install
install -d %{buildroot}%{instdir}
install -d %{buildroot}%{_bindir}
unzip -q -d %{buildroot}%{instdir} j2mewtk-unix.zip
find %{buildroot}%{instdir} -type d -print0 | xargs -0 chmod 755
find %{buildroot}%{instdir} -type f -print0 | xargs -0 chmod 644
for i in mekeytool runmidlet wscompile siptool prefs \
zayit utils i18ntool ktoolbar emulator defaultdevice
do
	chmod 755 %{buildroot}%{instdir}/bin/$i
	ln -s %{instdir}/bin/$i %{buildroot}%{_bindir}/sjwtoolkit-$i
done
#
%fdupes -s ${RPM_BUILD_ROOT}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_bindir}/*
%{instdir}

%changelog