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(644,root,root) /usr/lib/cc65/include/sys/*.h
57 %attr(755,root,root) %dir /usr/lib/cc65/include/tgi
58 %attr(644,root,root) /usr/lib/cc65/include/tgi/*.h
59 %attr(755,root,root) %dir /usr/lib/cc65/asminc
60 %attr(644,root,root) /usr/lib/cc65/asminc/*.inc
64 ###############################################################################
65 # Documentation subpackage #
66 ###############################################################################
70 Requires: %{name} = %{version}
72 Summary: Documentation for the cc65 C compiler
73 Group: Development/Languages
76 This package contains the documentation for the cc65 C compiler, mostly
77 in HTML format. Other formats can be generated from the sources.
86 %doc src/ld65/cfg/*.cfg
90 ###############################################################################
91 # Apple ][ subpackage #
92 ###############################################################################
95 Requires: %{name} = %{version}
97 Summary: Apple ][ specific libraries and headers for the cc65 compiler.
98 Group: Development/Languages
101 This package contains the header files and libraries needed to write
102 programs for the Apple ][ using the cc65 crosscompiler.
105 %attr(644,root,root) /usr/lib/cc65/lib/apple2.lib
106 %attr(644,root,root) /usr/lib/cc65/lib/apple2.o
107 %attr(644,root,root) /usr/lib/cc65/joy/a2-*.joy
111 ###############################################################################
113 ###############################################################################
116 Requires: %{name} = %{version}
118 Summary: Atari specific libraries and headers for the cc65 compiler.
119 Group: Development/Languages
122 This package contains the header files and libraries needed to write
123 programs for the 8 bit Atari machines using the cc65 crosscompiler.
126 %attr(644,root,root) /usr/lib/cc65/lib/atari.lib
127 %attr(644,root,root) /usr/lib/cc65/lib/atari.o
131 ###############################################################################
132 # Oric Atmos subpackage #
133 ###############################################################################
136 Requires: %{name} = %{version}
138 Summary: Oric Atmos specific libraries and headers for the cc65 compiler.
139 Group: Development/Languages
142 This package contains the header files and libraries needed to write
143 programs for the Oric Atmos using the cc65 crosscompiler.
146 %attr(644,root,root) /usr/lib/cc65/lib/atmos.lib
147 %attr(644,root,root) /usr/lib/cc65/lib/atmos.o
151 ###############################################################################
153 ###############################################################################
156 Requires: %{name} = %{version}
158 Summary: C128 specific libraries and headers for the cc65 compiler.
159 Group: Development/Languages
162 This package contains the header files and libraries needed to write
163 programs for the Commodore C128 using the cc65 crosscompiler.
166 %attr(644,root,root) /usr/lib/cc65/lib/c128.lib
167 %attr(644,root,root) /usr/lib/cc65/lib/c128.o
168 %attr(644,root,root) /usr/lib/cc65/emd/c128-*.emd
169 %attr(644,root,root) /usr/lib/cc65/joy/c128-*.joy
170 %attr(644,root,root) /usr/lib/cc65/tgi/c128-*.tgi
174 ###############################################################################
176 ###############################################################################
179 Requires: %{name} = %{version}
181 Summary: C16/116 specific libraries and headers for the cc65 compiler.
182 Group: Development/Languages
185 This package contains the header files and libraries needed to write
186 programs for the Commodore C16/116 using the cc65 crosscompiler.
189 %attr(644,root,root) /usr/lib/cc65/lib/c16.lib
190 %attr(644,root,root) /usr/lib/cc65/lib/c16.o
191 %attr(644,root,root) /usr/lib/cc65/joy/c16-*.joy
195 ###############################################################################
197 ###############################################################################
200 Requires: %{name} = %{version}
202 Summary: C64 specific libraries and headers for the cc65 compiler.
203 Group: Development/Languages
206 This package contains the header files and libraries needed to write
207 programs for the Commodore C64 using the cc65 crosscompiler.
210 %attr(644,root,root) /usr/lib/cc65/lib/c64.lib
211 %attr(644,root,root) /usr/lib/cc65/lib/c64.o
212 %attr(644,root,root) /usr/lib/cc65/emd/c64-*.emd
213 %attr(644,root,root) /usr/lib/cc65/joy/c64-*.joy
214 %attr(644,root,root) /usr/lib/cc65/tgi/c64-*.tgi
218 ###############################################################################
219 # CBM510 subpackage #
220 ###############################################################################
223 Requires: %{name} = %{version}
225 Summary: CBM 510 specific libraries and headers for the cc65 compiler.
226 Group: Development/Languages
229 This package contains the header files and libraries needed to write
230 programs for the Commodore CBM 510 (aka P500) using the cc65
234 %attr(644,root,root) /usr/lib/cc65/lib/cbm510.lib
235 %attr(644,root,root) /usr/lib/cc65/lib/cbm510.o
239 ###############################################################################
240 # CBM610 subpackage #
241 ###############################################################################
244 Requires: %{name} = %{version}
246 Summary: CBM 610 specific libraries and headers for the cc65 compiler.
247 Group: Development/Languages
250 This package contains the header files and libraries needed to write
251 programs for the Commodore PET-II (CBM600/700) family of computers using
252 the cc65 crosscompiler.
255 %attr(644,root,root) /usr/lib/cc65/lib/cbm610.lib
256 %attr(644,root,root) /usr/lib/cc65/lib/cbm610.o
260 ###############################################################################
262 ###############################################################################
265 Requires: %{name} = %{version}
267 Summary: GEOS specific libraries and headers for the cc65 compiler.
268 Group: Development/Languages
271 This package contains the header files and libraries needed to write
272 GEOS programs for the C64/C128 using the cc65 crosscompiler.
275 %attr(755,root,root) /usr/bin/grc
276 %attr(644,root,root) /usr/lib/cc65/lib/geos.lib
277 %attr(644,root,root) /usr/lib/cc65/lib/geos.o
278 %attr(755,root,root) %dir /usr/lib/cc65/include/geos
279 %attr(644,root,root) /usr/lib/cc65/include/geos/*.h
283 ###############################################################################
285 ###############################################################################
288 Requires: %{name} = %{version}
290 Summary: NES specific libraries and headers for the cc65 compiler.
291 Group: Development/Languages
294 This package contains the header files and libraries needed to write
295 programs for the Nintendo Entertainment System using the cc65
299 %attr(644,root,root) /usr/lib/cc65/lib/nes.lib
300 %attr(644,root,root) /usr/lib/cc65/lib/nes.o
304 ###############################################################################
306 ###############################################################################
309 Requires: %{name} = %{version}
311 Summary: PET specific libraries and headers for the cc65 compiler.
312 Group: Development/Languages
315 This package contains the header files and libraries needed to write
316 programs for the Commodore PET family of computers using the cc65
320 %attr(644,root,root) /usr/lib/cc65/lib/pet.lib
321 %attr(644,root,root) /usr/lib/cc65/lib/pet.o
325 ###############################################################################
326 # Plus/4 subpackage #
327 ###############################################################################
330 Requires: %{name} = %{version}
332 Summary: Plus/4 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 Commodore Plus/4 and C16/116 using the cc65
341 %attr(644,root,root) /usr/lib/cc65/lib/plus4.lib
342 %attr(644,root,root) /usr/lib/cc65/lib/plus4.o
343 %attr(644,root,root) /usr/lib/cc65/joy/plus4-*.joy
347 ###############################################################################
348 # Supervision subpackage #
349 ###############################################################################
352 Requires: %{name} = %{version}
354 Summary: Supervision specific libraries and headers for the cc65 compiler.
355 Group: Development/Languages
357 %description supervision
358 This package contains the header files and libraries needed to write
359 programs for the Supervision Game console using the cc65 crosscompiler.
362 %attr(644,root,root) /usr/lib/cc65/lib/supervision.lib
363 %attr(644,root,root) /usr/lib/cc65/lib/supervision.o
367 ###############################################################################
369 ###############################################################################
372 Requires: %{name} = %{version}
374 Summary: VIC20 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 VIC20 using the cc65 crosscompiler.
382 %attr(644,root,root) /usr/lib/cc65/lib/vic20.lib
383 %attr(644,root,root) /usr/lib/cc65/lib/vic20.o
384 %attr(644,root,root) /usr/lib/cc65/joy/vic20-*.joy
388 ###############################################################################
390 ###############################################################################
400 make -C src -f make/gcc.mak
402 make -C libsrc -s zap all
408 mkdir -p $RPM_BUILD_ROOT/usr/{bin,lib/cc65/{asminc,emd,include/{em,geos,joystick,sys,tgi},joy,lib,tgi}}
411 install -s -m 755 src/ar65/ar65 $RPM_BUILD_ROOT/usr/bin
412 install -s -m 755 src/ca65/ca65 $RPM_BUILD_ROOT/usr/bin
413 install -s -m 755 src/ca65html/ca65html $RPM_BUILD_ROOT/usr/bin
414 install -s -m 755 src/cc65/cc65 $RPM_BUILD_ROOT/usr/bin
415 install -s -m 755 src/cl65/cl65 $RPM_BUILD_ROOT/usr/bin
416 install -s -m 755 src/co65/co65 $RPM_BUILD_ROOT/usr/bin
417 install -s -m 755 src/da65/da65 $RPM_BUILD_ROOT/usr/bin
418 install -s -m 755 src/grc/grc $RPM_BUILD_ROOT/usr/bin
419 install -s -m 755 src/ld65/ld65 $RPM_BUILD_ROOT/usr/bin
420 install -s -m 755 src/od65/od65 $RPM_BUILD_ROOT/usr/bin
421 # Libraries and includes
422 install -m 644 libsrc/*.lib libsrc/*.o $RPM_BUILD_ROOT/usr/lib/cc65/lib
423 install -m 644 include/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include
424 install -m 644 include/geos/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/geos
425 install -m 644 include/em/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/em
426 install -m 644 include/joystick/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/joystick
427 install -m 644 include/sys/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/sys
428 install -m 644 include/tgi/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/tgi
429 install -m 644 asminc/*.inc $RPM_BUILD_ROOT/usr/lib/cc65/asminc
432 install -m 644 libsrc/*.emd $RPM_BUILD_ROOT/usr/lib/cc65/emd
433 install -m 644 libsrc/*.joy $RPM_BUILD_ROOT/usr/lib/cc65/joy
434 install -m 644 libsrc/*.tgi $RPM_BUILD_ROOT/usr/lib/cc65/tgi
438 rm -rf $RPM_BUILD_ROOT
443 * Sun Oct 19 2003 Ullrich von Bassewitz <uz@cc65.org>
444 - Move documentation into a separate doc package.
446 * Fri Oct 10 2003 Ullrich von Bassewitz <uz@cc65.org>
447 - Added the Supervision subpackage.
449 * Thu Oct 02 2003 Ullrich von Bassewitz <uz@cc65.org>
452 * Thu Jun 12 2003 Ullrich von Bassewitz <uz@cc65.org>
453 - Added subdirectories of include/
455 * Fri May 02 2003 Ullrich von Bassewitz <uz@cc65.org>
456 - The Apple ][ has a joystick driver.
457 - Added the NES subpackage.
459 * Mon Apr 14 2003 Ullrich von Bassewitz <uz@cc65.org>
460 Added a subpackage for the Oric Atmos.
462 * Mon Feb 10 2003 Ullrich von Bassewitz <uz@cc65.org>
463 Added the object file conversion utility co65.
465 * Fri Dec 13 2002 Ullrich von Bassewitz <uz@cc65.org>
466 Updated the version number.
468 * Mon Dec 2 2002 Ullrich von Bassewitz <uz@cc65.org>
469 Changed location of TGI drivers, added EM drivers.
471 * Fri Nov 22 2002 Ullrich von Bassewitz <uz@cc65.org>
472 Added the C16 subpackage.
474 * Wed Nov 20 2002 Ullrich von Bassewitz <uz@cc65.org>
477 * Mon Apr 08 2002 Ullrich von Bassewitz <uz@cc65.org>
478 Update to version 2.8.0 of the compiler package.
480 * Wed Nov 07 2001 Ullrich von Bassewitz <uz@cc65.org>
481 Update to version 2.7.1 of the compiler package.
483 * Tue Oct 02 2001 Ullrich von Bassewitz <uz@cc65.org>
484 Update to version 2.7.0 of the compiler package.
486 * Thu Jul 23 2001 Ullrich von Bassewitz <uz@cc65.org>
487 Update to version 2.6.2 of the compiler package.
489 * Thu Mar 8 2001 Ullrich von Bassewitz <uz@cc65.org>
490 Update to version 2.6.1 of the compiler package.
492 * Sat Dec 6 2000 Ullrich von Bassewitz <uz@cc65.org>
493 Update for cc65 2.6.0 and RedHat 7.x
495 * Sun Jul 30 2000 Ullrich von Bassewitz <uz@musoftware.de>
496 The GEOS include files were not installed, remove headegen.sh
498 * Tue Jul 18 2000 Ullrich von Bassewitz <uz@musoftware.de>
499 Update to version 2.5.0 of the compiler package.
501 * Sat May 06 2000 Ullrich von Bassewitz <uz@musoftware.de>
502 Update to version 2.4.1 of the compiler package.
504 * Tue Jan 16 2000 Ullrich von Bassewitz <uz@musoftware.de>
505 Update to version 2.4.0 of the compiler package.
507 * Tue Jan 6 2000 Ullrich von Bassewitz <uz@musoftware.de>
508 Update to version 2.3.1 of the compiler package.
510 * Tue Jan 4 2000 Ullrich von Bassewitz <uz@musoftware.de>
511 Update to version 2.3.0 of the compiler package.
513 * Sat Sep 25 1999 Robert R. Wal <rrw@reptile.eu.org>
515 - changed to allow build as plain user
516 - `samples' are part of documentation, not part of library