3 %bcond_without tests # build without tests
5 Summary: Cross-assembler for the 6502 and 65816 CPUs (and derivatives)
10 Group: Development/Languages
11 Source0: https://www.floodgap.com/retrotech/xa/dists/%{name}-%{version}.tar.gz
12 # Source0-md5: f533c3d36fcedcbca3b61a90ded6f37f
13 URL: https://www.floodgap.com/retrotech/xa/
14 %{?with_tests:BuildRequires: perl}
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Cross-assembler for the 6502 and 65816 CPUs (and derivatives). xa is a
19 small, fast, portable two-pass assembler that compiles under most ANSI
27 CFLAGS="%{rpmcflags}" \
28 LDFLAGS="%{rpmldflags}"
30 %{?with_tests:%{__make} -j1 test}
33 rm -rf $RPM_BUILD_ROOT
36 DESTDIR=$RPM_BUILD_ROOT%{_prefix}
39 rm -rf $RPM_BUILD_ROOT
42 %defattr(644,root,root,755)
43 %doc ChangeLog README.1st TODO
44 %attr(755,root,root) %{_bindir}/file65
45 %attr(755,root,root) %{_bindir}/ldo65
46 %attr(755,root,root) %{_bindir}/printcbm
47 %attr(755,root,root) %{_bindir}/reloc65
48 %attr(755,root,root) %{_bindir}/uncpk
49 %attr(755,root,root) %{_bindir}/xa
50 %{_mandir}/man1/file65.1*
51 %{_mandir}/man1/ldo65.1*
52 %{_mandir}/man1/printcbm.1*
53 %{_mandir}/man1/reloc65.1*
54 %{_mandir}/man1/uncpk.1*