2 # SPEC file for the cc65 C compiler and RedHat 7.x
4 # 03/08/2001, Ullrich von Bassewitz (uz@cc65.org)
7 ###############################################################################
9 ###############################################################################
11 Summary: Crosscompiler/Crossassembler for 6502 systems
14 %define version 2.11.0
17 License: Freeware with exceptions - see docs
18 Group: Development/Languages
19 Source: ftp://ftp.musoftware.de/uz/cc65/%{name}-sources-%{version}.tar.bz2
20 Vendor: MU Softwareentwicklung
21 Packager: Ullrich von Bassewitz <uz@musoftware.de>
22 URL: http://www.cc65.org/
25 BuildRequires: sgml-tools
27 BuildRoot: /var/tmp/%{name}-%{version}
30 A C crosscompiler for 6502 systems, including a macroassembler that
31 supports 6502, 65SC02 and 65816 CPUs, a linker, an archiver and some
32 other tools. To create programs for one of the supported target
33 machines, you have to install at least one of the library packages.
36 %defattr(644,root,root,755)
41 %attr(755,root,root) /usr/bin/ar65
42 %attr(755,root,root) /usr/bin/ca65
43 %attr(755,root,root) /usr/bin/ca65html
44 %attr(755,root,root) /usr/bin/cc65
45 %attr(755,root,root) /usr/bin/cl65
46 %attr(755,root,root) /usr/bin/co65
47 %attr(755,root,root) /usr/bin/da65
48 %attr(755,root,root) /usr/bin/ld65
49 %attr(755,root,root) /usr/bin/od65
50 %attr(755,root,root) %dir /usr/lib/cc65
51 %attr(755,root,root) %dir /usr/lib/cc65/emd
52 %attr(755,root,root) %dir /usr/lib/cc65/joy
53 %attr(755,root,root) %dir /usr/lib/cc65/lib
54 %attr(755,root,root) %dir /usr/lib/cc65/tgi
55 %attr(755,root,root) %dir /usr/lib/cc65/include
56 %attr(644,root,root) /usr/lib/cc65/include/*.h
57 %attr(755,root,root) %dir /usr/lib/cc65/include/em
58 %attr(644,root,root) /usr/lib/cc65/include/em/*.h
59 %attr(755,root,root) %dir /usr/lib/cc65/include/joystick
60 %attr(644,root,root) /usr/lib/cc65/include/joystick/*.h
61 %attr(755,root,root) %dir /usr/lib/cc65/include/mouse
62 %attr(644,root,root) /usr/lib/cc65/include/mouse/*.h
63 %attr(755,root,root) %dir /usr/lib/cc65/include/sys
64 %attr(644,root,root) /usr/lib/cc65/include/sys/*.h
65 %attr(755,root,root) %dir /usr/lib/cc65/include/tgi
66 %attr(644,root,root) /usr/lib/cc65/include/tgi/*.h
67 %attr(755,root,root) %dir /usr/lib/cc65/asminc
68 %attr(644,root,root) /usr/lib/cc65/asminc/*.inc
72 ###############################################################################
73 # Documentation subpackage #
74 ###############################################################################
78 Requires: %{name} = %{version}
80 Summary: Documentation for the cc65 C compiler
81 Group: Development/Languages
84 This package contains the documentation for the cc65 C compiler, mostly
85 in HTML format. Other formats can be generated from the sources.
93 %doc src/ld65/cfg/*.cfg
97 ###############################################################################
98 # Apple ][ subpackage #
99 ###############################################################################
102 Requires: %{name} = %{version}
104 Summary: Apple ][ specific libraries and headers for the cc65 compiler.
105 Group: Development/Languages
108 This package contains the header files and libraries needed to write
109 programs for the Apple ][ using the cc65 crosscompiler.
112 %attr(644,root,root) /usr/lib/cc65/lib/apple2.lib
113 %attr(644,root,root) /usr/lib/cc65/emd/a2.*.emd
114 %attr(644,root,root) /usr/lib/cc65/joy/a2.*.joy
115 %attr(644,root,root) /usr/lib/cc65/mou/a2.*.mou
116 %attr(644,root,root) /usr/lib/cc65/ser/a2.*.ser
117 %attr(644,root,root) /usr/lib/cc65/tgi/a2.*.tgi
121 ###############################################################################
122 # Apple //e subpackage #
123 ###############################################################################
126 Requires: %{name} = %{version}
128 Summary: Apple //e specific libraries and headers for the cc65 compiler.
129 Group: Development/Languages
131 %description apple2enh
132 This package contains the header files and libraries needed to write
133 programs for the Apple //e using the cc65 crosscompiler.
136 %attr(644,root,root) /usr/lib/cc65/lib/apple2enh.lib
137 %attr(644,root,root) /usr/lib/cc65/emd/a2e.*.emd
138 %attr(644,root,root) /usr/lib/cc65/joy/a2e.*.joy
139 %attr(644,root,root) /usr/lib/cc65/mou/a2e.*.mou
140 %attr(644,root,root) /usr/lib/cc65/ser/a2e.*.ser
141 %attr(644,root,root) /usr/lib/cc65/tgi/a2e.*.tgi
145 ###############################################################################
147 ###############################################################################
150 Requires: %{name} = %{version}
152 Summary: Atari specific libraries and headers for the cc65 compiler.
153 Group: Development/Languages
156 This package contains the header files and libraries needed to write
157 programs for the 8 bit Atari machines using the cc65 crosscompiler.
160 %attr(644,root,root) /usr/lib/cc65/lib/atari.lib
161 %attr(644,root,root) /usr/lib/cc65/joy/atari*.joy
165 ###############################################################################
166 # Oric Atmos subpackage #
167 ###############################################################################
170 Requires: %{name} = %{version}
172 Summary: Oric Atmos specific libraries and headers for the cc65 compiler.
173 Group: Development/Languages
176 This package contains the header files and libraries needed to write
177 programs for the Oric Atmos using the cc65 crosscompiler.
180 %attr(644,root,root) /usr/lib/cc65/lib/atmos.lib
181 %attr(644,root,root) /usr/lib/cc65/tgi/atmos-*.tgi
185 ###############################################################################
187 ###############################################################################
190 Requires: %{name} = %{version}
192 Summary: C128 specific libraries and headers for the cc65 compiler.
193 Group: Development/Languages
196 This package contains the header files and libraries needed to write
197 programs for the Commodore C128 using the cc65 crosscompiler.
200 %attr(644,root,root) /usr/lib/cc65/lib/c128.lib
201 %attr(644,root,root) /usr/lib/cc65/emd/c128-*.emd
202 %attr(644,root,root) /usr/lib/cc65/joy/c128-*.joy
203 %attr(644,root,root) /usr/lib/cc65/mou/c128-*.mou
204 %attr(644,root,root) /usr/lib/cc65/ser/c128-*.ser
205 %attr(644,root,root) /usr/lib/cc65/tgi/c128-*.tgi
209 ###############################################################################
211 ###############################################################################
214 Requires: %{name} = %{version}
216 Summary: C16/116 specific libraries and headers for the cc65 compiler.
217 Group: Development/Languages
220 This package contains the header files and libraries needed to write
221 programs for the Commodore C16/116 using the cc65 crosscompiler.
224 %attr(644,root,root) /usr/lib/cc65/lib/c16.lib
225 %attr(644,root,root) /usr/lib/cc65/emd/c16-*.emd
226 %attr(644,root,root) /usr/lib/cc65/joy/c16-*.joy
230 ###############################################################################
232 ###############################################################################
235 Requires: %{name} = %{version}
237 Summary: C64 specific libraries and headers for the cc65 compiler.
238 Group: Development/Languages
241 This package contains the header files and libraries needed to write
242 programs for the Commodore C64 using the cc65 crosscompiler.
245 %attr(644,root,root) /usr/lib/cc65/lib/c64.lib
246 %attr(644,root,root) /usr/lib/cc65/emd/dtv-*.emd
247 %attr(644,root,root) /usr/lib/cc65/emd/c64-*.emd
248 %attr(644,root,root) /usr/lib/cc65/joy/c64-*.joy
249 %attr(644,root,root) /usr/lib/cc65/mou/c64-*.mou
250 %attr(644,root,root) /usr/lib/cc65/ser/c64-*.ser
251 %attr(644,root,root) /usr/lib/cc65/tgi/c64-*.tgi
255 ###############################################################################
256 # CBM510 subpackage #
257 ###############################################################################
260 Requires: %{name} = %{version}
262 Summary: CBM 510 specific libraries and headers for the cc65 compiler.
263 Group: Development/Languages
266 This package contains the header files and libraries needed to write
267 programs for the Commodore CBM 510 (aka P500) using the cc65
271 %attr(644,root,root) /usr/lib/cc65/lib/cbm510.lib
272 %attr(644,root,root) /usr/lib/cc65/emd/cbm510-*.emd
273 %attr(644,root,root) /usr/lib/cc65/joy/cbm510-*.joy
274 %attr(644,root,root) /usr/lib/cc65/ser/cbm510-*.ser
278 ###############################################################################
279 # CBM610 subpackage #
280 ###############################################################################
283 Requires: %{name} = %{version}
285 Summary: CBM 610 specific libraries and headers for the cc65 compiler.
286 Group: Development/Languages
289 This package contains the header files and libraries needed to write
290 programs for the Commodore PET-II (CBM600/700) family of computers using
291 the cc65 crosscompiler.
294 %attr(644,root,root) /usr/lib/cc65/lib/cbm610.lib
295 %attr(644,root,root) /usr/lib/cc65/emd/cbm610-*.emd
296 %attr(644,root,root) /usr/lib/cc65/ser/cbm610-*.ser
300 ###############################################################################
302 ###############################################################################
305 Requires: %{name} = %{version}
307 Summary: GEOS specific libraries and headers for the cc65 compiler.
308 Group: Development/Languages
311 This package contains the header files and libraries needed to write
312 GEOS programs for the C64/C128 using the cc65 crosscompiler.
315 %attr(755,root,root) /usr/bin/grc
316 %attr(644,root,root) /usr/lib/cc65/lib/geos.lib
317 %attr(755,root,root) %dir /usr/lib/cc65/include/geos
318 %attr(644,root,root) /usr/lib/cc65/include/geos/*.h
319 %attr(644,root,root) /usr/lib/cc65/emd/geos-*.emd
320 %attr(644,root,root) /usr/lib/cc65/joy/geos-*.joy
321 %attr(644,root,root) /usr/lib/cc65/tgi/geos-*.tgi
325 ###############################################################################
327 ###############################################################################
330 Requires: %{name} = %{version}
332 Summary: Lynx specific libraries and headers for the cc65 compiler.
333 Group: Development/Languages
336 This package contains the header files and libraries needed to write
337 programs for the Lynx Game Console using the cc65 crosscompiler.
340 %attr(644,root,root) /usr/lib/cc65/lib/lynx.lib
341 %attr(644,root,root) /usr/lib/cc65/joy/lynx-*.joy
342 %attr(644,root,root) /usr/lib/cc65/tgi/lynx-*.tgi
346 ###############################################################################
348 ###############################################################################
351 Requires: %{name} = %{version}
353 Summary: NES specific libraries and headers for the cc65 compiler.
354 Group: Development/Languages
357 This package contains the header files and libraries needed to write
358 programs for the Nintendo Entertainment System using the cc65
362 %attr(644,root,root) /usr/lib/cc65/lib/nes.lib
363 %attr(644,root,root) /usr/lib/cc65/joy/nes-*.joy
367 ###############################################################################
369 ###############################################################################
372 Requires: %{name} = %{version}
374 Summary: PET specific libraries and headers for the cc65 compiler.
375 Group: Development/Languages
378 This package contains the header files and libraries needed to write
379 programs for the Commodore PET family of computers using the cc65
383 %attr(644,root,root) /usr/lib/cc65/lib/pet.lib
384 %attr(644,root,root) /usr/lib/cc65/joy/pet-*.joy
388 ###############################################################################
389 # Plus/4 subpackage #
390 ###############################################################################
393 Requires: %{name} = %{version}
395 Summary: Plus/4 specific libraries and headers for the cc65 compiler.
396 Group: Development/Languages
399 This package contains the header files and libraries needed to write
400 programs for the Commodore Plus/4 and C16/116 using the cc65
404 %attr(644,root,root) /usr/lib/cc65/lib/plus4.lib
405 %attr(644,root,root) /usr/lib/cc65/joy/plus4-*.joy
406 %attr(644,root,root) /usr/lib/cc65/ser/plus4-*.ser
410 ###############################################################################
411 # Supervision subpackage #
412 ###############################################################################
415 Requires: %{name} = %{version}
417 Summary: Supervision specific libraries and headers for the cc65 compiler.
418 Group: Development/Languages
420 %description supervision
421 This package contains the header files and libraries needed to write
422 programs for the Supervision Game console using the cc65 crosscompiler.
425 %attr(644,root,root) /usr/lib/cc65/lib/supervision.lib
429 ###############################################################################
431 ###############################################################################
434 Requires: %{name} = %{version}
436 Summary: VIC20 specific libraries and headers for the cc65 compiler.
437 Group: Development/Languages
440 This package contains the header files and libraries needed to write
441 programs for the Commodore VIC20 using the cc65 crosscompiler.
444 %attr(644,root,root) /usr/lib/cc65/lib/vic20.lib
445 %attr(644,root,root) /usr/lib/cc65/joy/vic20-*.joy
449 ###############################################################################
451 ###############################################################################
461 make -C src -f make/gcc.mak
463 make -C libsrc -s zap all
469 mkdir -p $RPM_BUILD_ROOT/usr/{bin,lib/cc65/{asminc,emd,include/{em,geos,joystick,mouse,sys,tgi},joy,lib,mou,ser,tgi}}
472 install -s -m 755 src/ar65/ar65 $RPM_BUILD_ROOT/usr/bin
473 install -s -m 755 src/ca65/ca65 $RPM_BUILD_ROOT/usr/bin
474 install -m 755 src/ca65html/ca65html $RPM_BUILD_ROOT/usr/bin
475 install -s -m 755 src/cc65/cc65 $RPM_BUILD_ROOT/usr/bin
476 install -s -m 755 src/cl65/cl65 $RPM_BUILD_ROOT/usr/bin
477 install -s -m 755 src/co65/co65 $RPM_BUILD_ROOT/usr/bin
478 install -s -m 755 src/da65/da65 $RPM_BUILD_ROOT/usr/bin
479 install -s -m 755 src/grc/grc $RPM_BUILD_ROOT/usr/bin
480 install -s -m 755 src/ld65/ld65 $RPM_BUILD_ROOT/usr/bin
481 install -s -m 755 src/od65/od65 $RPM_BUILD_ROOT/usr/bin
482 # Libraries and includes
483 install -m 644 libsrc/*.lib $RPM_BUILD_ROOT/usr/lib/cc65/lib
484 install -m 644 include/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include
485 install -m 644 include/geos/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/geos
486 install -m 644 include/em/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/em
487 install -m 644 include/joystick/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/joystick
488 install -m 644 include/mouse/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/mouse
489 install -m 644 include/sys/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/sys
490 install -m 644 include/tgi/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/tgi
491 install -m 644 asminc/*.inc $RPM_BUILD_ROOT/usr/lib/cc65/asminc
494 install -m 644 libsrc/*.emd $RPM_BUILD_ROOT/usr/lib/cc65/emd
495 install -m 644 libsrc/*.joy $RPM_BUILD_ROOT/usr/lib/cc65/joy
496 install -m 644 libsrc/*.mou $RPM_BUILD_ROOT/usr/lib/cc65/mou
497 install -m 644 libsrc/*.ser $RPM_BUILD_ROOT/usr/lib/cc65/ser
498 install -m 644 libsrc/*.tgi $RPM_BUILD_ROOT/usr/lib/cc65/tgi
502 rm -rf $RPM_BUILD_ROOT
507 * Thu Dec 23 2003 Ullrich von Bassewitz <uz@cc65.org>
508 - Changelog is now in CVS