]> git.sur5r.net Git - cc65/blobdiff - packages/rpm/redhat/cc65.spec
Preparation for extra platform object files
[cc65] / packages / rpm / redhat / cc65.spec
index 32e45010817282170a706a6d6d1124f70b24c8fe..c40a9e9bbe3e0c1971b9de93ba1c0b8e35ea204f 100644 (file)
 Summary: Crosscompiler/Crossassembler for 6502 systems
 %define name cc65
 Name: %{name}
-%define version 2.11.0
+%define version 2.13.0
 Version: %{version}
 Release: 1
-Copyright: Freeware with exceptions - see docs
+License: Freeware with exceptions - see docs
 Group: Development/Languages
 Source: ftp://ftp.musoftware.de/uz/cc65/%{name}-sources-%{version}.tar.bz2
 Vendor: MU Softwareentwicklung
 Packager: Ullrich von Bassewitz <uz@musoftware.de>
+URL: http://www.cc65.org/
 %ifos linux
 BuildRequires: perl
 BuildRequires: sgml-tools
@@ -29,7 +30,8 @@ BuildRoot: /var/tmp/%{name}-%{version}
 A C crosscompiler for 6502 systems, including a macroassembler that
 supports 6502, 65SC02 and 65816 CPUs, a linker, an archiver and some
 other tools. To create programs for one of the supported target
-machines, you have to install at least one of the library packages.
+machines, you have to install at least one of the target platform
+packages in addition to the main package.
 
 %files
 %defattr(644,root,root,755)
@@ -47,9 +49,12 @@ machines, you have to install at least one of the library packages.
 %attr(755,root,root)                   /usr/bin/ld65
 %attr(755,root,root)                   /usr/bin/od65
 %attr(755,root,root) %dir      /usr/lib/cc65
+%attr(755,root,root) %dir      /usr/lib/cc65/cfg
 %attr(755,root,root) %dir      /usr/lib/cc65/emd
 %attr(755,root,root) %dir      /usr/lib/cc65/joy
 %attr(755,root,root) %dir      /usr/lib/cc65/lib
+%attr(755,root,root) %dir      /usr/lib/cc65/obj
+%attr(755,root,root) %dir      /usr/lib/cc65/ser
 %attr(755,root,root) %dir      /usr/lib/cc65/tgi
 %attr(755,root,root) %dir      /usr/lib/cc65/include
 %attr(644,root,root)                   /usr/lib/cc65/include/*.h
@@ -75,7 +80,7 @@ machines, you have to install at least one of the library packages.
 %package doc
 
 Requires: %{name} = %{version}
-Copyright: Freeware
+License: Freeware
 Summary: Documentation for the cc65 C compiler
 Group: Development/Languages
 
@@ -89,7 +94,6 @@ in HTML format. Other formats can be generated from the sources.
 %doc doc/internal.txt
 %doc doc/newvers.txt
 %doc samples
-%doc src/ld65/cfg/*.cfg
 
 
 
@@ -99,7 +103,7 @@ in HTML format. Other formats can be generated from the sources.
 
 %package apple2
 Requires: %{name} = %{version}
-Copyright: Freeware
+License: Freeware
 Summary: Apple ][ specific libraries and headers for the cc65 compiler.
 Group: Development/Languages
 
@@ -109,11 +113,12 @@ programs for the Apple ][ using the cc65 crosscompiler.
 
 %files apple2
 %attr(644,root,root)           /usr/lib/cc65/lib/apple2.lib
-%attr(644,root,root)           /usr/lib/cc65/lib/apple2.o
 %attr(644,root,root)           /usr/lib/cc65/emd/a2.*.emd
 %attr(644,root,root)           /usr/lib/cc65/joy/a2.*.joy
+%attr(644,root,root)           /usr/lib/cc65/mou/a2.*.mou
 %attr(644,root,root)           /usr/lib/cc65/ser/a2.*.ser
 %attr(644,root,root)           /usr/lib/cc65/tgi/a2.*.tgi
+%attr(644,root,root)                   /usr/lib/cc65/cfg/apple2-*.cfg
 
 
 
@@ -123,7 +128,7 @@ programs for the Apple ][ using the cc65 crosscompiler.
 
 %package apple2enh
 Requires: %{name} = %{version}
-Copyright: Freeware
+License: Freeware
 Summary: Apple //e specific libraries and headers for the cc65 compiler.
 Group: Development/Languages
 
@@ -133,9 +138,9 @@ programs for the Apple //e using the cc65 crosscompiler.
 
 %files apple2enh
 %attr(644,root,root)           /usr/lib/cc65/lib/apple2enh.lib
-%attr(644,root,root)           /usr/lib/cc65/lib/apple2enh.o
 %attr(644,root,root)           /usr/lib/cc65/emd/a2e.*.emd
 %attr(644,root,root)           /usr/lib/cc65/joy/a2e.*.joy
+%attr(644,root,root)           /usr/lib/cc65/mou/a2e.*.mou
 %attr(644,root,root)           /usr/lib/cc65/ser/a2e.*.ser
 %attr(644,root,root)           /usr/lib/cc65/tgi/a2e.*.tgi
 
@@ -147,7 +152,7 @@ programs for the Apple //e using the cc65 crosscompiler.
 
 %package atari
 Requires: %{name} = %{version}
-Copyright: Freeware
+License: Freeware
 Summary: Atari specific libraries and headers for the cc65 compiler.
 Group: Development/Languages
 
@@ -157,7 +162,6 @@ programs for the 8 bit Atari machines using the cc65 crosscompiler.
 
 %files atari
 %attr(644,root,root)           /usr/lib/cc65/lib/atari.lib
-%attr(644,root,root)           /usr/lib/cc65/lib/atari.o
 %attr(644,root,root)           /usr/lib/cc65/joy/atari*.joy
 
 
@@ -168,7 +172,7 @@ programs for the 8 bit Atari machines using the cc65 crosscompiler.
 
 %package atmos
 Requires: %{name} = %{version}
-Copyright: Freeware
+License: Freeware
 Summary: Oric Atmos specific libraries and headers for the cc65 compiler.
 Group: Development/Languages
 
@@ -178,7 +182,6 @@ programs for the Oric Atmos using the cc65 crosscompiler.
 
 %files atmos
 %attr(644,root,root)           /usr/lib/cc65/lib/atmos.lib
-%attr(644,root,root)           /usr/lib/cc65/lib/atmos.o
 %attr(644,root,root)           /usr/lib/cc65/tgi/atmos-*.tgi
 
 
@@ -189,7 +192,7 @@ programs for the Oric Atmos using the cc65 crosscompiler.
 
 %package c128
 Requires: %{name} = %{version}
-Copyright: Freeware
+License: Freeware
 Summary: C128 specific libraries and headers for the cc65 compiler.
 Group: Development/Languages
 
@@ -199,7 +202,6 @@ programs for the Commodore C128 using the cc65 crosscompiler.
 
 %files c128
 %attr(644,root,root)           /usr/lib/cc65/lib/c128.lib
-%attr(644,root,root)           /usr/lib/cc65/lib/c128.o
 %attr(644,root,root)           /usr/lib/cc65/emd/c128-*.emd
 %attr(644,root,root)           /usr/lib/cc65/joy/c128-*.joy
 %attr(644,root,root)           /usr/lib/cc65/mou/c128-*.mou
@@ -214,7 +216,7 @@ programs for the Commodore C128 using the cc65 crosscompiler.
 
 %package c16
 Requires: %{name} = %{version}
-Copyright: Freeware
+License: Freeware
 Summary: C16/116 specific libraries and headers for the cc65 compiler.
 Group: Development/Languages
 
@@ -224,7 +226,6 @@ programs for the Commodore C16/116 using the cc65 crosscompiler.
 
 %files c16
 %attr(644,root,root)           /usr/lib/cc65/lib/c16.lib
-%attr(644,root,root)           /usr/lib/cc65/lib/c16.o
 %attr(644,root,root)           /usr/lib/cc65/emd/c16-*.emd
 %attr(644,root,root)           /usr/lib/cc65/joy/c16-*.joy
 
@@ -236,7 +237,7 @@ programs for the Commodore C16/116 using the cc65 crosscompiler.
 
 %package c64
 Requires: %{name} = %{version}
-Copyright: Freeware
+License: Freeware
 Summary: C64 specific libraries and headers for the cc65 compiler.
 Group: Development/Languages
 
@@ -246,7 +247,6 @@ programs for the Commodore C64 using the cc65 crosscompiler.
 
 %files c64
 %attr(644,root,root)           /usr/lib/cc65/lib/c64.lib
-%attr(644,root,root)           /usr/lib/cc65/lib/c64.o
 %attr(644,root,root)           /usr/lib/cc65/emd/dtv-*.emd
 %attr(644,root,root)           /usr/lib/cc65/emd/c64-*.emd
 %attr(644,root,root)           /usr/lib/cc65/joy/c64-*.joy
@@ -262,7 +262,7 @@ programs for the Commodore C64 using the cc65 crosscompiler.
 
 %package cbm510
 Requires: %{name} = %{version}
-Copyright: Freeware
+License: Freeware
 Summary: CBM 510 specific libraries and headers for the cc65 compiler.
 Group: Development/Languages
 
@@ -273,7 +273,6 @@ crosscompiler.
 
 %files cbm510
 %attr(644,root,root)                   /usr/lib/cc65/lib/cbm510.lib
-%attr(644,root,root)                   /usr/lib/cc65/lib/cbm510.o
 %attr(644,root,root)           /usr/lib/cc65/emd/cbm510-*.emd
 %attr(644,root,root)           /usr/lib/cc65/joy/cbm510-*.joy
 %attr(644,root,root)           /usr/lib/cc65/ser/cbm510-*.ser
@@ -286,7 +285,7 @@ crosscompiler.
 
 %package cbm610
 Requires: %{name} = %{version}
-Copyright: Freeware
+License: Freeware
 Summary: CBM 610 specific libraries and headers for the cc65 compiler.
 Group: Development/Languages
 
@@ -297,7 +296,6 @@ the cc65 crosscompiler.
 
 %files cbm610
 %attr(644,root,root)                   /usr/lib/cc65/lib/cbm610.lib
-%attr(644,root,root)                   /usr/lib/cc65/lib/cbm610.o
 %attr(644,root,root)           /usr/lib/cc65/emd/cbm610-*.emd
 %attr(644,root,root)           /usr/lib/cc65/ser/cbm610-*.ser
 
@@ -309,7 +307,7 @@ the cc65 crosscompiler.
 
 %package geos
 Requires: %{name} = %{version}
-Copyright: Freeware
+License: Freeware
 Summary: GEOS specific libraries and headers for the cc65 compiler.
 Group: Development/Languages
 
@@ -320,7 +318,6 @@ GEOS programs for the C64/C128 using the cc65 crosscompiler.
 %files geos
 %attr(755,root,root)                   /usr/bin/grc
 %attr(644,root,root)           /usr/lib/cc65/lib/geos.lib
-%attr(644,root,root)           /usr/lib/cc65/lib/geos.o
 %attr(755,root,root) %dir      /usr/lib/cc65/include/geos
 %attr(644,root,root)                   /usr/lib/cc65/include/geos/*.h
 %attr(644,root,root)           /usr/lib/cc65/emd/geos-*.emd
@@ -335,7 +332,7 @@ GEOS programs for the C64/C128 using the cc65 crosscompiler.
 
 %package lynx
 Requires: %{name} = %{version}
-Copyright: Freeware
+License: Freeware
 Summary: Lynx specific libraries and headers for the cc65 compiler.
 Group: Development/Languages
 
@@ -345,8 +342,8 @@ programs for the Lynx Game Console using the cc65 crosscompiler.
 
 %files lynx
 %attr(644,root,root)           /usr/lib/cc65/lib/lynx.lib
-%attr(644,root,root)           /usr/lib/cc65/lib/lynx.o
 %attr(644,root,root)           /usr/lib/cc65/joy/lynx-*.joy
+%attr(644,root,root)           /usr/lib/cc65/ser/lynx-*.ser
 %attr(644,root,root)           /usr/lib/cc65/tgi/lynx-*.tgi
 
 
@@ -357,7 +354,7 @@ programs for the Lynx Game Console using the cc65 crosscompiler.
 
 %package nes
 Requires: %{name} = %{version}
-Copyright: Freeware
+License: Freeware
 Summary: NES specific libraries and headers for the cc65 compiler.
 Group: Development/Languages
 
@@ -368,7 +365,6 @@ crosscompiler.
 
 %files nes
 %attr(644,root,root)           /usr/lib/cc65/lib/nes.lib
-%attr(644,root,root)           /usr/lib/cc65/lib/nes.o
 %attr(644,root,root)           /usr/lib/cc65/joy/nes-*.joy
 
 
@@ -379,7 +375,7 @@ crosscompiler.
 
 %package pet
 Requires: %{name} = %{version}
-Copyright: Freeware
+License: Freeware
 Summary: PET specific libraries and headers for the cc65 compiler.
 Group: Development/Languages
 
@@ -390,7 +386,6 @@ crosscompiler.
 
 %files pet
 %attr(644,root,root)           /usr/lib/cc65/lib/pet.lib
-%attr(644,root,root)           /usr/lib/cc65/lib/pet.o
 %attr(644,root,root)           /usr/lib/cc65/joy/pet-*.joy
 
 
@@ -401,7 +396,7 @@ crosscompiler.
 
 %package plus4
 Requires: %{name} = %{version}
-Copyright: Freeware
+License: Freeware
 Summary: Plus/4 specific libraries and headers for the cc65 compiler.
 Group: Development/Languages
 
@@ -412,7 +407,6 @@ crosscompiler.
 
 %files plus4
 %attr(644,root,root)                   /usr/lib/cc65/lib/plus4.lib
-%attr(644,root,root)                   /usr/lib/cc65/lib/plus4.o
 %attr(644,root,root)           /usr/lib/cc65/joy/plus4-*.joy
 %attr(644,root,root)           /usr/lib/cc65/ser/plus4-*.ser
 
@@ -424,7 +418,7 @@ crosscompiler.
 
 %package supervision
 Requires: %{name} = %{version}
-Copyright: Freeware
+License: Freeware
 Summary: Supervision specific libraries and headers for the cc65 compiler.
 Group: Development/Languages
 
@@ -434,7 +428,7 @@ programs for the Supervision Game console using the cc65 crosscompiler.
 
 %files supervision
 %attr(644,root,root)           /usr/lib/cc65/lib/supervision.lib
-%attr(644,root,root)           /usr/lib/cc65/lib/supervision.o
+%attr(644,root,root)           /usr/lib/cc65/cfg/supervision-*.cfg
 
 
 
@@ -444,7 +438,7 @@ programs for the Supervision Game console using the cc65 crosscompiler.
 
 %package vic20
 Requires: %{name} = %{version}
-Copyright: Freeware
+License: Freeware
 Summary: VIC20 specific libraries and headers for the cc65 compiler.
 Group: Development/Languages
 
@@ -454,8 +448,8 @@ programs for the Commodore VIC20 using the cc65 crosscompiler.
 
 %files vic20
 %attr(644,root,root)           /usr/lib/cc65/lib/vic20.lib
-%attr(644,root,root)           /usr/lib/cc65/lib/vic20.o
 %attr(644,root,root)           /usr/lib/cc65/joy/vic20-*.joy
+%attr(644,root,root)                   /usr/lib/cc65/cfg/vic20-*.cfg
 
 
 
@@ -479,12 +473,12 @@ make -C doc html
 
 
 %install
-mkdir -p $RPM_BUILD_ROOT/usr/{bin,lib/cc65/{asminc,emd,include/{em,geos,joystick,mouse,sys,tgi},joy,lib,mou,ser,tgi}}
+mkdir -p $RPM_BUILD_ROOT/usr/{bin,lib/cc65/{asminc,cfg,emd,include/{em,geos,joystick,mouse,sys,tgi},joy,lib,mou,obj,ser,tgi}}
 
 # Binaries
 install -s -m 755 src/ar65/ar65 $RPM_BUILD_ROOT/usr/bin
 install -s -m 755 src/ca65/ca65 $RPM_BUILD_ROOT/usr/bin
-install -s -m 755 src/ca65html/ca65html $RPM_BUILD_ROOT/usr/bin
+install    -m 755 src/ca65html/ca65html $RPM_BUILD_ROOT/usr/bin
 install -s -m 755 src/cc65/cc65 $RPM_BUILD_ROOT/usr/bin
 install -s -m 755 src/cl65/cl65 $RPM_BUILD_ROOT/usr/bin
 install -s -m 755 src/co65/co65 $RPM_BUILD_ROOT/usr/bin
@@ -492,8 +486,9 @@ install -s -m 755 src/da65/da65 $RPM_BUILD_ROOT/usr/bin
 install -s -m 755 src/grc/grc $RPM_BUILD_ROOT/usr/bin
 install -s -m 755 src/ld65/ld65 $RPM_BUILD_ROOT/usr/bin
 install -s -m 755 src/od65/od65 $RPM_BUILD_ROOT/usr/bin
+
 # Libraries and includes
-install -m 644 libsrc/*.lib libsrc/*.o $RPM_BUILD_ROOT/usr/lib/cc65/lib
+install -m 644 libsrc/*.lib $RPM_BUILD_ROOT/usr/lib/cc65/lib
 install -m 644 include/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include
 install -m 644 include/geos/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/geos
 install -m 644 include/em/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/em
@@ -503,6 +498,16 @@ install -m 644 include/sys/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/sys
 install -m 644 include/tgi/*.h $RPM_BUILD_ROOT/usr/lib/cc65/include/tgi
 install -m 644 asminc/*.inc $RPM_BUILD_ROOT/usr/lib/cc65/asminc
 
+# Extra object files
+for extra in libsrc/*-*.o; do
+    install -m 644 ${extra} $RPM_BUILD_ROOT/usr/lib/cc65/obj
+done
+
+# Additional linker configurations
+for config in src/ld65/cfg/*-*.cfg; do
+    install -m 644 ${config} $RPM_BUILD_ROOT/usr/lib/cc65/cfg
+done
+
 # Drivers
 install -m 644 libsrc/*.emd $RPM_BUILD_ROOT/usr/lib/cc65/emd
 install -m 644 libsrc/*.joy $RPM_BUILD_ROOT/usr/lib/cc65/joy