From 73ac634cbb92f9b9d87aec089663bcddf92f9271 Mon Sep 17 00:00:00 2001 From: Sergey Zhemoitel Date: Thu, 15 Jun 2017 10:38:52 +0300 Subject: [PATCH] Imported from SRPM --- .abf.yml | 2 ++ fasm.rpmlintrc | 2 ++ fasm.spec | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 .abf.yml create mode 100644 fasm.rpmlintrc create mode 100644 fasm.spec diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..7906e33 --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + fasm-1.71.62.tgz: a22d0622c414673750d3302934594c57d368c79e diff --git a/fasm.rpmlintrc b/fasm.rpmlintrc new file mode 100644 index 0000000..ff60731 --- /dev/null +++ b/fasm.rpmlintrc @@ -0,0 +1,2 @@ +addFilter("E: standard-dir-owned-by-package") +addFilter("E: missing-PT_GNU_STACK-section") diff --git a/fasm.spec b/fasm.spec new file mode 100644 index 0000000..cdb176c --- /dev/null +++ b/fasm.spec @@ -0,0 +1,54 @@ +%define debug %nil +%define debug_package %nil + +Name: fasm +Version: 1.71.62 +Release: 1 +Summary: Flat Assembler +URL: http://flatassembler.net/ +License: BSD +Group: Development/Other +Source0: http://flatassembler.net/%{name}-%{version}.tgz +Source100: %{name}.rpmlintrc + +%description +Flat assembler is fast self-assembling assembler for DOS, +Windows and Linux operating systems. It was designed primarily +for the assembly of x86 instructions and it supports x86 and +x86-64 instructions sets with MMX, 3DNow!, SSE up to SSE4, AVX, +AVX2, XOP and AVX-512 extensions and can produce output in plain +binary, MZ, PE, COFF or ELF format. + +%prep +%setup -q -n %{name} +sed '/thanks to/d' -i examples/elfexe/hello64.asm +find examples/ -type f -perm 755 -exec rm -f {} \; +find examples/ -type f -name "*.o" -exec rm -f {} \; + +%build +%ifarch x86_64 +pushd source/Linux/x64 +../../../fasm.x64 fasm.asm +popd +%else +pushd source/Linux +../../fasm fasm.asm +popd +%endif + +%install +install -d %{buildroot}%{_bindir} + +%ifarch x86_64 +pushd source/Linux/x64 +install -Dm0755 %{name} %{buildroot}%{_bindir} +popd +%else +pushd source/Linux +install -Dm0755 %{name} %{buildroot}%{_bindir} +popd +%endif + +%files +%doc *.txt examples/ +%{_bindir}/%{name} \ No newline at end of file