fltk-vl.spec 8.5 KB

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