fltk-vl.spec 8.8 KB

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