1 Summary: Fast Light Tool Kit
2 Summary(pl): FLTK - "lekki" X11 toolkit
8 Source0: ftp://ftp.easysw.com/pub/%{name}/%{version}/%{name}-%{version}-source.tar.bz2
9 Source1: http://www.fltk.org/doc/%{name}.ps.gz
10 URL: http://www.fltk.org/
11 BuildRequires: XFree86-devel >= 3.3.6
12 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14 %define _prefix /usr/X11R6
17 The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a LGPL'd
18 C++ graphical user interface toolkit for X (UNIX(r)), OpenGL(r), and
19 Microsoft(r) Windows(r) NT 4.0, 95, or 98. It was originally developed
20 by Mr. Bill Spitzak and is currently maintained by a small group of
21 developers across the world with a central repository in the US.
24 Summary: FLTK development files
25 Summary(pl): Narzêdzia programistyczne dla FLTK
26 Group: X11/Development/Libraries
27 Requires: %{name} = %{version}
30 FLTK development files.
32 %description devel -l pl
33 Narzêdzia programistyczne dla FLTK.
36 Summary: FLTK static library.
37 Summary(pl): Biblioteka FLTK linkowana statycznie
38 Group: X11/Development/Libraries
39 Requires: %{name}-devel = %{version}
44 %description static -l pl
45 Biblioteka FLTK linkowana statycznie.
54 --libdir=$RPM_BUILD_ROOT%{_libdir} \
55 --includedir=$RPM_BUILD_ROOT%{_includedir} \
56 --bindir=$RPM_BUILD_ROOT%{_bindir} \
64 rm -rf $RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/FL,%{_libdir}}
67 (cd fluid;%{__make} install)
68 (cd src;%{__make} install)
70 rm $RPM_BUILD_ROOT%{_libdir}/*.so
71 mv $RPM_BUILD_ROOT%{_libdir}/libfltk.so.1 \
72 $RPM_BUILD_ROOT%{_libdir}/libfltk.so.%{version}
73 ln -sf libfltk.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libfltk.so
75 %post -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
79 rm -rf $RPM_BUILD_ROOT
82 %defattr(644,root,root,755)
83 %attr(755,root,root) %{_libdir}/*.so.*.*.*
86 %defattr(644,root,root,755)
87 %doc documentation/* fltk.ps.gz
88 %attr(75,root,root) %{_libdir}/libfltk.so
89 %attr(755,root,root) %{_bindir}/fluid
93 %defattr(644,root,root,755)
94 %attr(644,root,root) %{_libdir}/*.a