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