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 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.
92 %doc src/ld65/cfg/*.cfg
96 ###############################################################################
97 # Apple ][ subpackage #
98 ###############################################################################
101 Requires: %{name} = %{version}
103 Summary: Apple ][ specific libraries and headers for the cc65 compiler.
104 Group: Development/Languages
107 This package contains the header files and libraries needed to write
108 programs for the Apple ][ using the cc65 crosscompiler.
111 %attr(644,root,root) /usr/lib/cc65/lib/apple2.lib
112 %attr(644,root,root) /usr/lib/cc65/lib/apple2.o
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/ser/a2.*.ser
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/ser/a2e.*.ser
140 %attr(644,root,root) /usr/lib/cc65/tgi/a2e.*.tgi
144 ###############################################################################
146 ###############################################################################
149 Requires: %{name} = %{version}
151 Summary: Atari specific libraries and headers for the cc65 compiler.
152 Group: Development/Languages
155 This package contains the header files and libraries needed to write
156 programs for the 8 bit Atari machines using the cc65 crosscompiler.
159 %attr(644,root,root) /usr/lib/cc65/lib/atari.lib
160 %attr(644,root,root) /usr/lib/cc65/lib/atari.o
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/lib/atmos.o
182 %attr(644,root,root) /usr/lib/cc65/tgi/atmos-*.tgi
186 ###############################################################################
188 ###############################################################################
191 Requires: %{name} = %{version}
193 Summary: C128 specific libraries and headers for the cc65 compiler.
194 Group: Development/Languages
197 This package contains the header files and libraries needed to write
198 programs for the Commodore C128 using the cc65 crosscompiler.
201 %attr(644,root,root) /usr/lib/cc65/lib/c128.lib
202 %attr(644,root,root) /usr/lib/cc65/lib/c128.o
203 %attr(644,root,root) /usr/lib/cc65/emd/c128-*.emd
204 %attr(644,root,root) /usr/lib/cc65/joy/c128-*.joy
205 %attr(644,root,root) /usr/lib/cc65/mou/c128-*.mou
206 %attr(644,root,root) /usr/lib/cc65/ser/c128-*.ser
207 %attr(644,root,root) /usr/lib/cc65/tgi/c128-*.tgi
211 ###############################################################################
213 ###############################################################################
216 Requires: %{name} = %{version}
218 Summary: C16/116 specific libraries and headers for the cc65 compiler.
219 Group: Development/Languages
222 This package contains the header files and libraries needed to write
223 programs for the Commodore C16/116 using the cc65 crosscompiler.
226 %attr(644,root,root) /usr/lib/cc65/lib/c16.lib
227 %attr(644,root,root) /usr/lib/cc65/lib/c16.o
228 %attr(644,root,root) /usr/lib/cc65/emd/c16-*.emd
229 %attr(644,root,root) /usr/lib/cc65/joy/c16-*.joy
233 ###############################################################################
235 ###############################################################################
238 Requires: %{name} = %{version}
240 Summary: C64 specific libraries and headers for the cc65 compiler.
241 Group: Development/Languages
244 This package contains the header files and libraries needed to write
245 programs for the Commodore C64 using the cc65 crosscompiler.
248 %attr(644,root,root) /usr/lib/cc65/lib/c64.lib
249 %attr(644,root,root) /usr/lib/cc65/lib/c64.o
250 %attr(644,root,root) /usr/lib/cc65/emd/c64-*.emd
251 %attr(644,root,root) /usr/lib/cc65/joy/c64-*.joy
252 %attr(644,root,root) /usr/lib/cc65/mou/c64-*.mou
253 %attr(644,root,root) /usr/lib/cc65/ser/c64-*.ser
254 %attr(644,root,root) /usr/lib/cc65/tgi/c64-*.tgi
258 ###############################################################################
259 # CBM510 subpackage #
260 ###############################################################################
263 Requires: %{name} = %{version}
265 Summary: CBM 510 specific libraries and headers for the cc65 compiler.
266 Group: Development/Languages
269 This package contains the header files and libraries needed to write
270 programs for the Commodore CBM 510 (aka P500) using the cc65
274 %attr(644,root,root) /usr/lib/cc65/lib/cbm510.lib
275 %attr(644,root,root) /usr/lib/cc65/lib/cbm510.o
276 %attr(644,root,root) /usr/lib/cc65/emd/cbm510-*.emd
277 %attr(644,root,root) /usr/lib/cc65/joy/cbm510-*.joy
278 %attr(644,root,root) /usr/lib/cc65/ser/cbm510-*.ser
282 ###############################################################################
283 # CBM610 subpackage #
284 ###############################################################################
287 Requires: %{name} = %{version}
289 Summary: CBM 610 specific libraries and headers for the cc65 compiler.
290 Group: Development/Languages
293 This package contains the header files and libraries needed to write
294 programs for the Commodore PET-II (CBM600/700) family of computers using
295 the cc65 crosscompiler.
298 %attr(644,root,root) /usr/lib/cc65/lib/cbm610.lib
299 %attr(644,root,root) /usr/lib/cc65/lib/cbm610.o
300 %attr(644,root,root) /usr/lib/cc65/emd/cbm610-*.emd
301 %attr(644,root,root) /usr/lib/cc65/ser/cbm610-*.ser
305 ###############################################################################
307 ###############################################################################
310 Requires: %{name} = %{version}
312 Summary: GEOS specific libraries and headers for the cc65 compiler.
313 Group: Development/Languages
316 This package contains the header files and libraries needed to write
317 GEOS programs for the C64/C128 using the cc65 crosscompiler.
320 %attr(755,root,root) /usr/bin/grc
321 %attr(644,root,root) /usr/lib/cc65/lib/geos.lib
322 %attr(644,root,root) /usr/lib/cc65/lib/geos.o
323 %attr(755,root,root) %dir /usr/lib/cc65/include/geos
324 %attr(644,root,root) /usr/lib/cc65/include/geos/*.h
325 %attr(644,root,root) /usr/lib/cc65/emd/geos-*.emd
326 %attr(644,root,root) /usr/lib/cc65/joy/geos-*.joy
327 %attr(644,root,root) /usr/lib/cc65/tgi/geos-*.tgi
331 ###############################################################################
333 ###############################################################################
336 Requires: %{name} = %{version}
338 Summary: Lynx specific libraries and headers for the cc65 compiler.
339 Group: Development/Languages
342 This package contains the header files and libraries needed to write
343 programs for the Lynx Game Console using the cc65 crosscompiler.
346 %attr(644,root,root) /usr/lib/cc65/lib/lynx.lib
347 %attr(644,root,root) /usr/lib/cc65/lib/lynx.o
348 %attr(644,root,root) /usr/lib/cc65/joy/lynx-*.joy
349 %attr(644,root,root) /usr/lib/cc65/tgi/lynx-*.tgi
353 ###############################################################################
355 ###############################################################################
358 Requires: %{name} = %{version}
360 Summary: NES specific libraries and headers for the cc65 compiler.
361 Group: Development/Languages
364 This package contains the header files and libraries needed to write
365 programs for the Nintendo Entertainment System using the cc65
369 %attr(644,root,root) /usr/lib/cc65/lib/nes.lib
370 %attr(644,root,root) /usr/lib/cc65/lib/nes.o
371 %attr(644,root,root) /usr/lib/cc65/joy/nes-*.joy
375 ###############################################################################
377 ###############################################################################
380 Requires: %{name} = %{version}
382 Summary: PET specific libraries and headers for the cc65 compiler.
383 Group: Development/Languages
386 This package contains the header files and libraries needed to write
387 programs for the Commodore PET family of computers using the cc65
391 %attr(644,root,root) /usr/lib/cc65/lib/pet.lib
392 %attr(644,root,root) /usr/lib/cc65/lib/pet.o
393 %attr(644,root,root) /usr/lib/cc65/joy/pet-*.joy
397 ###############################################################################
398 # Plus/4 subpackage #
399 ###############################################################################
402 Requires: %{name} = %{version}
404 Summary: Plus/4 specific libraries and headers for the cc65 compiler.
405 Group: Development/Languages
408 This package contains the header files and libraries needed to write
409 programs for the Commodore Plus/4 and C16/116 using the cc65
413 %attr(644,root,root) /usr/lib/cc65/lib/plus4.lib
414 %attr(644,root,root) /usr/lib/cc65/lib/plus4.o
415 %attr(644,root,root) /usr/lib/cc65/joy/plus4-*.joy
416 %attr(644,root,root) /usr/lib/cc65/ser/plus4-*.ser
420 ###############################################################################
421 # Supervision subpackage #
422 ###############################################################################
425 Requires: %{name} = %{version}
427 Summary: Supervision specific libraries and headers for the cc65 compiler.
428 Group: Development/Languages
430 %description supervision
431 This package contains the header files and libraries needed to write
432 programs for the Supervision Game console using the cc65 crosscompiler.
435 %attr(644,root,root) /usr/lib/cc65/lib/supervision.lib
436 %attr(644,root,root) /usr/lib/cc65/lib/supervision.o
440 ###############################################################################
442 ###############################################################################
445 Requires: %{name} = %{version}
447 Summary: VIC20 specific libraries and headers for the cc65 compiler.
448 Group: Development/Languages
451 This package contains the header files and libraries needed to write
452 programs for the Commodore VIC20 using the cc65 crosscompiler.
455 %attr(644,root,root) /usr/lib/cc65/lib/vic20.lib
456 %attr(644,root,root) /usr/lib/cc65/lib/vic20.o
457 %attr(644,root,root) /usr/lib/cc65/joy/vic20-*.joy
461 ###############################################################################
463 ###############################################################################
473 make -C src -f make/gcc.mak
475 make -C libsrc -s zap all
481 mkdir -p $RPM_BUILD_ROOT/usr/{bin,lib/cc65/{asminc,emd,include/{em,geos,joystick,mouse,sys,tgi},joy,lib,mou,ser,tgi}}
484 install -s -m 755 src/ar65/ar65 $RPM_BUILD_ROOT/usr/bin
485 install -s -m 755 src/ca65/ca65 $RPM_BUILD_ROOT/usr/bin
486 install -s -m 755 src/ca65html/ca65html $RPM_BUILD_ROOT/usr/bin
487 install -s -m 755 src/cc65/cc65 $RPM_BUILD_ROOT/usr/bin
488 install -s -m 755 src/cl65/cl65 $RPM_BUILD_ROOT/usr/bin
489 install -s -m 755 src/co65/co65 $RPM_BUILD_ROOT/usr/bin
490 install -s -m 755 src/da65/da65 $RPM_BUILD_ROOT/usr/bin
491 install -s -m 755 src/grc/grc $RPM_BUILD_ROOT/usr/bin
492 install -s -m 755 src/ld65/ld65 $RPM_BUILD_ROOT/usr/bin
493 install -s -m 755 src/od65/od65 $RPM_BUILD_ROOT/usr/bin
494 # Libraries and includes
495 install -m 644 libsrc/*.lib libsrc/*.o $RPM_BUILD_ROOT/usr/lib/cc65/lib
496 install -m 644 include/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include
497 install -m 644 include/geos/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/geos
498 install -m 644 include/em/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/em
499 install -m 644 include/joystick/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/joystick
500 install -m 644 include/mouse/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/mouse
501 install -m 644 include/sys/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/sys
502 install -m 644 include/tgi/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/tgi
503 install -m 644 asminc/*.inc $RPM_BUILD_ROOT/usr/lib/cc65/asminc
506 install -m 644 libsrc/*.emd $RPM_BUILD_ROOT/usr/lib/cc65/emd
507 install -m 644 libsrc/*.joy $RPM_BUILD_ROOT/usr/lib/cc65/joy
508 install -m 644 libsrc/*.mou $RPM_BUILD_ROOT/usr/lib/cc65/mou
509 install -m 644 libsrc/*.ser $RPM_BUILD_ROOT/usr/lib/cc65/ser
510 install -m 644 libsrc/*.tgi $RPM_BUILD_ROOT/usr/lib/cc65/tgi
514 rm -rf $RPM_BUILD_ROOT
519 * Thu Dec 23 2003 Ullrich von Bassewitz <uz@cc65.org>
520 - Changelog is now in CVS