+# NOTE:
+# - slang (recommented screen lib) doesn't have mouse support
Summary: BIEW is Binary vIEWer and editor
Summary(pl): BIEW jest przegl±dark± plików binarnych z edytorem
+Summary(ru): biew - ÒÅÄÁËÔÏÒ Ä×ÏÉÞÎÙÈ ÆÁÊÌÏ× Ó ÄÉÚÁÓÓÅÍÂÌÅÒÏÍ
+Summary(uk): biew - ÒÅÄÁËÔÏÒ ÄצÊËÏ×ÉÈ ÆÁÊÌ¦× Ú ÄÉÚÁÓÅÍÂÌÅÒÏÍ
Name: biew
-Version: 53p5
-Release: 1
+Version: 562
+Release: 2
License: GPL
Group: Applications/Editors
-Source0: ftp://biew.sourceforge.net/pub/biew/5.x/src/%{name}%{version}.tar.bz2
-Patch0: %{name}-CURSES.patch
+Source0: http://dl.sourceforge.net/biew/%{name}%{version}.tar.bz2
+# Source0-md5: 622fb1f02a6d921b273f0a39407f8e7d
URL: http://biew.sourceforge.net/
+BuildRequires: gpm-devel
BuildRequires: ncurses-devel
-Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-BIEW is advenced Binary vIEWer with built-in editor for binary,
-hexadecimal and disassembler modes. His disassembler support many
-procesors(Pentium4, K7 Athlon, Cyrix-M2) and many file formats (MZ,
-NE, PE, LE, LX, DOS.SYS, NLM, arch, ELF, a.out, coff32 PharLap, rdoff)
+BIEW is advanced Binary vIEWer with built-in editor for binary,
+hexadecimal and disassembler modes. His disassembler supports many
+processors (Pentium4, K7 Athlon, Cyrix-M2) and many file formats (MZ,
+NE, PE, LE, LX, DOS.SYS, NLM, arch, ELF, a.out, coff32 PharLap,
+rdoff).
%description -l pl
BIEW (Binary vIEWer) jest zaawansowan± przegl±dark± i edytorem plików
-binarnych. Zawiera wbudowany disasembler z suportem dla wielu nowych
+binarnych. Zawiera wbudowany disasembler ze wsparciem dla wielu nowych
procesorów (w tym Pentium4, Athlon i Cyrix-M2) oraz wielu formatów
plików wykonywalnych (MZ, NE, PE, LE, LX, DOS.SYS, NLM, arch, ELF,
-a.out, coff32 PharLap, rdoff)
+a.out, coff32 PharLap, rdoff).
+
+%description -l ru
+biew - ÜÔÏ ÐÒÏÓÍÏÔÒÝÉË/ÒÅÄÁËÔÏÒ Ä×ÏÉÞÎÙÈ ÆÁÊÌÏ× Ó ×ÏÚÍÏÖÎÏÓÔØÀ
+ÐÒÏÓÍÏÔÒÁ É ÒÅÄÁËÔÉÒÏ×ÁÎÉÑ × Ä×ÏÉÞÎÏÍ, ÛÅÓÔÎÁÄÃÁÔÉÒÉÞÎÏÍ É
+ÄÉÚÁÓÓÅÍÂÅÒÎÏÍ ÒÅÖÉÍÁÈ. ðÏÄÄÅÒÖÉ×ÁÅÔÓÑ ×ÙÄÅÌÅÎÉÅ ÁÓÓÅÍÂÌÅÒÎÙÈ ËÏÍÁÎÄ
+PentiumIV/K7-Athlon/Cyrix-M2, ÅÓÔØ ËÏÎ×ÅÒÔÏÒ ËÉÒÉÌÌÉÞÅÓËÉÈ ËÏÄÉÒÏ×ÏË,
+ÐÏÌÎÙÊ ÐÒÏÓÍÏÔÒ ÆÏÒÍÁÔÏ× MZ, NE, PE, LE, LX, DOS.SYS, NLM, ELF.
+
+%description -l uk
+biew - ÃÅ ÐÅÒÅÇÌÑÄÁÞ/ÒÅÄÁËÔÏÒ ÄצÊËÏ×ÉÈ ÆÁÊÌ¦× Ú ÍÏÖÌÉצÓÔÀ ÐÅÒÅÇÌÑÄÕ
+ÔÁ ÒÅÄÁÇÕ×ÁÎÎÑ × ÄצÊËÏ×ÏÍÕ, Û¦ÓÔÎÁÄÃÑÔËÏ×ÏÍÕ ÔÁ ÄÉÚÁÓÅÍÂÌÅÒÎÏÍÕ
+ÒÅÖÉÍÁÈ. ð¦ÄÔÒÉÍÕ¤ÔØÓÑ ×ÉĦÌÅÎÎÑ ÁÓÅÍÂÅÒÎÉÈ ËÏÍÁÎÄ
+PentiumIV/K7-Athlon/Cyrix-M2, ¤ ËÏÎ×ÅÒÔÏÒ ËÉÒÉ̦ÞÎÉÈ ËÏÄÕ×ÁÎØ, ÐÏ×ÎÉÊ
+ÐÅÒÅÇÌÑÄ ÆÏÒÍÁÔ¦× MZ, NE, PE, LE, LX, DOS.SYS, NLM, ELF.
%prep
-%setup -q -n %{name}%{version}
-%patch0 -p1
+%setup -q
%build
+%{__make} \
+ PREFIX=%{_prefix} \
+ CC="%{__cc}" \
+ HOST_CFLAGS="%{rpmcflags}" \
%ifarch %{ix86}
- target=%{_target_cpu}
+ TARGET_PLATFORM=%{_target_cpu} \
%else
- target=generic
+ TARGET_PLATFORM=generic \
%endif
-
-%{__make} \
- TARGET_PLATFORM=$target \
- TARGET_OS=%{_target_os} \
+ TARGET_SCREEN_LIB=curses \
+ TARGET_OS=unix \
+ USE_MOUSE=y \
INCS="-I. -I/usr/include/ncurses" \
compilation=%{?debug:debug}%{!?debug:advance}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}/ $RPM_BUILD_ROOT%{_libdir}/biew/
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name},%{_mandir}/man1}
install biew $RPM_BUILD_ROOT%{_bindir}
-install bin_rc/{biew.hlp,standard.skn} $RPM_BUILD_ROOT%{_libdir}/biew/
-
-gzip -9nf doc/*txt doc/*.en doc/*.ru
+install bin_rc/{biew.hlp,skn/*} $RPM_BUILD_ROOT%{_datadir}/biew
+cp -a bin_rc/{xlt,skn,*.hlp} $RPM_BUILD_ROOT%{_datadir}/%{name}
+cp -a bin_rc/syntax/*.stx $RPM_BUILD_ROOT%{_datadir}/biew
+cp -a doc/biew.1 $RPM_BUILD_ROOT%{_mandir}/man1
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc doc/*.gz
+%doc doc/*txt doc/*.en
+%lang(ru) %doc doc/*.ru
%attr(755,root,root) %{_bindir}/biew
-%{_libdir}/biew
+%{_datadir}/%{name}
+%{_mandir}/man1/biew*