Summary: A Z80 cross compiler Name: z88dk Version: 1.6 Release: 2%{?dist} License: Artistic Group: Development/Tools Source: %{name}-src-%{version}.tar.gz URL: http://z88dk.sourceforge.net/ Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description z88dk is a Z80 cross compiler capable of generating binary files for a variety of Z80 based machines (such as the ZX81, Spectrum and Jupiter Ace). %prep %setup -q %{_bindir}/find . -depth -name CVS -type d -exec %{__rm} -rf {} \; %{__mkdir} bin # Separate manpages from other docs and fix their permissions %{__mv} doc/netman . %{__chmod} 644 netman/man3z/* # Put files in %{_datadir}/z88dk rather than /usr/lib/z88dk %{__sed} -i -e 's@[$][(]prefix[)]/lib/z88dk@$(datadir)/z88dk@g' \ -e 's@[$][{]prefix[}][$]"/lib/z88dk@%{_datadir}/z88dk@g' Makefile # Fix files with wrong line endings and bad permissions %{_bindir}/find doc examples -type f -exec %{__sed} -i -e 's/\r*$//' {} \; %{_bindir}/find doc examples -type f -exec %{__chmod} 644 {} \; %build export Z80_OZFILES=`pwd`/lib/ export ZCCCFG=`pwd`/lib/config/ export PATH=`pwd`/bin:$PATH export CC=gcc export CFLAGS="%{optflags}" # Note: do not use %{?_smp_mflags} with make because the Makefiles don't support parallel builds %{__make} clean %{__make} -e %{__make} -e libs %install export Z80_OZFILES=`pwd`/lib/ export ZCCCFG=`pwd`/lib/config/ export PATH=`pwd`/bin:$PATH %{__rm} -rf %{buildroot} %{makeinstall} install-libs %{__mkdir_p} %{buildroot}%{_mandir}/man3z %{__cp} -p netman/man3z/* %{buildroot}%{_mandir}/man3z %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,0755) %doc doc/*.html doc/*.gif doc/copt.man %doc doc/compile.txt doc/cpc.txt doc/embedded.txt doc/error.txt doc/farmods.txt %doc doc/fileio.txt doc/lib3d.txt doc/options.txt doc/packages.txt %doc doc/platforms.txt doc/retarget.txt doc/stdio.txt doc/ti.txt doc/z80asm.txt %doc doc/zxscrdrv.txt %doc EXTENSIONS LICENSE www # Examples might be worth putting in subpackage %doc examples %{_bindir}/appmake %{_bindir}/copt %{_bindir}/sccz80 %{_bindir}/z80asm %{_bindir}/zcc %{_bindir}/zcpp %{_datadir}/z88dk/ %{_mandir}/man3z/ %changelog * Tue Sep 13 2005 Paul Howarth - 1.6-2 - Use macros consistently - Clean out buildroot in %%install rather than %%prep - Include additional docs - Tidy summary and description - Honor %%{optflags} - Remove CVS cruft - Separate manpages from rest of docs - Put target libraries, include files etc. under %%{_datadir}, not /usr/lib - No scriptlets needed - Fix file permissions and line endings - Remove vendor and packager tags - Use "Artistic" in license tag * Tue Sep 13 2005 Paul F. Johnson - Fixes to spec file * Mon Sep 12 2005 Paul F. Johnson - initial import and rpm builds