5525
|
1 |
#
|
5550
|
2 |
# Copyright (c) 2005 Sun Microsystems, Inc.
|
5525
|
3 |
# This file and all modifications and additions to the pristine
|
|
4 |
# package are under the same license as the package itself.
|
|
5 |
#
|
|
6 |
|
|
7 |
Name: cairo
|
|
8 |
License: LGPL
|
|
9 |
Group: System/Libraries
|
6186
|
10 |
Version: 1.0.2
|
7421
|
11 |
Release: 5
|
5525
|
12 |
Distribution: Java Desktop System
|
|
13 |
Vendor: Sun Microsystems, Inc.
|
|
14 |
Summary: Vector graphics library
|
6095
|
15 |
Source: http://cairographics.org/releases/%{name}-%{version}.tar.gz
|
5525
|
16 |
Patch1: cairo-01-uninstalled-pc.diff
|
6173
|
17 |
Patch2: cairo-02-buggyx.diff
|
7421
|
18 |
Patch3: cairo-03-8bit-fix.diff
|
7445
|
19 |
Patch4: cairo-04-g11n-0x0glyph-fix.diff
|
5525
|
20 |
URL: http://www.cairographics.org
|
|
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
22 |
Docdir: %{_defaultdocdir}
|
|
23 |
Autoreqprov: on
|
|
24 |
Prereq: /sbin/ldconfig
|
5549
|
25 |
Requires: freetype2
|
|
26 |
BuildRequires:freetype2-devel
|
|
27 |
Requires: fontconfig
|
|
28 |
BuildRequires:fontconfig-devel
|
5525
|
29 |
|
|
30 |
%description
|
|
31 |
Cairo is a vector graphics library with cross-device output
|
|
32 |
support. Currently supported output targets include the X Window
|
|
33 |
System and in-memory image buffers. Cairo is designed to produce
|
|
34 |
identical output on all output media while taking advantage of
|
|
35 |
display hardware acceleration when available (eg. through the
|
|
36 |
X Render Extension).
|
|
37 |
|
|
38 |
Cairo provides a stateful user-level API with capabilities similar to
|
|
39 |
the PDF 1.4 imaging model. Cairo provides operations including
|
|
40 |
stroking and filling Bezier cubic splines, transforming and
|
|
41 |
compositing translucent images, and antialiased text rendering.
|
|
42 |
|
|
43 |
|
|
44 |
%package devel
|
|
45 |
Summary: Vector graphics library
|
|
46 |
Group: Development/Libraries
|
|
47 |
Requires: %{name} = %{version}
|
|
48 |
|
|
49 |
%description devel
|
|
50 |
Cairo is a vector graphics library with cross-device output
|
|
51 |
support. Currently supported output targets include the X Window
|
|
52 |
System and in-memory image buffers. Cairo is designed to produce
|
|
53 |
identical output on all output media while taking advantage of
|
|
54 |
display hardware acceleration when available (eg. through the
|
|
55 |
X Render Extension).
|
|
56 |
|
|
57 |
Cairo provides a stateful user-level API with capabilities similar to
|
|
58 |
the PDF 1.4 imaging model. Cairo provides operations including
|
|
59 |
stroking and filling Bezier cubic splines, transforming and
|
|
60 |
compositing translucent images, and antialiased text rendering.
|
|
61 |
|
|
62 |
|
|
63 |
%prep
|
|
64 |
%setup -q
|
|
65 |
%patch1 -p1
|
6173
|
66 |
%patch2 -p1
|
7421
|
67 |
%patch3 -p1
|
7445
|
68 |
%patch4 -p1
|
5525
|
69 |
|
5615
|
70 |
%ifos solaris
|
|
71 |
%ifarch amd64 sparcv9
|
|
72 |
cd ..
|
|
73 |
cp -rp %{name}-%{version} %{name}-%{version}-64
|
|
74 |
%endif
|
|
75 |
%endif
|
|
76 |
|
5525
|
77 |
%build
|
|
78 |
%ifos linux
|
|
79 |
if [ -x /usr/bin/getconf ]; then
|
|
80 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
81 |
fi
|
|
82 |
%else
|
|
83 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
84 |
%endif
|
|
85 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
86 |
CPUS=1
|
|
87 |
fi
|
|
88 |
|
5615
|
89 |
%ifos solaris
|
|
90 |
%ifarch amd64 sparcv9
|
|
91 |
CPUS=$(($CPUS*4))
|
|
92 |
|
|
93 |
cd ../%name-%version-64
|
|
94 |
|
|
95 |
export CFLAGS="$CFLAGS64"
|
5616
|
96 |
export RPM_OPT_FLAGS="$CFLAGS"
|
5615
|
97 |
export LDFLAGS="$LDFLAGS64"
|
|
98 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH64"
|
|
99 |
export CC=${CC64:-$CC}
|
|
100 |
save_PATH="$PATH"
|
|
101 |
ccdir=`dirname $CC`
|
5749
|
102 |
# pwd was added so the fake freetype-config created in SUNWgnome-base-libs.spec
|
|
103 |
# is picked up instead of the one in /usr/sfw/bin which adds the wrong
|
|
104 |
# -L and -R flags
|
|
105 |
export PATH=`pwd`:$ccdir:$PATH
|
5615
|
106 |
|
|
107 |
autoconf
|
|
108 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
109 |
./configure \
|
|
110 |
--prefix=%{_prefix} \
|
|
111 |
--libdir=%{_libdir}/%{_arch64} \
|
|
112 |
--disable-gtk-doc
|
|
113 |
|
|
114 |
make -j $CPUS
|
|
115 |
|
|
116 |
cd ../%name-%version
|
|
117 |
|
|
118 |
export CFLAGS="$CFLAGS32"
|
|
119 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
120 |
export LDFLAGS="$LDFLAGS32"
|
|
121 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH32"
|
|
122 |
export CC=${CC32:-$CC}
|
|
123 |
export PATH="$save_PATH"
|
|
124 |
%endif
|
|
125 |
%endif
|
|
126 |
|
5525
|
127 |
autoconf
|
|
128 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
129 |
./configure \
|
|
130 |
--prefix=%{_prefix} \
|
|
131 |
--libdir=%{_libdir}
|
|
132 |
|
|
133 |
make -j $CPUS
|
|
134 |
|
|
135 |
%install
|
5615
|
136 |
%ifos solaris
|
|
137 |
%ifarch amd64 sparcv9
|
|
138 |
cd ../%name-%version-64
|
|
139 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
140 |
rm $RPM_BUILD_ROOT%{_libdir}/%{_arch64}/*.a
|
|
141 |
rm $RPM_BUILD_ROOT%{_libdir}/%{_arch64}/*.la
|
|
142 |
cd ../%name-%version
|
|
143 |
%endif
|
|
144 |
%endif
|
|
145 |
|
5525
|
146 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
147 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
148 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
149 |
|
|
150 |
%clean
|
|
151 |
rm -rf $RPM_BUILD_ROOT
|
|
152 |
|
|
153 |
%post
|
|
154 |
/sbin/ldconfig
|
|
155 |
|
|
156 |
%postun
|
|
157 |
/sbin/ldconfig
|
|
158 |
|
|
159 |
%files
|
|
160 |
%defattr(-,root,root)
|
|
161 |
%{_libdir}/*.so.*
|
|
162 |
|
|
163 |
%files devel
|
|
164 |
%defattr(-,root,root)
|
|
165 |
%doc AUTHORS ChangeLog COPYING NEWS README TODO
|
|
166 |
%{_includedir}/*
|
|
167 |
%{_libdir}/*.so
|
|
168 |
%{_datadir}/gtk-doc/*
|
|
169 |
%{_libdir}/pkgconfig/*
|
|
170 |
|
|
171 |
%changelog
|
7445
|
172 |
* Wed Jun 14 2006 [email protected]
|
|
173 |
- Fix bug 6434250: cairo will crash when access 0x0 bitmap image glyph
|
|
174 |
Add patch cairo-04-g11n-0x0glyph-fix.diff
|
|
175 |
|
6186
|
176 |
* Wed Oct 26 2005 [email protected]
|
|
177 |
- Bumped to 1.0.2.
|
|
178 |
|
6173
|
179 |
* Tue Oct 25 2005 [email protected]
|
|
180 |
- Add patch 2 to workaround the buggy Xserver shipped with
|
|
181 |
Solaris 10. This fixes the problem that the background
|
|
182 |
would not get repainted when you would move an icon, view
|
|
183 |
the root menu, etc. The same workaround is used in the
|
|
184 |
code to resolve this problem on other platforms using an
|
|
185 |
Xorg server older than 2.8.2 (we use 2.8.0 on Solaris 10).
|
|
186 |
|
5844
|
187 |
* Tue Sep 13 2005 [email protected]
|
|
188 |
- Bumped to 1.0.0
|
|
189 |
|
5615
|
190 |
* Fri Aug 26 2005 [email protected]
|
|
191 |
- add 64-bit bits
|
|
192 |
|
5549
|
193 |
* Tue Aug 16 2005 [email protected]
|
|
194 |
- add some missing dependencies
|
|
195 |
|
5527
|
196 |
* Mon Aug 15 2005 [email protected]
|
|
197 |
- Bump to 0.9.2
|
|
198 |
|
5525
|
199 |
* Mon Feb 28 2004 [email protected]
|
|
200 |
- Add patch 01 so that we can build libsvg and libsvg-cairo.
|
|
201 |
|
|
202 |
* Tue Feb 22 2004 [email protected]
|
|
203 |
- created
|