fltk-vl.spec 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  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: 3%{?_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. * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> - 1.1.10-3
  162. - rebuilt with rpm-4.8.1-3
  163. * Sat May 08 2010 Shu KONNO <owa@bg.wakwak.com> - 1.1.10-2
  164. - fixed duplecate desktop files
  165. * Fri May 07 2010 Shu KONNO <owa@bg.wakwak.com> - 1.1.10-1
  166. - updated fltk to 1.1.10
  167. - added japanese summary
  168. * Thu Feb 19 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.1.9-1
  169. - initial build for Vine Linux
  170. * Wed Oct 01 2008 Rex Dieter <rdieter@fedoraproject.org> 1.1.9-1
  171. - fltk-1.1.9
  172. * Sat Mar 29 2008 Rex Dieter <rdieter@fedoraproject.org> 1.1.8-1
  173. - fltk-1.1.8 (final)
  174. * Tue Feb 29 2008 Rex Dieter <rdieter@fedoraproject.org> 1.1.8-0.8.r6027
  175. - fltk-1.1.x-r6027
  176. * Mon Feb 11 2008 Rex Dieter <rdieter@fedoraproject.org> 1.1.8-0.7.r5989
  177. - respin (gcc43)
  178. * Wed Dec 12 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.1.8-0.6.r5989
  179. - --enable-largefile
  180. - fltk-1.1.x-r5989 snapshot (1.1.8 pre-release)
  181. * Mon Aug 20 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.1.8-0.5.r5750
  182. - License: LGPLv2+ with exceptions
  183. * Sat Aug 11 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.1.8-0.4.r5750
  184. - License: LGPLv2+ (with exceptions)
  185. * Sun Apr 29 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.1.8-0.3.r5750
  186. - *really* fix --rpath issue, using non-empty patch this time (#238284)
  187. * Sun Apr 29 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.1.8-0.2.r5750
  188. - nuke --rpath (#238284)
  189. * Thu Apr 05 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.1.8-0.1.r5750
  190. - fltk-1.1.x-r5750 snapshot (1.1.8 pre-release)
  191. - --enable-xinerama
  192. - patch for undefined symbols in libfltk_gl
  193. * Wed Apr 4 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - 1.1.7-9.r5555
  194. - Always apply fltk-config patch (#199656)
  195. - Update fltk-1.1.7-config.patch
  196. * Wed Dec 13 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.1.7-8.r5555
  197. - more 64bit hackage to workaround broken Makefile logic (#219348)
  198. * Wed Dec 13 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.1.7-7.r5555
  199. - fltk-1.1.x-r5555 snapshot, for 64bit issues (#219348)
  200. - restore static libs (they're tightly coupled with fltk-config)
  201. - cleanup %%description's
  202. * Mon Dec 11 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.1.7-6
  203. - move tests to %%check section
  204. * Mon Dec 11 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.1.7-5
  205. - use included icon/.desktop files
  206. - fix up fltk-config (#199656)
  207. * Mon Dec 11 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.1.7-3
  208. - follow icon spec
  209. - omit static libs
  210. * Wed Sep 06 2006 Michael J. Knox <michael[AT]knox.net.nz> - 1.1.7-2
  211. - rebuild for FC6
  212. * Mon Feb 13 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.1.7-1
  213. - Upstream update
  214. * Thu Nov 17 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.1.6-4
  215. - Fixed BR and -devel Requires for modular X
  216. * Sun Nov 13 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.1.6-3
  217. - Update BuildRequires as well
  218. * Sun Nov 13 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.1.6-2
  219. - Update Requires for -devel
  220. * Thu Oct 27 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.1.6-1
  221. - Upstream update
  222. * Thu Aug 18 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.1.4-10
  223. - Fixed BR/Requires for x86_64
  224. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
  225. - rebuilt
  226. * Thu Nov 20 2003 Dams <anvil[AT]livna.org> 0:1.1.4-0.fdr.8
  227. - Hopefully fixed Xft flags for rh80
  228. * Thu Nov 20 2003 Dams <anvil[AT]livna.org> 0:1.1.4-0.fdr.7
  229. - Fixed typo
  230. * Thu Nov 20 2003 Dams <anvil[AT]livna.org> 0:1.1.4-0.fdr.6
  231. - Added xft.pc build dependency
  232. - Added BuildReq:man
  233. * Sun Nov 9 2003 Ville Skyttä <ville.skytta@iki.fi> 0:1.1.4-0.fdr.4
  234. - Spec file cleanup
  235. - Enabled xft and threads
  236. * Tue Oct 28 2003 Dams <anvil[AT]livna.org> - 0:1.1.4-0.fdr.3
  237. - Added missing symlink in includedir
  238. * Wed Oct 1 2003 Dams <anvil[AT]livna.org> 0:1.1.4-0.fdr.2
  239. - Removed comment after scriptlets
  240. * Wed Oct 1 2003 Dams <anvil[AT]livna.org> 0:1.1.4-0.fdr.1
  241. - Updated to final 1.1.4
  242. * Wed Sep 24 2003 Dams <anvil[AT]livna.org> 0:1.1.4-0.fdr.0.4.rc1
  243. - Fixed documentation path in configure
  244. * Fri Aug 29 2003 Dams <anvil[AT]livna.org> 0:1.1.4-0.fdr.0.3.rc1
  245. - Fixed typo in desktop entry
  246. - Added missing BuildRequires ImageMagick and desktop-file-utils
  247. * Fri Aug 29 2003 Dams <anvil[AT]livna.org> 0:1.1.4-0.fdr.0.2.rc1
  248. - Moved fluid to its own package
  249. - Added missing Requires for devel package
  250. * Sat Aug 16 2003 Dams <anvil[AT]livna.org>
  251. - Initial build.