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
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/sys
61 %attr(644,root,root) /usr/lib/cc65/include/sys/*.h
62 %attr(755,root,root) %dir /usr/lib/cc65/include/tgi
63 %attr(644,root,root) /usr/lib/cc65/include/tgi/*.h
64 %attr(755,root,root) %dir /usr/lib/cc65/asminc
65 %attr(644,root,root) /usr/lib/cc65/asminc/*.inc
69 ###############################################################################
70 # Documentation subpackage #
71 ###############################################################################
75 Requires: %{name} = %{version}
77 Summary: Documentation for the cc65 C compiler
78 Group: Development/Languages
81 This package contains the documentation for the cc65 C compiler, mostly
82 in HTML format. Other formats can be generated from the sources.
91 %doc src/ld65/cfg/*.cfg
95 ###############################################################################
96 # Apple ][ subpackage #
97 ###############################################################################
100 Requires: %{name} = %{version}
102 Summary: Apple ][ specific libraries and headers for the cc65 compiler.
103 Group: Development/Languages
106 This package contains the header files and libraries needed to write
107 programs for the Apple ][ using the cc65 crosscompiler.
110 %attr(644,root,root) /usr/lib/cc65/lib/apple2.lib
111 %attr(644,root,root) /usr/lib/cc65/lib/apple2.o
112 %attr(644,root,root) /usr/lib/cc65/joy/a2-*.joy
113 %attr(644,root,root) /usr/lib/cc65/tgi/a2-*.tgi
117 ###############################################################################
119 ###############################################################################
122 Requires: %{name} = %{version}
124 Summary: Atari specific libraries and headers for the cc65 compiler.
125 Group: Development/Languages
128 This package contains the header files and libraries needed to write
129 programs for the 8 bit Atari machines using the cc65 crosscompiler.
132 %attr(644,root,root) /usr/lib/cc65/lib/atari.lib
133 %attr(644,root,root) /usr/lib/cc65/lib/atari.o
137 ###############################################################################
138 # Oric Atmos subpackage #
139 ###############################################################################
142 Requires: %{name} = %{version}
144 Summary: Oric Atmos specific libraries and headers for the cc65 compiler.
145 Group: Development/Languages
148 This package contains the header files and libraries needed to write
149 programs for the Oric Atmos using the cc65 crosscompiler.
152 %attr(644,root,root) /usr/lib/cc65/lib/atmos.lib
153 %attr(644,root,root) /usr/lib/cc65/lib/atmos.o
157 ###############################################################################
159 ###############################################################################
162 Requires: %{name} = %{version}
164 Summary: C128 specific libraries and headers for the cc65 compiler.
165 Group: Development/Languages
168 This package contains the header files and libraries needed to write
169 programs for the Commodore C128 using the cc65 crosscompiler.
172 %attr(644,root,root) /usr/lib/cc65/lib/c128.lib
173 %attr(644,root,root) /usr/lib/cc65/lib/c128.o
174 %attr(644,root,root) /usr/lib/cc65/emd/c128-*.emd
175 %attr(644,root,root) /usr/lib/cc65/joy/c128-*.joy
176 %attr(644,root,root) /usr/lib/cc65/tgi/c128-*.tgi
180 ###############################################################################
182 ###############################################################################
185 Requires: %{name} = %{version}
187 Summary: C16/116 specific libraries and headers for the cc65 compiler.
188 Group: Development/Languages
191 This package contains the header files and libraries needed to write
192 programs for the Commodore C16/116 using the cc65 crosscompiler.
195 %attr(644,root,root) /usr/lib/cc65/lib/c16.lib
196 %attr(644,root,root) /usr/lib/cc65/lib/c16.o
197 %attr(644,root,root) /usr/lib/cc65/joy/c16-*.joy
201 ###############################################################################
203 ###############################################################################
206 Requires: %{name} = %{version}
208 Summary: C64 specific libraries and headers for the cc65 compiler.
209 Group: Development/Languages
212 This package contains the header files and libraries needed to write
213 programs for the Commodore C64 using the cc65 crosscompiler.
216 %attr(644,root,root) /usr/lib/cc65/lib/c64.lib
217 %attr(644,root,root) /usr/lib/cc65/lib/c64.o
218 %attr(644,root,root) /usr/lib/cc65/emd/c64-*.emd
219 %attr(644,root,root) /usr/lib/cc65/joy/c64-*.joy
220 %attr(644,root,root) /usr/lib/cc65/tgi/c64-*.tgi
224 ###############################################################################
225 # CBM510 subpackage #
226 ###############################################################################
229 Requires: %{name} = %{version}
231 Summary: CBM 510 specific libraries and headers for the cc65 compiler.
232 Group: Development/Languages
235 This package contains the header files and libraries needed to write
236 programs for the Commodore CBM 510 (aka P500) using the cc65
240 %attr(644,root,root) /usr/lib/cc65/lib/cbm510.lib
241 %attr(644,root,root) /usr/lib/cc65/lib/cbm510.o
242 %attr(644,root,root) /usr/lib/cc65/emd/cbm510-*.emd
243 %attr(644,root,root) /usr/lib/cc65/joy/cbm510-*.joy
247 ###############################################################################
248 # CBM610 subpackage #
249 ###############################################################################
252 Requires: %{name} = %{version}
254 Summary: CBM 610 specific libraries and headers for the cc65 compiler.
255 Group: Development/Languages
258 This package contains the header files and libraries needed to write
259 programs for the Commodore PET-II (CBM600/700) family of computers using
260 the cc65 crosscompiler.
263 %attr(644,root,root) /usr/lib/cc65/lib/cbm610.lib
264 %attr(644,root,root) /usr/lib/cc65/lib/cbm610.o
265 %attr(644,root,root) /usr/lib/cc65/emd/cbm610-*.emd
269 ###############################################################################
271 ###############################################################################
274 Requires: %{name} = %{version}
276 Summary: GEOS specific libraries and headers for the cc65 compiler.
277 Group: Development/Languages
280 This package contains the header files and libraries needed to write
281 GEOS programs for the C64/C128 using the cc65 crosscompiler.
284 %attr(755,root,root) /usr/bin/grc
285 %attr(644,root,root) /usr/lib/cc65/lib/geos.lib
286 %attr(644,root,root) /usr/lib/cc65/lib/geos.o
287 %attr(755,root,root) %dir /usr/lib/cc65/include/geos
288 %attr(644,root,root) /usr/lib/cc65/include/geos/*.h
289 %attr(644,root,root) /usr/lib/cc65/emd/geos-*.emd
290 %attr(644,root,root) /usr/lib/cc65/joy/geos-*.joy
291 %attr(644,root,root) /usr/lib/cc65/tgi/geos-*.tgi
295 ###############################################################################
297 ###############################################################################
300 Requires: %{name} = %{version}
302 Summary: NES specific libraries and headers for the cc65 compiler.
303 Group: Development/Languages
306 This package contains the header files and libraries needed to write
307 programs for the Nintendo Entertainment System using the cc65
311 %attr(644,root,root) /usr/lib/cc65/lib/nes.lib
312 %attr(644,root,root) /usr/lib/cc65/lib/nes.o
316 ###############################################################################
318 ###############################################################################
321 Requires: %{name} = %{version}
323 Summary: PET specific libraries and headers for the cc65 compiler.
324 Group: Development/Languages
327 This package contains the header files and libraries needed to write
328 programs for the Commodore PET family of computers using the cc65
332 %attr(644,root,root) /usr/lib/cc65/lib/pet.lib
333 %attr(644,root,root) /usr/lib/cc65/lib/pet.o
337 ###############################################################################
338 # Plus/4 subpackage #
339 ###############################################################################
342 Requires: %{name} = %{version}
344 Summary: Plus/4 specific libraries and headers for the cc65 compiler.
345 Group: Development/Languages
348 This package contains the header files and libraries needed to write
349 programs for the Commodore Plus/4 and C16/116 using the cc65
353 %attr(644,root,root) /usr/lib/cc65/lib/plus4.lib
354 %attr(644,root,root) /usr/lib/cc65/lib/plus4.o
355 %attr(644,root,root) /usr/lib/cc65/joy/plus4-*.joy
359 ###############################################################################
360 # Supervision subpackage #
361 ###############################################################################
364 Requires: %{name} = %{version}
366 Summary: Supervision specific libraries and headers for the cc65 compiler.
367 Group: Development/Languages
369 %description supervision
370 This package contains the header files and libraries needed to write
371 programs for the Supervision Game console using the cc65 crosscompiler.
374 %attr(644,root,root) /usr/lib/cc65/lib/supervision.lib
375 %attr(644,root,root) /usr/lib/cc65/lib/supervision.o
379 ###############################################################################
381 ###############################################################################
384 Requires: %{name} = %{version}
386 Summary: VIC20 specific libraries and headers for the cc65 compiler.
387 Group: Development/Languages
390 This package contains the header files and libraries needed to write
391 programs for the Commodore VIC20 using the cc65 crosscompiler.
394 %attr(644,root,root) /usr/lib/cc65/lib/vic20.lib
395 %attr(644,root,root) /usr/lib/cc65/lib/vic20.o
396 %attr(644,root,root) /usr/lib/cc65/joy/vic20-*.joy
400 ###############################################################################
402 ###############################################################################
412 make -C src -f make/gcc.mak
414 make -C libsrc -s zap all
420 mkdir -p $RPM_BUILD_ROOT/usr/{bin,lib/cc65/{asminc,emd,include/{em,geos,joystick,sys,tgi},joy,lib,tgi}}
423 install -s -m 755 src/ar65/ar65 $RPM_BUILD_ROOT/usr/bin
424 install -s -m 755 src/ca65/ca65 $RPM_BUILD_ROOT/usr/bin
425 install -s -m 755 src/ca65html/ca65html $RPM_BUILD_ROOT/usr/bin
426 install -s -m 755 src/cc65/cc65 $RPM_BUILD_ROOT/usr/bin
427 install -s -m 755 src/cl65/cl65 $RPM_BUILD_ROOT/usr/bin
428 install -s -m 755 src/co65/co65 $RPM_BUILD_ROOT/usr/bin
429 install -s -m 755 src/da65/da65 $RPM_BUILD_ROOT/usr/bin
430 install -s -m 755 src/grc/grc $RPM_BUILD_ROOT/usr/bin
431 install -s -m 755 src/ld65/ld65 $RPM_BUILD_ROOT/usr/bin
432 install -s -m 755 src/od65/od65 $RPM_BUILD_ROOT/usr/bin
433 # Libraries and includes
434 install -m 644 libsrc/*.lib libsrc/*.o $RPM_BUILD_ROOT/usr/lib/cc65/lib
435 install -m 644 include/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include
436 install -m 644 include/geos/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/geos
437 install -m 644 include/em/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/em
438 install -m 644 include/joystick/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/joystick
439 install -m 644 include/sys/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/sys
440 install -m 644 include/tgi/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/tgi
441 install -m 644 asminc/*.inc $RPM_BUILD_ROOT/usr/lib/cc65/asminc
444 install -m 644 libsrc/*.emd $RPM_BUILD_ROOT/usr/lib/cc65/emd
445 install -m 644 libsrc/*.joy $RPM_BUILD_ROOT/usr/lib/cc65/joy
446 install -m 644 libsrc/*.tgi $RPM_BUILD_ROOT/usr/lib/cc65/tgi
450 rm -rf $RPM_BUILD_ROOT
455 * Sun Nov 02 2003 Ullrich von Bassewitz <uz@cc65.org>
456 - Added missing files after upgrade to rpm 4.2
458 * Sun Oct 19 2003 Ullrich von Bassewitz <uz@cc65.org>
459 - Move documentation into a separate doc package.
461 * Fri Oct 10 2003 Ullrich von Bassewitz <uz@cc65.org>
462 - Added the Supervision subpackage.
464 * Thu Oct 02 2003 Ullrich von Bassewitz <uz@cc65.org>
467 * Thu Jun 12 2003 Ullrich von Bassewitz <uz@cc65.org>
468 - Added subdirectories of include/
470 * Fri May 02 2003 Ullrich von Bassewitz <uz@cc65.org>
471 - The Apple ][ has a joystick driver.
472 - Added the NES subpackage.
474 * Mon Apr 14 2003 Ullrich von Bassewitz <uz@cc65.org>
475 Added a subpackage for the Oric Atmos.
477 * Mon Feb 10 2003 Ullrich von Bassewitz <uz@cc65.org>
478 Added the object file conversion utility co65.
480 * Fri Dec 13 2002 Ullrich von Bassewitz <uz@cc65.org>
481 Updated the version number.
483 * Mon Dec 2 2002 Ullrich von Bassewitz <uz@cc65.org>
484 Changed location of TGI drivers, added EM drivers.
486 * Fri Nov 22 2002 Ullrich von Bassewitz <uz@cc65.org>
487 Added the C16 subpackage.
489 * Wed Nov 20 2002 Ullrich von Bassewitz <uz@cc65.org>
492 * Mon Apr 08 2002 Ullrich von Bassewitz <uz@cc65.org>
493 Update to version 2.8.0 of the compiler package.
495 * Wed Nov 07 2001 Ullrich von Bassewitz <uz@cc65.org>
496 Update to version 2.7.1 of the compiler package.
498 * Tue Oct 02 2001 Ullrich von Bassewitz <uz@cc65.org>
499 Update to version 2.7.0 of the compiler package.
501 * Thu Jul 23 2001 Ullrich von Bassewitz <uz@cc65.org>
502 Update to version 2.6.2 of the compiler package.
504 * Thu Mar 8 2001 Ullrich von Bassewitz <uz@cc65.org>
505 Update to version 2.6.1 of the compiler package.
507 * Sat Dec 6 2000 Ullrich von Bassewitz <uz@cc65.org>
508 Update for cc65 2.6.0 and RedHat 7.x
510 * Sun Jul 30 2000 Ullrich von Bassewitz <uz@musoftware.de>
511 The GEOS include files were not installed, remove headegen.sh
513 * Tue Jul 18 2000 Ullrich von Bassewitz <uz@musoftware.de>
514 Update to version 2.5.0 of the compiler package.
516 * Sat May 06 2000 Ullrich von Bassewitz <uz@musoftware.de>
517 Update to version 2.4.1 of the compiler package.
519 * Tue Jan 16 2000 Ullrich von Bassewitz <uz@musoftware.de>
520 Update to version 2.4.0 of the compiler package.
522 * Tue Jan 6 2000 Ullrich von Bassewitz <uz@musoftware.de>
523 Update to version 2.3.1 of the compiler package.
525 * Tue Jan 4 2000 Ullrich von Bassewitz <uz@musoftware.de>
526 Update to version 2.3.0 of the compiler package.
528 * Sat Sep 25 1999 Robert R. Wal <rrw@reptile.eu.org>
530 - changed to allow build as plain user
531 - `samples' are part of documentation, not part of library