File fox16.spec of Package fox16
#
# spec file for package fox16 (Version 1.6.40)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: fox16
Summary: Shared Libraries for the FOX Toolkit
Url: http://www.fox-toolkit.org/
Group: Development/Languages/C and C++
License: LGPLv2.1+
Version: 1.6.40
Release: 1
%define soname 1_6
Source: fox-%{version}.tar.bz2
Source1: calculator.png
Source2: pathfinder.png
Source3: adie.png
Source4: fox16-rpmlintrc
Source5: adie.desktop
Source6: calculator.desktop
Source7: pathfinder.desktop
Provides: fox = %{version}-%{release}
Requires: libfox%soname = %{version}
Patch2: fox-1.6.26-missing_html_tag.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: doxygen freetype2-devel gcc-c++ libjpeg-devel libpng-devel libtiff-devel pkgconfig zlib-devel
#
# SUSE requires
#
%if 0%{?suse_version}
BuildRequires: cups-devel xorg-x11-devel
BuildRequires: update-desktop-files
%if 0%{?suse_version} >= 1020
BuildRequires: xorg-x11-Mesa-devel xorg-x11-libXext-devel xorg-x11-libXfixes-devel
%else
BuildRequires: Mesa-devel XFree86-Mesa XFree86-Mesa-devel XFree86-devel XFree86-libs xorg-x11-libs
%endif
%endif
#
# Mandriva Requires
#
%if 0%{?mandriva_version}
BuildRequires: cups cups-common libxext-devel libxft-devel xorg-x11
BuildRequires: libmesaglu-devel
%endif
#
# Fedora Requires
#
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires: cups-devel libGLU-devel libXext-devel libXft-devel xorg-x11-devel
%endif
%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.
Authors:
--------
Johnathan Bush
Pierre Cyr
Janusz Ganczarski
Daniel Gehriger
Eric Gillet
Freddy Golos
Angel-Ventura Mendo Gomez
Sean Hubbell
Sander Jansen
Lyle Johnson
Torsten Landschoff
Ren� van Paassen
Guoqing Tian
David Tyree
Charles W. Warren
David Tyree
Jeroen van der Zijp
%package -n libfox1_6
License: LGPLv2.1+
Summary: Shared Libraries for the FOX Toolkit
Group: Development/Languages/C and C++
%description -n libfox%soname
This package contains the shared libraries needed
by applications compiled with the FOX GUI Toolkit.
Authors:
--------
Johnathan Bush
Pierre Cyr
Janusz Ganczarski
Daniel Gehriger
Eric Gillet
Freddy Golos
Angel-Ventura Mendo Gomez
Sean Hubbell
Sander Jansen
Lyle Johnson
Torsten Landschoff
René van Paassen
Guoqing Tian
David Tyree
Charles W. Warren
David Tyree
Jeroen van der Zijp
%package devel
License: LGPLv2.1+
Summary: Development Files and Documentation for the FOX GUI Toolkit
Group: Development/Languages/C and C++
Provides: fox-devel = %{version}-%{release}
Requires: %{name} = %{version}
Requires: xorg-x11-devel fontconfig-devel freetype2-devel glibc-devel libpng-devel
Requires: libtiff-devel libjpeg-devel zlib-devel bzip2 cups-libs cups-devel
#
# SUSE requires
#
%if 0%{?suse_version}
Requires: xorg-x11-libXfixes-devel xorg-x11-libXext-devel xorg-x11-libXrender-devel
Requires: xorg-x11-libX11-devel xorg-x11-libXau-devel xorg-x11-libXdmcp-devel Mesa-devel
Requires: libexpat-devel libbz2-devel
Requires: xorg-x11-libs xorg-x11-Mesa-devel expat
%endif
%description devel
FOX is a C++-based library for graphical user interface development.
The 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.
Authors:
--------
Johnathan Bush
Pierre Cyr
Janusz Ganczarski
Daniel Gehriger
Eric Gillet
Freddy Golos
Angel-Ventura Mendo Gomez
Sean Hubbell
Sander Jansen
Lyle Johnson
Torsten Landschoff
Ren� van Paassen
Guoqing Tian
David Tyree
Charles W. Warren
David Tyree
Jeroen van der Zijp
%package devel-static
License: LGPLv2.1+
Summary: Static Libraries for the FOX Toolkit
Group: Development/Languages/C and C++
Provides: %name-static = %version-%release
Obsoletes: %name-static < 1.6.36
# skip dependency checks required by libtool .la files => skip-check-libtool-deps
%description devel-static
This package contains static libraries for developing applications
which are statically linked against the FOX libraries.
FOX is a C++-based library for graphical user interface development.
Authors:
--------
Johnathan Bush
Pierre Cyr
Janusz Ganczarski
Daniel Gehriger
Eric Gillet
Freddy Golos
Angel-Ventura Mendo Gomez
Sean Hubbell
Sander Jansen
Lyle Johnson
Torsten Landschoff
Ren� van Paassen
Guoqing Tian
David Tyree
Charles W. Warren
David Tyree
Jeroen van der Zijp
%package example-apps
License: LGPLv2.1+
Summary: Example applications for the FOX GUI toolkit
Group: Development/Languages/C and C++
Provides: fox-example-apps = %{version}-%{release}
Requires: %{name}
%description example-apps
The example-apps package contains executables for several FOX-based
applications, including:
* Adie : Programmer's Text Editor
* calculator : Calculator Applet
* shutterbug : Screenshot Utility
* PathFinder : File Browser
Authors:
--------
Johnathan Bush
Pierre Cyr
Janusz Ganczarski
Daniel Gehriger
Eric Gillet
Freddy Golos
Angel-Ventura Mendo Gomez
Sean Hubbell
Sander Jansen
Lyle Johnson
Torsten Landschoff
Ren� van Paassen
Guoqing Tian
David Tyree
Charles W. Warren
David Tyree
Jeroen van der Zijp
%prep
%setup -q -n fox-%{version}
%patch2 -p0
%build
autoreconf -fi
%configure \
--enable-threadsafe \
--enable-release \
--enable-cups \
--with-xft \
--with-x \
--with-xcursor \
--with-xrender \
--with-xrandr \
--with-opengl \
--with-shape \
--with-xshm \
%if 0%{?mandriva_version}
--with-opengl="no" \
%endif
--without-profiling
%{__make} %{?_smp_mflags}
%install
%makeinstall
# install docu
pushd doc
doxygen -u doxygen.cfg
make docs
popd
mkdir -p %buildroot/%{_defaultdocdir}/%{name}/html
# FIXME: to be done via configure
if [ -d %buildroot/%{_datadir}/doc/fox-1.6 ]; then
mv %buildroot/%{_datadir}/doc/fox-1.6/* %buildroot%{_defaultdocdir}/%{name}/html/
rm -rf %buildroot/%{_datadir}/doc/fox-1.6
fi
install -m644 ADDITIONS AUTHORS LICENSE* README TRACING index.html %buildroot%{_defaultdocdir}/%{name}/
# install desktop files for example applications
%if 0%{?suse_version}
mkdir -p %buildroot/%{_datadir}/{applications,pixmaps}
install -m 644 %SOURCE1 %buildroot/%{_datadir}/pixmaps/
install -m 644 %SOURCE2 %buildroot/%{_datadir}/pixmaps/
install -m 644 %SOURCE3 %buildroot/%{_datadir}/pixmaps/
install -m 644 %SOURCE5 %buildroot/%{_datadir}/applications/
install -m 644 %SOURCE6 %buildroot/%{_datadir}/applications/
install -m 644 %SOURCE7 %buildroot/%{_datadir}/applications/
%suse_update_desktop_file calculator
%suse_update_desktop_file pathfinder
%suse_update_desktop_file adie
%endif
%clean
rm -rf %buildroot
%post -n libfox1_6 -p /sbin/ldconfig
%postun -n libfox1_6 -p /sbin/ldconfig
%post devel-static
test -f %{_bindir}/fox-config || ln -s fox16-config %{_bindir}/fox-config
test -f %{_bindir}/reswrap || ln -s reswrap16 %{_bindir}/reswrap
test -f %{_mandir}/man1/reswrap.1.gz || ln -s reswrap16.1.gz %{_mandir}/man1/reswrap.1.gz
%files
%defattr(644, root, root, 0755)
%doc %{_defaultdocdir}/%{name}
%files -n libfox1_6
%defattr(-, root, root)
%{_libdir}/libFOX-*.so*
%{_libdir}/libCHART-*.so*
%exclude %{_libdir}/*.so
%files devel
%defattr(-,root,root)
%{_bindir}/reswrap
%{_bindir}/fox-config
%{_mandir}/man1/reswrap.1*
%{_includedir}/fox-*/
%{_libdir}/pkgconfig/fox.pc
%{_libdir}/libFOX-*.la
%{_libdir}/libCHART-*.la
%{_libdir}/libFOX-*.so
%{_libdir}/libCHART-*.so
%files devel-static
%defattr(-,root,root)
%{_libdir}/libFOX-*.a
%{_libdir}/libCHART-*.a
%files example-apps
%defattr(-,root,root)
%{_bindir}/Adie.stx
%{_bindir}/adie
%{_bindir}/PathFinder
%{_bindir}/calculator
%{_bindir}/shutterbug
%if 0%{?suse_version}
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.png
%endif
%{_mandir}/man1/adie*
%{_mandir}/man1/calculator*
%{_mandir}/man1/PathFinder*
%{_mandir}/man1/shutterbug*
%changelog