Summary: console hex viewer/editor and disassembler
Name: biew
Version: 5.3.0
Release: 1
Copyright: GPL
Group: Utilities
Source: %{name}-%{version}.tar.gz
BuildRoot: /tmp/%{name}-buildroot
Prefix: /usr
URL: http://biew.sourceforge.net

%description

BIEW (Binary vIEW) is a free, portable, advanced file viewer with
built-in editor for binary, hexadecimal and disassembler modes.

It contains a highlight PentiumIV/K7-Athlon/Cyrix-M2 disassembler,
full preview of MZ, NE, PE, LE, LX, DOS.SYS, NLM, ELF, a.out, arch,
coff32, PharLap, rdoff executable formats, a code guider, and lot of
other features, making it invaluable for examining binary code.

DOS, Win32, OS/2, Linux, BeOS, Unix versions are available.

%prep
%setup -q

%build
make

%install
rm -rf $RPM_BUILD_ROOT
install -d ${RPM_BUILD_ROOT}%{prefix}/{bin,man/man1,lib/biew}
install -m 755 biew $RPM_BUILD_ROOT%{prefix}/bin/biew
install -m 644 bin_rc/{*.hlp,*.skn} $RPM_BUILD_ROOT%{prefix}/lib/biew
install doc/biew.1 $RPM_BUILD_ROOT%{prefix}/man/man1
strip -R .note -R .comment $RPM_BUILD_ROOT%{prefix}/bin/biew

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc doc/biew_en.txt doc/biew_ru.txt doc/unix.txt doc/release.txt

%{prefix}/bin/biew
%{prefix}/lib/biew/*
%{prefix}/man/man1/biew.1*
