fpc-docs.spec 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. Name: fpc-docs
  2. Version: 1.1
  3. Release: 0
  4. Copyright: GPL
  5. Group: Development/Languages
  6. Source: %{name}-%{version}-src.tar.gz
  7. Summary: Free Pascal Compiler Documentation
  8. Packager: Peter Vreman ([email protected])
  9. URL: http://www.freepascal.org/
  10. BuildRoot: %{_tmppath}/fpc-build
  11. %define fpcdir %{_libdir}/fpc/%{version}
  12. %define docdir %{_docdir}/fpc-%{version}
  13. %define builddocdir %{buildroot}%{docdir}
  14. %description
  15. The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32bit
  16. Pascal Compiler. It comes with fully TP 7.0 compatible run-time library.
  17. Some extensions are added to the language, like function overloading. Shared
  18. libraries can be linked and created. Basic Delphi support is already
  19. implemented (classes,exceptions,ansistrings).
  20. This package contains the documentation in PDF format
  21. %prep
  22. %setup -c
  23. %build
  24. make -C docs pdf
  25. %install
  26. if [ %{buildroot} != "/" ]; then
  27. rm -rf %{buildroot}
  28. fi
  29. make -C docs pdfinstall DOCINSTALLDIR=%{builddocdir}
  30. %clean
  31. make -C docs clean
  32. if [ %{buildroot} != "/" ]; then
  33. rm -rf %{buildroot}
  34. fi
  35. %files
  36. %defattr(-, root, root)
  37. %doc %{docdir}/*