fltk-vl.spec 8.9 KB

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