]>
Commit | Line | Data |
---|---|---|
38c6924f JR |
1 | # |
2 | # Conditional build: | |
1e76beaa | 3 | %bcond_without tests # testing |
38c6924f JR |
4 | # |
5 | Summary: Cross-assembler for the 6502 and 65816 CPUs (and derivatives) | |
1e76beaa | 6 | Summary(pl.UTF-8): Asembler skrośny dla procesorów 6502 oraz 65816 (i pochodnych) |
38c6924f | 7 | Name: xa |
1e76beaa | 8 | Version: 2.3.14 |
38c6924f | 9 | Release: 1 |
1e76beaa | 10 | License: GPL v2+ |
38c6924f JR |
11 | Group: Development/Languages |
12 | Source0: https://www.floodgap.com/retrotech/xa/dists/%{name}-%{version}.tar.gz | |
1e76beaa | 13 | # Source0-md5: c708214bf5d79a6c9ac98424bf7840a5 |
38c6924f | 14 | URL: https://www.floodgap.com/retrotech/xa/ |
1e76beaa | 15 | %{?with_tests:BuildRequires: perl-base} |
38c6924f JR |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
19 | Cross-assembler for the 6502 and 65816 CPUs (and derivatives). xa is a | |
20 | small, fast, portable two-pass assembler that compiles under most ANSI | |
21 | C compilers. | |
22 | ||
1e76beaa JB |
23 | %description -l pl.UTF-8 |
24 | Asembler skrośny dla procesorów 6502 oraz 65816 (i pochodnych). Jest | |
25 | to mały, szybki, przenośny, dwuprzebiegowy asembler, dający się | |
26 | skompilować większością kompilatorów ANSI C. | |
27 | ||
38c6924f JR |
28 | %prep |
29 | %setup -q | |
30 | ||
31 | %build | |
32 | %{__make} \ | |
1e76beaa JB |
33 | CC="%{__cc}" \ |
34 | LD="%{__cc}" \ | |
35 | CFLAGS="%{rpmcflags} %{rpmcppflags}" \ | |
38c6924f JR |
36 | LDFLAGS="%{rpmldflags}" |
37 | ||
38 | %{?with_tests:%{__make} -j1 test} | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %{__make} install \ | |
44 | DESTDIR=$RPM_BUILD_ROOT%{_prefix} | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | %doc ChangeLog README.1st TODO | |
52 | %attr(755,root,root) %{_bindir}/file65 | |
53 | %attr(755,root,root) %{_bindir}/ldo65 | |
54 | %attr(755,root,root) %{_bindir}/printcbm | |
55 | %attr(755,root,root) %{_bindir}/reloc65 | |
56 | %attr(755,root,root) %{_bindir}/uncpk | |
57 | %attr(755,root,root) %{_bindir}/xa | |
58 | %{_mandir}/man1/file65.1* | |
59 | %{_mandir}/man1/ldo65.1* | |
60 | %{_mandir}/man1/printcbm.1* | |
61 | %{_mandir}/man1/reloc65.1* | |
62 | %{_mandir}/man1/uncpk.1* | |
63 | %{_mandir}/man1/xa.1* |