fpcspec 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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: Michael Van Canneyt ([email protected])
  10. URL: http://tfdec1.fys.kuleuven.ac.be/~michael/fpc/fpc.html
  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 compiler cycle OPT=-O1p2 RELEASE=1
  28. make -C rtl/utils all RELEASE=1
  29. make -C rtl/linux libs PPUMOVE=../utils/ppumove
  30. make -C docs html
  31. %install
  32. make -C rtl/linux install UNITINSTALLDIR=%{unitdir}
  33. make -C rtl/linux libinstall UNITINSTALLDIR=%{unitdir}
  34. make -C compiler install BININSTALLDIR=%{bindir} LIBINSTALLDIR=%{vlibdir}
  35. make -C rtl/utils install BININSTALLDIR=%{bindir} UNITINSTALLDIR=%{unitdir}
  36. make -C docs install DOCINSTALLDIR=%{docdir}
  37. %clean
  38. make -C rtl/linux libsclean
  39. make -C compiler clean
  40. make -C rtl/utils clean
  41. make -C docs clean
  42. %post
  43. %{vlibdir}/samplecfg
  44. %files
  45. %{bindir}/ppc386
  46. %{bindir}/ppudump
  47. %{bindir}/ppumove
  48. %{bindir}/h2pas
  49. %{bindir}/mkdep
  50. %{bindir}/msg2inc
  51. %{vlibdir}
  52. %/usr/lib/libfpc.so
  53. %dir %{libdir}
  54. %doc %{docdir}