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