]> git.pld-linux.org Git - packages/cc65.git/blob - cc65.spec
- up to 2.10.0
[packages/cc65.git] / cc65.spec
1 Summary:        Crosscompiler/crossassembler for 6502 systems
2 Summary(pl):    Kompilator/asembler skro¶ny dla systemów 6502
3 Name:           cc65
4 Version:        2.10.0
5 Release:        1
6 License:        Freeware with exceptions - see docs
7 Group:          Development/Languages
8 # ftp.musoftware.de is ugly, there is mirror at ftp://ftp.funet.fi/pub/cbm/programming/cc65/
9 #Source0:       ftp://ftp.musoftware.de/pub/uz/cc65/%{name}-sources-%{version}.tar.bz2
10 Source0:        http://cc65.civitas64.de/%{name}-sources-%{version}.tar.bz2
11 # Source0-md5:  4ca1a2e720a50ac727674543e71e8150
12 URL:            http://www.cc65.org/
13 BuildRequires:  perl
14 BuildRequires:  sgml-tools
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 A C crosscompiler for 6502 systems, including a macroassembler that
19 supports 6502, 65SC02 and 65816 CPUs, a linker, an archiver and some
20 other tools. To create programs for one of the supported target
21 machines, you have to install at least one of the library packages.
22
23 %description -l pl
24 Kompilator skro¶ny C dla systemów 6502, w³±czaj±c w to makroassembler
25 wspieraj±cy 6502, 65SC02 oraz 65816 jako CPI, linker i parê innych
26 narzêdzi. By tworzyæ programy bêdziesz musia³ zainstalowac jeden z
27 pakietów bibliotecznych.
28
29 %package vic20
30 Summary:        VIC20 specific libraries and headers for the cc65 compiler
31 Summary(pl):    Specyficzne dla VIC20 biblioteki i pliki nag³ówkowe
32 License:        Freeware
33 Group:          Development/Languages
34 Requires:       %{name} = %{version}
35
36 %description vic20
37 This package contains the header files and libraries needed to write
38 programs for the Commodore VIC20 using the cc65 crosscompiler.
39
40 %description vic20 -l pl
41 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do pisania
42 programów dla Commodore VIC20 korzystaj±c z kompilatora skro¶nego
43 cc65.
44
45 %package c16
46 Summary:        C16/116 specific libraries and headers for the cc65 compiler
47 Summary(pl):    Specyficzne dla C16/116 biblioteki i pliki nag³ówkowe
48 License:        Freeware
49 Group:          Development/Languages
50 Requires:       %{name} = %{version}
51
52 %description c16
53 This package contains the header files and libraries needed to write
54 programs for the Commodore C16/116 using the cc65 crosscompiler.
55
56 %description c16 -l pl
57 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do pisania
58 programów dla Commodore C16/116 korzystaj±c z kompilatora skro¶nego
59 cc65.
60
61 %package c64
62 Summary:        C64 specific libraries and headers for the cc65 compiler
63 Summary(pl):    Specyficzne dla C64 biblioteki i pliki nag³ówkowe
64 License:        Freeware
65 Group:          Development/Languages
66 Requires:       %{name} = %{version}
67
68 %description c64
69 This package contains the header files and libraries needed to write
70 programs for the Commodore C64 using the cc65 crosscompiler.
71
72 %description c64 -l pl
73 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do pisania
74 programów dla Commodore C64 korzystaj±c z kompilatora skro¶nego cc65.
75
76 %package c128
77 Summary:        C128 specific libraries and headers for the cc65 compiler
78 Summary(pl):    Specyficzne dla C128 biblioteki i pliki nag³ówkowe
79 License:        Freeware
80 Group:          Development/Languages
81 Requires:       %{name} = %{version}
82
83 %description c128
84 This package contains the header files and libraries needed to write
85 programs for the Commodore C128 using the cc65 crosscompiler.
86
87 %description c128 -l pl
88 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do pisania
89 programów dla Commodore C128 korzystaj±c z kompilatora skro¶nego cc65.
90
91 %package atari
92 Summary:        Atari specific libraries and headers for the cc65 compiler
93 Summary(pl):    Specyficzne dla Atari biblioteki i pliki nag³ówkowe
94 License:        Freeware
95 Group:          Development/Languages
96 Requires:       %{name} = %{version}
97
98 %description atari
99 This package contains the header files and libraries needed to write
100 programs for the 8 bit Atari using the cc65 crosscompiler.
101
102 %description atari -l pl
103 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do pisania
104 programów dla 8 bitowego Atari korzystaj±c z kompilatora skro¶nego
105 cc65.
106
107 %package plus4
108 Summary:        Plus/4 specific libraries and headers for the cc65 compiler
109 Summary(pl):    Specyficzne dla Plus/4 biblioteki i pliki nag³ówkowe
110 License:        Freeware
111 Group:          Development/Languages
112 Requires:       %{name} = %{version}
113
114 %description plus4
115 This package contains the header files and libraries needed to write
116 programs for the Commodore Plus/4 and C16/116 using the cc65
117 crosscompiler.
118
119 %description plus4 -l pl
120 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do pisania
121 programów dla Commodore Plus/4 i C16/116 korzystaj±c z kompilatora
122 skro¶nego cc65.
123
124 %package pet
125 Summary:        PET specific libraries and headers for the cc65 compiler
126 Summary(pl):    Specyficzne dla PET biblioteki i pliki nag³ówkowe
127 License:        Freeware
128 Group:          Development/Languages
129 Requires:       %{name} = %{version}
130
131 %description pet
132 This package contains the header files and libraries needed to write
133 programs for the Commodore PET using the cc65 crosscompiler.
134
135 %description pet -l pl
136 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do pisania
137 programów dla Commodore PET korzystaj±c z kompilatora skro¶nego cc65.
138
139 %package cbm510
140 Summary:        CBM 510 specific libraries and headers for the cc65 compiler
141 Summary(pl):    Specyficzne dla CBM 510 biblioteki i pliki nag³ówkowe
142 License:        Freeware
143 Group:          Development/Languages
144 Requires:       %{name} = %{version}
145
146 %description cbm510
147 This package contains the header files and libraries needed to write
148 programs for the Commodore CBM 510 (aka P500) using the cc65
149 crosscompiler.
150
151 %description cbm510 -l pl
152 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do pisania
153 programów dla Commodore CBM 510 (zwany te¿ P500) korzystaj±c z
154 kompilatora skro¶nego cc65.
155
156 %package cbm610
157 Summary:        CBM 610 specific libraries and headers for the cc65 compiler
158 Summary(pl):    Specyficzne dla CBM 610 biblioteki i pliki nag³ówkowe
159 License:        Freeware
160 Group:          Development/Languages
161 Requires:       %{name} = %{version}
162
163 %description cbm610
164 This package contains the header files and libraries needed to write
165 programs for the Commodore PET-II (CBM600/700) using the cc65
166 crosscompiler.
167
168 %description cbm610 -l pl
169 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do pisania
170 programów dla Commodore PET-II (CBM600/700) korzystaj±c z kompilatora
171 skro¶nego cc65.
172
173 %package apple2
174 Summary:        Apple ][ specific libraries and headers for the cc65 compiler
175 Summary(pl):    Specyficzne dla Apple ][ biblioteki i pliki nag³ówkowe
176 License:        Freeware
177 Group:          Development/Languages
178 Requires:       %{name} = %{version}
179
180 %description apple2
181 This package contains the header files and libraries needed to write
182 programs for the Apple ][ using the cc65 crosscompiler.
183
184 %description apple2 -l pl
185 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do pisania
186 programów dla Apple ][ korzystaj±c z kompilatora skro¶nego cc65.
187
188 %package atmos
189 Summary:        Oric Atmos specific libraries and headers for the cc65 compiler
190 Summary(pl):    Specyficzne dla Oric Atmos biblioteki i pliki nag³ówkowe
191 License:        Freeware
192 Group:          Development/Languages
193 Requires:       %{name} = %{version}
194
195 %description atmos
196 This package contains the header files and libraries needed to write
197 programs for the Oric Atmos using the cc65 crosscompiler.
198
199 %description atmos -l pl
200 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do pisania
201 programów dla Oric Atmos korzystaj±c z kompilatora skro¶nego cc65.
202
203 %package geos
204 Summary:        GEOS specific libraries and headers for the cc65 compiler
205 Summary(pl):    Specyficzne dla GEOS biblioteki i pliki nag³ówkowe
206 License:        Freeware
207 Group:          Development/Languages
208 Requires:       %{name} = %{version}
209
210 %description geos
211 This package contains the header files and libraries needed to write
212 GEOS programs for the C64/C128 using the cc65 crosscompiler.
213
214 %description geos -l pl
215 Pakiet zawiera pliki nag³ówkowe i biblioteki potrzebne do pisania
216 programów GEOS dla C64/C128 korzystaj±c z kompilatora skro¶nego cc65.
217
218 %prep
219 %setup -q
220
221 echo 'CDEFS=-D$(SPAWN)' >> src/cl65/make/gcc.mak
222
223 %build
224 %{__make} -C src -f make/gcc.mak \
225         CC="%{__cc}" \
226         CFLAGS="%{rpmcflags} -Wall -W -I../common \$(CDEFS)"
227
228 %{__make} -C libsrc zap all
229 %{__make} -C doc html
230
231 %install
232 rm -rf $RPM_BUILD_ROOT
233 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/cc65/{asminc,emd,lib,tgi,include/{geos,tgi}}}
234
235 install -m 755 src/ar65/ar65 $RPM_BUILD_ROOT%{_bindir}
236 install -m 755 src/ca65/ca65 $RPM_BUILD_ROOT%{_bindir}
237 install -m 755 src/ca65html/ca65html $RPM_BUILD_ROOT%{_bindir}
238 install -m 755 src/cc65/cc65 $RPM_BUILD_ROOT%{_bindir}
239 install -m 755 src/cl65/cl65 $RPM_BUILD_ROOT%{_bindir}
240 install -m 755 src/da65/da65 $RPM_BUILD_ROOT%{_bindir}
241 install -m 755 src/grc/grc $RPM_BUILD_ROOT%{_bindir}
242 install -m 755 src/ld65/ld65 $RPM_BUILD_ROOT%{_bindir}
243 install -m 755 src/od65/od65 $RPM_BUILD_ROOT%{_bindir}
244 install libsrc/*.lib libsrc/*.o $RPM_BUILD_ROOT%{_libdir}/%{name}/lib
245 install include/*.h $RPM_BUILD_ROOT%{_libdir}/%{name}/include
246 install include/geos/*.h $RPM_BUILD_ROOT%{_libdir}/%{name}/include/geos
247 install include/tgi/*.h $RPM_BUILD_ROOT%{_libdir}/%{name}/include/tgi
248 install asminc/*.inc $RPM_BUILD_ROOT%{_libdir}/%{name}/asminc
249
250 # TGI and EM drivers
251 install -m 644 libsrc/*.emd $RPM_BUILD_ROOT%{_libdir}/%{name}/emd
252 install -m 644 libsrc/*.tgi $RPM_BUILD_ROOT%{_libdir}/%{name}/tgi
253
254 %clean
255 rm -rf $RPM_BUILD_ROOT
256
257 %files
258 %defattr(644,root,root,755)
259 %doc doc/{BUGS,CREDITS,compile.txt,grc.txt,internal.txt,newvers.txt,readme.1st} doc/*.html announce.txt samples
260 %attr(755,root,root) %{_bindir}/*
261 %dir %{_libdir}/%{name}
262 %dir %{_libdir}/%{name}/emd
263 %dir %{_libdir}/%{name}/lib
264 %dir %{_libdir}/%{name}/tgi
265 %dir %{_libdir}/%{name}/include
266 %dir %{_libdir}/%{name}/include/tgi
267 %dir %{_libdir}/%{name}/asminc
268 %{_libdir}/%{name}/include/*.h
269 %{_libdir}/%{name}/asminc/*.inc
270 %{_libdir}/%{name}/include/tgi/*.h
271
272 %files vic20
273 %defattr(644,root,root,755)
274 %{_libdir}/%{name}/lib/vic20.lib
275 %{_libdir}/%{name}/lib/vic20.o
276 %doc src/ld65/cfg/vic20.cfg
277
278 %files c16
279 %defattr(644,root,root,755)
280 %{_libdir}/%{name}/lib/c16.lib
281 %{_libdir}/%{name}/lib/c16.o
282 %doc src/ld65/cfg/c16.cfg
283
284 %files c64
285 %defattr(644,root,root,755)
286 %{_libdir}/%{name}/lib/c64.lib
287 %{_libdir}/%{name}/lib/c64.o
288 %{_libdir}/%{name}/emd/c64-*.emd
289 %{_libdir}/%{name}/tgi/c64-*.tgi
290 %doc src/ld65/cfg/c64.cfg
291
292 %files c128
293 %defattr(644,root,root,755)
294 %{_libdir}/%{name}/lib/c128.lib
295 %{_libdir}/%{name}/lib/c128.o
296 %{_libdir}/%{name}/emd/c128-*.emd
297 %doc src/ld65/cfg/c128.cfg
298
299 %files atari
300 %defattr(644,root,root,755)
301 %{_libdir}/%{name}/lib/atari.lib
302 %{_libdir}/%{name}/lib/atari.o
303 %doc src/ld65/cfg/atari.cfg
304
305 %files plus4
306 %defattr(644,root,root,755)
307 %{_libdir}/%{name}/lib/plus4.lib
308 %{_libdir}/%{name}/lib/plus4.o
309 %doc src/ld65/cfg/plus4.cfg
310
311 %files pet
312 %defattr(644,root,root,755)
313 %{_libdir}/%{name}/lib/pet.lib
314 %{_libdir}/%{name}/lib/pet.o
315 %doc src/ld65/cfg/pet.cfg
316
317 %files cbm510
318 %defattr(644,root,root,755)
319 %{_libdir}/%{name}/lib/cbm510.lib
320 %{_libdir}/%{name}/lib/cbm510.o
321 %{_libdir}/%{name}/emd/cbm510-*.emd
322 %doc src/ld65/cfg/cbm510.cfg
323
324 %files cbm610
325 %defattr(644,root,root,755)
326 %{_libdir}/%{name}/lib/cbm610.lib
327 %{_libdir}/%{name}/lib/cbm610.o
328 %{_libdir}/%{name}/emd/cbm610-*.emd
329 %doc src/ld65/cfg/cbm610.cfg
330
331 %files apple2
332 %defattr(644,root,root,755)
333 %{_libdir}/%{name}/lib/apple2.lib
334 %{_libdir}/%{name}/lib/apple2.o
335 %doc src/ld65/cfg/apple2.cfg
336
337 %files atmos
338 %defattr(644,root,root,755)
339 %{_libdir}/%{name}/lib/atmos.lib
340 %{_libdir}/%{name}/lib/atmos.o
341 %doc src/ld65/cfg/atmos.cfg
342
343 %files geos
344 %defattr(644,root,root,755)
345 %attr(755,root,root) %{_bindir}/grc
346 %{_libdir}/%{name}/lib/geos.lib
347 %{_libdir}/%{name}/lib/geos.o
348 %dir %{_libdir}/%{name}/include/geos
349 %{_libdir}/%{name}/include/geos/*.h
350 %doc src/ld65/cfg/geos.cfg
This page took 0.210326 seconds and 3 git commands to generate.