123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- Name: fpc
- Version: 1.0.4
- Release: 1
- ExclusiveArch: i386 i586 i686
- Copyright: GPL
- Group: Development/Languages
- Source: fpc-1.0.4-src.tar.gz
- Summary: Free Pascal Compiler
- Packager: Peter Vreman ([email protected])
- URL: http://www.freepascal.org/
- BuildRoot: /tmp/fpc-build
- BuildRequires: fpc
- %define fpcversion 1.0.4
- %define fpcdir /usr/lib/fpc/%{fpcversion}
- %define docdir /usr/doc/fpc-%{fpcversion}
- %define builddocdir %{buildroot}%{docdir}
- %description
- The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32bit
- Pascal Compiler. It comes with fully TP 7.0 compatible run-time library.
- Some extensions are added to the language, like function overloading. Shared
- libraries can be linked. Basic Delphi support is already implemented (classes,
- exceptions,ansistrings,RTTI). This package contains commandline compiler and
- utils. Provided units are the runtime library (RTL), free component library
- (FCL), gtk,ncurses,zlib, mysql,postgres,ibase bindings.
- %prep
- %setup -c
- %build
- NEWPP=`pwd`/compiler/ppc386
- make compiler_cycle
- make rtl_clean rtl_smart PP=${NEWPP}
- make fcl_smart PP=${NEWPP}
- make api_smart PP=${NEWPP}
- make packages_smart PP=${NEWPP}
- make utils_all PP=${NEWPP}
- make compiler_fpcexe PP={$NEWPP}
- %install
- rm -rf %{buildroot}
-
- NEWPP=`pwd`/compiler/ppc386
- NEWPPUFILES=`pwd`/utils/ppufiles
- INSTALLOPTS="PP=${NEWPP} PPUFILES=${NEWPPUFILES} PREFIXINSTALLDIR=%{buildroot}/usr"
- make compiler_install ${INSTALLOPTS}
- make rtl_install ${INSTALLOPTS}
- make fcl_install ${INSTALLOPTS}
- make api_install ${INSTALLOPTS}
- make packages_install ${INSTALLOPTS}
- make utils_install ${INSTALLOPTS}
- make fcl_exampleinstall ${INSTALLOPTS} DOCINSTALLDIR=%{builddocdir}
- make api_exampleinstall ${INSTALLOPTS} DOCINSTALLDIR=%{builddocdir}
- make packages_exampleinstall ${INSTALLOPTS} DOCINSTALLDIR=%{builddocdir}
- make demo_install ${INSTALLOPTS} SOURCEINSTALLDIR=%{builddocdir}
- make doc_install ${INSTALLOPTS} DOCINSTALLDIR=%{builddocdir}
- make man_install ${INSTALLOPTS}
-
- %clean
- make compiler_clean
- make rtl_clean
- make fcl_clean
- make api_clean
- make packages_clean
- make utils_clean
- rm -rf %{buildroot}
-
- %post
- FPCDIR=%{fpcdir}
- # create link
- ln -sf $FPCDIR/ppc386 /usr/bin/ppc386
- # Create config
- $FPCDIR/samplecfg $FPCDIR
- # update ld.so cache
- #ldconfig
- %files
- /usr
|