3 # _without_gl - without OpenGL support
5 Summary: Fast Light Tool Kit
6 Summary(pl): FLTK - "lekki" X11 toolkit
7 Summary(pt_BR): Interface gráfica em C++ para X, OpenGL e Windows
11 License: LGPL with amendments (see COPYING)
13 Source0: ftp://ftp.easysw.com/pub/%{name}/%{version}/%{name}-%{version}-source.tar.bz2
14 Source1: http://www.fltk.org/doc-1.1/%{name}.ps.gz
15 Patch0: %{name}-link.patch
16 URL: http://www.fltk.org/
17 %{!?_without_gl:BuildRequires: OpenGL-devel}
18 BuildRequires: XFree86-devel >= 3.3.6
19 BuildRequires: gcc-c++
20 %{!?_without_gl:Requires: OpenGL}
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define _noautoreqdep libGL.so.1 libGLU.so.1
27 The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a LGPL'd
28 C++ graphical user interface toolkit for X (UNIX(r)), OpenGL(r), and
29 Microsoft(r) Windows(r) NT 4.0, 95, or 98. It was originally developed
30 by Mr. Bill Spitzak and is currently maintained by a small group of
31 developers across the world with a central repository in the US.
34 Fast Light Tool Kit ("FLTK", wymawiane "faltik"), jest rozprowadzanym
35 na licencji LGPL narzêdziem do tworzenia graficznych interfejsów
36 u¿ytkownika w C++ dla X (UNIX(r)), OpenGL(r), i Microsoft(r)
37 Windows(r) NT 4.0, 95, oraz 98. Jego pierwotnym autorem jest pan Bill
38 Spitzak; obecnie pakiet jest rozwijany przez niewielk± grupê
39 deweloperów z ró¿nych stron ¶wiata (centralne repozytorium znajduje
43 A Fast Light Tool Kit ("FLTK", pronuncia-se "fulltick") é uma
44 ferramenta e interface gráfica feita em C++ para desenvolver
45 aplicativos para o X, OpenGL e Windows.
48 Summary: FLTK development files
49 Summary(pl): Narzêdzia programistyczne dla FLTK
50 Summary(pt_BR): Arquivos de inclusão para o FLTK
51 Group: X11/Development/Libraries
52 Requires: %{name} = %{version}
53 Obsoletes: libfltk1.1-devel
56 FLTK development files.
58 %description devel -l pl
59 Narzêdzia programistyczne dla FLTK.
61 %description devel -l pt_BR
62 Arquivos de inclusão para o FLTK.
65 Summary: FLTK static library
66 Summary(pl): Biblioteka FLTK linkowana statycznie
67 Summary(pt_BR): Bibliotecas estáticas para o FLTK
68 Group: X11/Development/Libraries
69 Requires: %{name}-devel = %{version}
74 %description static -l pl
75 Biblioteka FLTK linkowana statycznie.
77 %description static -l pt_BR
78 Bibliotecas estáticas para o FLTK.
87 CPPFLAGS="-I/usr/X11R6/include"
91 %{?_without_gl:--disable-gl}
97 rm -rf $RPM_BUILD_ROOT
98 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/FL,%{_libdir},%{_mandir}/man{1,3}}
101 libdir=$RPM_BUILD_ROOT%{_libdir} \
102 includedir=$RPM_BUILD_ROOT%{_includedir} \
103 bindir=$RPM_BUILD_ROOT%{_bindir}
105 install documentation/fltk-config.man $RPM_BUILD_ROOT%{_mandir}/man1/fltk-config.1
106 install documentation/fluid.man $RPM_BUILD_ROOT%{_mandir}/man1/fluid.1
107 install documentation/fltk.man $RPM_BUILD_ROOT%{_mandir}/man3/fltk.3
110 rm -rf $RPM_BUILD_ROOT
112 %post -p /sbin/ldconfig
113 %postun -p /sbin/ldconfig
116 %defattr(644,root,root,755)
117 # note: COPYING contains amendments to LGPL, so don't remove!
118 %doc CHANGES COPYING CREDITS README
119 %attr(755,root,root) %{_libdir}/lib*.so.*.*
122 %defattr(644,root,root,755)
123 %doc documentation/*.{html,gif,jpg} fltk.ps.gz
124 %attr(755,root,root) %{_bindir}/fltk-config
125 %attr(755,root,root) %{_bindir}/fluid
126 %attr(755,root,root) %{_libdir}/libfltk.so
131 %defattr(644,root,root,755)
132 %attr(644,root,root) %{_libdir}/lib*.a