12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- Name: fpc
- Version: 1.1
- Release: 0
- ExclusiveArch: i386 i586 i686
- Copyright: GPL
- Group: Development/Languages
- Source: %{name}-%{version}-src.tar.gz
- Summary: Free Pascal Compiler
- Packager: Peter Vreman ([email protected])
- URL: http://www.freepascal.org/
- BuildRoot: %{_tmppath}/fpc-build
- BuildRequires: fpc
- %define fpcdir %{_libdir}/fpc/%{version}
- %define docdir %{_docdir}/fpc-%{version}
- %define builddocdir %{buildroot}%{docdir}
- %define buildmandir %{buildroot}%{_mandir}
- %define buildbindir %{buildroot}%{_bindir}
- %define buildlibdir %{buildroot}%{_libdir}
- %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 FPC=${NEWPP}
- make packages_base_smart FPC=${NEWPP}
- make fcl_smart FPC=${NEWPP}
- make packages_extra_smart FPC=${NEWPP}
- make utils_all FPC=${NEWPP}
- %install
- if [ %{buildroot} != "/" ]; then
- rm -rf %{buildroot}
- fi
- NEWPP=`pwd`/compiler/ppc386
- INSTALLOPTS="FPC=${NEWPP} INSTALL_PREFIX=%{buildroot}/usr INSTALL_LIBDIR=%{buildlibdir} \
- INSTALL_DOCDIR=%{builddocdir} INSTALL_BINDIR=%{buildbindir}"
- make compiler_distinstall ${INSTALLOPTS}
- make rtl_distinstall ${INSTALLOPTS}
- make packages_distinstall ${INSTALLOPTS}
- make fcl_distinstall ${INSTALLOPTS}
- make utils_distinstall ${INSTALLOPTS}
- make demo_install ${INSTALLOPTS} INSTALL_SOURCEDIR=%{builddocdir}
- make doc_install ${INSTALLOPTS}
- make man_install ${INSTALLOPTS} INSTALL_PREFIX=%{buildmandir}
- # create link
- ln -sf %{fpcdir}/ppc386 %{buildroot}%{_bindir}/ppc386
- %clean
- make compiler_clean
- make rtl_clean
- make packages_clean
- make fcl_clean
- make utils_clean
- if [ %{buildroot} != "/" ]; then
- rm -rf %{buildroot}
- fi
- %post
- # Create config
- %{fpcdir}/samplecfg %{fpcdir}
- # update ld.so cache
- #ldconfig
- %files
- %defattr(-, root, root)
- %{_bindir}/*
- %{fpcdir}
- %doc %{docdir}/*
- %{_mandir}/*/*
|