author | dermotm |
Mon, 18 Oct 2004 09:30:38 +0000 | |
changeset 4276 | 2a2c7f354601 |
parent 4274 | db01cec80c59 |
child 4387 | 1b0580c5041e |
permissions | -rw-r--r-- |
2386 | 1 |
# |
2 |
# License (c) 2003 Sun Microsystems Inc. |
|
3 |
# This file and all modifications and additions to the pristine |
|
4 |
# package are under the same license as the package itself. |
|
5 |
# |
|
6 |
||
4274 | 7 |
%define t_suffix -build21-cb |
2932
d9e62503fce0
use GMT when defining the date string for the nightly tarballs
laca
parents:
2798
diff
changeset
|
8 |
%{?nightly:%define t_suffix -%(TZ=GMT date +%Y%m%d)} |
2386 | 9 |
|
10 |
Name: gtkhtml |
|
11 |
Version: 3.0.9 |
|
4276 | 12 |
Release: 352 |
2386 | 13 |
Vendor: Sun Microsystems, Inc. |
14 |
Distribution: Java Desktop System, Release 3 |
|
15 |
Copyright: LGPL |
|
16 |
BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|
17 |
Docdir: %{_datadir}/doc |
|
18 |
Autoreqprov: on |
|
19 |
URL: http://www.sun.com/software/javadesktopsystem/ |
|
20 |
Source: %{name}-%{version}%{t_suffix}.tar.bz2 |
|
4265 | 21 |
Source1: gtkhtml-l10n-po-1.6.tar.bz2 |
2386 | 22 |
Patch: gtkhtml-01-enable-deprecated.diff |
3952
6b0ffbd118a0
Added gtkhtml-02-g11n-potfiles.diff. Updated gtkhtml.spec.
yk150259
parents:
3858
diff
changeset
|
23 |
Patch1: gtkhtml-02-g11n-potfiles.diff |
2386 | 24 |
#Patch0: gtkhtml_patch0.diff |
25 |
||
26 |
%define libgnomeprint_devel_version 2.2.1.1 |
|
27 |
%define libgnomeprintui_devel_version 2.2.1.1 |
|
28 |
%define libsoup_devel_version 1.99 |
|
29 |
%define libbonoboui_devel_version 2.0.1 |
|
30 |
%define bonobo_activation_devel_version 1.0.3 |
|
31 |
%define GConf_devel_version 1.2.1 |
|
32 |
%define gail_devel_version 0.17 |
|
33 |
%define libgal_devel_version 1.99.8 |
|
34 |
BuildRequires: intltool |
|
35 |
BuildRequires: libgal-devel >= %{libgal_devel_version} |
|
36 |
BuildRequires: libgnomeprint-devel >= %{libgnomeprint_devel_version} |
|
37 |
BuildRequires: libgnomeprintui-devel >= %{libgnomeprintui_devel_version} |
|
38 |
BuildRequires: libsoup-devel >= %{libsoup_devel_version} |
|
39 |
BuildRequires: libbonoboui-devel >= %{libbonoboui_devel_version} |
|
40 |
BuildRequires: bonobo-activation-devel >= %{bonobo_activation_devel_version} |
|
41 |
BuildRequires: GConf-devel >= %{GConf_devel_version} |
|
42 |
BuildRequires: gail-devel >= %{gail_devel_version} |
|
43 |
Summary: GtkHTML is a HTML rendering/editing library. |
|
44 |
Group: System Environment/Libraries |
|
45 |
||
46 |
%description |
|
47 |
GtkHTML is a HTML rendering/editing library. GtkHTML is |
|
48 |
not designed to be the ultimate HTML browser/editor: instead, it is |
|
49 |
designed to be easily embedded into applications that require |
|
50 |
lightweight HTML functionality. |
|
51 |
||
52 |
GtkHTML was originally based on KDE's KHTMLW widget, but is now |
|
53 |
developed independently of it. The most important difference between |
|
54 |
KHTMLW and GtkHTML, besides being GTK-based, is that GtkHTML is also |
|
55 |
an editor. Thanks to the Bonobo editor component that comes with the |
|
56 |
library, it's extremely simple to add HTML editing to an existing |
|
57 |
application. |
|
58 |
||
59 |
%files |
|
60 |
%defattr(-, root, root) |
|
61 |
%{_libdir}/lib*.so.* |
|
62 |
%{_libdir}/gtkhtml |
|
63 |
%{_datadir}/gtkhtml-3.0 |
|
64 |
%{_prefix}/*/locale/*/LC_MESSAGES/*.mo |
|
65 |
%{_libdir}/bonobo/servers/* |
|
66 |
||
67 |
%post |
|
68 |
ldconfig |
|
69 |
||
70 |
%postun |
|
71 |
ldconfig |
|
72 |
||
73 |
%package -n gtkhtml-devel |
|
74 |
Summary: Development libraries, header files and utilities for GtkHTML |
|
75 |
Group: Development/Libraries |
|
76 |
Requires: gtkhtml = %{version}-%{release} |
|
77 |
Requires: libgnomeprint-devel |
|
78 |
Requires: libgnomeprintui-devel |
|
79 |
Requires: bonobo-activation-devel |
|
80 |
Requires: libbonoboui-devel |
|
81 |
Requires: GConf-devel |
|
82 |
Requires: libgal-devel >= %{libgal_devel_version} |
|
83 |
||
84 |
%description -n gtkhtml-devel |
|
85 |
GtkHTML is a HTML rendering/editing library. GtkHTML is |
|
86 |
not designed to be the ultimate HTML browser/editor: instead, it is |
|
87 |
designed to be easily embedded into applications that require |
|
88 |
lightweight HTML functionality. |
|
89 |
||
90 |
This package contains the files necessary to develop applications with GtkHTML. |
|
91 |
||
92 |
%files -n gtkhtml-devel |
|
93 |
%defattr(-, root, root) |
|
94 |
%{_libdir}/lib*.a |
|
95 |
%{_libdir}/lib*.so |
|
96 |
%{_libdir}/pkgconfig/*.pc |
|
97 |
%{_includedir}/* |
|
98 |
||
99 |
# $RPM_COMMAND is an environment variable used by the SUN build |
|
100 |
# system to control the build process with finer granularity than RPM |
|
101 |
# normally allows. This specfile will function as expected by RPM if |
|
102 |
# $RPM_COMMAND is unset. If you are not the SUN build system, |
|
103 |
# feel free to ignore it. |
|
104 |
||
105 |
%prep |
|
106 |
case "${RPM_COMMAND:-all}" in |
|
107 |
dist) |
|
108 |
%setup -q -D -n %{name}-%{version} |
|
2740 | 109 |
/usr/bin/bzcat -dc %SOURCE1|tar xf - |
2386 | 110 |
;; |
111 |
all) |
|
112 |
%setup -q -n %{name}-%{version} |
|
2740 | 113 |
/usr/bin/bzcat -dc %SOURCE1|tar xf - |
2386 | 114 |
;; |
115 |
esac |
|
116 |
case "${RPM_COMMAND:-all}" in |
|
117 |
dist|all) |
|
118 |
%patch -p1 |
|
3952
6b0ffbd118a0
Added gtkhtml-02-g11n-potfiles.diff. Updated gtkhtml.spec.
yk150259
parents:
3858
diff
changeset
|
119 |
%patch1 -p1 |
2386 | 120 |
;; |
121 |
esac |
|
122 |
||
123 |
%build |
|
3263 | 124 |
%ifos linux |
125 |
if [ -x /usr/bin/getconf ]; then |
|
126 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
127 |
fi |
|
128 |
%else |
|
3846 | 129 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 130 |
%endif |
131 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
132 |
CPUS=1 |
|
133 |
fi |
|
134 |
||
2386 | 135 |
MAKE=${MAKE:-make} |
136 |
RPM_COMMAND=${RPM_COMMAND:-all} |
|
137 |
DESTDIR=${DESTDIR:-"$RPM_BUILD_ROOT"} |
|
138 |
ARCH=%{_target_platform} |
|
139 |
export MAKE RPM_COMMAND DESTDIR ARCH |
|
140 |
case "$RPM_COMMAND" in |
|
141 |
prepare|all) |
|
142 |
aclocal $ACLOCAL_FLAGS -I %{_datadir}/aclocal/gnome2-macros |
|
143 |
libtoolize --force |
|
144 |
glib-gettextize --force --copy |
|
145 |
intltoolize --force --automake |
|
146 |
autoheader |
|
147 |
automake -a -f -c --gnu |
|
148 |
autoconf |
|
149 |
./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} --mandir=%{_mandir} --infodir=%{_datadir}/info --localstatedir=/var |
|
150 |
;; |
|
151 |
esac |
|
152 |
case "$RPM_COMMAND" in |
|
153 |
clean|all) |
|
154 |
if [ "/" != "$DESTDIR" ]; then |
|
155 |
rm -rf "$DESTDIR" |
|
156 |
fi |
|
157 |
;; |
|
158 |
esac |
|
159 |
case "$RPM_COMMAND" in |
|
160 |
build|all) |
|
3263 | 161 |
${MAKE} -j $CPUS |
2386 | 162 |
;; |
163 |
esac |
|
164 |
||
165 |
%install |
|
166 |
MAKE=${MAKE:-make} |
|
167 |
DESTDIR=${DESTDIR:-"$RPM_BUILD_ROOT"} |
|
168 |
# export DESTDIR |
|
169 |
case "${RPM_COMMAND:-all}" in |
|
170 |
install|all) |
|
171 |
${MAKE} DESTDIR=${DESTDIR} install ; rm -rf ${DESTDIR}%{_libdir}/*.la |
|
172 |
;; |
|
173 |
esac |
|
174 |
||
175 |
%clean |
|
176 |
DESTDIR=${DESTDIR:-"$RPM_BUILD_ROOT"} |
|
177 |
export DESTDIR |
|
178 |
case "${RPM_COMMAND:-all}" in |
|
179 |
clean|all) |
|
180 |
if [ "/" != "$DESTDIR" ]; then |
|
181 |
rm -rf "$DESTDIR" |
|
182 |
fi |
|
183 |
;; |
|
184 |
esac |
|
185 |
||
186 |
||
187 |
%changelog |
|
4274 | 188 |
* Mon Oct 18 2004 - [email protected] |
189 |
- bump src tarball to build21 |
|
190 |
||
4219 | 191 |
* Mon Oct 11 2004 - [email protected] |
192 |
- bump src tarball to build20b |
|
193 |
||
4002 | 194 |
* Mon Sep 20 2004 - [email protected] |
195 |
- bump src tarball to build19 |
|
196 |
||
3952
6b0ffbd118a0
Added gtkhtml-02-g11n-potfiles.diff. Updated gtkhtml.spec.
yk150259
parents:
3858
diff
changeset
|
197 |
* Wed Sep 15 2004 - [email protected] |
6b0ffbd118a0
Added gtkhtml-02-g11n-potfiles.diff. Updated gtkhtml.spec.
yk150259
parents:
3858
diff
changeset
|
198 |
- Added gtkhtml-02-g11n-potfiles.diff |
6b0ffbd118a0
Added gtkhtml-02-g11n-potfiles.diff. Updated gtkhtml.spec.
yk150259
parents:
3858
diff
changeset
|
199 |
|
3856 | 200 |
* Mon Sep 06 2004 - [email protected] |
201 |
- bump src tarball to build18 |
|
202 |
||
3676 | 203 |
* Mon Aug 23 2004 - [email protected] |
204 |
- bump src tarball to build17 |
|
205 |
||
3517 | 206 |
* Mon Aug 09 2004 - [email protected] |
207 |
- bump src tarball to build16 |
|
208 |
||
3423 | 209 |
* Mon Jul 26 2004 - [email protected] |
210 |
- bump src tarball to build15 |
|
211 |
||
3279
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
212 |
* 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
|
213 |
- Updated l10n content to gtkhtml-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
|
214 |
|
3263 | 215 |
* Wed Jul 07 2004 - [email protected] |
216 |
- added "-j $CPUS" to make to speed up builds |
|
217 |
||
3215 | 218 |
* Fri Jun 25 2004 - [email protected] |
219 |
- bump src tarball to build13 |
|
3103 | 220 |
* Thu Jun 10 2004 - [email protected] |
221 |
- bump src tarball to build12 |
|
2957 | 222 |
* Sun May 30 2004 - [email protected] |
223 |
- bump src tarball to build11 |
|
2763 | 224 |
* Fri May 14 2004 - [email protected] |
225 |
- bump src tarball to build10 |
|
2740 | 226 |
* Wed May 12 2004 - [email protected] |
227 |
- replace tar jxf with the more solaris friendly |
|
228 |
bzcat piped through tar |
|
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
229 |
* 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
|
230 |
- Adding gtkhtml-l10n-po-1.1.tar.bz2 l10n content |
2602 | 231 |
* Fri Apr 30 2004 - [email protected] |
232 |
- bump src tarball to build09 |