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.10.5
17 Copyright: 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>
24 BuildRequires: sgml-tools
26 BuildRoot: /var/tmp/%{name}-%{version}
29 A C crosscompiler for 6502 systems, including a macroassembler that
30 supports 6502, 65SC02 and 65816 CPUs, a linker, an archiver and some
31 other tools. To create programs for one of the supported target
32 machines, you have to install at least one of the library packages.
35 %defattr(644,root,root,755)
40 %attr(755,root,root) /usr/bin/ar65
41 %attr(755,root,root) /usr/bin/ca65
42 %attr(755,root,root) /usr/bin/ca65html
43 %attr(755,root,root) /usr/bin/cc65
44 %attr(755,root,root) /usr/bin/cl65
45 %attr(755,root,root) /usr/bin/co65
46 %attr(755,root,root) /usr/bin/da65
47 %attr(755,root,root) /usr/bin/ld65
48 %attr(755,root,root) /usr/bin/od65
49 %attr(755,root,root) %dir /usr/lib/cc65
50 %attr(755,root,root) %dir /usr/lib/cc65/emd
51 %attr(755,root,root) %dir /usr/lib/cc65/joy
52 %attr(755,root,root) %dir /usr/lib/cc65/lib
53 %attr(755,root,root) %dir /usr/lib/cc65/tgi
54 %attr(755,root,root) %dir /usr/lib/cc65/include
55 %attr(644,root,root) /usr/lib/cc65/include/*.h
56 %attr(755,root,root) %dir /usr/lib/cc65/include/em
57 %attr(644,root,root) /usr/lib/cc65/include/em/*.h
58 %attr(755,root,root) %dir /usr/lib/cc65/include/joystick
59 %attr(644,root,root) /usr/lib/cc65/include/joystick/*.h
60 %attr(755,root,root) %dir /usr/lib/cc65/include/mouse
61 %attr(644,root,root) /usr/lib/cc65/include/mouse/*.h
62 %attr(755,root,root) %dir /usr/lib/cc65/include/sys
63 %attr(644,root,root) /usr/lib/cc65/include/sys/*.h
64 %attr(755,root,root) %dir /usr/lib/cc65/include/tgi
65 %attr(644,root,root) /usr/lib/cc65/include/tgi/*.h
66 %attr(755,root,root) %dir /usr/lib/cc65/asminc
67 %attr(644,root,root) /usr/lib/cc65/asminc/*.inc
71 ###############################################################################
72 # Documentation subpackage #
73 ###############################################################################
77 Requires: %{name} = %{version}
79 Summary: Documentation for the cc65 C compiler
80 Group: Development/Languages
83 This package contains the documentation for the cc65 C compiler, mostly
84 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/lib/apple2.o
114 %attr(644,root,root) /usr/lib/cc65/emd/a2.*.emd
115 %attr(644,root,root) /usr/lib/cc65/joy/a2.*.joy
116 %attr(644,root,root) /usr/lib/cc65/tgi/a2.*.tgi
120 ###############################################################################
121 # Apple //e subpackage #
122 ###############################################################################
125 Requires: %{name} = %{version}
127 Summary: Apple //e specific libraries and headers for the cc65 compiler.
128 Group: Development/Languages
130 %description apple2enh
131 This package contains the header files and libraries needed to write
132 programs for the Apple //e using the cc65 crosscompiler.
135 %attr(644,root,root) /usr/lib/cc65/lib/apple2enh.lib
136 %attr(644,root,root) /usr/lib/cc65/lib/apple2enh.o
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/tgi/a2e.*.tgi
143 ###############################################################################
145 ###############################################################################
148 Requires: %{name} = %{version}
150 Summary: Atari specific libraries and headers for the cc65 compiler.
151 Group: Development/Languages
154 This package contains the header files and libraries needed to write
155 programs for the 8 bit Atari machines using the cc65 crosscompiler.
158 %attr(644,root,root) /usr/lib/cc65/lib/atari.lib
159 %attr(644,root,root) /usr/lib/cc65/lib/atari.o
160 %attr(644,root,root) /usr/lib/cc65/joy/atari*.joy
164 ###############################################################################
165 # Oric Atmos subpackage #
166 ###############################################################################
169 Requires: %{name} = %{version}
171 Summary: Oric Atmos specific libraries and headers for the cc65 compiler.
172 Group: Development/Languages
175 This package contains the header files and libraries needed to write
176 programs for the Oric Atmos using the cc65 crosscompiler.
179 %attr(644,root,root) /usr/lib/cc65/lib/atmos.lib
180 %attr(644,root,root) /usr/lib/cc65/lib/atmos.o
184 ###############################################################################
186 ###############################################################################
189 Requires: %{name} = %{version}
191 Summary: C128 specific libraries and headers for the cc65 compiler.
192 Group: Development/Languages
195 This package contains the header files and libraries needed to write
196 programs for the Commodore C128 using the cc65 crosscompiler.
199 %attr(644,root,root) /usr/lib/cc65/lib/c128.lib
200 %attr(644,root,root) /usr/lib/cc65/lib/c128.o
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/lib/c16.o
226 %attr(644,root,root) /usr/lib/cc65/emd/c16-*.emd
227 %attr(644,root,root) /usr/lib/cc65/joy/c16-*.joy
231 ###############################################################################
233 ###############################################################################
236 Requires: %{name} = %{version}
238 Summary: C64 specific libraries and headers for the cc65 compiler.
239 Group: Development/Languages
242 This package contains the header files and libraries needed to write
243 programs for the Commodore C64 using the cc65 crosscompiler.
246 %attr(644,root,root) /usr/lib/cc65/lib/c64.lib
247 %attr(644,root,root) /usr/lib/cc65/lib/c64.o
248 %attr(644,root,root) /usr/lib/cc65/emd/c64-*.emd
249 %attr(644,root,root) /usr/lib/cc65/joy/c64-*.joy
250 %attr(644,root,root) /usr/lib/cc65/mou/c64-*.mou
251 %attr(644,root,root) /usr/lib/cc65/ser/c64-*.ser
252 %attr(644,root,root) /usr/lib/cc65/tgi/c64-*.tgi
256 ###############################################################################
257 # CBM510 subpackage #
258 ###############################################################################
261 Requires: %{name} = %{version}
263 Summary: CBM 510 specific libraries and headers for the cc65 compiler.
264 Group: Development/Languages
267 This package contains the header files and libraries needed to write
268 programs for the Commodore CBM 510 (aka P500) using the cc65
272 %attr(644,root,root) /usr/lib/cc65/lib/cbm510.lib
273 %attr(644,root,root) /usr/lib/cc65/lib/cbm510.o
274 %attr(644,root,root) /usr/lib/cc65/emd/cbm510-*.emd
275 %attr(644,root,root) /usr/lib/cc65/joy/cbm510-*.joy
276 %attr(644,root,root) /usr/lib/cc65/ser/cbm510-*.ser
280 ###############################################################################
281 # CBM610 subpackage #
282 ###############################################################################
285 Requires: %{name} = %{version}
287 Summary: CBM 610 specific libraries and headers for the cc65 compiler.
288 Group: Development/Languages
291 This package contains the header files and libraries needed to write
292 programs for the Commodore PET-II (CBM600/700) family of computers using
293 the cc65 crosscompiler.
296 %attr(644,root,root) /usr/lib/cc65/lib/cbm610.lib
297 %attr(644,root,root) /usr/lib/cc65/lib/cbm610.o
298 %attr(644,root,root) /usr/lib/cc65/emd/cbm610-*.emd
299 %attr(644,root,root) /usr/lib/cc65/ser/cbm610-*.ser
303 ###############################################################################
305 ###############################################################################
308 Requires: %{name} = %{version}
310 Summary: GEOS specific libraries and headers for the cc65 compiler.
311 Group: Development/Languages
314 This package contains the header files and libraries needed to write
315 GEOS programs for the C64/C128 using the cc65 crosscompiler.
318 %attr(755,root,root) /usr/bin/grc
319 %attr(644,root,root) /usr/lib/cc65/lib/geos.lib
320 %attr(644,root,root) /usr/lib/cc65/lib/geos.o
321 %attr(755,root,root) %dir /usr/lib/cc65/include/geos
322 %attr(644,root,root) /usr/lib/cc65/include/geos/*.h
323 %attr(644,root,root) /usr/lib/cc65/emd/geos-*.emd
324 %attr(644,root,root) /usr/lib/cc65/joy/geos-*.joy
325 %attr(644,root,root) /usr/lib/cc65/tgi/geos-*.tgi
329 ###############################################################################
331 ###############################################################################
334 Requires: %{name} = %{version}
336 Summary: NES specific libraries and headers for the cc65 compiler.
337 Group: Development/Languages
340 This package contains the header files and libraries needed to write
341 programs for the Nintendo Entertainment System using the cc65
345 %attr(644,root,root) /usr/lib/cc65/lib/nes.lib
346 %attr(644,root,root) /usr/lib/cc65/lib/nes.o
350 ###############################################################################
352 ###############################################################################
355 Requires: %{name} = %{version}
357 Summary: PET specific libraries and headers for the cc65 compiler.
358 Group: Development/Languages
361 This package contains the header files and libraries needed to write
362 programs for the Commodore PET family of computers using the cc65
366 %attr(644,root,root) /usr/lib/cc65/lib/pet.lib
367 %attr(644,root,root) /usr/lib/cc65/lib/pet.o
371 ###############################################################################
372 # Plus/4 subpackage #
373 ###############################################################################
376 Requires: %{name} = %{version}
378 Summary: Plus/4 specific libraries and headers for the cc65 compiler.
379 Group: Development/Languages
382 This package contains the header files and libraries needed to write
383 programs for the Commodore Plus/4 and C16/116 using the cc65
387 %attr(644,root,root) /usr/lib/cc65/lib/plus4.lib
388 %attr(644,root,root) /usr/lib/cc65/lib/plus4.o
389 %attr(644,root,root) /usr/lib/cc65/joy/plus4-*.joy
390 %attr(644,root,root) /usr/lib/cc65/ser/plus4-*.ser
394 ###############################################################################
395 # Supervision subpackage #
396 ###############################################################################
399 Requires: %{name} = %{version}
401 Summary: Supervision specific libraries and headers for the cc65 compiler.
402 Group: Development/Languages
404 %description supervision
405 This package contains the header files and libraries needed to write
406 programs for the Supervision Game console using the cc65 crosscompiler.
409 %attr(644,root,root) /usr/lib/cc65/lib/supervision.lib
410 %attr(644,root,root) /usr/lib/cc65/lib/supervision.o
414 ###############################################################################
416 ###############################################################################
419 Requires: %{name} = %{version}
421 Summary: VIC20 specific libraries and headers for the cc65 compiler.
422 Group: Development/Languages
425 This package contains the header files and libraries needed to write
426 programs for the Commodore VIC20 using the cc65 crosscompiler.
429 %attr(644,root,root) /usr/lib/cc65/lib/vic20.lib
430 %attr(644,root,root) /usr/lib/cc65/lib/vic20.o
431 %attr(644,root,root) /usr/lib/cc65/joy/vic20-*.joy
435 ###############################################################################
437 ###############################################################################
447 make -C src -f make/gcc.mak
449 make -C libsrc -s zap all
455 mkdir -p $RPM_BUILD_ROOT/usr/{bin,lib/cc65/{asminc,emd,include/{em,geos,joystick,mouse,sys,tgi},joy,lib,mou,ser,tgi}}
458 install -s -m 755 src/ar65/ar65 $RPM_BUILD_ROOT/usr/bin
459 install -s -m 755 src/ca65/ca65 $RPM_BUILD_ROOT/usr/bin
460 install -s -m 755 src/ca65html/ca65html $RPM_BUILD_ROOT/usr/bin
461 install -s -m 755 src/cc65/cc65 $RPM_BUILD_ROOT/usr/bin
462 install -s -m 755 src/cl65/cl65 $RPM_BUILD_ROOT/usr/bin
463 install -s -m 755 src/co65/co65 $RPM_BUILD_ROOT/usr/bin
464 install -s -m 755 src/da65/da65 $RPM_BUILD_ROOT/usr/bin
465 install -s -m 755 src/grc/grc $RPM_BUILD_ROOT/usr/bin
466 install -s -m 755 src/ld65/ld65 $RPM_BUILD_ROOT/usr/bin
467 install -s -m 755 src/od65/od65 $RPM_BUILD_ROOT/usr/bin
468 # Libraries and includes
469 install -m 644 libsrc/*.lib libsrc/*.o $RPM_BUILD_ROOT/usr/lib/cc65/lib
470 install -m 644 include/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include
471 install -m 644 include/geos/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/geos
472 install -m 644 include/em/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/em
473 install -m 644 include/joystick/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/joystick
474 install -m 644 include/mouse/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/mouse
475 install -m 644 include/sys/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/sys
476 install -m 644 include/tgi/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/tgi
477 install -m 644 asminc/*.inc $RPM_BUILD_ROOT/usr/lib/cc65/asminc
480 install -m 644 libsrc/*.emd $RPM_BUILD_ROOT/usr/lib/cc65/emd
481 install -m 644 libsrc/*.joy $RPM_BUILD_ROOT/usr/lib/cc65/joy
482 install -m 644 libsrc/*.mou $RPM_BUILD_ROOT/usr/lib/cc65/mou
483 install -m 644 libsrc/*.ser $RPM_BUILD_ROOT/usr/lib/cc65/ser
484 install -m 644 libsrc/*.tgi $RPM_BUILD_ROOT/usr/lib/cc65/tgi
488 rm -rf $RPM_BUILD_ROOT
493 * Thu Dec 23 2003 Ullrich von Bassewitz <uz@cc65.org>
494 - Changelog is now in CVS