%define localstatedir /var/lib Summary: Gnome Print - Printing libraries for GNOME. Name: gnome-print Version: 0.34 Release: 1 Copyright: LGPL Group: System Environment/Base Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/%{name}/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/gnome-print-%{version}-root PreReq: ghostscript, urw-fonts, perl PreReq: ghostscript-fonts >= 4.03 Requires: gtk+ >= 1.2.8 Requires: gnome-libs >= 1.0 Requires: libxml >= 1.8.5 Requires: libxml <= 2.0.0 BuildRequires: gnome-libs-devel >= 1.0 BuildRequires: gdk-pixbuf-devel >= 0.7.0 BuildRequires: libxml-devel >= 1.8.5 BuildRequires: libxml-devel <= 2.0.0 %description 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 Requires: %{name} = %{version} %description devel 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. %prep %setup -q %build # Needed for snapshot releases. %ifarch alpha MYARCH_FLAGS="--host=alpha-redhat-linux" %endif if [ ! -f configure ]; then CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh $MYARCH_FLAGS \ --prefix=%{_prefix} --localstatedir=%{localstatedir} \ --bindir=%{_bindir} --datadir=%{_datadir} --libdir=%{_libdir} \ --includedir=%{_includedir} --sysconfdir=%{_sysconfdir} fi CFLAGS="$RPM_OPT_FLAGS" ./configure $MYARCH_FLAGS --prefix=%{_prefix} \ --localstatedir=%{localstatedir} --bindir=%{_bindir} \ --datadir=%{_datadir} --libdir=%{_libdir} \ --includedir=%{_includedir} --sysconfdir=%{_sysconfdir} 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} \ localstatedir=$RPM_BUILD_ROOT/%{localstatedir} \ bindir=$RPM_BUILD_ROOT/%{_bindir} \ datadir=$RPM_BUILD_ROOT/%{_datadir} \ libdir=$RPM_BUILD_ROOT/%{_libdir} \ includedir=$RPM_BUILD_ROOT/%{_includedir} \ sysconfdir=$RPM_BUILD_ROOT/%{_sysconfdir} install %find_lang %name cd fonts install -m 644 *.font $RPM_BUILD_ROOT/%{_datadir}/gnome/fonts %clean rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig gnome-font-install --smart # --aliases=%{_datadir}/gnome-print/fonts/adobe-urw.font \ # --target=%{_sysconfdir}/gnome/fonts/gnome-print-rpm.fontmap \ # --recursive \ # %{_datadir}/fonts/default/Type1 \ # /usr/X11R6/lib/X11/fonts/Type1 %postun /sbin/ldconfig %files -f %{name}.lang %defattr(-, root, root) %doc AUTHORS COPYING ChangeLog NEWS README %{_bindir}/* %{_libdir}/*.so.* %{_datadir}/fonts/afms %{_datadir}/gnome/fonts %dir %{_datadir}/%{name} %config %{_datadir}/%{name}/* %dir %{_sysconfdir}/gnome/ %config %{_sysconfdir}/gnome/fonts/* %files devel %defattr(-, root, root) %{_libdir}/*.so %{_libdir}/*a %{_libdir}/*.sh %{_includedir}/* %changelog * Fri Jun 22 2001 Gregory Leblanc - reformatted the header with nicer indenting - fixed all paths to use macros if possible - added the rest of the option relocation options to configure and make install - added localstatdir as a define - added a PreReq: on perl - used %{_tmpdir} in the BuildRoot line - removed unnecessary defines - used %name and %version in the Source line * Mon Dec 11 2000 Chema Celorio - Added note about this file not beeing maintaned and updated the old description. * 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.