# Note that this is NOT a relocatable package %define ver 0.35 %define rel 1 %define prefix %{_prefix} Summary: Gnome Print - Printing libraries for GNOME. Name: gnome-print Version: %ver Release: %rel Copyright: LGPL Group: System Environment/Base Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/gnome-print/gnome-print-%{ver}.tar.gz BuildRoot: /var/tmp/gnome-print-%{ver}-root Requires: gnome-libs >= 1.0 Requires: urw-fonts Requires: ghostscript-fonts >= 4.03 BuildRequires: libtool >= 1.3.5 BuildRequires: flex BuildRequires: bison DocDir: %{prefix}/doc Prereq: libxml %ifarch ia64 %define stdlib lib/ia64l32 %define liblink ../../.. %define DEFCCIA cc %define DEFCC %{DEFCCIA} %else %define stdlib lib %define liblink ../.. %define DEFCC cc %endif %description GNOME (GNU Network Object Model Environment) is a user-friendly set of applications and desktop tools to be used in conjunction with a window manager for the X Window System. GNOME is similar in purpose and scope to CDE and KDE, but GNOME is based completely on free software. The gnome-print package contains libraries and fonts that are needed by GNOME applications wanting to print. You should install the gnome-print package if you intend on using any of the GNOME applications that can print. If you would like to develop GNOME applications that can print you will also need to install the gnome-print devel package. %package devel Summary: Libraries and include files for developing GNOME applications. Group: Development/Libraries %description devel GNOME (GNU Network Object Model Environment) is a user-friendly set of applications and desktop tools to be used in conjunction with a window manager for the X Window System. GNOME is similar in purpose and scope to CDE and KDE, but GNOME is based completely on free software. The gnome-print-devel package includes the libraries and include files that you will need when developing applications that use the GNOME printing facilities. You should install the gnome-print-devel package if you would like to develop GNOME applications that will use the GNOME printing facilities. You don't need to install the gnome-print-devel package if you just want to use the GNOME desktop enviornment. %changelog * Mon Jul 22 2002 Chris Tysor - Update to 0.35 * Wed Mar 20 2002 David Clissold - Update to 0.34 * Mon Nov 26 2001 Dan Nguyen - Update to 0.32 * Fri Oct 26 2001 Dan Nguyen - Strip all binaries * Tue Oct 16 2001 Dan Nguyen - Update to 0.31 * Sun Apr 08 2001 Marc Stephenson - Fix alloca reference * Fri Mar 09 2001 Marc Stephenson - Add logic for default compiler - Rebuild against new shared objects * Thu Feb 15 2001 aixtoolbox - Account for different standard lib location in IA64 32-bit ABI * Fri Oct 27 2000 pkgmgr - Modify for AIX Freeware distribution * Sun Aug 01 1999 Gregory McLean - Undo my draconian uninstall stuff. * Tue Jul 20 1999 Gregory McLean - Stab at cleaning up properly when we uninstall. * Fri Jul 16 1999 Herbert Valerio Riedel - fixed typo in spec * Wed Jul 14 1999 Gregory McLean - Added fonts to the spec. * Mon Jul 05 1999 Gregory McLean - Fleshed out the descriptions. %prep %setup -q %build # Needed for snapshot releases. %ifarch alpha MYARCH_FLAGS="--host=alpha-redhat-linux" %endif # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} else export CC=gcc fi fi if test "X$CC" != "Xgcc" then export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -ma" export CFLAGS="$RPM_OPT_FLAGS" fi #libtoolize --force CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-Wl,-brtl -lintl" ./configure \ --prefix=%prefix --sysconfdir=/etc if [ "$SMP" != "" ]; then (make "MAKE=make -k -j $SMP"; exit 0) make else make fi %install rm -rf $RPM_BUILD_ROOT make prefix=$RPM_BUILD_ROOT%{prefix} \ sysconfdir=$RPM_BUILD_ROOT/etc install # This is ugly # cd fonts install -c *.font $RPM_BUILD_ROOT%{prefix}/share/fonts ( cd $RPM_BUILD_ROOT for dir in bin include do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{prefix}/$dir/* . cd - done mkdir -p usr/%{stdlib} cd usr/%{stdlib} ln -sf %{liblink}%{prefix}/lib/* . ) file $RPM_BUILD_ROOT%{prefix}/bin/* | awk -F ':' '/not stripped/ {print $1}' | xargs /usr/bin/strip %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %doc AUTHORS COPYING ChangeLog NEWS README %{prefix}/lib/lib*.so* %{prefix}/bin/* /usr/%{stdlib}/lib*.so* /usr/bin/* %{prefix}/share/locale/*/*/* %{prefix}/share/fonts/afms/adobe/* %{prefix}/share/fonts/*.font %config %{prefix}/share/gnome-print/profiles/* %files devel %defattr(-, root, root) %{prefix}/lib/*.la %{prefix}/lib/*.sh /usr/%{stdlib}/*.la /usr/%{stdlib}/*.sh %{prefix}/include/*/* /usr/include/*/*