fpcspec 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. Name: fpc
  2. Version: 0.99.8
  3. Release: 1
  4. ExclusiveArch: i386
  5. Copyright: GPL
  6. Group: Development/Languages
  7. Source: fpc-0.99.8-src.tar.gz
  8. Summary: Free Pascal Compiler
  9. Packager: Peter Vreman ([email protected])
  10. URL: http://tfdec1.fys.kuleuven.ac.be/~michael/fpc/
  11. %description
  12. The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi II compatible
  13. 32bit Pascal Compiler. It comes with fully TP 7.0 compatible run-time library.
  14. Some extensions are added to the language, like function overloading. Shared
  15. and static libraries can be linked and created. Linking with C libraries is
  16. easy, so interfaces can be written fast.
  17. %define package fpc-%{PACKAGE_VERSION}
  18. %define bindir /usr/bin
  19. %define libdir /usr/lib/fpc
  20. %define vlibdir %{libdir}/%{PACKAGE_VERSION}
  21. %define unitdir %{vlibdir}/linuxunits
  22. %define docdir /usr/doc/%{package}
  23. %define gcclib `dirname \`rpm -ql gcc|grep libgcc.a\``
  24. %prep
  25. %setup -c
  26. %build
  27. make -C rtl/linux all
  28. make -C compiler cycle RELEASE=1
  29. make -C rtl/utils all RELEASE=1
  30. make -C docs html
  31. %install
  32. make -C rtl/linux install UNITINSTALLDIR=%{unitdir}
  33. make -C compiler install BININSTALLDIR=%{bindir} LIBINSTALLDIR=%{vlibdir}
  34. make -C rtl/utils install BININSTALLDIR=%{bindir} UNITINSTALLDIR=%{unitdir}
  35. make -C docs install DOCINSTALLDIR=%{docdir}
  36. %clean
  37. make -C rtl/linux clean
  38. make -C compiler clean
  39. make -C rtl/utils clean
  40. make -C docs clean
  41. %post
  42. %{vlibdir}/samplecfg
  43. %files
  44. %{bindir}/ppc386
  45. %{bindir}/ppudump
  46. %{bindir}/ppumove
  47. %{bindir}/h2pas
  48. %{bindir}/mkdep
  49. %{bindir}/msg2inc
  50. %{vlibdir}
  51. %dir %{libdir}
  52. %doc %{docdir}