fltk-vl.spec 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. %define _default_patch_fuzz 2
  2. #define snap r6027
  3. #define _disable_static --disable-static
  4. Summary: C++ user interface toolkit
  5. Name: fltk
  6. Version: 1.1.9
  7. Release: 1%{?_dist_release}
  8. # see COPYING (or http://www.fltk.org/COPYING.php ) for exceptions details
  9. License: LGPLv2+ with exceptions
  10. Group: System Environment/Libraries
  11. URL: http://www.fltk.org/
  12. %if "%{?snap:1}" == "1"
  13. Source0: http://ftp.easysw.com/pub/fltk/snapshots/fltk-1.1.x-%{snap}.tar.bz2
  14. %else
  15. Source0: http://ftp.easysw.com/pub/fltk/%{version}/%{name}-%{version}-source.tar.bz2
  16. %endif
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  18. ## FIXME/TODO: upstream these asap -- Rex
  19. # omit extraneous bits from fltk-config --cflags|--libs (http://bugzilla.redhat.com/199656)
  20. Patch1: fltk-1.1.x-r5750-199656.patch
  21. Patch2: fltk-1.1.7-test.patch
  22. # libfltk_gl.so had undefined symbols
  23. Patch3: fltk-1.1.x-r5750-undefined.patch
  24. # nuke --rpath (#238284)
  25. Patch4: fltk-1.1.x-r5750-rpath.patch
  26. Patch5: fltk-1.1.8-fluid_desktop.patch
  27. BuildRequires: libICE-devel libSM-devel
  28. BuildRequires: libXext-devel libXinerama-devel libXft-devel libXt-devel libX11-devel
  29. BuildRequires: xorg-x11-proto-devel xorg-x11-utils
  30. BuildRequires: libjpeg-devel
  31. BuildRequires: zlib-devel
  32. BuildRequires: libpng-devel
  33. BuildRequires: libGL-devel libGLU-devel
  34. BuildRequires: pkgconfig
  35. BuildRequires: desktop-file-utils
  36. BuildRequires: man
  37. %description
  38. FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit.
  39. It provides modern GUI functionality without the bloat, and supports
  40. 3D graphics via OpenGL and its built-in GLUT emulation.
  41. %package devel
  42. Summary: Development files for %{name}
  43. Group: Development/Libraries
  44. Requires: %{name} = %{version}-%{release}
  45. Requires: libstdc++34-devel
  46. Requires: libGL-devel libGLU-devel
  47. Requires: libXft-devel libXext-devel
  48. Requires: libX11-devel libSM-devel libICE-devel
  49. %description devel
  50. %{summary}.
  51. %package fluid
  52. Summary: Fast Light User Interface Designer
  53. Group: Development/Tools
  54. Requires: %{name}-devel = %{version}-%{release}
  55. %description fluid
  56. %{summary}, an interactive GUI designer for %{name}.
  57. %prep
  58. %if "%{?snap:1}" == "1"
  59. %setup -q -n fltk-1.1.x-%{snap}
  60. %else
  61. %setup -q
  62. %endif
  63. %patch1 -p1 -b .199656
  64. %patch2 -p1 -b .test
  65. %patch3 -p1 -b .undefined
  66. %patch4 -p1 -b .rpath
  67. %patch5 -p1 -b .fluid_desktop
  68. %build
  69. # using --with-optim, so unset CFLAGS/CXXFLAGS
  70. export CFLAGS=" "
  71. export CXXFLAGS=" "
  72. %configure \
  73. %{?_disable_static} \
  74. --with-optim="%{optflags}" \
  75. --enable-largefile \
  76. --enable-shared \
  77. --enable-threads \
  78. --enable-xdbe \
  79. --enable-xinerama \
  80. --enable-xft
  81. make %{?_smp_mflags}
  82. %install
  83. rm -rf $RPM_BUILD_ROOT
  84. # Makefile hack for 64bitness
  85. %if "%{_lib}" != "lib"
  86. mkdir -p $RPM_BUILD_ROOT%{_libdir}
  87. pushd $RPM_BUILD_ROOT%{_libdir}/..
  88. ln -s %{_lib} lib
  89. popd
  90. %endif
  91. make install install-desktop DESTDIR=$RPM_BUILD_ROOT
  92. # omit examples/games:
  93. make -C test uninstall-linux DESTDIR=$RPM_BUILD_ROOT
  94. rm -f $RPM_BUILD_ROOT%{_mandir}/man?/{blocks,checkers,sudoku}*
  95. # Makefile hack for 64bitness
  96. %if "%{_lib}" != "lib"
  97. rm -f $RPM_BUILD_ROOT%{_libdir}/../lib
  98. %endif
  99. desktop-file-install --vendor="%{name}" \
  100. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  101. $RPM_BUILD_ROOT%{_datadir}/applications/fluid.desktop
  102. # docs
  103. rm -rf __docs
  104. mv $RPM_BUILD_ROOT%{_docdir}/fltk __docs
  105. ## unpackaged files
  106. # errant docs
  107. rm -rf $RPM_BUILD_ROOT%{_mandir}/cat*
  108. # static libs
  109. %if "%{?_disable_static:1}" == "1"
  110. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.a
  111. %endif
  112. %check
  113. make test ||:
  114. %clean
  115. rm -rf $RPM_BUILD_ROOT
  116. %post -p /sbin/ldconfig
  117. %postun -p /sbin/ldconfig
  118. %post fluid
  119. touch --no-create %{_datadir}/icons/hicolor ||:
  120. gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
  121. update-desktop-database >& /dev/null ||:
  122. %postun fluid
  123. touch --no-create %{_datadir}/icons/hicolor ||:
  124. gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
  125. update-desktop-database >& /dev/null ||:
  126. %files
  127. %defattr(-,root,root,-)
  128. %doc ANNOUNCEMENT CHANGES COPYING CREDITS README
  129. %{_libdir}/libfltk.so.*
  130. %{_libdir}/libfltk_forms.so.*
  131. %{_libdir}/libfltk_gl.so.*
  132. %{_libdir}/libfltk_images.so.*
  133. %files devel
  134. %defattr(-,root,root,-)
  135. %doc __docs/*
  136. %{_bindir}/fltk-config
  137. %{_includedir}/FL/
  138. %{_includedir}/Fl
  139. %{_libdir}/libfltk.so
  140. %{_libdir}/libfltk_forms.so
  141. %{_libdir}/libfltk_gl.so
  142. %{_libdir}/libfltk_images.so
  143. %if "%{?_disable_static:1}" != "1"
  144. %{_libdir}/libfltk.a
  145. %{_libdir}/libfltk_forms.a
  146. %{_libdir}/libfltk_gl.a
  147. %{_libdir}/libfltk_images.a
  148. %endif
  149. %{_mandir}/man1/fltk-config.1*
  150. %{_mandir}/man3/fltk.3*
  151. %files fluid
  152. %defattr(-,root,root,-)
  153. %{_bindir}/fluid
  154. %{_mandir}/man1/fluid.1*
  155. %{_datadir}/applications/*fluid.desktop
  156. %{_datadir}/icons/hicolor/*/*/*
  157. # FIXME
  158. %{_datadir}/mimelnk/*/*.desktop
  159. %changelog
  160. * Thu Feb 19 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.1.9-1
  161. - initial build for Vine Linux
  162. * Wed Oct 01 2008 Rex Dieter <rdieter@fedoraproject.org> 1.1.9-1
  163. - fltk-1.1.9
  164. * Sat Mar 29 2008 Rex Dieter <rdieter@fedoraproject.org> 1.1.8-1
  165. - fltk-1.1.8 (final)
  166. * Tue Feb 29 2008 Rex Dieter <rdieter@fedoraproject.org> 1.1.8-0.8.r6027
  167. - fltk-1.1.x-r6027
  168. * Mon Feb 11 2008 Rex Dieter <rdieter@fedoraproject.org> 1.1.8-0.7.r5989
  169. - respin (gcc43)
  170. * Wed Dec 12 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.1.8-0.6.r5989
  171. - --enable-largefile
  172. - fltk-1.1.x-r5989 snapshot (1.1.8 pre-release)
  173. * Mon Aug 20 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.1.8-0.5.r5750
  174. - License: LGPLv2+ with exceptions
  175. * Sat Aug 11 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.1.8-0.4.r5750
  176. - License: LGPLv2+ (with exceptions)
  177. * Sun Apr 29 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.1.8-0.3.r5750
  178. - *really* fix --rpath issue, using non-empty patch this time (#238284)
  179. * Sun Apr 29 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.1.8-0.2.r5750
  180. - nuke --rpath (#238284)
  181. * Thu Apr 05 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.1.8-0.1.r5750
  182. - fltk-1.1.x-r5750 snapshot (1.1.8 pre-release)
  183. - --enable-xinerama
  184. - patch for undefined symbols in libfltk_gl
  185. * Wed Apr 4 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - 1.1.7-9.r5555
  186. - Always apply fltk-config patch (#199656)
  187. - Update fltk-1.1.7-config.patch
  188. * Wed Dec 13 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.1.7-8.r5555
  189. - more 64bit hackage to workaround broken Makefile logic (#219348)
  190. * Wed Dec 13 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.1.7-7.r5555
  191. - fltk-1.1.x-r5555 snapshot, for 64bit issues (#219348)
  192. - restore static libs (they're tightly coupled with fltk-config)
  193. - cleanup %%description's
  194. * Mon Dec 11 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.1.7-6
  195. - move tests to %%check section
  196. * Mon Dec 11 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.1.7-5
  197. - use included icon/.desktop files
  198. - fix up fltk-config (#199656)
  199. * Mon Dec 11 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.1.7-3
  200. - follow icon spec
  201. - omit static libs
  202. * Wed Sep 06 2006 Michael J. Knox <michael[AT]knox.net.nz> - 1.1.7-2
  203. - rebuild for FC6
  204. * Mon Feb 13 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.1.7-1
  205. - Upstream update
  206. * Thu Nov 17 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.1.6-4
  207. - Fixed BR and -devel Requires for modular X
  208. * Sun Nov 13 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.1.6-3
  209. - Update BuildRequires as well
  210. * Sun Nov 13 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.1.6-2
  211. - Update Requires for -devel
  212. * Thu Oct 27 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.1.6-1
  213. - Upstream update
  214. * Thu Aug 18 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.1.4-10
  215. - Fixed BR/Requires for x86_64
  216. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
  217. - rebuilt
  218. * Thu Nov 20 2003 Dams <anvil[AT]livna.org> 0:1.1.4-0.fdr.8
  219. - Hopefully fixed Xft flags for rh80
  220. * Thu Nov 20 2003 Dams <anvil[AT]livna.org> 0:1.1.4-0.fdr.7
  221. - Fixed typo
  222. * Thu Nov 20 2003 Dams <anvil[AT]livna.org> 0:1.1.4-0.fdr.6
  223. - Added xft.pc build dependency
  224. - Added BuildReq:man
  225. * Sun Nov 9 2003 Ville Skyttä <ville.skytta@iki.fi> 0:1.1.4-0.fdr.4
  226. - Spec file cleanup
  227. - Enabled xft and threads
  228. * Tue Oct 28 2003 Dams <anvil[AT]livna.org> - 0:1.1.4-0.fdr.3
  229. - Added missing symlink in includedir
  230. * Wed Oct 1 2003 Dams <anvil[AT]livna.org> 0:1.1.4-0.fdr.2
  231. - Removed comment after scriptlets
  232. * Wed Oct 1 2003 Dams <anvil[AT]livna.org> 0:1.1.4-0.fdr.1
  233. - Updated to final 1.1.4
  234. * Wed Sep 24 2003 Dams <anvil[AT]livna.org> 0:1.1.4-0.fdr.0.4.rc1
  235. - Fixed documentation path in configure
  236. * Fri Aug 29 2003 Dams <anvil[AT]livna.org> 0:1.1.4-0.fdr.0.3.rc1
  237. - Fixed typo in desktop entry
  238. - Added missing BuildRequires ImageMagick and desktop-file-utils
  239. * Fri Aug 29 2003 Dams <anvil[AT]livna.org> 0:1.1.4-0.fdr.0.2.rc1
  240. - Moved fluid to its own package
  241. - Added missing Requires for devel package
  242. * Sat Aug 16 2003 Dams <anvil[AT]livna.org>
  243. - Initial build.