File cc65.spec of Package cc65

#
# spec file for package spec (Version 2.0)
#
# Copyright (c) 2003 SuSE Linux AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#

# norootforbuild

Name:         cc65
License:      COPYRIGHT
Group:        unsorted
Autoreqprov:  on
Version:      2.11.0
Release:      0
Summary:      Near-ANSI-C development kit for 6502-based systems
Source:       %name-sources-%version.tar.bz2
Patch:        %name-%version.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
spec

%prep
%setup
%patch
find -name "*.mak" |while read file ; do sed 's,-O2,$(RPM_OPT_FLAGS),g' <$file >$file.new && mv $file.new $file ; done

%build
CC="gcc $RPM_OPT_FLAGS" make -f make/gcc.mak %{?jobs:-j%jobs} CC="gcc $RPM_OPT_FLAGS" CFLAGS="-O3"

%install
make -f make/gcc.mak install prefix=$RPM_BUILD_ROOT/usr docdir=$RPM_BUILD_ROOT%_docdir

%files
%defattr(-,root,root)
/usr/bin/*
/usr/lib/cc65
%doc %_docdir/%name
openSUSE Build Service is sponsored by