3 # _without_gl - without OpenGL libraries
4 # _without_xft - without Xft support
6 Summary: Fast Light Tool Kit
7 Summary(pl): FLTK - "lekki" X11 toolkit
8 Summary(pt_BR): Interface gráfica em C++ para X, OpenGL e Windows
12 License: LGPL with amendments (see COPYING)
14 Source0: ftp://ftp.easysw.com/pub/%{name}/%{version}/%{name}-%{version}-source.tar.bz2
15 # Source0-md5: f32b4acc456d567a6bd554ac03c24055
16 Source1: http://www.fltk.org/doc-1.1/%{name}.ps.gz
17 # Source1-md5: eb8f5a4a02d8ca2111ff007daea601b6
18 Patch0: %{name}-link.patch
19 Patch1: %{name}-acfix.patch
20 URL: http://www.fltk.org/
21 %{!?_without_gl:BuildRequires: OpenGL-devel}
22 BuildRequires: XFree86-devel >= 3.3.6
23 BuildRequires: autoconf
24 BuildRequires: libstdc++-devel
25 %{!?_without_xft:BuildRequires: xft-devel}
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %define _noautoreqdep libGL.so.1 libGLU.so.1
32 The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a LGPL'd
33 C++ graphical user interface toolkit for X (UNIX(r)), OpenGL(r), and
34 Microsoft(r) Windows(r) NT 4.0, 95, or 98. It was originally developed
35 by Mr. Bill Spitzak and is currently maintained by a small group of
36 developers across the world with a central repository in the US.
39 Fast Light Tool Kit ("FLTK", wymawiane "faltik"), jest rozprowadzanym
40 na licencji LGPL narzêdziem do tworzenia graficznych interfejsów
41 u¿ytkownika w C++ dla X (UNIX(r)), OpenGL(r), i Microsoft(r)
42 Windows(r) NT 4.0, 95, oraz 98. Jego pierwotnym autorem jest pan Bill
43 Spitzak; obecnie pakiet jest rozwijany przez niewielk± grupê
44 deweloperów z ró¿nych stron ¶wiata (centralne repozytorium znajduje
48 A Fast Light Tool Kit ("FLTK", pronuncia-se "fulltick") é uma
49 ferramenta e interface gráfica feita em C++ para desenvolver
50 aplicativos para o X, OpenGL e Windows.
53 Summary: FLTK development files
54 Summary(pl): Narzêdzia programistyczne dla FLTK
55 Summary(pt_BR): Arquivos de inclusão para o FLTK
56 Group: X11/Development/Libraries
57 Requires: %{name} = %{version}
58 Obsoletes: libfltk1.1-devel
61 FLTK development files.
63 %description devel -l pl
64 Narzêdzia programistyczne dla FLTK.
66 %description devel -l pt_BR
67 Arquivos de inclusão para o FLTK.
70 Summary: FLTK static library
71 Summary(pl): Biblioteka FLTK linkowana statycznie
72 Summary(pt_BR): Bibliotecas estáticas para o FLTK
73 Group: X11/Development/Libraries
74 Requires: %{name}-devel = %{version}
79 %description static -l pl
80 Biblioteka FLTK linkowana statycznie.
82 %description static -l pt_BR
83 Bibliotecas estáticas para o FLTK.
86 Summary: FLTK GL library
87 Summary(pl): Biblioteka FLTK GL
89 Requires: %{name} = %{version}
99 Summary: Header files for FLTK GL library
100 Summary(pl): Pliki nag³ówkowe biblioteki FLTK GL
101 Group: X11/Development/Libraries
102 Requires: %{name}-devel = %{version}
103 Requires: %{name}-gl = %{version}
105 %description gl-devel
106 Header files for FLTK GL library.
108 %description gl-devel -l pl
109 Pliki nag³ówkowe biblioteki FLTK GL.
112 Summary: FLTK GL static library
113 Summary(pl): Statyczna biblioteka FLTK GL
114 Group: X11/Development/Libraries
115 Requires: %{name}-gl-devel = %{version}
116 Requires: %{name}-static = %{version}
118 %description gl-static
119 FLTK GL static library.
121 %description gl-static -l pl
122 Statyczna biblioteka FLTK GL.
132 CPPFLAGS="-I/usr/X11R6/include"
133 CXXFLAGS="%{rpmcflags} -I/usr/include/freetype2"
134 # no "-s" in LDFLAGS, they are propagated to fltk-config
135 # (together with -L/usr/X11R6/lib, so cannot be removed)
141 %{?_without_gl:--disable-gl} \
142 %{!?_without_xft:--enable-xft}
148 rm -rf $RPM_BUILD_ROOT
149 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/FL,%{_libdir},%{_mandir}/man{1,3}}
152 libdir=$RPM_BUILD_ROOT%{_libdir} \
153 includedir=$RPM_BUILD_ROOT%{_includedir} \
154 bindir=$RPM_BUILD_ROOT%{_bindir}
156 install documentation/fltk-config.man $RPM_BUILD_ROOT%{_mandir}/man1/fltk-config.1
157 install documentation/fluid.man $RPM_BUILD_ROOT%{_mandir}/man1/fluid.1
158 install documentation/fltk.man $RPM_BUILD_ROOT%{_mandir}/man3/fltk.3
161 rm -rf $RPM_BUILD_ROOT
163 %post -p /sbin/ldconfig
164 %postun -p /sbin/ldconfig
167 %defattr(644,root,root,755)
168 # note: COPYING contains amendments to LGPL, so don't remove!
169 %doc CHANGES COPYING CREDITS README
170 %attr(755,root,root) %{_libdir}/libfltk.so.*.*
171 %attr(755,root,root) %{_libdir}/libfltk_forms.so.*.*
172 %attr(755,root,root) %{_libdir}/libfltk_images.so.*.*
175 %defattr(644,root,root,755)
176 %doc documentation/*.{html,gif,jpg} fltk.ps.gz
177 %attr(755,root,root) %{_bindir}/fltk-config
178 %attr(755,root,root) %{_bindir}/fluid
179 %attr(755,root,root) %{_libdir}/libfltk.so
180 %attr(755,root,root) %{_libdir}/libfltk_forms.so
181 %attr(755,root,root) %{_libdir}/libfltk_images.so
183 %exclude %{_includedir}/FL/Fl_Gl_Window.*
184 %exclude %{_includedir}/FL/gl*
188 %defattr(644,root,root,755)
189 %attr(644,root,root) %{_libdir}/libfltk.a
190 %attr(644,root,root) %{_libdir}/libfltk_forms.a
191 %attr(644,root,root) %{_libdir}/libfltk_images.a
193 %if 0%{!?_without_gl:1}
195 %defattr(644,root,root,755)
196 %attr(755,root,root) %{_libdir}/libfltk_gl.so.*.*
199 %defattr(644,root,root,755)
200 %attr(755,root,root) %{_libdir}/libfltk_gl.so
201 %{_includedir}/FL/Fl_Gl_Window.*
202 %{_includedir}/FL/gl*
205 %defattr(644,root,root,755)
206 %attr(644,root,root) %{_libdir}/libfltk_gl.a