fpc-0.99.10.spec 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. Name: fpc
  2. Version: 0.99.10
  3. Release: 1
  4. ExclusiveArch: i386
  5. Copyright: GPL
  6. Group: Development/Languages
  7. Source: fpc-0.99.10-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. %prep
  23. %setup -c
  24. %build
  25. make -C compiler cycle RELEASE=1
  26. make -C rtl/utils all RELEASE=1
  27. %install
  28. make -C compiler install BININSTALLDIR=%{bindir} LIBINSTALLDIR=%{vlibdir}
  29. make -C rtl/linux install UNITINSTALLDIR=%{unitdir}
  30. make -C rtl/linux libinstall UNITINSTALLDIR=%{unitdir} PPUMOVE=../utils/ppumove
  31. make -C rtl/utils install BININSTALLDIR=%{bindir} UNITINSTALLDIR=%{unitdir}
  32. %clean
  33. make -C compiler clean
  34. make -C rtl/utils clean
  35. make -C rtl/linux libsclean
  36. %post
  37. %{vlibdir}/samplecfg %{vlibdir} `dirname \`find /usr/lib/gcc-lib/ -name libgcc.a -print | grep -v egcs \``
  38. ldconfig
  39. %files
  40. %{bindir}/ppc386
  41. %{bindir}/ppudump
  42. %{bindir}/ppumove
  43. %{bindir}/h2pas
  44. %{vlibdir}
  45. /usr/lib/libfpc.so
  46. %dir %{libdir}