author | dermotm |
Mon, 11 Apr 2005 08:50:58 +0000 | |
changeset 5333 | 817fa62bc95d |
parent 5281 | 67ebf8abba9e |
child 5370 | 06fd4677e6e3 |
permissions | -rw-r--r-- |
44 | 1 |
Name: libgnomecanvas |
2 |
License: LGPL |
|
192 | 3 |
Group: System/Libraries/GNOME |
2321 | 4 |
Version: 2.6.0 |
5333 | 5 |
Release: 36 |
4867
e8cfe7e64783
*.spec (almost): update Vendor and Distribution tags
dermotm
parents:
4860
diff
changeset
|
6 |
Distribution: Java Desktop System, Release 3 |
575 | 7 |
Vendor: Sun Microsystems, Inc. |
192 | 8 |
Summary: Canvas Library for GNOME |
2321 | 9 |
Source: http://ftp.gnome.org/pub/GNOME/sources/libgnomecanvas/2.6/libgnomecanvas-%{version}.tar.bz2 |
5277 | 10 |
Source1: libgnomecanvas-l10n-po-1.14.tar.bz2 |
1436 | 11 |
Source2: libgnomecanvas-2.3.gz |
4455 | 12 |
Source3: l10n-configure.sh |
2321 | 13 |
Patch1: libgnomecanvas-01-g11n-potfiles.diff |
192 | 14 |
URL: http://www.gnome.org |
44 | 15 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
192 | 16 |
Docdir: %{_defaultdocdir}/doc |
156 | 17 |
Autoreqprov: on |
1080 | 18 |
Prereq: /sbin/ldconfig |
156 | 19 |
|
3628 | 20 |
%define gtk2_version 2.4.0 |
1203 | 21 |
%define libart_lgpl_version 2.3.16 |
3628 | 22 |
%define libglade_version 2.3.6 |
1203 | 23 |
%define gnome_common_version 2.4.0 |
156 | 24 |
|
25 |
Requires: gtk2 >= %{gtk2_version} |
|
26 |
BuildRequires: gtk2-devel >= %{gtk2_version} |
|
27 |
BuildRequires: libart_lgpl-devel >= %{libart_lgpl_version} |
|
28 |
BuildRequires: libglade-devel >= %{libglade_version} |
|
192 | 29 |
BuildRequires: gnome-common >= %{gnome_common_version} |
44 | 30 |
|
31 |
%description |
|
192 | 32 |
libgnomecanvas is an engine for structured graphics that offers a rich |
33 |
imaging model, high performance rendering, and a powerful, high-level |
|
34 |
API. It offers a choice between two rendering back-ends, one based on |
|
35 |
Xlib for extremely fast display, and another based on Libart, a |
|
36 |
sophisticated, antialiased, alpha-compositing engine. Applications have |
|
37 |
a choice between the Xlib imaging model or a superset of the PostScript |
|
38 |
imaging model, depending on the level of graphic sophistication required. |
|
39 |
||
44 | 40 |
|
156 | 41 |
%package devel |
192 | 42 |
Summary: Canvas Development Library for GNOME |
156 | 43 |
Group: Development/Libraries/GNOME |
192 | 44 |
Requires: %name = %{version} |
45 |
Requires: gtk2-devel >= %{gtk2_version} |
|
46 |
Requires: libart_lgpl-devel >= %{libart_lgpl_version} |
|
197 | 47 |
Requires: libglade-devel >= %{libglade_version} |
156 | 48 |
|
49 |
%description devel |
|
192 | 50 |
libgnomecanvas is an engine for structured graphics that offers a rich |
51 |
imaging model, high performance rendering, and a powerful, high-level |
|
52 |
API. It offers a choice between two rendering back-ends, one based on |
|
53 |
Xlib for extremely fast display, and another based on Libart, a |
|
54 |
sophisticated, antialiased, alpha-compositing engine. Applications have |
|
55 |
a choice between the Xlib imaging model or a superset of the PostScript |
|
56 |
imaging model, depending on the level of graphic sophistication required. |
|
156 | 57 |
|
44 | 58 |
%prep |
156 | 59 |
%setup -q |
1587 | 60 |
%patch1 -p1 |
44 | 61 |
|
1522 | 62 |
bzcat %SOURCE1 | tar xvf - |
4455 | 63 |
bash -x %SOURCE3 |
64 |
||
44 | 65 |
%build |
3263 | 66 |
%ifos linux |
67 |
if [ -x /usr/bin/getconf ]; then |
|
68 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
69 |
fi |
|
70 |
%else |
|
3846 | 71 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 72 |
%endif |
73 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
74 |
CPUS=1 |
|
75 |
fi |
|
76 |
||
1587 | 77 |
libtoolize --force |
78 |
aclocal $ACLOCAL_FLAGS -I %{_datadir}/aclocal/gnome2-macros -I . |
|
79 |
autoheader |
|
80 |
automake -a -c -f |
|
81 |
autoconf |
|
82 |
||
256 | 83 |
CFLAGS="$RPM_OPT_FLAGS -L../libgnomecanvas/.libs" \ |
192 | 84 |
./configure --prefix=%{_prefix} \ |
85 |
--sysconfdir=%{_sysconfdir} \ |
|
3660 | 86 |
--mandir=%{_mandir} \ |
87 |
--enable-gtk-doc |
|
192 | 88 |
|
3263 | 89 |
make -j $CPUS |
44 | 90 |
|
91 |
%install |
|
192 | 92 |
make DESTDIR=$RPM_BUILD_ROOT install |
1522 | 93 |
install -d $RPM_BUILD_ROOT%{_mandir}/man3 |
94 |
install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man3 |
|
1436 | 95 |
#Copy zh_HK from zh_TW |
96 |
#Fixes bug 4930405 |
|
1522 | 97 |
install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES |
98 |
install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/ |
|
3628 | 99 |
rm $RPM_BUILD_ROOT%{_libdir}/libglade/2.0/*.a |
100 |
rm $RPM_BUILD_ROOT%{_libdir}/libglade/2.0/*.la |
|
101 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
|
102 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
|
1436 | 103 |
|
156 | 104 |
%clean |
105 |
rm -rf $RPM_BUILD_ROOT |
|
106 |
||
192 | 107 |
%post |
108 |
/sbin/ldconfig |
|
156 | 109 |
|
192 | 110 |
%postun |
111 |
/sbin/ldconfig |
|
44 | 112 |
|
156 | 113 |
%files |
1058 | 114 |
%{_libdir}/libgnomecanvas*.so.* |
192 | 115 |
%{_libdir}/libglade/2.0/libcanvas*so* |
156 | 116 |
%{_datadir}/locale/*/LC_MESSAGES/libgnomecanvas-2.0.mo |
44 | 117 |
|
118 |
%files devel |
|
1058 | 119 |
%{_libdir}/libgnomecanvas*.so |
156 | 120 |
%{_libdir}/pkgconfig/*.pc |
121 |
%{_includedir}/* |
|
122 |
%{_datadir}/gtk-doc/html/libgnomecanvas |
|
1436 | 123 |
%{_mandir}/man3/* |
44 | 124 |
|
156 | 125 |
%changelog |
3660 | 126 |
* Wed Aug 18 2004 - [email protected] |
127 |
- added --enable-gtk-doc. |
|
128 |
||
3279
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
129 |
* Thu Jul 08 2004 - [email protected] |
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
130 |
- Updated l10n content to libgnomecanvas-l10n-po-1.2.tar.bz2 |
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
131 |
|
3628 | 132 |
* Wed Jul 07 2004 - [email protected] |
133 |
- port to rpm4 |
|
134 |
||
3263 | 135 |
* Wed Jul 07 2004 - [email protected] |
136 |
- added "-j $CPUS" to make to speed up builds |
|
137 |
||
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
138 |
* Wed May 12 2004 - [email protected] |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
139 |
- Updated l10n content to libgnomecanvas-l10n-po-1.1.tar.bz2 |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
140 |
|
2350 | 141 |
* Mon Mar 29 2004 - [email protected] |
142 |
- Updated l10n content to libgnomecanvas-l10n-po-1.0.tar.bz2 |
|
143 |
||
2321 | 144 |
* Wed Mar 24 2004 - <[email protected]> |
145 |
- Bump to 2.6.0, removing the uninstalled pc |
|
146 |
patch. |
|
147 |
||
1850 | 148 |
* Fri Feb 20 2004 - <[email protected]> |
149 |
- Bump to 2.5.4, l10n to 0.8 |
|
150 |
- Ported potfiles patch |
|
151 |
||
1587 | 152 |
* Fri Feb 06 2004 - <[email protected]> |
153 |
- Add patch to create an -uninstelled.pc pkgconfig |
|
154 |
file |
|
155 |
- autotoolize the build stage |
|
156 |
||
1436 | 157 |
* Mon Dec 15 2003 - <[email protected]> |
158 |
- Bump to 2.5.1, and port manpages/patches. |
|
159 |
||
1203 | 160 |
* Mon Oct 06 2003 - <[email protected]> |
161 |
- Updated to 2.4.0 for Quicksilver |
|
162 |
||
1058 | 163 |
* Thu Aug 14 2003 - <[email protected]> |
164 |
- move lib*.so to -devel, remove *.a, *.la |
|
165 |
||
508 | 166 |
* Wed Jul 09 2003 - <[email protected]> |
167 |
- add in sun po files |
|
168 |
||
44 | 169 |
* Tue May 13 2003 - [email protected] |
156 | 170 |
- initial Sun release |