libgnomeprint.spec
author dermotm
Tue, 04 Jan 2005 10:21:29 +0000
changeset 4801 e962671c7dcf
parent 4783 01e059f65c13
child 4846 ffaaacbb77db
permissions -rw-r--r--
Incremented release numbers for build 26

Name:         libgnomeprint
License:      LGPL
Group:        System/Libraries/GNOME
Version:      2.6.0
Release:      30
Distribution: Cinnabar
Vendor:	      Sun Microsystems, Inc.
Summary:      Print Library for the GNOME Desktop
Source:       http://ftp.gnome.org/pub/GNOME/sources/libgnomeprint/2.5/libgnomeprint-%{version}.tar.bz2
Source1:      libgnomeprint-l10n-po-1.10.tar.bz2
Source2:      libgnomeprint-2.2.3.gz
Source3:      l10n-configure.sh
Patch1:       libgnomeprint-01-use-older-cups.diff
Patch2:       libgnomeprint-02-papi.diff
Patch3:       libgnomeprint-03-pdf-operator-fix.diff
Patch4:       libgnomeprint-04-TT-subsetting-4928658.diff
Patch5:	      libgnomeprint-05-ps-output.diff
Patch6:       libgnomeprint-06-broken-ttf-fix.diff
Patch7:       libgnomeprint-07-gtkdoc.diff
Patch8:       libgnomeprint-08-g11n-i18n-ui.diff
Patch9:       libgnomeprint-09-g11n-potfiles.diff
Patch10:      libgnomeprint-10-chinese-ASCII-5090546.diff
Patch11:      libgnomeprint-11-gpdf-mixed-text-issue-5083233.diff
URL:          http://www.gnome.org
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
Autoreqprov:  on
Prereq:       /sbin/ldconfig

%define INSTALL_DIR install -d -m755

%define glib2_version 2.4.0
%define pango_version 1.4.0
%define libart_lgpl_version 2.3.16
%define gtk_doc_version 1.1
%define gnome_common_version 2.4.0
%define cups_version 1.1.20
%define openssl_devel_version 0.9.7

Requires:      glib2 >= %{glib2_version}
Requires:      pango >= %{pango_version}
Requires:      libart_lgpl >= %{libart_lgpl_version}
Requires:      cups >= %{cups_version}
Requires:      libgnomecups

BuildRequires: glib2-devel >= %{glib2_version}
BuildRequires: pango-devel >= %{pango_version}
BuildRequires: libart_lgpl-devel >= %{libart_lgpl_version}
BuildRequires: gtk-doc >= %{gtk_doc_version}
BuildRequires: cups-devel >= %{cups_version}
BuildRequires: gnome-common >= %{gnome_common_version}
BuildRequires: openssl-devel >= %{openssl_devel_version}
BuildRequires: libgnomecups-devel

%description
libgnomeprint is the printing library for the GNOME desktop, providing a simple and clean
API for GNOME applications to print documents.

%package devel
Summary:      Print Development Library for the GNOME Desktop
Group:        Development/Libraries/GNOME
Requires:     %{name} = %{version}
Requires:     glib2-devel >= %{glib2_version}
Requires:     pango-devel >= %{pango_version}
Requires:     libart_lgpl-devel >= %{libart_lgpl_version}

%description devel
libgnomeprint is the printing library for the GNOME desktop, providing a simple and clean
API for GNOME applications to print documents.

%prep
%setup -q
bzcat %SOURCE1 | tar xf -
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1

bash -x %SOURCE3

%build
%ifos linux
if [ -x /usr/bin/getconf ]; then
  CPUS=`getconf _NPROCESSORS_ONLN`
fi
%else
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
%endif
if test "x$CPUS" = "x" -o $CPUS = 0; then
  CPUS=1
fi

libtoolize --force --copy
aclocal $ACLOCAL_FLAGS -I . -I %{_datadir}/aclocal/gnome2-macros
autoheader
automake -a -c -f
autoconf

CFLAGS="$RPM_OPT_FLAGS"				\
./configure --prefix=%{_prefix}			\
	    --sysconfdir=%{_sysconfdir}		\
	    --mandir=%{_mandir}			\
	    --enable-gtk-doc
	
make -j $CPUS

%install
make DESTDIR=$RPM_BUILD_ROOT install
#Copy zh_HK from zh_TW
#Fixes bug 4930405
install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES
install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/
install -d $RPM_BUILD_ROOT%{_mandir}/man3
install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man3
rm $RPM_BUILD_ROOT%{_libdir}/*.a
rm $RPM_BUILD_ROOT%{_libdir}/*.la
rm $RPM_BUILD_ROOT%{_libdir}/libgnomeprint/*/modules/*.a
rm $RPM_BUILD_ROOT%{_libdir}/libgnomeprint/*/modules/*.la
rm $RPM_BUILD_ROOT%{_libdir}/libgnomeprint/*/modules/transports/*.a
rm $RPM_BUILD_ROOT%{_libdir}/libgnomeprint/*/modules/transports/*.la
                                                                                                                                                             
%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%{_datadir}/locale/*/LC_MESSAGES/*.mo
%{_datadir}/libgnomeprint
%{_libdir}/libgnomeprint/*/modules/*so*
%{_libdir}/libgnomeprint/*/modules/*/*so*
%{_libdir}/*so.*

%files devel
%{_libdir}/pkgconfig/libgnomeprint-2.2.pc
%{_includedir}/libgnomeprint-2.2/libgnomeprint
%{_datadir}/gtk-doc
%{_libdir}/*so
%{_mandir}/man3/*

%changelog
* Tue Dec 21 2004 - [email protected]
- Fix for 5083233. Added libgnomeprint-11-gpdf-mixed-text-issue-5083233.diff

* Tue Dec 14 2004 - [email protected]
- Remove the $(datadir)/fonts/pfbs and $(datadir)/gnome-print from
  being created. No idea where this came from, but it's wrong.
* Thu Nov 04 2004 - [email protected]
- Updated libgnomeprint-08-g11n-i18n-ui.diff to fix 6188803
* Thu Oct 28 2004 - [email protected]
- Fix for 5090546. Added libgnomeprint-10-chinese-ASCII-5090546.diff.

* Thu Oct 28 2004 - [email protected]
- Add libgnomeprint-2.2.3 man page

* Tue Oct 05 2004 - [email protected]
- Added libgnomeprint-08-g11n-i18n-ui.diff to i18n print dialogs.
  Fixed 4869747
- Added libgnomeprint-09-g11n-potfiles.diff

* Wed Aug 18 2004 - [email protected]
- added --enable-gtk-doc.  Added patch to allow gtk-docs to build.

* Fri Aug 18 2004 - [email protected]
- Modified libgnomeprint-05-ps-output.diff, a one line fix.
- Create libgnomeprint-06-broken-ttf-fix.diff (bugzilla #149858,
  bugtraq #5085669)

* Sat Jul 10 2004 - [email protected]
- create libgnomeprint-05-ps-output.diff (bugzilla #148674,
  bugtraq #5065284, #5077052)

* Sat Jul 10 2004 - [email protected]
- Modified libgnomeprint-02-papi.diff to fix crash when there
  are no printers available. Patch by [email protected].

* Thu Jul 08 2004 - [email protected]
- Updated l10n content to libgnomeprint-l10n-po-1.2.tar.bz2

* Wed Jul 07 2004 - [email protected]
- ported to rpm4

* Wed Jul 07 2004 - [email protected]
- added "-j $CPUS" to make to speed up builds

* Wed Jun 09 2004 - [email protected]
- Add libgnomeprint-03-pdf-operator-fix.diff for correcting pdf
  output, backported from community's cvs HEAD
- Add libgnomeprint-04-TT-subsetting-4928658.diff to support
  TrueType font subsetting for PDF and PS

* Wed Jun 02 2004 - [email protected]
- Add PAPI support

* Wed May 12 2004 - [email protected]
- Updated l10n content to libgnomeprint-l10n-po-1.1.tar.bz2

* Fri Apr 02 2004 - [email protected]
- Updated to 2.6.0 tarball for 2.6

* Mon Mar 29 2004 - [email protected]
- Updated l10n content to libgnomeprint-l10n-po-1.0.tar.bz2

* Fri Mar 19 2004 - <[email protected]>
- Bump to 2.5.4 and remove a uninstalled, locale generation and potfiles
  patches.

* Tue Mar 09 2004 - <[email protected]>
- Hacked around with libgnomeprint-04-old-version-cups-hack.diff
  since the version of cups we have is just too old. This patch should be
  removed once CUPS 1.1.20 is made available.

* Thu Feb 19 2004 - <[email protected]>
- Bump to 2.5.2, re-apply patches, bump l10n to 0.8

* Thu Feb 12 2004 - <[email protected]>
- Add patch 03 to create a -uninstalled.pc file
- autotoolize the build stage

* Wed Dec 17 2003 - <[email protected]>
- Bump to 2.5.0.1

* Thu Oct 09 2003 - <[email protected]>
- Updated spec file to build for QS, since this CUPS stuff has not be integrated into 
  GNOME 2.4. Still needs to use the same tarball as Mercury.

* Thu Aug 14 2003 - <[email protected]>
- move lib*.so to -devel, remove *.a, *.la

* Thu Jul 10 2003 - [email protected]
- Added .po tarball

* Tue Jul 08 2003 - [email protected]
- Changed files section to include printer icons and also libraries 
  that import the cups printers into libgnomeprintui dialog.

* Mon Jun 30 2003 - [email protected]
- Added cups integration with a new version of tarball.
  libgnomeprint-2.3.0.cvs.9.tar.bz2

* Tue May 13 2003 - [email protected]
- Initial Sun release