- updated to 1.0.30
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 28 Jan 2003 22:00:03 +0000 (22:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added opt patch to avoid overriding optflags
- removed -frtti - it's enabled by default

Changed files:
    fox-opt.patch -> 1.1
    fox.spec -> 1.45

fox-opt.patch [new file with mode: 0644]
fox.spec

diff --git a/fox-opt.patch b/fox-opt.patch
new file mode 100644 (file)
index 0000000..97eae94
--- /dev/null
@@ -0,0 +1,30 @@
+--- fox-1.0.30/configure.in.orig       Sat Jan 11 06:01:11 2003
++++ fox-1.0.30/configure.in    Tue Jan 28 19:29:29 2003
+@@ -49,9 +49,6 @@
+ AC_SUBST(LT_REVISION)
+ AC_SUBST(LT_AGE)
+-dnl Prevents setting flags.
+-CXXFLAGS=""
+-
+ dnl Checks for programs.
+ AC_PROG_MAKE_SET
+ AC_PROG_CC
+@@ -240,7 +237,7 @@
+ AC_ARG_ENABLE(debug,[  --enable-debug          compile for debugging])
+ AC_MSG_RESULT([$enable_debug])
+ if test "x$enable_debug" = "xyes" ; then
+-CXXFLAGS="${CXXFLAGS} -g -DDEBUG"
++CXXFLAGS="${CXXFLAGS} -DDEBUG"
+ fi
+ dnl Building for release
+@@ -248,7 +245,7 @@
+ AC_ARG_ENABLE(release,[  --enable-release        compile for release])
+ AC_MSG_RESULT([$enable_release])
+ if test "x$enable_release" = "xyes" ; then
+-CXXFLAGS="${CXXFLAGS} -O2 -DNDEBUG"
++CXXFLAGS="${CXXFLAGS} -DNDEBUG"
+ if test "${GXX}" = "yes" ; then
+ CXXFLAGS="${CXXFLAGS} -Wuninitialized -ffast-math -finline-functions -fomit-frame-pointer -fexpensive-optimizations"
+ fi
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.267988 seconds and 4 git commands to generate.