fltk2-vl.spec 8.6 KB

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