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