LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File cc65.spec of Package cc65 (Project home:napobear)

# spec file for package cc65
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/

Name:           cc65
Version:        2.15.0+git.20180312
Release:        0
Summary:        Crosscompiler/Crossassembler for 6502 systems
License:        GPL-2.0-only
Group:          Development/Languages/C and C++
URL:            http://cc65.github.io/cc65/
Source:         %{name}-%{version}.tar.xz
Source1:        %{name}-rpmlintrc
BuildRequires:  fdupes

A complete cross development package for 65(C)02 systems, including a powerful
macro assembler, a C compiler, linker, librarian and several other tools.

cc65 has C and runtime library support for many of the old 6502 machines,
including the following Commodore machines: VIC20, C16/C116 and Plus/4, C64,
C128, CBM 510 (aka P500), the 600/700 family, newer PET machines (not 2001);
the Apple ][+ and successors; the Atari 8 bit machines; GEOS for the C64, the
C128 and the Apple IIe; the Nintendo Entertainment System (NES); the
Supervision console; the Oric Atmos; the Lynx console.

The libraries are fairly portable, so creating a version for other 6502s
shouldn't be too much work.


make %{?_smp_mflags} CC="cc %{optflags}" PREFIX=%{_prefix} datadir=%{_libdir}/cc65 bindir=%{_bindir}

%make_install PREFIX=%{_prefix} datadir=%{_libdir}/cc65 bindir=%{_bindir}
%fdupes -s %{buildroot}

%license LICENSE