File asmc.spec of Package asmc

#
# spec file for package asmc
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           asmc
Version:        2.33.65
Release:        0
Summary:        Asmc Macro Assembler
License:        GPL-2.0
Group:          Development/Languages/Other
URL:            https://github.com/nidud/asmc
Source:         https://github.com/nidud/asmc/archive/refs/heads/master.zip#/%{name}-master.zip
BuildRequires:  unzip
ExclusiveArch:  x86_64 %ix86

%description
Asmc Macro Assembler for Linux

%prep
%autosetup -n %{name}-master

%build
cd source/asmc/gcc
%make_build asmc
%make_build asmc64

%install
%ifarch x86_64
install -Dm 755 source/asmc/gcc/asmc64 %{buildroot}%{_bindir}/asmc
%else
install -Dm 755 source/asmc/gcc/asmc %{buildroot}%{_bindir}/asmc
%endif

%files
%license LICENSE
%{_bindir}/asmc

%changelog
openSUSE Build Service is sponsored by