40c784
Summary:	C++ user interface toolkit for X11, Win32, and MacOS X
40c784
Name:		fltk
7c04db
Version:	1.1.6
dad224
Release:	3%{?dist}
d53dc3
40c784
License:	LGPL with exceptions
40c784
Group:		System Environment/Libraries
40c784
URL:		http://www.fltk.org/
7c04db
Source0:        http://ftp.easysw.com/pub/fltk/%{version}/%{name}-%{version}-source.tar.bz2
40c784
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
dad224
BuildRequires:	libjpeg-devel zlib-devel libpng-devel xorg-x11-devel
355016
BuildRequires:	%{_libdir}/pkgconfig/xft.pc pkgconfig
cvsextras 24ec44
BuildRequires:	ImageMagick desktop-file-utils man
cvsextras 24ec44
cvsextras 24ec44
%package devel
40c784
Summary:	Development package for %{name}
40c784
Group:		Development/Libraries
40c784
Requires:	%{name} = %{version}-%{release}
4a82ec
Requires:	xorg-x11-devel libstdc++-devel %{_libdir}/pkgconfig/xft.pc
cvsextras 24ec44
cvsextras 24ec44
%package fluid
40c784
Summary:	Fast Light User Interface Designer
40c784
Group:		Development/Tools
40c784
Requires:	%{name}-devel = %{version}-%{release}
cvsextras 24ec44
cvsextras 24ec44
cvsextras 24ec44
%description
cvsextras 24ec44
FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit for
cvsextras 24ec44
UNIX/Linux (X11), Microsoft Windows, and Mac OS X. It provides modern
cvsextras 24ec44
GUI functionality without the bloat, and supports 3D graphics via
cvsextras 24ec44
OpenGL and its built-in GLUT emulation. FLTK is designed to be small
cvsextras 24ec44
and modular enough to be statically linked, and also works fine as a
ef7c82
shared library.
cvsextras 24ec44
cvsextras 24ec44
%description devel
cvsextras 24ec44
This package contains development files for %{name}
cvsextras 24ec44
FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit for
cvsextras 24ec44
UNIX/Linux (X11), Microsoft Windows, and Mac OS X. It provides modern
cvsextras 24ec44
GUI functionality without the bloat, and supports 3D graphics via
cvsextras 24ec44
OpenGL and its built-in GLUT emulation.
cvsextras 24ec44
cvsextras 24ec44
%description fluid
cvsextras 24ec44
fluid stands for the Fast Light User Interface Designer. It is an
ef7c82
interactive GUI designer for FLTK.
cvsextras 24ec44
cvsextras 24ec44
cvsextras 24ec44
%prep
cvsextras 24ec44
%setup -q -n %{name}-%{version}%{?extraversion}
cvsextras 24ec44
cvsextras 24ec44
cvsextras 24ec44
%build
cvsextras 24ec44
perl -pi -e "s^\\\$prefix/share/doc/fltk^$RPM_DOC_DIR/%{name}-devel-%{version}^" configure
cvsextras 24ec44
export CPPFLAGS="$(pkg-config xft --cflags)"
cvsextras 24ec44
export LDFLAGS="$(pkg-config xft --libs)"
cvsextras 24ec44
%configure --enable-shared --enable-threads --enable-xdbe --enable-xft
ef7c82
make %{?_smp_mflags}
cvsextras 24ec44
cvsextras 24ec44
cvsextras 24ec44
%install
cvsextras 24ec44
rm -rf $RPM_BUILD_ROOT __documentation
cvsextras 24ec44
%makeinstall docdir=$(pwd)/__documentation
cvsextras 24ec44
rm -rf $RPM_BUILD_ROOT%{_mandir}/cat*
cvsextras 24ec44
cvsextras 24ec44
cat > fluid.desktop <
cvsextras 24ec44
[Desktop Entry]
cvsextras 24ec44
Name=Fluid
cvsextras 24ec44
Comment=Fast Light User Interface Designer
cvsextras 24ec44
Exec=fluid
cvsextras 24ec44
Icon=fluid.png
cvsextras 24ec44
Terminal=false
cvsextras 24ec44
Type=Application
cvsextras 24ec44
Encoding=UTF-8
cvsextras 24ec44
Categories=Application;Development;GUIDesigner;
cvsextras 24ec44
EOF
cvsextras 24ec44
cvsextras 24ec44
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
cvsextras 24ec44
desktop-file-install --vendor fedora            \
cvsextras 24ec44
    --dir $RPM_BUILD_ROOT%{_datadir}/applications \
cvsextras 24ec44
    --add-category X-Fedora                     \
cvsextras 24ec44
    fluid.desktop
cvsextras 24ec44
cvsextras 24ec44
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
cvsextras 24ec44
convert -resize 48x48 documentation/FL.gif \
40c784
    $RPM_BUILD_ROOT%{_datadir}/pixmaps/fluid.png
cvsextras 24ec44
cvsextras 24ec44
cvsextras 24ec44
%clean
cvsextras 24ec44
rm -rf $RPM_BUILD_ROOT
cvsextras 24ec44
cvsextras 24ec44
cvsextras 24ec44
%post -p /sbin/ldconfig
cvsextras 24ec44
%postun -p /sbin/ldconfig
cvsextras 24ec44
cvsextras 24ec44
%files
cvsextras 24ec44
%defattr(-,root,root,-)
cvsextras 24ec44
%doc ANNOUNCEMENT CHANGES COPYING CREDITS README
cvsextras 24ec44
%{_libdir}/libfltk.so.*
cvsextras 24ec44
%{_libdir}/libfltk_forms.so.*
cvsextras 24ec44
%{_libdir}/libfltk_gl.so.*
cvsextras 24ec44
%{_libdir}/libfltk_images.so.*
cvsextras 24ec44
cvsextras 24ec44
%files devel
cvsextras 24ec44
%defattr(-,root,root,-)
cvsextras 24ec44
%doc __documentation/*
cvsextras 24ec44
%{_bindir}/fltk-config
cvsextras 24ec44
%{_includedir}/FL
cvsextras 24ec44
%{_includedir}/Fl
cvsextras 24ec44
%{_libdir}/libfltk.a
cvsextras 24ec44
%{_libdir}/libfltk.so
cvsextras 24ec44
%{_libdir}/libfltk_forms.a
cvsextras 24ec44
%{_libdir}/libfltk_forms.so
cvsextras 24ec44
%{_libdir}/libfltk_gl.a
cvsextras 24ec44
%{_libdir}/libfltk_gl.so
cvsextras 24ec44
%{_libdir}/libfltk_images.a
cvsextras 24ec44
%{_libdir}/libfltk_images.so
cvsextras 24ec44
%{_mandir}/man1/fltk-config.1*
cvsextras 24ec44
%{_mandir}/man3/fltk.3*
cvsextras 24ec44
cvsextras 24ec44
%files fluid
cvsextras 24ec44
%defattr(-,root,root,-)
cvsextras 24ec44
%{_bindir}/fluid
cvsextras 24ec44
%{_mandir}/man1/fluid.1*
cvsextras 24ec44
%{_datadir}/applications/*fluid.desktop
cvsextras 24ec44
%{_datadir}/pixmaps/fluid.png
cvsextras 24ec44
cvsextras 24ec44
cvsextras 24ec44
%changelog
dad224
* Sun Nov 13 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.1.6-3
dad224
- Update BuildRequires as well
dad224
4a82ec
* Sun Nov 13 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.1.6-2
4a82ec
- Update Requires for -devel
4a82ec
7c04db
* Thu Oct 27 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.1.6-1
7c04db
- Upstream update
7c04db
4da28d
* Thu Aug 18 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.1.4-10
355016
- Fixed BR/Requires for x86_64
355016
d53dc3
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
d53dc3
- rebuilt
d53dc3
cvsextras 24ec44
* Thu Nov 20 2003 Dams <anvil[AT]livna.org> 0:1.1.4-0.fdr.8
cvsextras 24ec44
- Hopefully fixed Xft flags for rh80
cvsextras 24ec44
cvsextras 24ec44
* Thu Nov 20 2003 Dams <anvil[AT]livna.org> 0:1.1.4-0.fdr.7
cvsextras 24ec44
- Fixed typo
cvsextras 24ec44
cvsextras 24ec44
* Thu Nov 20 2003 Dams <anvil[AT]livna.org> 0:1.1.4-0.fdr.6
cvsextras 24ec44
- Added xft.pc build dependency
cvsextras 24ec44
- Added BuildReq:man
cvsextras 24ec44
cvsextras 24ec44
* Sun Nov  9 2003 Ville Skyttä <ville.skytta@iki.fi> 0:1.1.4-0.fdr.4
cvsextras 24ec44
- Spec file cleanup
cvsextras 24ec44
- Enabled xft and threads
cvsextras 24ec44
cvsextras 24ec44
* Tue Oct 28 2003 Dams <anvil[AT]livna.org> - 0:1.1.4-0.fdr.3
cvsextras 24ec44
- Added missing symlink in includedir
cvsextras 24ec44
cvsextras 24ec44
* Wed Oct  1 2003 Dams <anvil[AT]livna.org> 0:1.1.4-0.fdr.2
cvsextras 24ec44
- Removed comment after scriptlets
cvsextras 24ec44
cvsextras 24ec44
* Wed Oct  1 2003 Dams <anvil[AT]livna.org> 0:1.1.4-0.fdr.1
cvsextras 24ec44
- Updated to final 1.1.4
cvsextras 24ec44
cvsextras 24ec44
* Wed Sep 24 2003 Dams <anvil[AT]livna.org> 0:1.1.4-0.fdr.0.4.rc1
cvsextras 24ec44
- Fixed documentation path in configure
cvsextras 24ec44
cvsextras 24ec44
* Fri Aug 29 2003 Dams <anvil[AT]livna.org> 0:1.1.4-0.fdr.0.3.rc1
cvsextras 24ec44
- Fixed typo in desktop entry
cvsextras 24ec44
- Added missing BuildRequires ImageMagick and desktop-file-utils
cvsextras 24ec44
cvsextras 24ec44
* Fri Aug 29 2003 Dams <anvil[AT]livna.org> 0:1.1.4-0.fdr.0.2.rc1
cvsextras 24ec44
- Moved fluid to its own package
cvsextras 24ec44
- Added missing Requires for devel package
cvsextras 24ec44
ef7c82
* Sat Aug 16 2003 Dams <anvil[AT]livna.org>
cvsextras 24ec44
- Initial build.