You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

146 lines
3.7KB

  1. #
  2. # "$Id: ntk.spec.in 8646 2011-05-10 20:47:21Z matt $"
  3. #
  4. # RPM spec file for FLTK.
  5. #
  6. # Copyright 1998-2011 by Bill Spitzak and others.
  7. #
  8. # This library is free software; you can redistribute it and/or
  9. # modify it under the terms of the GNU Library General Public
  10. # License as published by the Free Software Foundation; either
  11. # version 2 of the License, or (at your option) any later version.
  12. #
  13. # This library is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. # Library General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU Library General Public
  19. # License along with this library; if not, write to the Free Software
  20. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  21. # USA.
  22. #
  23. # Please report all bugs and problems on the following page:
  24. #
  25. # http://www.ntk.org/str.php
  26. #
  27. %define version @FL_MAJOR_VERSION@.@FL_MINOR_VERSION@.@FL_PATCH_VERSION@
  28. %define release 1
  29. %define prefix /usr
  30. Summary: Fast Light Tool Kit (FLTK)
  31. Name: ntk
  32. Version: %{version}
  33. Release: %{release}
  34. License: LGPL
  35. Group: System Environment/Libraries
  36. Source: ftp://ftp.ntk.org/pub/ntk/%{version}/ntk-%{version}-source.tar.gz
  37. URL: http://www.ntk.org/
  38. Packager: FLTK Developer <ntk@ntk.org>
  39. # use BuildRoot so as not to disturb the version already installed
  40. BuildRoot: /var/tmp/ntk-%{PACKAGE_VERSION}
  41. %description
  42. The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a
  43. cross-platform C++ GUI toolkit for UNIX(r)/Linux(r) (X11),
  44. Microsoft(r) Windows(r), and MacOS(r) X. FLTK provides modern
  45. GUI functionality without the bloat and supports 3D graphics via
  46. OpenGL(r) and its built-in GLUT emulation.
  47. %package devel
  48. Summary: FLTK Development Environment
  49. Group: Development/Libraries
  50. %description devel
  51. Install ntk-devel if you need to develop FLTK applications.
  52. You'll need to install the ntk package if you plan to run
  53. dynamically linked applications.
  54. %package games
  55. Summary: FLTK Games
  56. Group: Games
  57. %description games
  58. Install ntk-games to play Block Attack!, Checkers, or Sudoku on your computer.
  59. %prep
  60. %setup
  61. %build
  62. 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
  63. # If we got this far, all prerequisite libraries must be here.
  64. make
  65. %install
  66. # these lines just make sure the directory structure in the
  67. # RPM_BUILD_ROOT exists
  68. rm -rf $RPM_BUILD_ROOT
  69. mkdir -p $RPM_BUILD_ROOT
  70. make -e DESTDIR=$RPM_BUILD_ROOT install install-desktop
  71. %clean
  72. rm -rf $RPM_BUILD_ROOT
  73. %files
  74. %defattr(-,root,root)
  75. %dir %{prefix}/lib
  76. %{prefix}/lib/libntk*.so.*
  77. %files devel
  78. %defattr(-,root,root)
  79. %dir %{prefix}/bin
  80. %{prefix}/bin/ntk-config
  81. %{prefix}/bin/fluid
  82. %dir %{prefix}/include/FL
  83. %{prefix}/include/FL/*
  84. %{prefix}/include/Fl
  85. %dir %{prefix}/lib
  86. %{prefix}/lib/libntk*.so
  87. %{prefix}/lib/libntk*.a
  88. %dir %{_mandir}
  89. %{_mandir}/cat1/*
  90. %{_mandir}/cat3/*
  91. %{_mandir}/man1/*
  92. %{_mandir}/man3/*
  93. %dir %{prefix}/share/doc/ntk
  94. %{prefix}/share/doc/ntk/*
  95. %dir %{prefix}/share/applications
  96. %{prefix}/share/applications/*
  97. %dir %{prefix}/share/icons
  98. %{prefix}/share/icons/hicolor/*/apps/fluid.png
  99. %dir %{prefix}/share/mimelnk
  100. %{prefix}/share/mimelnk/*
  101. %files games
  102. %dir %{prefix}/bin
  103. %{prefix}/bin/blocks
  104. %{prefix}/bin/checkers
  105. %{prefix}/bin/sudoku
  106. %dir %{_mandir}
  107. %{_mandir}/cat6/*
  108. %{_mandir}/man6/*
  109. %dir %{prefix}/share/applications
  110. %{prefix}/share/applications/*
  111. %dir %{prefix}/share/icons
  112. %{prefix}/share/icons/hicolor/*/apps/blocks.png
  113. %{prefix}/share/icons/hicolor/*/apps/checkers.png
  114. %{prefix}/share/icons/hicolor/*/apps/sudoku.png
  115. #
  116. # End of "$Id: ntk.spec.in 8646 2011-05-10 20:47:21Z matt $".
  117. #