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 Patch0: %{name}-link.patch
18 Patch1: %{name}-acfix.patch
19 URL: http://www.fltk.org/
20 %{!?_without_gl:BuildRequires: OpenGL-devel}
21 BuildRequires: XFree86-devel >= 3.3.6
22 BuildRequires: autoconf
23 BuildRequires: libstdc++-devel
24 %{!?_without_xft:BuildRequires: xft-devel}
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %define _noautoreqdep libGL.so.1 libGLU.so.1
31 The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a LGPL'd
32 C++ graphical user interface toolkit for X (UNIX(r)), OpenGL(r), and
33 Microsoft(r) Windows(r) NT 4.0, 95, or 98. It was originally developed
34 by Mr. Bill Spitzak and is currently maintained by a small group of
35 developers across the world with a central repository in the US.
38 Fast Light Tool Kit ("FLTK", wymawiane "faltik"), jest rozprowadzanym
39 na licencji LGPL narzêdziem do tworzenia graficznych interfejsów
40 u¿ytkownika w C++ dla X (UNIX(r)), OpenGL(r), i Microsoft(r)
41 Windows(r) NT 4.0, 95, oraz 98. Jego pierwotnym autorem jest pan Bill
42 Spitzak; obecnie pakiet jest rozwijany przez niewielk± grupê
43 deweloperów z ró¿nych stron ¶wiata (centralne repozytorium znajduje
47 A Fast Light Tool Kit ("FLTK", pronuncia-se "fulltick") é uma
48 ferramenta e interface gráfica feita em C++ para desenvolver
49 aplicativos para o X, OpenGL e Windows.
52 Summary: FLTK development files
53 Summary(pl): Narzêdzia programistyczne dla FLTK
54 Summary(pt_BR): Arquivos de inclusão para o FLTK
55 Group: X11/Development/Libraries
56 Requires: %{name} = %{version}
57 Obsoletes: libfltk1.1-devel
60 FLTK development files.
62 %description devel -l pl
63 Narzêdzia programistyczne dla FLTK.
65 %description devel -l pt_BR
66 Arquivos de inclusão para o FLTK.
69 Summary: FLTK static library
70 Summary(pl): Biblioteka FLTK linkowana statycznie
71 Summary(pt_BR): Bibliotecas estáticas para o FLTK
72 Group: X11/Development/Libraries
73 Requires: %{name}-devel = %{version}
78 %description static -l pl
79 Biblioteka FLTK linkowana statycznie.
81 %description static -l pt_BR
82 Bibliotecas estáticas para o FLTK.
85 Summary: FLTK GL library
86 Summary(pl): Biblioteka FLTK GL
88 Requires: %{name} = %{version}
98 Summary: Header files for FLTK GL library
99 Summary(pl): Pliki nag³ówkowe biblioteki FLTK GL
100 Group: X11/Development/Libraries
101 Requires: %{name}-devel = %{version}
102 Requires: %{name}-gl = %{version}
104 %description gl-devel
105 Header files for FLTK GL library.
107 %description gl-devel -l pl
108 Pliki nag³ówkowe biblioteki FLTK GL.
111 Summary: FLTK GL static library
112 Summary(pl): Statyczna biblioteka FLTK GL
113 Group: X11/Development/Libraries
114 Requires: %{name}-gl-devel = %{version}
115 Requires: %{name}-static = %{version}
117 %description gl-static
118 FLTK GL static library.
120 %description gl-static -l pl
121 Statyczna biblioteka FLTK GL.
131 CPPFLAGS="-I/usr/X11R6/include"
132 CXXFLAGS="%{rpmcflags} -I/usr/include/freetype2"
133 # no "-s" in LDFLAGS, they are propagated to fltk-config
134 # (together with -L/usr/X11R6/lib, so cannot be removed)
140 %{?_without_gl:--disable-gl} \
141 %{!?_without_xft:--enable-xft}
147 rm -rf $RPM_BUILD_ROOT
148 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/FL,%{_libdir},%{_mandir}/man{1,3}}
151 libdir=$RPM_BUILD_ROOT%{_libdir} \
152 includedir=$RPM_BUILD_ROOT%{_includedir} \
153 bindir=$RPM_BUILD_ROOT%{_bindir}
155 install documentation/fltk-config.man $RPM_BUILD_ROOT%{_mandir}/man1/fltk-config.1
156 install documentation/fluid.man $RPM_BUILD_ROOT%{_mandir}/man1/fluid.1
157 install documentation/fltk.man $RPM_BUILD_ROOT%{_mandir}/man3/fltk.3
160 rm -rf $RPM_BUILD_ROOT
162 %post -p /sbin/ldconfig
163 %postun -p /sbin/ldconfig
166 %defattr(644,root,root,755)
167 # note: COPYING contains amendments to LGPL, so don't remove!
168 %doc CHANGES COPYING CREDITS README
169 %attr(755,root,root) %{_libdir}/libfltk.so.*.*
170 %attr(755,root,root) %{_libdir}/libfltk_forms.so.*.*
171 %attr(755,root,root) %{_libdir}/libfltk_images.so.*.*
174 %defattr(644,root,root,755)
175 %doc documentation/*.{html,gif,jpg} fltk.ps.gz
176 %attr(755,root,root) %{_bindir}/fltk-config
177 %attr(755,root,root) %{_bindir}/fluid
178 %attr(755,root,root) %{_libdir}/libfltk.so
179 %attr(755,root,root) %{_libdir}/libfltk_forms.so
180 %attr(755,root,root) %{_libdir}/libfltk_images.so
182 %exclude %{_includedir}/FL/Fl_Gl_Window.*
183 %exclude %{_includedir}/FL/gl*
187 %defattr(644,root,root,755)
188 %attr(644,root,root) %{_libdir}/libfltk.a
189 %attr(644,root,root) %{_libdir}/libfltk_forms.a
190 %attr(644,root,root) %{_libdir}/libfltk_images.a
192 %if 0%{!?_without_gl:1}
194 %defattr(644,root,root,755)
195 %attr(755,root,root) %{_libdir}/libfltk_gl.so.*.*
198 %defattr(644,root,root,755)
199 %attr(755,root,root) %{_libdir}/libfltk_gl.so
200 %{_includedir}/FL/Fl_Gl_Window.*
201 %{_includedir}/FL/gl*
204 %defattr(644,root,root,755)
205 %attr(644,root,root) %{_libdir}/libfltk_gl.a