fpcspec 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Name: fpc
  2. Version: 0.99.0
  3. Release: 1
  4. ExclusiveArch: i386
  5. Copyright: GPL
  6. Group: Development/Languages
  7. Source: fpc-0.99.0-src.tar.gz
  8. Summary: Free Pascal Compiler
  9. %description
  10. The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi II compatible
  11. Pascal Compiler. It comes with fully TP 7.0 compatible run-time library.
  12. Some extensions are added to the language, like function overloading.
  13. %define package fpc-%{PACKAGE_VERSION}
  14. %define bindir /usr/bin
  15. %define libdir /usr/lib/fpc
  16. %define vlibdir %{libdir}/%{PACKAGE_VERSION}
  17. %define unitdir %{vlibdir}/linuxunits
  18. %define docdir /usr/doc/%{package}
  19. %define gcclib `dirname \`rpm -ql gcc|grep libgcc.a\``
  20. %prep
  21. %setup -c
  22. %build
  23. cd rtl/linux
  24. #make
  25. cd ../../compiler
  26. #make cycle
  27. cd ../docs
  28. #make html
  29. %install
  30. cd rtl/linux
  31. #make install UNITINSTALLDIR=%{unitdir}
  32. cd ../../compiler
  33. #make install PROGINSTALLDIR=%{bindir} LIBINSTALLDIR=%{vlibdir}
  34. cd ../docs
  35. #make install DOCINSTALLDIR=%{docdir}
  36. %post
  37. %{vlibdir}/samplecfg
  38. %clean
  39. cd rtl/linux
  40. #make clean
  41. cd ../../compiler
  42. #make clean
  43. cd ../docs
  44. #make clean
  45. %files
  46. %{bindir}/ppc386
  47. %{vlibdir}
  48. %dir %{libdir}
  49. %doc %{docdir}