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/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/lib/apple2enh.o
138 %attr(644,root,root) /usr/lib/cc65/emd/a2e.*.emd
139 %attr(644,root,root) /usr/lib/cc65/joy/a2e.*.joy
140 %attr(644,root,root) /usr/lib/cc65/mou/a2e.*.mou
141 %attr(644,root,root) /usr/lib/cc65/ser/a2e.*.ser
142 %attr(644,root,root) /usr/lib/cc65/tgi/a2e.*.tgi
146 ###############################################################################
148 ###############################################################################
151 Requires: %{name} = %{version}
153 Summary: Atari specific libraries and headers for the cc65 compiler.
154 Group: Development/Languages
157 This package contains the header files and libraries needed to write
158 programs for the 8 bit Atari machines using the cc65 crosscompiler.
161 %attr(644,root,root) /usr/lib/cc65/lib/atari.lib
162 %attr(644,root,root) /usr/lib/cc65/lib/atari.o
163 %attr(644,root,root) /usr/lib/cc65/joy/atari*.joy
167 ###############################################################################
168 # Oric Atmos subpackage #
169 ###############################################################################
172 Requires: %{name} = %{version}
174 Summary: Oric Atmos specific libraries and headers for the cc65 compiler.
175 Group: Development/Languages
178 This package contains the header files and libraries needed to write
179 programs for the Oric Atmos using the cc65 crosscompiler.
182 %attr(644,root,root) /usr/lib/cc65/lib/atmos.lib
183 %attr(644,root,root) /usr/lib/cc65/lib/atmos.o
184 %attr(644,root,root) /usr/lib/cc65/tgi/atmos-*.tgi
188 ###############################################################################
190 ###############################################################################
193 Requires: %{name} = %{version}
195 Summary: C128 specific libraries and headers for the cc65 compiler.
196 Group: Development/Languages
199 This package contains the header files and libraries needed to write
200 programs for the Commodore C128 using the cc65 crosscompiler.
203 %attr(644,root,root) /usr/lib/cc65/lib/c128.lib
204 %attr(644,root,root) /usr/lib/cc65/lib/c128.o
205 %attr(644,root,root) /usr/lib/cc65/emd/c128-*.emd
206 %attr(644,root,root) /usr/lib/cc65/joy/c128-*.joy
207 %attr(644,root,root) /usr/lib/cc65/mou/c128-*.mou
208 %attr(644,root,root) /usr/lib/cc65/ser/c128-*.ser
209 %attr(644,root,root) /usr/lib/cc65/tgi/c128-*.tgi
213 ###############################################################################
215 ###############################################################################
218 Requires: %{name} = %{version}
220 Summary: C16/116 specific libraries and headers for the cc65 compiler.
221 Group: Development/Languages
224 This package contains the header files and libraries needed to write
225 programs for the Commodore C16/116 using the cc65 crosscompiler.
228 %attr(644,root,root) /usr/lib/cc65/lib/c16.lib
229 %attr(644,root,root) /usr/lib/cc65/lib/c16.o
230 %attr(644,root,root) /usr/lib/cc65/emd/c16-*.emd
231 %attr(644,root,root) /usr/lib/cc65/joy/c16-*.joy
235 ###############################################################################
237 ###############################################################################
240 Requires: %{name} = %{version}
242 Summary: C64 specific libraries and headers for the cc65 compiler.
243 Group: Development/Languages
246 This package contains the header files and libraries needed to write
247 programs for the Commodore C64 using the cc65 crosscompiler.
250 %attr(644,root,root) /usr/lib/cc65/lib/c64.lib
251 %attr(644,root,root) /usr/lib/cc65/lib/c64.o
252 %attr(644,root,root) /usr/lib/cc65/emd/dtv-*.emd
253 %attr(644,root,root) /usr/lib/cc65/emd/c64-*.emd
254 %attr(644,root,root) /usr/lib/cc65/joy/c64-*.joy
255 %attr(644,root,root) /usr/lib/cc65/mou/c64-*.mou
256 %attr(644,root,root) /usr/lib/cc65/ser/c64-*.ser
257 %attr(644,root,root) /usr/lib/cc65/tgi/c64-*.tgi
261 ###############################################################################
262 # CBM510 subpackage #
263 ###############################################################################
266 Requires: %{name} = %{version}
268 Summary: CBM 510 specific libraries and headers for the cc65 compiler.
269 Group: Development/Languages
272 This package contains the header files and libraries needed to write
273 programs for the Commodore CBM 510 (aka P500) using the cc65
277 %attr(644,root,root) /usr/lib/cc65/lib/cbm510.lib
278 %attr(644,root,root) /usr/lib/cc65/lib/cbm510.o
279 %attr(644,root,root) /usr/lib/cc65/emd/cbm510-*.emd
280 %attr(644,root,root) /usr/lib/cc65/joy/cbm510-*.joy
281 %attr(644,root,root) /usr/lib/cc65/ser/cbm510-*.ser
285 ###############################################################################
286 # CBM610 subpackage #
287 ###############################################################################
290 Requires: %{name} = %{version}
292 Summary: CBM 610 specific libraries and headers for the cc65 compiler.
293 Group: Development/Languages
296 This package contains the header files and libraries needed to write
297 programs for the Commodore PET-II (CBM600/700) family of computers using
298 the cc65 crosscompiler.
301 %attr(644,root,root) /usr/lib/cc65/lib/cbm610.lib
302 %attr(644,root,root) /usr/lib/cc65/lib/cbm610.o
303 %attr(644,root,root) /usr/lib/cc65/emd/cbm610-*.emd
304 %attr(644,root,root) /usr/lib/cc65/ser/cbm610-*.ser
308 ###############################################################################
310 ###############################################################################
313 Requires: %{name} = %{version}
315 Summary: GEOS specific libraries and headers for the cc65 compiler.
316 Group: Development/Languages
319 This package contains the header files and libraries needed to write
320 GEOS programs for the C64/C128 using the cc65 crosscompiler.
323 %attr(755,root,root) /usr/bin/grc
324 %attr(644,root,root) /usr/lib/cc65/lib/geos.lib
325 %attr(644,root,root) /usr/lib/cc65/lib/geos.o
326 %attr(755,root,root) %dir /usr/lib/cc65/include/geos
327 %attr(644,root,root) /usr/lib/cc65/include/geos/*.h
328 %attr(644,root,root) /usr/lib/cc65/emd/geos-*.emd
329 %attr(644,root,root) /usr/lib/cc65/joy/geos-*.joy
330 %attr(644,root,root) /usr/lib/cc65/tgi/geos-*.tgi
334 ###############################################################################
336 ###############################################################################
339 Requires: %{name} = %{version}
341 Summary: Lynx specific libraries and headers for the cc65 compiler.
342 Group: Development/Languages
345 This package contains the header files and libraries needed to write
346 programs for the Lynx Game Console using the cc65 crosscompiler.
349 %attr(644,root,root) /usr/lib/cc65/lib/lynx.lib
350 %attr(644,root,root) /usr/lib/cc65/lib/lynx.o
351 %attr(644,root,root) /usr/lib/cc65/joy/lynx-*.joy
352 %attr(644,root,root) /usr/lib/cc65/tgi/lynx-*.tgi
356 ###############################################################################
358 ###############################################################################
361 Requires: %{name} = %{version}
363 Summary: NES specific libraries and headers for the cc65 compiler.
364 Group: Development/Languages
367 This package contains the header files and libraries needed to write
368 programs for the Nintendo Entertainment System using the cc65
372 %attr(644,root,root) /usr/lib/cc65/lib/nes.lib
373 %attr(644,root,root) /usr/lib/cc65/lib/nes.o
374 %attr(644,root,root) /usr/lib/cc65/joy/nes-*.joy
378 ###############################################################################
380 ###############################################################################
383 Requires: %{name} = %{version}
385 Summary: PET specific libraries and headers for the cc65 compiler.
386 Group: Development/Languages
389 This package contains the header files and libraries needed to write
390 programs for the Commodore PET family of computers using the cc65
394 %attr(644,root,root) /usr/lib/cc65/lib/pet.lib
395 %attr(644,root,root) /usr/lib/cc65/lib/pet.o
396 %attr(644,root,root) /usr/lib/cc65/joy/pet-*.joy
400 ###############################################################################
401 # Plus/4 subpackage #
402 ###############################################################################
405 Requires: %{name} = %{version}
407 Summary: Plus/4 specific libraries and headers for the cc65 compiler.
408 Group: Development/Languages
411 This package contains the header files and libraries needed to write
412 programs for the Commodore Plus/4 and C16/116 using the cc65
416 %attr(644,root,root) /usr/lib/cc65/lib/plus4.lib
417 %attr(644,root,root) /usr/lib/cc65/lib/plus4.o
418 %attr(644,root,root) /usr/lib/cc65/joy/plus4-*.joy
419 %attr(644,root,root) /usr/lib/cc65/ser/plus4-*.ser
423 ###############################################################################
424 # Supervision subpackage #
425 ###############################################################################
428 Requires: %{name} = %{version}
430 Summary: Supervision specific libraries and headers for the cc65 compiler.
431 Group: Development/Languages
433 %description supervision
434 This package contains the header files and libraries needed to write
435 programs for the Supervision Game console using the cc65 crosscompiler.
438 %attr(644,root,root) /usr/lib/cc65/lib/supervision.lib
439 %attr(644,root,root) /usr/lib/cc65/lib/supervision.o
443 ###############################################################################
445 ###############################################################################
448 Requires: %{name} = %{version}
450 Summary: VIC20 specific libraries and headers for the cc65 compiler.
451 Group: Development/Languages
454 This package contains the header files and libraries needed to write
455 programs for the Commodore VIC20 using the cc65 crosscompiler.
458 %attr(644,root,root) /usr/lib/cc65/lib/vic20.lib
459 %attr(644,root,root) /usr/lib/cc65/lib/vic20.o
460 %attr(644,root,root) /usr/lib/cc65/joy/vic20-*.joy
464 ###############################################################################
466 ###############################################################################
476 make -C src -f make/gcc.mak
478 make -C libsrc -s zap all
484 mkdir -p $RPM_BUILD_ROOT/usr/{bin,lib/cc65/{asminc,emd,include/{em,geos,joystick,mouse,sys,tgi},joy,lib,mou,ser,tgi}}
487 install -s -m 755 src/ar65/ar65 $RPM_BUILD_ROOT/usr/bin
488 install -s -m 755 src/ca65/ca65 $RPM_BUILD_ROOT/usr/bin
489 install -s -m 755 src/ca65html/ca65html $RPM_BUILD_ROOT/usr/bin
490 install -s -m 755 src/cc65/cc65 $RPM_BUILD_ROOT/usr/bin
491 install -s -m 755 src/cl65/cl65 $RPM_BUILD_ROOT/usr/bin
492 install -s -m 755 src/co65/co65 $RPM_BUILD_ROOT/usr/bin
493 install -s -m 755 src/da65/da65 $RPM_BUILD_ROOT/usr/bin
494 install -s -m 755 src/grc/grc $RPM_BUILD_ROOT/usr/bin
495 install -s -m 755 src/ld65/ld65 $RPM_BUILD_ROOT/usr/bin
496 install -s -m 755 src/od65/od65 $RPM_BUILD_ROOT/usr/bin
497 # Libraries and includes
498 install -m 644 libsrc/*.lib libsrc/*.o $RPM_BUILD_ROOT/usr/lib/cc65/lib
499 install -m 644 include/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include
500 install -m 644 include/geos/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/geos
501 install -m 644 include/em/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/em
502 install -m 644 include/joystick/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/joystick
503 install -m 644 include/mouse/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/mouse
504 install -m 644 include/sys/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/sys
505 install -m 644 include/tgi/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/tgi
506 install -m 644 asminc/*.inc $RPM_BUILD_ROOT/usr/lib/cc65/asminc
509 install -m 644 libsrc/*.emd $RPM_BUILD_ROOT/usr/lib/cc65/emd
510 install -m 644 libsrc/*.joy $RPM_BUILD_ROOT/usr/lib/cc65/joy
511 install -m 644 libsrc/*.mou $RPM_BUILD_ROOT/usr/lib/cc65/mou
512 install -m 644 libsrc/*.ser $RPM_BUILD_ROOT/usr/lib/cc65/ser
513 install -m 644 libsrc/*.tgi $RPM_BUILD_ROOT/usr/lib/cc65/tgi
517 rm -rf $RPM_BUILD_ROOT
522 * Thu Dec 23 2003 Ullrich von Bassewitz <uz@cc65.org>
523 - Changelog is now in CVS