%define version 6.1.0 %define versrc 610 Name: biew Version: 6.1.0 Release: %mkrel 3 Summary: Console hex viewer/editor and disassembler License: GPLv2+ Group: File tools URL: http://biew.sourceforge.net Source: %{name}-%{versrc}.tar.bz2 #patch0 sent upstream (Kharec) Patch0: biew610-fix-str-fmt.patch BuildRoot: %_tmppath/%name-%version-buildroot ExclusiveArch: %ix86 %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 Athlon64/Prescott/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. Linux, Unix, QNX, BeOS, DOS, Win32, OS/2 versions are available. %prep %setup -q -n %{name}-%{versrc} %patch0 -p0 %build #we can't use %configure2_5x because we need the mm/xmm registers CFLAGS=$RPM_OPT_FLAGS" -mmmx -msse" CXXFLAGS=$RPM_OPT_FLASG" -mmmx -msse" ./configure --enable-curses --libdir=%{_libdir} --prefix=%_prefix make TARGET_OS=linux USE_MOUSE=n PREFIX=%_prefix %install rm -rf %buildroot install -d %buildroot{%{_bindir},%{_datadir}/%{name},%{_mandir}/man1} install -m 755 biew %buildroot%{_bindir}/%{name} cp -a bin_rc/{xlt,skn,*.hlp} %buildroot%{_datadir}/%{name} install doc/biew.1 %buildroot%{_mandir}/man1 %clean rm -rf %buildroot %files %defattr(-,root,root) %doc doc/biew_en.txt doc/biew_ru.txt doc/unix.txt doc/release.txt %{_bindir}/%{name} %{_datadir}/%{name}/* %{_mandir}/man?/%{name}.1* %changelog * Fri Jan 11 2013 umeabot <umeabot> 6.1.0-3.mga3 + Revision: 346901 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Jan 09 2013 boklm <boklm> 6.1.0-2.mga3 + Revision: 343936 - remove unused macros * Sun Jun 12 2011 kharec <kharec> 6.1.0-1.mga2 + Revision: 104890 - imported package biew