9397
|
1 |
#
|
|
2 |
# spec file for package libgnomecanvas
|
|
3 |
#
|
|
4 |
# Copyright (c) 2005 Sun Microsystems, Inc.
|
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
16434
|
8 |
%define owner erwannc
|
9397
|
9 |
#
|
16430
|
10 |
|
|
11 |
%define OSR gnome.org:0
|
|
12 |
|
9397
|
13 |
Name: libgnomecanvas
|
|
14 |
License: LGPL
|
|
15 |
Group: System/Libraries/GNOME
|
15424
|
16 |
Version: 2.26.0
|
9397
|
17 |
Release: 2
|
|
18 |
Distribution: Java Desktop System
|
|
19 |
Vendor: Sun Microsystems, Inc.
|
|
20 |
Summary: Canvas Library for GNOME
|
15424
|
21 |
Source: http://ftp.gnome.org/pub/GNOME/sources/libgnomecanvas/2.26/libgnomecanvas-%{version}.tar.bz2
|
9397
|
22 |
URL: http://www.gnome.org
|
|
23 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
24 |
Docdir: %{_defaultdocdir}/doc
|
|
25 |
Autoreqprov: on
|
|
26 |
Prereq: /sbin/ldconfig
|
|
27 |
|
|
28 |
%define gtk2_version 2.4.0
|
|
29 |
%define libart_lgpl_version 2.3.16
|
|
30 |
%define libglade_version 2.3.6
|
|
31 |
%define gnome_common_version 2.4.0
|
|
32 |
|
|
33 |
Requires: gtk2 >= %{gtk2_version}
|
|
34 |
BuildRequires: gtk2-devel >= %{gtk2_version}
|
|
35 |
BuildRequires: libart_lgpl-devel >= %{libart_lgpl_version}
|
|
36 |
BuildRequires: libglade-devel >= %{libglade_version}
|
|
37 |
BuildRequires: gnome-common >= %{gnome_common_version}
|
|
38 |
|
|
39 |
%description
|
|
40 |
libgnomecanvas is an engine for structured graphics that offers a rich
|
|
41 |
imaging model, high performance rendering, and a powerful, high-level
|
|
42 |
API. It offers a choice between two rendering back-ends, one based on
|
|
43 |
Xlib for extremely fast display, and another based on Libart, a
|
|
44 |
sophisticated, antialiased, alpha-compositing engine. Applications have
|
|
45 |
a choice between the Xlib imaging model or a superset of the PostScript
|
|
46 |
imaging model, depending on the level of graphic sophistication required.
|
|
47 |
|
|
48 |
|
|
49 |
%package devel
|
|
50 |
Summary: Canvas Development Library for GNOME
|
|
51 |
Group: Development/Libraries/GNOME
|
|
52 |
Requires: %name = %{version}
|
|
53 |
Requires: gtk2-devel >= %{gtk2_version}
|
|
54 |
Requires: libart_lgpl-devel >= %{libart_lgpl_version}
|
|
55 |
Requires: libglade-devel >= %{libglade_version}
|
|
56 |
|
|
57 |
%description devel
|
|
58 |
libgnomecanvas is an engine for structured graphics that offers a rich
|
|
59 |
imaging model, high performance rendering, and a powerful, high-level
|
|
60 |
API. It offers a choice between two rendering back-ends, one based on
|
|
61 |
Xlib for extremely fast display, and another based on Libart, a
|
|
62 |
sophisticated, antialiased, alpha-compositing engine. Applications have
|
|
63 |
a choice between the Xlib imaging model or a superset of the PostScript
|
|
64 |
imaging model, depending on the level of graphic sophistication required.
|
|
65 |
|
|
66 |
%prep
|
|
67 |
%setup -q
|
|
68 |
|
|
69 |
%build
|
|
70 |
%ifos linux
|
|
71 |
if [ -x /usr/bin/getconf ]; then
|
|
72 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
73 |
fi
|
|
74 |
%else
|
|
75 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
76 |
%endif
|
|
77 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
78 |
CPUS=1
|
|
79 |
fi
|
|
80 |
|
|
81 |
libtoolize --force
|
15424
|
82 |
gtkdocize
|
9397
|
83 |
aclocal $ACLOCAL_FLAGS -I .
|
|
84 |
autoheader
|
|
85 |
automake -a -c -f
|
|
86 |
autoconf
|
|
87 |
|
|
88 |
CFLAGS="$RPM_OPT_FLAGS"
|
|
89 |
./configure --prefix=%{_prefix} \
|
|
90 |
--sysconfdir=%{_sysconfdir} \
|
|
91 |
--mandir=%{_mandir} \
|
|
92 |
%{gtk_doc_option}
|
|
93 |
|
|
94 |
make -j $CPUS
|
|
95 |
|
|
96 |
%install
|
|
97 |
make DESTDIR=$RPM_BUILD_ROOT install
|
|
98 |
#Copy zh_HK from zh_TW
|
|
99 |
#Fixes bug 4930405
|
|
100 |
install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES
|
|
101 |
install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/
|
|
102 |
rm $RPM_BUILD_ROOT%{_libdir}/libglade/2.0/*.a
|
|
103 |
rm $RPM_BUILD_ROOT%{_libdir}/libglade/2.0/*.la
|
|
104 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
105 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
106 |
|
|
107 |
%clean
|
|
108 |
rm -rf $RPM_BUILD_ROOT
|
|
109 |
|
|
110 |
%post
|
|
111 |
/sbin/ldconfig
|
|
112 |
|
|
113 |
%postun
|
|
114 |
/sbin/ldconfig
|
|
115 |
|
|
116 |
%files
|
|
117 |
%{_libdir}/libgnomecanvas*.so.*
|
|
118 |
%{_libdir}/libglade/2.0/libcanvas*so*
|
|
119 |
%{_datadir}/locale/*/LC_MESSAGES/libgnomecanvas-2.0.mo
|
|
120 |
|
|
121 |
%files devel
|
|
122 |
%{_libdir}/libgnomecanvas*.so
|
|
123 |
%{_libdir}/pkgconfig/*.pc
|
|
124 |
%{_includedir}/*
|
|
125 |
%{_datadir}/gtk-doc/html/libgnomecanvas
|
|
126 |
%{_mandir}/man3/*
|
|
127 |
|
|
128 |
%changelog
|
15424
|
129 |
* Wed Mar 18 2009 - [email protected]
|
|
130 |
- Bump to 2.26.0
|
|
131 |
- Call gtkdocize to fix GTKDOC_REBASE issue.
|
15087
|
132 |
* Fri Feb 13 2009 - [email protected]
|
|
133 |
- Bump to 2.25.90
|
10684
|
134 |
* Mon Oct 22 2007 - [email protected]
|
12568
|
135 |
- Remove patch, 01-gailutil-pc, as it is no longer needed for building.
|
|
136 |
Probably because gail is part of gtk+ now.
|
|
137 |
* Mon Oct 22 2007 - [email protected]
|
10684
|
138 |
- Bump to 2.20.1.1.
|
10674
|
139 |
* Fri Oct 19 2007 - [email protected]
|
|
140 |
- Bump to 2.20.1.
|
10513
|
141 |
* Tue Sep 18 2007 - [email protected]
|
|
142 |
- Bump to 2.20.0.
|
10329
|
143 |
* Wed Aug 15 2007 - [email protected]
|
|
144 |
- Bump to 2.19.2.
|
10188
|
145 |
* Fri Jul 13 2007 - [email protected]
|
|
146 |
- Add patch 01-gailutil-pc to fix #456513. This adds libgailutil to libs line
|
|
147 |
in the pc file so that dependant modules will link with libgailutil, which
|
|
148 |
is now required by libgnomecanvas.
|
10178
|
149 |
* Wed Jul 11 2007 - [email protected]
|
10180
|
150 |
- Bump to 2.19.1.
|
|
151 |
* Wed Jul 11 2007 - [email protected]
|
10178
|
152 |
- Bump to 2.19.0.
|
9397
|
153 |
* Fri Nov 3 2006 - [email protected]
|
|
154 |
- use %gtk_doc_option in configure so that it can be disabled using
|
|
155 |
--without-gtk-doc
|
|
156 |
* Mon Mar 13 2006 - [email protected]
|
|
157 |
- Bump to 2.14.0.
|
|
158 |
* Tue Sep 13 2005 - [email protected]
|
|
159 |
- Bump to 2.12.0
|
|
160 |
* Mon Sep 05 2005 - [email protected]
|
|
161 |
- Bump to 2.11.3.
|
|
162 |
* Mon Aug 15 2005 - [email protected]
|
|
163 |
- Bump to 2.11.1.
|
|
164 |
* Wed Jun 15 2005 - [email protected]
|
|
165 |
- Bump to 2.10.2
|
|
166 |
* Fri May 06 2005 - [email protected]
|
|
167 |
- Bump to 2.10.0
|
|
168 |
* Wed Aug 18 2004 - [email protected]
|
|
169 |
- added --enable-gtk-doc.
|
|
170 |
* Thu Jul 08 2004 - [email protected]
|
|
171 |
- Updated l10n content to libgnomecanvas-l10n-po-1.2.tar.bz2
|
|
172 |
* Wed Jul 07 2004 - [email protected]
|
|
173 |
- port to rpm4
|
|
174 |
* Wed Jul 07 2004 - [email protected]
|
|
175 |
- added "-j $CPUS" to make to speed up builds
|
|
176 |
* Wed May 12 2004 - [email protected]
|
|
177 |
- Updated l10n content to libgnomecanvas-l10n-po-1.1.tar.bz2
|
|
178 |
* Mon Mar 29 2004 - [email protected]
|
|
179 |
- Updated l10n content to libgnomecanvas-l10n-po-1.0.tar.bz2
|
|
180 |
* Wed Mar 24 2004 - <[email protected]>
|
|
181 |
- Bump to 2.6.0, removing the uninstalled pc
|
|
182 |
patch.
|
|
183 |
* Fri Feb 20 2004 - <[email protected]>
|
|
184 |
- Bump to 2.5.4, l10n to 0.8
|
|
185 |
- Ported potfiles patch
|
|
186 |
* Fri Feb 06 2004 - <[email protected]>
|
|
187 |
- Add patch to create an -uninstelled.pc pkgconfig
|
|
188 |
file
|
|
189 |
- autotoolize the build stage
|
|
190 |
* Mon Dec 15 2003 - <[email protected]>
|
|
191 |
- Bump to 2.5.1, and port manpages/patches.
|
|
192 |
* Mon Oct 06 2003 - <[email protected]>
|
|
193 |
- Updated to 2.4.0 for Quicksilver
|
|
194 |
* Thu Aug 14 2003 - <[email protected]>
|
|
195 |
- move lib*.so to -devel, remove *.a, *.la
|
|
196 |
* Wed Jul 09 2003 - <[email protected]>
|
|
197 |
- add in sun po files
|
|
198 |
* Tue May 13 2003 - [email protected]
|
|
199 |
- initial Sun release
|