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