- updated to 1.0.30
[packages/fox.git] / fox.spec
index 041a2ff5021b6ee971cfbdcbd561ea69f7052a8e..0393d7a8a3668e212ec78f1ac73c6099b160d974 100644 (file)
--- a/fox.spec
+++ b/fox.spec
@@ -1,17 +1,22 @@
 Summary:       The FOX C++ GUI Toolkit
 Summary(pl):   FOX - toolkit graficzny w C++
 Name:          fox
-Version:       1.0.28
+Version:       1.0.30
 Release:       1
 License:       LGPL
 Group:         X11/Libraries
+#Source0ActiveFTP
 Source0:       ftp://ftp.fox-toolkit.org/pub/%{name}-%{version}.tar.gz
-URL:           http://www.cfdrc.com/FOX/fox.html
+Patch0:                %{name}-opt.patch
+URL:           http://www.fox-toolkit.org/fox.html
 BuildRequires: OpenGL-devel
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: libtool
+BuildRequires: libjpeg-devel
+BuildRequires: libpng-devel
 BuildRequires: libstdc++-devel
+BuildRequires: libtiff-devel
+BuildRequires: libtool
 Requires:      OpenGL
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -72,28 +77,29 @@ Biblioteki statyczne FOX.
 
 %prep
 %setup -q
+%patch -p1
 
 %build
 rm -f missing
-libtoolize -c -f
+%{__libtoolize}
 %{__aclocal}
 %{__autoconf}
 %{__automake}
-CPPFLAGS="%{rpmcflags} -frtti" \
-#CFLAGS="%{rpmcflags} -frtti" \
 %configure \
        --with-opengl=mesa \
-       --enable-release
+       %{?debug:--enable-debug}%{!?_debug:--enable-release}
 %{__make} GL_LIBS="-lGL -lGLU"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/%{_datadir}
+install -d $RPM_BUILD_ROOT%{_datadir}
 
 %{__make} install DESTDIR=$RPM_BUILD_ROOT
 
 cp -p pathfinder/.libs/PathFinder $RPM_BUILD_ROOT%{_bindir}
 
+rm -f doc/Makefile* doc/*/Makefile*
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -102,17 +108,18 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc AUTHORS README
 %attr(755,root,root) %{_libdir}/lib*.so.*.*
 
 %files progs
 %defattr(644,root,root,755)
-%attr(755,root,root) /%{_bindir}/adie
-%attr(755,root,root) /%{_bindir}/calculator
-%attr(755,root,root) /%{_bindir}/PathFinder
+%attr(755,root,root) %{_bindir}/adie
+%attr(755,root,root) %{_bindir}/calculator
+%attr(755,root,root) %{_bindir}/PathFinder
 
 %files devel
 %defattr(644,root,root,755)
-%doc ADDITIONS AUTHORS README TRACING doc
+%doc ADDITIONS TRACING doc
 %attr(755,root,root) %{_bindir}/reswrap
 %attr(755,root,root) %{_libdir}/lib*.so
 %{_libdir}/lib*.la
This page took 0.042911 seconds and 4 git commands to generate.