# $Revision: 1.32 $, $Date: 2002/05/25 11:06:40 $ # # Conditional build: # _without_gl - without OpenGL support # Summary: Fast Light Tool Kit Summary(pl): FLTK - "lekki" X11 toolkit Summary(pt_BR): Interface gráfica em C++ para X, OpenGL e Windows Name: fltk Version: 1.0.11 Release: 7 License: LGPL with amendments (see COPYING) Group: X11/Libraries Source0: ftp://ftp.easysw.com/pub/%{name}/%{version}/%{name}-%{version}-source.tar.bz2 Source1: http://www.fltk.org/doc/%{name}.ps.gz Patch0: %{name}-fluid-shared.patch URL: http://www.fltk.org/ %{!?_without_gl:BuildRequires: OpenGL-devel} BuildRequires: XFree86-devel >= 3.3.6 BuildRequires: gcc-c++ %{!?_without_gl:Requires: OpenGL} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) Obsoletes: libfltk1.1 %define _prefix /usr/X11R6 %define _mandir %{_prefix}/man %define _noautoreqdep libGL.so.1 libGLU.so.1 %description The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a LGPL'd C++ graphical user interface toolkit for X (UNIX(r)), OpenGL(r), and Microsoft(r) Windows(r) NT 4.0, 95, or 98. It was originally developed by Mr. Bill Spitzak and is currently maintained by a small group of developers across the world with a central repository in the US. %description -l pl Fast Light Tool Kit ("FLTK", wymawiane "faltik"), jest rozprowadzanym na licencji LGPL narzêdziem do tworzenia graficznych interfejsów u¿ytkownika w C++ dla X (UNIX(r)), OpenGL(r), i Microsoft(r) Windows(r) NT 4.0, 95, oraz 98. Jego pierwotnym autorem jest pan Bill Spitzak; obecnie pakiet jest rozwijany przez niewielk± grupê deweloperów z ró¿nych stron ¶wiata (centralne repozytorium znajduje siê w USA). %description -l pt_BR A Fast Light Tool Kit ("FLTK", pronuncia-se "fulltick") é uma ferramenta e interface gráfica feita em C++ para desenvolver aplicativos para o X, OpenGL e Windows. %package devel Summary: FLTK development files Summary(pl): Narzêdzia programistyczne dla FLTK Summary(pt_BR): Arquivos de inclusão para o FLTK Group: X11/Development/Libraries Requires: %{name} = %{version} Obsoletes: libfltk1.1-devel %description devel FLTK development files. %description devel -l pl Narzêdzia programistyczne dla FLTK. %description devel -l pt_BR Arquivos de inclusão para o FLTK. %package static Summary: FLTK static library. Summary(pl): Biblioteka FLTK linkowana statycznie Summary(pt_BR): Bibliotecas estáticas para o FLTK Group: X11/Development/Libraries Requires: %{name}-devel = %{version} %description static FLTK static library. %description static -l pl Biblioteka FLTK linkowana statycznie. %description static -l pt_BR Bibliotecas estáticas para o FLTK. %prep %setup -q %patch -p1 install %{SOURCE1} . %build CPPFLAGS="-I/usr/X11R6/include"; export CPPFLAGS %configure2_13 \ --libdir=$RPM_BUILD_ROOT%{_libdir} \ --includedir=$RPM_BUILD_ROOT%{_includedir} \ --bindir=$RPM_BUILD_ROOT%{_bindir} \ --enable-shared \ --with-x \ %{?_without_gl:--disable-gl} %{__make} depend %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/FL,%{_libdir},%{_mandir}/man1} cd fluid %{__make} install cd ../src %{__make} install cd .. rm -f $RPM_BUILD_ROOT%{_libdir}/*.so mv -f $RPM_BUILD_ROOT%{_libdir}/libfltk.so.1 \ $RPM_BUILD_ROOT%{_libdir}/libfltk.so.%{version} ln -sf libfltk.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libfltk.so mv -f documentation/fltk.man $RPM_BUILD_ROOT%{_mandir}/man1/fltk.1 mv -f documentation/fluid.man $RPM_BUILD_ROOT%{_mandir}/man1/fluid.1 %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) # note: COPYING contains amendments to LGPL, so don't remove! %doc CHANGES COPYING README %attr(755,root,root) %{_libdir}/*.so.*.*.* %files devel %defattr(644,root,root,755) %doc documentation/* fltk.ps.gz %attr(755,root,root) %{_libdir}/libfltk.so %attr(755,root,root) %{_bindir}/fluid %{_includedir}/FL %{_mandir}/man1/* %files static %defattr(644,root,root,755) %attr(644,root,root) %{_libdir}/*.a %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog * %{date} PLD Team <feedback@pld.org.pl> All persons listed below can be reached at <cvs_login>@pld.org.pl $Log: fltk.spec,v $ Revision 1.32 2002/05/25 11:06:40 kloczek - release 7. Revision 1.31 2002/05/24 16:13:44 qboosh - fixed OpenGL detection, added bcond to disable GL support Revision 1.30 2002/05/23 20:59:07 qboosh - new %%doc, install manuals in mandir, not docdir - release 6 Revision 1.29 2002/05/01 16:55:51 kloczek - merge translations from Conectiva. Revision 1.28 2002/05/01 00:13:09 qboosh - BR: gcc-c++ Revision 1.27 2002/04/29 09:30:45 qboosh - removed copy of fltk.ps.gz from base (it is in -devel) - link fluid dynamically with libfltk Revision 1.26 2002/04/29 09:02:30 qboosh - fixed License files, added doc - release 5 Revision 1.25 2002/04/26 09:47:39 arturs - added Polish description Revision 1.24 2002/04/25 16:18:37 arturs fixed a small typo Revision 1.23 2002/02/23 02:06:14 kloczek - adapterized. Revision 1.22 2002/02/22 23:28:54 kloczek - removed all Group fields translations (our rpm now can handle translating Group field using gettext). Revision 1.21 2002/02/02 20:04:44 ankry - adding es/fr/pt_BR/ru/uk (and eventually de) Group translations Revision 1.20 2002/01/18 02:12:57 kloczek perl -pi -e "s/pld-list\@pld.org.pl/feedback\@pld.org.pl/" Revision 1.19 2001/09/28 16:37:54 baggins - release 4 - DO NOT RENAME HEADER FILES!!! Revision 1.18 2001/09/25 12:42:20 cieciwa - added extensoin chage. Revision 1.17 2001/08/23 17:45:09 wrobell - use configure2_13 macro - rel. 3, stb. Revision 1.16 2001/07/17 17:56:19 wrobell - spec works with getsrc script Revision 1.15 2001/07/12 13:40:30 kloczek - release 2. Revision 1.14 2001/07/12 12:17:46 wrobell - do not rename header files, stb Revision 1.13 2001/07/05 10:52:11 kloczek - typo in %install, - removed redundant %doc in pdf. Revision 1.12 2001/07/05 10:29:45 kloczek - updated to 1.0.11 and bunch final cleanups. Revision 1.11 2001/05/02 16:29:01 qboosh - adapterized and made spec %%debug ready or added using %%rpm*flags macros Revision 1.10 2000/10/11 08:59:57 cieciwa - update to version 1.0.9, - fixed install process. Revision 1.9 2000/06/09 07:54:40 kloczek - more %%{__make} macros. Revision 1.8 2000/06/09 07:22:50 kloczek - added using %%{__make} macro. Revision 1.7 2000/06/03 17:56:31 kloczek - run ldconfig moved to main package, - added %description, - Group in main chaged to X11/Libraries. Note: still not compiles. Revision 1.6 2000/06/03 15:10:38 cieciwa - updated to version 1.0.8. Revision 1.5 2000/05/31 11:41:33 cieciwa - fixed package, - changed library version from 1 to 1.0.7. Revision 1.2 2000/03/28 16:54:17 baggins - translated kloczkish into english Revision 1.1 2000/03/23 09:05:15 cieciwa - initial spec. * Sat Oct 9 1999 Wojciech "Sas" Ciêciwa <cieciwa@alpha.zarz.agh.edu.pl> -build RPM.