17167N/A# spec file for package libspectre
17167N/A#
17167N/A# Copyright (c) 2009 Sun Microsystems, Inc.
17167N/A# This file and all modifications and additions to the pristine
17167N/A# package are under the same license as the package itself.
17167N/A#
17822N/A%define owner gheet
17167N/A# bugdb: bugzilla.freedesktop.org
17167N/A#
17167N/AName: libspectre
18982N/ALicense: GPLv2
17167N/AGroup: System/Libraries
18912N/AVersion: 0.2.6
17167N/ARelease: 1
17167N/ADistribution: Java Desktop System
18616N/AVendor: freedesktop.org
17167N/ASummary: Simple PostScript API wrapping Ghostscript libgs.
17167N/ASource: http://libspectre.freedesktop.org/releases/%{name}-%{version}.tar.gz
17167N/A# date:2009-08-30 type:feature owner:dkenny
17167N/APatch1: libspectre-01-uninstalled.pc.diff
17167N/AURL: http://libspectre.freedesktop.org/
17167N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
17167N/ADocdir: %{_docdir}/%{name}
17167N/AAutoreqprov: on
17167N/APrereq: /sbin/ldconfig
17167N/A
17167N/A%define cairo_version 0.5.0
17167N/A%define gtk2_version 2.4.0
17167N/A
17167N/ARequires: cairo >= %{cairo_version}
17167N/ARequires: gtk2 >= %{gtk2_version}
17168N/ARequires: SUNWghostscriptu
17167N/A
17167N/ABuildRequires: cairo-devel >= %{cairo_version}
17167N/ABuildRequires: gtk2-devel >= %{gtk2_version}
17168N/ABuildRequires: SUNWghostscriptu
17167N/A
17167N/A
17167N/A%description
17167N/Alibspectre is a small library for rendering Postscript documents. It provides
17167N/Aa convenient easy to use API for handling and rendering Postscript documents.
17167N/A
17167N/A%prep
17167N/A%setup -q
17167N/A%patch1 -p1
17167N/A
17167N/A%build
17167N/A%ifos linux
17167N/Aif [ -x /usr/bin/getconf ]; then
17167N/A CPUS=`getconf _NPROCESSORS_ONLN`
17167N/Afi
17167N/A%else
17167N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
17167N/A%endif
17167N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
17167N/A CPUS=1
17167N/Afi
17167N/A
18912N/Alibtoolize --force
18912N/A
17167N/A#aclocal $ACLOCAL_FLAGS -I . -I m4
17771N/Aaclocal $ACLOCAL_FLAGS -I .
17771N/Aautoheader
17771N/Aautomake -a -c -f
17167N/Aautoconf
17167N/ACFLAGS="$RPM_OPT_FLAGS" \
17167N/A./configure --prefix=%{_prefix} \
17167N/A --datadir=%{_datadir} \
17167N/A --sysconfdir=%{_sysconfdir} \
17167N/A --mandir=%{_mandir} \
17167N/A %{gtk_doc_option}
17167N/Amake -j $CPUS
17167N/A
17167N/A%install
17167N/Amake DESTDIR=$RPM_BUILD_ROOT install
17167N/Arm $RPM_BUILD_ROOT%{_libdir}/*.a
17167N/Arm $RPM_BUILD_ROOT%{_libdir}/*.la
17167N/A
17167N/A%clean
17167N/Arm -rf $RPM_BUILD_ROOT
17167N/A
17167N/A%files
17167N/A%defattr(-, root, root)
17167N/A%{_libdir}/*.so.*
17167N/A
17167N/A%changelog
18912N/A* Tue Jun 22 2010 - ghee.teo@oracle.com
18912N/A- Removed libspectre-02-printf_x.diff which is upstreamed.
18912N/A* Tue Jun 22 2010 - ghee.teo@oracle.com
18912N/A- Removed libspectre-02-printf_x.diff which is upstreamed.
17264N/A* Wed Sep 09 2009 - darren.kenny@sun.com
17264N/A- Add patch to change %llx to %x since it produces an invalid pointer value on
17264N/A SPARC which in turn causes crashes. Fixes defect#11267.
17167N/A* Sun Aug 30 2009 - darren.kenny@sun.com
17167N/A- Initial spec file for libspectre