fpcspec 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. Name: fpc
  2. Version: 0.99.5
  3. Release: 3
  4. ExclusiveArch: i386
  5. Copyright: GPL
  6. Group: Development/Languages
  7. Source: fpc-0.99.5-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. libraries can be linked and created.
  16. %define package fpc-%{PACKAGE_VERSION}
  17. %define bindir /usr/bin
  18. %define libdir /usr/lib/fpc
  19. %define vlibdir %{libdir}/%{PACKAGE_VERSION}
  20. %define unitdir %{vlibdir}/linuxunits
  21. %define docdir /usr/doc/%{package}
  22. %define gcclib `dirname \`rpm -ql gcc|grep libgcc.a\``
  23. %prep
  24. %setup -c
  25. %build
  26. make -C rtl/linux all
  27. make -C compiler cycle OPT=-Xs
  28. make -C rtl/utils all OPT=-Xs
  29. make -C docs html
  30. %install
  31. make -C rtl/linux install UNITINSTALLDIR=%{unitdir}
  32. make -C compiler install BININSTALLDIR=%{bindir} LIBINSTALLDIR=%{vlibdir}
  33. make -C rtl/utils install BININSTALLDIR=%{bindir} UNITINSTALLDIR=%{unitdir}
  34. make -C docs install DOCINSTALLDIR=%{docdir}
  35. %clean
  36. make -C rtl/linux clean
  37. make -C compiler clean
  38. make -C rtl/utils clean
  39. make -C docs clean
  40. %post
  41. %{vlibdir}/samplecfg
  42. %files
  43. %{bindir}/ppc386
  44. %{bindir}/dumpppu
  45. %{bindir}/ppumove
  46. %{bindir}/h2pas
  47. %{vlibdir}
  48. %dir %{libdir}
  49. %doc %{docdir}