mirror of
https://abf.rosa.ru/djam/fasm.git
synced 2025-02-23 15:52:54 +00:00
Imported from SRPM
This commit is contained in:
commit
73ac634cbb
3 changed files with 58 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
sources:
|
||||||
|
fasm-1.71.62.tgz: a22d0622c414673750d3302934594c57d368c79e
|
2
fasm.rpmlintrc
Normal file
2
fasm.rpmlintrc
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
addFilter("E: standard-dir-owned-by-package")
|
||||||
|
addFilter("E: missing-PT_GNU_STACK-section")
|
54
fasm.spec
Normal file
54
fasm.spec
Normal file
|
@ -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}
|
Loading…
Add table
Reference in a new issue