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