fltk-vl.spec 9.1 KB

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