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