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

%description
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.

%prep
%autosetup

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

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

%files
%license LICENSE
%{_bindir}/ar65
%{_bindir}/ca65
%{_bindir}/cc65
%{_bindir}/chrcvt65
%{_bindir}/cl65
%{_bindir}/co65
%{_bindir}/da65
%{_bindir}/grc65
%{_bindir}/ld65
%{_bindir}/od65
%{_bindir}/sim65
%{_bindir}/sp65
%{_libdir}/cc65
%{_datadir}/cc65

%changelog