16416
|
1 |
# spec file for package libspectre
|
|
2 |
#
|
|
3 |
# Copyright (c) 2009 Sun Microsystems, Inc.
|
|
4 |
# This file and all modifications and additions to the pristine
|
|
5 |
# package are under the same license as the package itself.
|
|
6 |
#
|
17071
|
7 |
%define owner gheet
|
16416
|
8 |
# bugdb: bugzilla.freedesktop.org
|
|
9 |
#
|
|
10 |
Name: libspectre
|
20032
|
11 |
License: GPLv2
|
16416
|
12 |
Group: System/Libraries
|
18161
|
13 |
Version: 0.2.6
|
16416
|
14 |
Release: 1
|
|
15 |
Distribution: Java Desktop System
|
17865
|
16 |
Vendor: freedesktop.org
|
16416
|
17 |
Summary: Simple PostScript API wrapping Ghostscript libgs.
|
|
18 |
Source: http://libspectre.freedesktop.org/releases/%{name}-%{version}.tar.gz
|
|
19 |
# date:2009-08-30 type:feature owner:dkenny
|
|
20 |
Patch1: libspectre-01-uninstalled.pc.diff
|
|
21 |
URL: http://libspectre.freedesktop.org/
|
|
22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
23 |
Docdir: %{_docdir}/%{name}
|
|
24 |
Autoreqprov: on
|
|
25 |
Prereq: /sbin/ldconfig
|
|
26 |
|
|
27 |
%define cairo_version 0.5.0
|
|
28 |
%define gtk2_version 2.4.0
|
|
29 |
|
|
30 |
Requires: cairo >= %{cairo_version}
|
|
31 |
Requires: gtk2 >= %{gtk2_version}
|
16417
|
32 |
Requires: SUNWghostscriptu
|
16416
|
33 |
|
|
34 |
BuildRequires: cairo-devel >= %{cairo_version}
|
|
35 |
BuildRequires: gtk2-devel >= %{gtk2_version}
|
16417
|
36 |
BuildRequires: SUNWghostscriptu
|
16416
|
37 |
|
|
38 |
|
|
39 |
%description
|
|
40 |
libspectre is a small library for rendering Postscript documents. It provides
|
|
41 |
a convenient easy to use API for handling and rendering Postscript documents.
|
|
42 |
|
|
43 |
%prep
|
|
44 |
%setup -q
|
|
45 |
%patch1 -p1
|
|
46 |
|
|
47 |
%build
|
|
48 |
%ifos linux
|
|
49 |
if [ -x /usr/bin/getconf ]; then
|
|
50 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
51 |
fi
|
|
52 |
%else
|
|
53 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
54 |
%endif
|
|
55 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
56 |
CPUS=1
|
|
57 |
fi
|
|
58 |
|
18161
|
59 |
libtoolize --force
|
|
60 |
|
16416
|
61 |
#aclocal $ACLOCAL_FLAGS -I . -I m4
|
17020
|
62 |
aclocal $ACLOCAL_FLAGS -I .
|
|
63 |
autoheader
|
|
64 |
automake -a -c -f
|
16416
|
65 |
autoconf
|
|
66 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
67 |
./configure --prefix=%{_prefix} \
|
|
68 |
--datadir=%{_datadir} \
|
|
69 |
--sysconfdir=%{_sysconfdir} \
|
|
70 |
--mandir=%{_mandir} \
|
|
71 |
%{gtk_doc_option}
|
|
72 |
make -j $CPUS
|
|
73 |
|
|
74 |
%install
|
|
75 |
make DESTDIR=$RPM_BUILD_ROOT install
|
|
76 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
77 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
78 |
|
|
79 |
%clean
|
|
80 |
rm -rf $RPM_BUILD_ROOT
|
|
81 |
|
|
82 |
%files
|
|
83 |
%defattr(-, root, root)
|
|
84 |
%{_libdir}/*.so.*
|
|
85 |
|
|
86 |
%changelog
|
18161
|
87 |
* Tue Jun 22 2010 - [email protected]
|
|
88 |
- Removed libspectre-02-printf_x.diff which is upstreamed.
|
|
89 |
* Tue Jun 22 2010 - [email protected]
|
|
90 |
- Removed libspectre-02-printf_x.diff which is upstreamed.
|
16513
|
91 |
* Wed Sep 09 2009 - [email protected]
|
|
92 |
- Add patch to change %llx to %x since it produces an invalid pointer value on
|
|
93 |
SPARC which in turn causes crashes. Fixes defect#11267.
|
16416
|
94 |
* Sun Aug 30 2009 - [email protected]
|
|
95 |
- Initial spec file for libspectre
|