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