-Summary: BIEW is Binary vIEWer and editor
+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: 520
+Version: 562
Release: 1
License: GPL
Group: Applications/Editors
-Group(pl): Aplikacje/Edytory
-Source0: ftp://biew.sourceforge.net/pub/biew/%{name}-%{version}.tar.bz2
-Patch0: biew-CURSES.patch
+Source0: http://dl.sourceforge.net/biew/%{name}%{version}.tar.bz2
+# Source0-md5: 622fb1f02a6d921b273f0a39407f8e7d
URL: http://biew.sourceforge.net/
-BuildRequires: ncurses-devel
-Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRequires: ncurses-devel
+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
-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)
+BIEW (Binary vIEWer) jest zaawansowan± przegl±dark± i edytorem plików
+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).
-%prep
+%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.
-%setup -q
-%patch0 -p1
+%prep
+%setup -q
%build
%ifarch %{ix86}
target=generic
%endif
-%{__make} TARGET_PLATFORM=$target TARGET_OS=%{_target_os} compilation=advenced
+%{__make} \
+ HOST_CFLAGS="%{rpmcflags}" \
+ TARGET_PLATFORM=$target \
+ TARGET_OS=unix \
+ 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},%{_libdir}/biew,%{_mandir}/man1}
+
install biew $RPM_BUILD_ROOT%{_bindir}
-install bin_rc/biew.hlp $RPM_BUILD_ROOT%{_libdir}/biew/
-install bin_rc/standard.skn $RPM_BUILD_ROOT%{_libdir}/biew/
-gzip -9nf doc/*txt doc/*.en doc/*.ru
+install bin_rc/{biew.hlp,skn/*} $RPM_BUILD_ROOT%{_libdir}/biew
+install doc/biew.1 $RPM_BUILD_ROOT%{_mandir}/man1
-%clean
+%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%files
%defattr(644,root,root,755)
+%doc doc/*txt doc/*.en
+%lang(ru) %doc doc/*.ru
%attr(755,root,root) %{_bindir}/biew
-%dir %{_libdir}/biew
-%{_libdir}/biew/*
-%doc doc/biew_en.txt* doc/release.txt* doc/unix.txt*
+%{_libdir}/biew
+%{_mandir}/man1/biew*