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