Index: gnome-print.spec.in =================================================================== RCS file: /cvs/gnome/gnome-print/gnome-print.spec.in,v retrieving revision 1.17 diff -u -r1.17 gnome-print.spec.in --- gnome-print.spec.in 2000/12/12 00:03:38 1.17 +++ gnome-print.spec.in 2001/06/22 20:13:21 @@ -1,30 +1,26 @@ -# Note that this is NOT a relocatable package -# # *** NOTE **** # This gnome-print.spec file is not beeing maintaned by the gnome-print # team. Patches are welcomed, but the only "official" gnome-print release # is the tarball. -# -%define ver @VERSION@ -%define RELEASE 1 -%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE} -%define prefix /usr -Summary: Gnome Print - Printing libraries for GNOME. +%define localstatedir /var/lib + +Summary: Gnome Print - Printing libraries for GNOME. Name: gnome-print -Version: %ver -Release: %rel +Version: @VERSION@ +Release: 0.1 Copyright: LGPL Group: System Environment/Base -Source: ftp://ftp.gnome.org/pub/GNOME/sources/gnome-print/gnome-print-%{ver}.tar.gz -BuildRoot: /var/tmp/gnome-print-%{ver}-root -DocDir: %{prefix}/doc -PreReq: gnome-libs >= 1.0 -PreReq: libxml >= 1.8.5 -PreReq: gtk+ >= 1.2.8 -PreReq: ghostscript -PreReq: ghostscript-fonts >= 4.03 -PreReq: urw-fonts +Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/%{name}/%{name}-%{version}.tar.gz +BuildRoot: %{_tmpdir}/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 +BuildRequires: gnome-libs-devel +BuildRequires: gdk-pixbuf-devel >= 0.7.0 +BuildRequires: libxml-devel >= 1.8.5 %description You should install the gnome-print package if you intend on using any of @@ -33,8 +29,9 @@ devel package. %package devel -Summary: Libraries and include files for developing GNOME applications. -Group: Development/Libraries +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 @@ -42,26 +39,6 @@ You don't need to install the gnome-print-devel package if you just want to use the GNOME desktop enviornment. -%changelog -* 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. - %prep %setup -q @@ -72,38 +49,50 @@ %endif if [ ! -f configure ]; then - CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh $MYARCH_FLAGS --prefix=%prefix --localstatedir=/var/lib -else - CFLAGS="$RPM_OPT_FLAGS" ./configure $MYARCH_FLAGS --prefix=%prefix --localstatedir=/var/lib + CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh $MYARCH_FLAGS \ + --prefix=%{_prefix} --localstatedir=%{_localstatedir} \ + --bindir=%{_bindir} --datadir=%{_datadir} --libdir=%{_libdir} \ + --includedir=%{_includedir} fi +CFLAGS="$RPM_OPT_FLAGS" ./configure $MYARCH_FLAGS --prefix=%{_prefix} \ + --localstatedir=%{_localstatdir} --bindir=%{_bindir} \ + --datadir=%{_datadir} --libdir=%{_libdir} \ + --includedir=%{_includedir} + + if [ "$SMP" != "" ]; then - (make "MAKE=make -k -j $SMP"; exit 0) - make + (make "MAKE=make -k -j $SMP"; exit 0) + make else - make + make fi %install rm -rf $RPM_BUILD_ROOT -make prefix=$RPM_BUILD_ROOT%{prefix} install +make prefix=$RPM_BUILD_ROOT/%{_prefix} \ + localstatedir=$RPM_BUILD_ROOT/%{_localstatdir} \ + bindir=$RPM_BUILD_ROOT/%{_bindir} \ + datadir=$RPM_BUILD_ROOT/%{_datadir} \ + libdir=$RPM_BUILD_ROOT/%{_libdir} \ + includedir=$RPM_BUILD_ROOT/%{_includedir} install + # This is ugly # -install -m 644 run-gnome-font-install $RPM_BUILD_ROOT%{prefix}/share/fonts + +install -m 644 run-gnome-font-install $RPM_BUILD_ROOT%{_datadir}/fonts cd fonts -install -m 644 *.font $RPM_BUILD_ROOT%{prefix}/share/fonts +install -m 644 *.font $RPM_BUILD_ROOT%{_datadir}/fonts %clean rm -rf $RPM_BUILD_ROOT %post -if ! grep %{prefix}/lib /etc/ld.so.conf > /dev/null ; then - echo "%{prefix}/lib" >> /etc/ld.so.conf -fi /sbin/ldconfig -perl %{prefix}/share/fonts/run-gnome-font-install \ - %{prefix}/bin/gnome-font-install %{prefix}/share %{prefix}/share + +perl %{_datadir}/fonts/run-gnome-font-install \ + %{_bindir}/gnome-font-install %{_datadir} %{_datadir} %postun /sbin/ldconfig @@ -112,21 +101,53 @@ %defattr(-, root, root) %doc AUTHORS COPYING ChangeLog NEWS README -%{prefix}/bin/* -%{prefix}/lib/lib*.so.* -%{prefix}/share/fonts/afms/adobe/* -%{prefix}/share/fonts/fontmap -%{prefix}/share/fonts/*.font -%{prefix}/share/fonts/run-gnome-font-install -%{prefix}/share/locale/*/*/* -%config %{prefix}/share/gnome-print/%{version}/profiles/PostscriptOptimized.profile -%config %{prefix}/share/gnome-print/%{version}/profiles/pdf.profile +%{_bindir}/* +%{_libdir}/lib*.so.* +%{_datadir}/fonts/afms/adobe/* +%{_datadir}/fonts/fontmap2 +%{_datadir}/fonts/*.font +%{_datadir}/fonts/run-gnome-font-install +%{_datadir}/locale/*/*/* +%config %{_datadir}/gnome-print/%{version}/profiles/PostscriptOptimized.profile +%config %{_datadir}/gnome-print/%{version}/profiles/pdf.profile +%config %{_datadir}/gnome-print/%{version}/profiles/fax-g3.profile %files devel %defattr(-, root, root) + +%{_libdir}/lib*.so +%{_libdir}/*.a +%{_libdir}/*.la +%{_libdir}/*.sh +%{_includedir}/libgnomeprint + + +%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. -%{prefix}/lib/lib*.so -%{prefix}/lib/*.a -%{prefix}/lib/*.la -%{prefix}/lib/*.sh -%{prefix}/include/libgnomeprint/* +* 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.