magickit-2.51-1kkr2010.0.spec
%define shortname mkit
%define name magickit
%define version 2.51
%define release %mkrel 1
Summary: A development kit for programming the PC Engine and NES consoles
Summary(ja): PCエンジンとNESのプログラミング用の開発キット
Name: %{name}
Version: %{version}
Release: %{release}
Source: http://www.magicengine.com/mkit/%{shortname}%(echo %{version} | sed 's:\.::')_linux.zip
# Size : 209,852
# MD5 : 94a9352785b0a60853d44158ee698228
# SHA-1 : edf9ef56923f13e7e331afd8e680dbe4e48304b3
Patch: %{name}-%{version}-SBOLSZ.patch
# Size : 779
# MD5 : e8d9152a1890d2bb1be4002c0e745580
# SHA-1 : 9ba51908339ebbc572bee5275e5a2b62d87c1410
URL: http://www.magicengine.com/mkit/
License: Freeware-like
Group: Development/Other
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
%description
%{name} is a development kit for programming the PC Engine and NES consoles.
This contains nesasm (for NES) and pceas (for PC Engine).
%description -l ja
%{name}はPCエンジンとNESのプログラミング用の開発キットです。
これはnesasm(NES用)とpceas(PCエンジン用)を含んでいます。
%prep
%setup -q -c %{name}-%{version}
for d in $(find -type d | sort -r | %{__grep} -E -v DOC/PCE); do
for f in $(ls ${d}); do
%{__mv} ${d}/${f} ${d}/$(echo ${f} | tr '[:upper:]' '[:lower:]')
done
done
%patch -p1 -b .sbolsz
find -name index.txt -print | xargs %{__rm}
%build
%{__make} -C src/as/ -f makefile.unx CFLAGS="%{optflags}"
%install
%{__rm} %{buildroot} -fr
%{__install} -d %{buildroot}/{%{_bindir},%{_docdir}/%{name}/{nes,pce}}
%{__install} -m 755 bin/{nesasm,pceas} %{buildroot}/%{_bindir}/
%{__xz} file_id.diz readme.txt doc/*/*.txt
%{__install} -m 644 doc/nes/* %{buildroot}/%{_docdir}/%{name}/nes/
%{__install} -m 644 doc/pce/* %{buildroot}/%{_docdir}/%{name}/pce/
%clean
%{__rm} %{buildroot} -fr
%files
%defattr(-, root, root)
%{_bindir}/nesasm
%{_bindir}/pceas
%doc file_id.diz* readme.txt*
%changelog
* Tue Feb 02 2010 kakurasan <kakurasan AT gmail DOT com> 2.51-1kkr2010.0
- initial build