libspectre.spec revision 17167
10139N/A# spec file for package libspectre
10139N/A#
10139N/A# Copyright (c) 2009 Sun Microsystems, Inc.
12153N/A# This file and all modifications and additions to the pristine
10139N/A# package are under the same license as the package itself.
10139N/A#
10139N/A# Owner: dkenny
10139N/A# bugdb: bugzilla.freedesktop.org
10139N/A#
12285N/AName: libspectre
10139N/ALicense: GPL
10139N/AGroup: System/Libraries
10139N/AVersion: 0.2.2
13443N/ARelease: 1
13444N/ADistribution: Java Desktop System
10139N/AVendor: Sun Microsystems, Inc.
10139N/ASummary: Simple PostScript API wrapping Ghostscript libgs.
10139N/ASource: http://libspectre.freedesktop.org/releases/%{name}-%{version}.tar.gz
13443N/A# date:2009-08-30 type:feature owner:dkenny
10139N/APatch1: libspectre-01-uninstalled.pc.diff
12285N/AURL: http://libspectre.freedesktop.org/
12773N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
12773N/ADocdir: %{_docdir}/%{name}
12773N/AAutoreqprov: on
13368N/APrereq: /sbin/ldconfig
10139N/A
10737N/A%define cairo_version 0.5.0
10139N/A%define gtk2_version 2.4.0
10737N/A
11419N/ARequires: cairo >= %{cairo_version}
10139N/ARequires: gtk2 >= %{gtk2_version}
10737N/A
11419N/ABuildRequires: cairo-devel >= %{cairo_version}
11895N/ABuildRequires: gtk2-devel >= %{gtk2_version}
10941N/A
10139N/AObsoletes: xpdf <= 3.0
10941N/AProvides: xpdf = 3.0
10737N/A
11044N/A%description
11420N/Alibspectre is a small library for rendering Postscript documents. It provides
11044N/Aa convenient easy to use API for handling and rendering Postscript documents.
12513N/A
11420N/A%prep
12513N/A%setup -q
12513N/A%patch1 -p1
12570N/A
12570N/A%build
13368N/A%ifos linux
13449N/Aif [ -x /usr/bin/getconf ]; then
13449N/A CPUS=`getconf _NPROCESSORS_ONLN`
13449N/Afi
10737N/A%else
10139N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10139N/A%endif
10139N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10139N/A CPUS=1
10139N/Afi
10139N/A
10139N/A#aclocal $ACLOCAL_FLAGS -I . -I m4
10139N/A#autoheader
10139N/A#automake -a -c -f
10139N/Aautoconf
10139N/ACFLAGS="$RPM_OPT_FLAGS" \
10139N/A./configure --prefix=%{_prefix} \
10139N/A --datadir=%{_datadir} \
10139N/A --sysconfdir=%{_sysconfdir} \
10139N/A --mandir=%{_mandir} \
10139N/A %{gtk_doc_option}
10139N/Amake -j $CPUS
10139N/A
10139N/A%install
12285N/Amake DESTDIR=$RPM_BUILD_ROOT install
12285N/Arm $RPM_BUILD_ROOT%{_libdir}/*.a
12285N/Arm $RPM_BUILD_ROOT%{_libdir}/*.la
13383N/A
12285N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
13443N/A
13443N/A%files
13449N/A%defattr(-, root, root)
13449N/A%{_libdir}/*.so.*
13449N/A
10139N/A%changelog
13443N/A* Sun Aug 30 2009 - darren.kenny@sun.com
13443N/A- Initial spec file for libspectre
13443N/A