Summary: The FOX C++ GUI Toolkit
Summary(pl): FOX - toolkit graficzny w C++
Name: fox
-Version: 1.0.34
+Version: 1.1.45
Release: 1
License: LGPL
Group: X11/Libraries
-#Source0ActiveFTP
-Source0: ftp://ftp.fox-toolkit.org/pub/%{name}-%{version}.tar.gz
+Source0: http://ftp.fox-toolkit.org/ftp/%{name}-%{version}.tar.gz
+# Source0-md5: 730d817501a6a2589ca7312503f623dd
Patch0: %{name}-opt.patch
+Patch1: %{name}-link.patch
URL: http://www.fox-toolkit.org/fox.html
BuildRequires: OpenGL-devel
BuildRequires: autoconf
%prep
%setup -q
-%patch -p1
+%patch0 -p1
+%patch1 -p1
%build
-rm -f missing
%{__libtoolize}
%{__aclocal}
%{__autoconf}
%{__automake}
+LDFLAGS="%{rpmldflags} -L/usr/X11R6/%{_lib}"
%configure \
- --with-opengl=mesa \
+ --with-opengl \
%{?debug:--enable-debug}%{!?_debug:--enable-release}
-%{__make} GL_LIBS="-lGL -lGLU"
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_datadir}
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+# new fox installs headers in include/fox-1.1, but apps expect them as <fox/*.h>
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ foxincludedir=%{_includedir}/fox \
+ chartincludedir=%{_includedir}/fox/chart
-cp -p pathfinder/.libs/PathFinder $RPM_BUILD_ROOT%{_bindir}
+ln -sf libFOX-1.1.so $RPM_BUILD_ROOT%{_libdir}/libFOX.so
rm -f doc/Makefile* doc/*/Makefile*
%files
%defattr(644,root,root,755)
-%doc AUTHORS README
+%doc AUTHORS LICENSE_ADDENDUM README
%attr(755,root,root) %{_libdir}/lib*.so.*.*
%files progs
%attr(755,root,root) %{_bindir}/adie
%attr(755,root,root) %{_bindir}/calculator
%attr(755,root,root) %{_bindir}/PathFinder
+%attr(755,root,root) %{_bindir}/shutterbug
%files devel
%defattr(644,root,root,755)