File xa.spec of Package xa
#
# spec file for package xa
#
# Copyright (c) 2023 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: xa
Version: 2.3.14
Release: 0
Summary: Crossassembler for 6502 systems
License: GPL-2.0-only
Group: Development/Tools/Other
URL: https://www.floodgap.com/retrotech/xa/
Source: https://www.floodgap.com/retrotech/xa/dists/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE - xa-install-permissions.patch - fix spurious-executable-perm
Patch0: %{name}-install-permissions.patch
BuildRequires: gcc-c++
%description
xa is a high-speed, two-pass portable cross-assembler.
It understands mnemonics and generates code for NMOS 6502s (such as 6502A,
6504, 6507, 6510, 7501, 8500, 8501, 8502 ...), CMOS 6502s (65C02 and Rockwell
R65C02) and the 65816.
Key amongst its features:
* C-like preprocessor (and understands cpp for additional feature support)
* rich expression syntax and pseudo-op vocabulary
* multiple character sets
* binary linking
* supports o65 relocatable objects with a full linker and relocation suite,
as well as "bare" plain binary object files
* block structure for label scoping
xa's eventual companion disassembler is dxa, a moderately hacked-up version of
Marko Mäkelä's d65 disassembler. This is still alpha and is available as a
separate distribution until it is stabilized enough to be part of the xa suite.
%prep
%autosetup -p1
%build
%make_build
%install
make install DESTDIR=%{buildroot}%{_prefix}
%check
make test
%files
%{_bindir}/*
%{_mandir}/man1/*
%license COPYING
%doc ChangeLog README.1st TODO doc/*
%changelog