# # Conditional build: %bcond_without bootstrap # don't use included binary # Summary: Flat asembler Summary(pl.UTF-8): "Płaski" assembler Name: fasm Version: 1.66 Release: 1 License: distributable Group: Development/Tools Source0: http://flatassembler.net/%{name}-%{version}.tgz # Source0-md5: f5cb8e91bfc53d0a1102790a64c80153 URL: http://flatassembler.net/ %if %{without bootstrap} BuildRequires: fasm %endif ExclusiveArch: %{ix86} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description The flat assembler is a fast and efficient self-assembling 80x86 assembler for DOS, Windows and Linux operating systems. Currently it supports all 8086-80486/Pentium instructions with MMX, SSE, SSE2, SSE3 and 3DNow! extensions, can produce output in binary, MZ, PE, COFF or ELF format. It includes the powerful but easy to use macroinstruction support and does multiple passes to optimize the instruction codes for size. The flat assembler is self-compilable and the full source code is included. %description -l pl.UTF-8 Płaski asembler jest szybkim i efektywnym, samo-asemblujący się asemblerem 80x86 dla systemów DOS, Windows i Linux. Aktualnie obsługuje wszystkie instrukcje 8086-80486/Pentium z rozszerzeniami MMX, SSE, SSE2, SSE3 i 3DNow!, może produkować programy w formacie binarnym, MZ, PE, COFF lub ELF. Zawiera potężne, ale proste wsparcie dla makroinstrukcji oraz wielokrotnie optymalizuje kod dla rozmiaru. Płaski asembler potrafi sam się skompilować oraz zawiera pełen kod źródłowy. %prep %setup -q -n %{name} %build %if %{without bootstrap} ASM=%{name} %else ASM=../../%{name} %endif cd source/Linux $ASM %{name}.asm chmod +x %{name} %install rm -rf $RPM_BUILD_ROOT install -D source/Linux/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc *.txt %attr(755,root,root) %{_bindir}/*