%define name fox %define version @FOX_MAJOR_VERSION@.@FOX_MINOR_VERSION@.@FOX_PATCH_LEVEL@ %define release 1 Summary: The FOX toolkit. Name: %{name} Version: %{version} Release: %{release} Copyright: LGPL Group: System Environment/Libraries Source: ftp://ftp.fox-toolkit.org/pub/%{name}-%{version}.tar.gz URL: http://www.fox-toolkit.org Packager: Joshua Weage BuildRoot: %{_tmppath}/%{name}-buildroot %description FOX is a C++-based library for graphical user interface development FOX supports modern GUI features, such as drag-and-drop, tooltips, tab books, tree lists, icons, multiple document interfaces (MDI), timers, idle processing, automatic GUI updating, as well as OpenGL/Mesa for 3D graphics. Subclassing of basic FOX widgets allows for easy extension beyond the built-in widgets by application writers. %package devel Summary: Development files and documentation for the FOX GUI toolkit. Group: Development/Libraries %description devel The fox-devel package contains the files necessary to develop applications using the FOX GUI toolkit: the header files, the reswrap resource compiler, manual pages, and HTML documentation. %package static Summary: A version of the FOX GUI toolkit for static linking. Group: Development/Libraries %description static The fox-static package contains the files necessary to link applications to the FOX GUI toolkit statically (rather than dynamically). Statically linked applications do not require the library to be installed on the system running the application. %package -n adie Summary: Adie Programmer's Text Editor Group: X11/Applications Version: 3.0.0 %description -n adie Adie is an extremely fast and convenient programming text editor written using the FOX Toolkit. %package -n calculator Summary: FOX-based Calculator Applet Group: X11/Applications Version: 2.0.0 %description -n calculator The FOX calculator is a simple desktop calculator geared towards the programmer. It supports not only a full complement of scientific functions, but also common operations that programmers need, such as bitwise operations, bitwise shifting, and base-2 logarithm and exponents, and numeric conversion between hexadecimal, octal, binary, and decimal. The FOX Calculator implements correct operator precedences, so expressions like 2+3*5 yield the correct result, which is 17, and not 25. Also featured is a constant memory, which permanently stores its value even if you exit the calculator and restart it later. %package -n pathfinder Summary: PathFinder File Browser Group: X11/Applications Version: 1.0.0 %description -n pathfinder PathFinder is a file browser application written using the FOX Toolkit. %package -n shutterbug Summary: Shutterbug Screenshot Utility Group: X11/Applications Version: 2.0.0 %description -n shutterbug Shutterbug is a FOX-based screenshot utility. %prep %setup -q %build CPPFLAGS="$RPM_OPT_FLAGS -frtti" CFLAGS="$RPM_OPT_FLAGS -frtti" \ %configure --enable-release --enable-threadsafe make %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %makeinstall rm -f doc/Makefile.am doc/Makefile.in doc/Makefile rm -r doc/art/Makefile.am doc/art/Makefile.in doc/art/Makefile rm -f doc/screenshots/Makefile.am doc/screenshots/Makefile.in doc/screenshots/Makefile # remove docs as they are supplied by rpm rm -rf ${RPM_BUILD_ROOT}/%{_datadir}/doc/fox-@FOX_MAJOR_VERSION@.@FOX_MINOR_VERSION@ rm -rf ${RPM_BUILD_ROOT}/usr/fox %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %{_libdir}/libFOX-@FOX_MAJOR_VERSION@.@FOX_MINOR_VERSION@.so %{_libdir}/libFOX-@FOX_MAJOR_VERSION@.@FOX_MINOR_VERSION@.so.@LT_CURRENT@ %{_libdir}/libFOX-@FOX_MAJOR_VERSION@.@FOX_MINOR_VERSION@.so.@LT_CURRENT@.@LT_AGE@.@LT_REVISION@ %{_libdir}/libCHART-@FOX_MAJOR_VERSION@.@FOX_MINOR_VERSION@.so %{_libdir}/libCHART-@FOX_MAJOR_VERSION@.@FOX_MINOR_VERSION@.so.@LT_CURRENT@ %{_libdir}/libCHART-@FOX_MAJOR_VERSION@.@FOX_MINOR_VERSION@.so.@LT_CURRENT@.@LT_AGE@.@LT_REVISION@ %doc doc %doc ADDITIONS AUTHORS INSTALL LICENSE README TRACING index.html %files devel %defattr(-,root,root) %{_bindir}/reswrap %{_bindir}/fox-config %{_mandir}/man1/reswrap.1* %{_includedir}/fox-@FOX_MAJOR_VERSION@.@FOX_MINOR_VERSION@ %{_libdir}/libFOX-@FOX_MAJOR_VERSION@.@FOX_MINOR_VERSION@.la %{_libdir}/libCHART-@FOX_MAJOR_VERSION@.@FOX_MINOR_VERSION@.la %{_libdir}/pkgconfig/fox.pc %files static %defattr(-,root,root) %{_libdir}/libFOX-@FOX_MAJOR_VERSION@.@FOX_MINOR_VERSION@.a %{_libdir}/libCHART-@FOX_MAJOR_VERSION@.@FOX_MINOR_VERSION@.a %files -n adie %defattr(-,root,root) %{_bindir}/adie %{_bindir}/Adie.stx %{_mandir}/man1/adie.1* %files -n calculator %defattr(-,root,root) %{_bindir}/calculator %{_mandir}/man1/calculator.1* %files -n pathfinder %defattr(-,root,root) %{_bindir}/PathFinder %{_mandir}/man1/PathFinder.1* %files -n shutterbug %defattr(-,root,root) %{_bindir}/shutterbug %{_mandir}/man1/shutterbug.1* %changelog * Fri Aug 20 2004 Joshua Weage - Updated to use built-in RPM macros where possible. - Sanity check RPM_BUILD_ROOT before deleting it. - Delete docs installed by make, in preference for those from rpm * Thu Dec 4 2003 Lyle Johnson - incorporated Yan-Fa Li's changes for compatibility with latest RPM tools. * Thu Sep 25 2003 Lyle Johnson - added files for the new chart library to the fox, fox-devel and fox-static packages. - added a Prefix tag to the header section so that this package is relocatable. - Spin off Adie, calculator, PathFinder and shutterbug into their own subpackages. - Removed the '--with-opengl=opengl' flag from the %build section (no longer needed). * Thu Aug 28 2003 Lyle Johnson - correct installed file names to reflect new naming scheme * Wed Aug 27 2002 Lyle Johnson - remove Makefile scraps from the doc subdirectories * Wed Aug 21 2002 Lyle Johnson - added the fox-devel and fox-static subpackages. * Tue Oct 10 2000 David Sugar 0.99.132-3 - rtti forced for rpm build specs that use -fno-rtti. * Fri Mar 24 2000 José Romildo Malaquias 0.99.122-1 - new version * Fri Mar 24 2000 José Romildo Malaquias 0.99.119-1 - new version * Sun Mar 05 2000 José Romildo Malaquias - some adaptations * Tue Nov 10 1998 René van Paassen - initial package