fpc.spec 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. Name: fpc
  2. Version: 1.1
  3. Release: 1
  4. ExclusiveArch: i386 i586 i686
  5. Copyright: GPL
  6. Group: Development/Languages
  7. Source: fpc-1.1-src.tar.gz
  8. Summary: Free Pascal Compiler
  9. Packager: Peter Vreman ([email protected])
  10. URL: http://www.freepascal.org/
  11. BuildRoot: /tmp/fpc-build
  12. BuildRequires: fpc
  13. %define fpcversion 1.1
  14. %define fpcdir /usr/lib/fpc/%{fpcversion}
  15. %define docdir /usr/doc/fpc-%{fpcversion}
  16. %define builddocdir %{buildroot}%{docdir}
  17. %description
  18. The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32bit
  19. Pascal Compiler. It comes with fully TP 7.0 compatible run-time library.
  20. Some extensions are added to the language, like function overloading. Shared
  21. libraries can be linked. Basic Delphi support is already implemented (classes,
  22. exceptions,ansistrings,RTTI). This package contains commandline compiler and
  23. utils. Provided units are the runtime library (RTL), free component library
  24. (FCL), gtk,ncurses,zlib, mysql,postgres,ibase bindings.
  25. %prep
  26. %setup -c
  27. %build
  28. NEWPP=`pwd`/compiler/ppc386
  29. make compiler_cycle FPC_VERSION=`ppc386 -iV`
  30. make rtl_clean rtl_smart FPC=${NEWPP}
  31. make packages_smart FPC=${NEWPP}
  32. make fcl_smart FPC=${NEWPP}
  33. make utils_all FPC=${NEWPP}
  34. %install
  35. rm -rf %{buildroot}
  36. NEWPP=`pwd`/compiler/ppc386
  37. INSTALLOPTS="FPC=${NEWPP} INSTALL_PREFIX=%{buildroot}/usr INSTALL_DOCDIR=%{builddocdir}"
  38. make compiler_distinstall ${INSTALLOPTS}
  39. make rtl_distinstall ${INSTALLOPTS}
  40. make packages_distinstall ${INSTALLOPTS}
  41. make fcl_distinstall ${INSTALLOPTS}
  42. make utils_distinstall ${INSTALLOPTS}
  43. make demo_install ${INSTALLOPTS} INSTALL_SOURCEDIR=%{builddocdir}
  44. make doc_install ${INSTALLOPTS}
  45. make man_install ${INSTALLOPTS}
  46. %clean
  47. make compiler_clean
  48. make rtl_clean
  49. make packages_clean
  50. make fcl_clean
  51. make utils_clean
  52. rm -rf %{buildroot}
  53. %post
  54. FPCDIR=%{fpcdir}
  55. # create link
  56. ln -sf $FPCDIR/ppc386 /usr/bin/ppc386
  57. # Create config
  58. $FPCDIR/samplecfg $FPCDIR
  59. # update ld.so cache
  60. #ldconfig
  61. %files
  62. /usr