fltk.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. #
  2. # "$Id: fltk.spec.in 8864 2011-07-19 04:49:30Z greg.ercolano $"
  3. #
  4. # RPM spec file for FLTK.
  5. #
  6. # Copyright 1998-2011 by Bill Spitzak and others.
  7. #
  8. # This library is free software. Distribution and use rights are outlined in
  9. # the file "COPYING" which should have been included with this file. If this
  10. # file is missing or damaged, see the license at:
  11. #
  12. # http://www.fltk.org/COPYING.php
  13. #
  14. # Please report all bugs and problems on the following page:
  15. #
  16. # http://www.fltk.org/str.php
  17. #
  18. %define version 1.3.2
  19. %define release 1
  20. %define prefix /usr
  21. Summary: Fast Light Tool Kit (FLTK)
  22. Name: fltk
  23. Version: %{version}
  24. Release: %{release}
  25. License: LGPL
  26. Group: System Environment/Libraries
  27. Source: ftp://ftp.fltk.org/pub/fltk/%{version}/fltk-%{version}-source.tar.gz
  28. URL: http://www.fltk.org/
  29. Packager: FLTK Developer <[email protected]>
  30. # use BuildRoot so as not to disturb the version already installed
  31. BuildRoot: /var/tmp/fltk-%{PACKAGE_VERSION}
  32. %description
  33. The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a
  34. cross-platform C++ GUI toolkit for UNIX(r)/Linux(r) (X11),
  35. Microsoft(r) Windows(r), and MacOS(r) X. FLTK provides modern
  36. GUI functionality without the bloat and supports 3D graphics via
  37. OpenGL(r) and its built-in GLUT emulation.
  38. %package devel
  39. Summary: FLTK Development Environment
  40. Group: Development/Libraries
  41. %description devel
  42. Install fltk-devel if you need to develop FLTK applications.
  43. You'll need to install the fltk package if you plan to run
  44. dynamically linked applications.
  45. %package games
  46. Summary: FLTK Games
  47. Group: Games
  48. %description games
  49. Install fltk-games to play Block Attack!, Checkers, or Sudoku on your computer.
  50. %prep
  51. %setup
  52. %build
  53. CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --mandir=%{_mandir} --enable-largefile --enable-shared --enable-threads --enable-xft --enable-xdbe --enable-xinerama
  54. # If we got this far, all prerequisite libraries must be here.
  55. make
  56. %install
  57. # these lines just make sure the directory structure in the
  58. # RPM_BUILD_ROOT exists
  59. rm -rf $RPM_BUILD_ROOT
  60. mkdir -p $RPM_BUILD_ROOT
  61. make -e DESTDIR=$RPM_BUILD_ROOT install install-desktop
  62. %clean
  63. rm -rf $RPM_BUILD_ROOT
  64. %files
  65. %defattr(-,root,root)
  66. %dir %{prefix}/lib
  67. %{prefix}/lib/libfltk*.so.*
  68. %files devel
  69. %defattr(-,root,root)
  70. %dir %{prefix}/bin
  71. %{prefix}/bin/fltk-config
  72. %{prefix}/bin/fluid
  73. %dir %{prefix}/include/FL
  74. %{prefix}/include/FL/*
  75. %{prefix}/include/Fl
  76. %dir %{prefix}/lib
  77. %{prefix}/lib/libfltk*.so
  78. %{prefix}/lib/libfltk*.a
  79. %dir %{_mandir}
  80. %{_mandir}/cat1/*
  81. %{_mandir}/cat3/*
  82. %{_mandir}/man1/*
  83. %{_mandir}/man3/*
  84. %dir %{prefix}/share/doc/fltk
  85. %{prefix}/share/doc/fltk/*
  86. %dir %{prefix}/share/applications
  87. %{prefix}/share/applications/*
  88. %dir %{prefix}/share/icons
  89. %{prefix}/share/icons/hicolor/*/apps/fluid.png
  90. %dir %{prefix}/share/mimelnk
  91. %{prefix}/share/mimelnk/*
  92. %files games
  93. %dir %{prefix}/bin
  94. %{prefix}/bin/blocks
  95. %{prefix}/bin/checkers
  96. %{prefix}/bin/sudoku
  97. %dir %{_mandir}
  98. %{_mandir}/cat6/*
  99. %{_mandir}/man6/*
  100. %dir %{prefix}/share/applications
  101. %{prefix}/share/applications/*
  102. %dir %{prefix}/share/icons
  103. %{prefix}/share/icons/hicolor/*/apps/blocks.png
  104. %{prefix}/share/icons/hicolor/*/apps/checkers.png
  105. %{prefix}/share/icons/hicolor/*/apps/sudoku.png
  106. #
  107. # End of "$Id: fltk.spec.in 8864 2011-07-19 04:49:30Z greg.ercolano $".
  108. #