* powerpc support

This commit is contained in:
peter 2004-03-21 17:07:19 +00:00
parent 1457970bf9
commit 9d8b53c9cc

View File

@ -1,7 +1,7 @@
Name: fpc Name: fpc
Version: 1.9.2 Version: 1.9.3
Release: 0 Release: 0
ExclusiveArch: i386 i586 i686 ExclusiveArch: i386 i586 i686 ppc
Copyright: GPL Copyright: GPL
Group: Development/Languages Group: Development/Languages
Source: %{name}-%{version}-src.tar.gz Source: %{name}-%{version}-src.tar.gz
@ -15,6 +15,12 @@ BuildRequires: fpc
%define docdir %{_docdir}/fpc-%{version} %define docdir %{_docdir}/fpc-%{version}
%define exampledir %{docdir}/examples %define exampledir %{docdir}/examples
%ifarch ppc
%define ppcname ppcppc
%else
%define ppcname ppc386
%endif
%define builddocdir %{buildroot}%{docdir} %define builddocdir %{buildroot}%{docdir}
%define buildmandir %{buildroot}%{_mandir} %define buildmandir %{buildroot}%{_mandir}
%define buildbindir %{buildroot}%{_bindir} %define buildbindir %{buildroot}%{_bindir}
@ -43,7 +49,7 @@ utils. Provided units are the runtime library (RTL), free component library
%setup -c %setup -c
%build %build
NEWPP=`pwd`/compiler/ppc386 NEWPP=`pwd`/compiler/%{ppcname}
NEWFPDOC=`pwd`/utils/fpdoc/fpdoc NEWFPDOC=`pwd`/utils/fpdoc/fpdoc
make compiler_cycle make compiler_cycle
make rtl_clean rtl_smart FPC=${NEWPP} make rtl_clean rtl_smart FPC=${NEWPP}
@ -60,7 +66,7 @@ if [ %{buildroot} != "/" ]; then
rm -rf %{buildroot} rm -rf %{buildroot}
fi fi
NEWPP=`pwd`/compiler/ppc386 NEWPP=`pwd`/compiler/%{ppcname}
INSTALLOPTS="FPC=${NEWPP} INSTALL_PREFIX=%{buildroot}/usr INSTALL_LIBDIR=%{buildlibdir} \ INSTALLOPTS="FPC=${NEWPP} INSTALL_PREFIX=%{buildroot}/usr INSTALL_LIBDIR=%{buildlibdir} \
INSTALL_DOCDIR=%{builddocdir} INSTALL_BINDIR=%{buildbindir} \ INSTALL_DOCDIR=%{builddocdir} INSTALL_BINDIR=%{buildbindir} \
INSTALL_EXAMPLEDIR=%{buildexampledir}" INSTALL_EXAMPLEDIR=%{buildexampledir}"
@ -79,7 +85,7 @@ if [ -z ${NODOCS} ]; then
fi fi
# create link # create link
ln -sf %{fpcdir}/ppc386 %{buildroot}%{_bindir}/ppc386 ln -sf %{fpcdir}/%{ppcname} %{buildroot}%{_bindir}/%{ppcname}
# Workaround: # Workaround:
# newer rpm versions do not allow garbage # newer rpm versions do not allow garbage