author | gheet |
Wed, 26 Apr 2006 10:25:39 +0000 | |
changeset 7137 | da4a7f3e177b |
parent 6108 | d7f1b105c7aa |
child 7891 | 3bb161a3bc39 |
permissions | -rw-r--r-- |
5518 | 1 |
# |
2 |
# spec file for package libgnomeprint |
|
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 |
# |
|
156 | 8 |
Name: libgnomeprint |
42 | 9 |
License: LGPL |
217 | 10 |
Group: System/Libraries/GNOME |
6013 | 11 |
Version: 2.12.1 |
5518 | 12 |
Release: 1 |
13 |
Distribution: Java Desktop System |
|
575 | 14 |
Vendor: Sun Microsystems, Inc. |
217 | 15 |
Summary: Print Library for the GNOME Desktop |
5895 | 16 |
Source: http://ftp.gnome.org/pub/GNOME/sources/libgnomeprint/2.12/libgnomeprint-%{version}.tar.bz2 |
5945 | 17 |
Patch1: libgnomeprint-01-Wall.diff |
7137 | 18 |
Patch2: libgnomeprint-02-papi-print-dialog.diff |
5518 | 19 |
Source1: libgnomeprint-2.2.3.gz |
217 | 20 |
URL: http://www.gnome.org |
42 | 21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
156 | 22 |
Autoreqprov: on |
1080 | 23 |
Prereq: /sbin/ldconfig |
42 | 24 |
|
3628 | 25 |
%define glib2_version 2.4.0 |
26 |
%define pango_version 1.4.0 |
|
1217 | 27 |
%define libart_lgpl_version 2.3.16 |
3628 | 28 |
%define gtk_doc_version 1.1 |
1217 | 29 |
%define gnome_common_version 2.4.0 |
3628 | 30 |
%define cups_version 1.1.20 |
31 |
%define openssl_devel_version 0.9.7 |
|
156 | 32 |
|
218 | 33 |
Requires: glib2 >= %{glib2_version} |
156 | 34 |
Requires: pango >= %{pango_version} |
35 |
Requires: libart_lgpl >= %{libart_lgpl_version} |
|
217 | 36 |
Requires: cups >= %{cups_version} |
483 | 37 |
Requires: libgnomecups |
156 | 38 |
|
39 |
BuildRequires: glib2-devel >= %{glib2_version} |
|
40 |
BuildRequires: pango-devel >= %{pango_version} |
|
41 |
BuildRequires: libart_lgpl-devel >= %{libart_lgpl_version} |
|
42 |
BuildRequires: gtk-doc >= %{gtk_doc_version} |
|
217 | 43 |
BuildRequires: cups-devel >= %{cups_version} |
44 |
BuildRequires: gnome-common >= %{gnome_common_version} |
|
290 | 45 |
BuildRequires: openssl-devel >= %{openssl_devel_version} |
483 | 46 |
BuildRequires: libgnomecups-devel |
156 | 47 |
|
42 | 48 |
%description |
217 | 49 |
libgnomeprint is the printing library for the GNOME desktop, providing a simple and clean |
50 |
API for GNOME applications to print documents. |
|
42 | 51 |
|
156 | 52 |
%package devel |
217 | 53 |
Summary: Print Development Library for the GNOME Desktop |
156 | 54 |
Group: Development/Libraries/GNOME |
217 | 55 |
Requires: %{name} = %{version} |
56 |
Requires: glib2-devel >= %{glib2_version} |
|
57 |
Requires: pango-devel >= %{pango_version} |
|
58 |
Requires: libart_lgpl-devel >= %{libart_lgpl_version} |
|
156 | 59 |
|
60 |
%description devel |
|
217 | 61 |
libgnomeprint is the printing library for the GNOME desktop, providing a simple and clean |
62 |
API for GNOME applications to print documents. |
|
156 | 63 |
|
42 | 64 |
%prep |
1472 | 65 |
%setup -q |
5946 | 66 |
%patch1 -p1 |
6104 | 67 |
%patch2 -p1 |
4455 | 68 |
|
42 | 69 |
%build |
3263 | 70 |
%ifos linux |
71 |
if [ -x /usr/bin/getconf ]; then |
|
72 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
73 |
fi |
|
74 |
%else |
|
3846 | 75 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 76 |
%endif |
77 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
78 |
CPUS=1 |
|
79 |
fi |
|
80 |
||
1629 | 81 |
libtoolize --force --copy |
5518 | 82 |
aclocal $ACLOCAL_FLAGS -I . |
2999
e6e99aa41e92
* libgnomeprint.spec, patches/libgnomeprint-02-papi.diff: Add PAPI
dduvall
parents:
2958
diff
changeset
|
83 |
autoheader |
1629 | 84 |
automake -a -c -f |
85 |
autoconf |
|
86 |
||
217 | 87 |
CFLAGS="$RPM_OPT_FLAGS" \ |
88 |
./configure --prefix=%{_prefix} \ |
|
89 |
--sysconfdir=%{_sysconfdir} \ |
|
3730 | 90 |
--mandir=%{_mandir} \ |
91 |
--enable-gtk-doc |
|
92 |
||
3263 | 93 |
make -j $CPUS |
42 | 94 |
|
95 |
%install |
|
217 | 96 |
make DESTDIR=$RPM_BUILD_ROOT install |
1472 | 97 |
#Copy zh_HK from zh_TW |
98 |
#Fixes bug 4930405 |
|
1522 | 99 |
install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES |
100 |
install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/ |
|
4357 | 101 |
install -d $RPM_BUILD_ROOT%{_mandir}/man3 |
5518 | 102 |
install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man3 |
3628 | 103 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
104 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
|
105 |
rm $RPM_BUILD_ROOT%{_libdir}/libgnomeprint/*/modules/*.a |
|
106 |
rm $RPM_BUILD_ROOT%{_libdir}/libgnomeprint/*/modules/*.la |
|
107 |
rm $RPM_BUILD_ROOT%{_libdir}/libgnomeprint/*/modules/transports/*.a |
|
108 |
rm $RPM_BUILD_ROOT%{_libdir}/libgnomeprint/*/modules/transports/*.la |
|
5904 | 109 |
rm $RPM_BUILD_ROOT%{_libdir}/libgnomeprint/*/modules/filters/lib*a |
110 |
||
217 | 111 |
%post |
112 |
/sbin/ldconfig |
|
156 | 113 |
|
217 | 114 |
%postun |
115 |
/sbin/ldconfig |
|
42 | 116 |
|
117 |
%clean |
|
118 |
rm -rf $RPM_BUILD_ROOT |
|
119 |
||
120 |
%files |
|
1798 | 121 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
42 | 122 |
%{_datadir}/libgnomeprint |
2194 | 123 |
%{_libdir}/libgnomeprint/*/modules/*so* |
480 | 124 |
%{_libdir}/libgnomeprint/*/modules/*/*so* |
1058 | 125 |
%{_libdir}/*so.* |
42 | 126 |
|
127 |
%files devel |
|
128 |
%{_libdir}/pkgconfig/libgnomeprint-2.2.pc |
|
129 |
%{_includedir}/libgnomeprint-2.2/libgnomeprint |
|
1472 | 130 |
%{_datadir}/gtk-doc |
1058 | 131 |
%{_libdir}/*so |
4357 | 132 |
%{_mandir}/man3/* |
42 | 133 |
|
134 |
%changelog |
|
7137 | 135 |
* Wed Apr 26 2006 - [email protected] |
136 |
- Fixed 6418240 and also merged libgnomeprint-papi-crash.diff into |
|
137 |
libgnomeprint-papi-print-dialog.diff. |
|
138 |
||
6104 | 139 |
* Fri Oct 14 2005 - [email protected] |
140 |
- fix crash in papi module when no printers are defined |
|
141 |
||
6013 | 142 |
* Tue Sep 27 2005 - [email protected] |
143 |
- Bump to 2.12.1 |
|
144 |
||
5945 | 145 |
* Tue Sep 20 2005 - [email protected] |
146 |
- Add patch -Wall.diff to remove -Wall from a Makefile.am |
|
147 |
||
5904 | 148 |
* Sat Sep 17 2005 - [email protected] |
149 |
- Add unpackaged files to %files |
|
150 |
||
5895 | 151 |
* Sat Sep 17 2005 - [email protected] |
152 |
- Bump to 2.12.0 |
|
153 |
||
5529
9133a916e53a
* *.spec: More bumping to latest versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
154 |
* Mon Aug 15 2005 - [email protected] |
9133a916e53a
* *.spec: More bumping to latest versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
155 |
- Bump to 2.11.0. |
9133a916e53a
* *.spec: More bumping to latest versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
156 |
|
5518 | 157 |
* Wed Aug 03 2005 - [email protected] |
158 |
- remove upstream patch PDF-landscape-*.diff |
|
159 |
- remove patch use-older-cups.diff: no longer needed |
|
160 |
||
161 |
* Thu Jun 02 2005 - [email protected] |
|
162 |
- Fix for 6263422. Added libgnomeprint-13-PDF-landscape-6263422.diff |
|
163 |
||
164 |
* Mon May 16 2005 - [email protected] |
|
165 |
- Port to 2.10 |
|
166 |
||
5261
48fe72623946
2005-03-21 Suresh Chandrasekharan <[email protected]>
sureshc
parents:
5237
diff
changeset
|
167 |
* Tue Mar 21 2005 - [email protected] |
48fe72623946
2005-03-21 Suresh Chandrasekharan <[email protected]>
sureshc
parents:
5237
diff
changeset
|
168 |
- Fix for 6231341. Added libgnomeprint-12-ja-print-preview-6231341.diff |
48fe72623946
2005-03-21 Suresh Chandrasekharan <[email protected]>
sureshc
parents:
5237
diff
changeset
|
169 |
|
4783
01e059f65c13
2004-12-22 Suresh Chandrasekharan <[email protected]>
sureshc
parents:
4750
diff
changeset
|
170 |
* Tue Dec 21 2004 - [email protected] |
01e059f65c13
2004-12-22 Suresh Chandrasekharan <[email protected]>
sureshc
parents:
4750
diff
changeset
|
171 |
- Fix for 5083233. Added libgnomeprint-11-gpdf-mixed-text-issue-5083233.diff |
01e059f65c13
2004-12-22 Suresh Chandrasekharan <[email protected]>
sureshc
parents:
4750
diff
changeset
|
172 |
|
4750 | 173 |
* Tue Dec 14 2004 - [email protected] |
174 |
- Remove the $(datadir)/fonts/pfbs and $(datadir)/gnome-print from |
|
175 |
being created. No idea where this came from, but it's wrong. |
|
4436 | 176 |
* Thu Nov 04 2004 - [email protected] |
177 |
- Updated libgnomeprint-08-g11n-i18n-ui.diff to fix 6188803 |
|
4361
0d06459dc9c5
2004-10-28 Suresh Chandrasekharan <[email protected]>
sureshc
parents:
4357
diff
changeset
|
178 |
* Thu Oct 28 2004 - [email protected] |
0d06459dc9c5
2004-10-28 Suresh Chandrasekharan <[email protected]>
sureshc
parents:
4357
diff
changeset
|
179 |
- Fix for 5090546. Added libgnomeprint-10-chinese-ASCII-5090546.diff. |
0d06459dc9c5
2004-10-28 Suresh Chandrasekharan <[email protected]>
sureshc
parents:
4357
diff
changeset
|
180 |
|
4357 | 181 |
* Thu Oct 28 2004 - [email protected] |
182 |
- Add libgnomeprint-2.2.3 man page |
|
183 |
||
4149 | 184 |
* Tue Oct 05 2004 - [email protected] |
185 |
- Added libgnomeprint-08-g11n-i18n-ui.diff to i18n print dialogs. |
|
186 |
Fixed 4869747 |
|
187 |
- Added libgnomeprint-09-g11n-potfiles.diff |
|
188 |
||
3730 | 189 |
* Wed Aug 18 2004 - [email protected] |
190 |
- added --enable-gtk-doc. Added patch to allow gtk-docs to build. |
|
191 |
||
3618
f8705ffcf07c
2004-08-18 Suresh Chandrasekharan <[email protected]>
sureshc
parents:
3580
diff
changeset
|
192 |
* Fri Aug 18 2004 - [email protected] |
f8705ffcf07c
2004-08-18 Suresh Chandrasekharan <[email protected]>
sureshc
parents:
3580
diff
changeset
|
193 |
- Modified libgnomeprint-05-ps-output.diff, a one line fix. |
f8705ffcf07c
2004-08-18 Suresh Chandrasekharan <[email protected]>
sureshc
parents:
3580
diff
changeset
|
194 |
- Create libgnomeprint-06-broken-ttf-fix.diff (bugzilla #149858, |
3628 | 195 |
bugtraq #5085669) |
3618
f8705ffcf07c
2004-08-18 Suresh Chandrasekharan <[email protected]>
sureshc
parents:
3580
diff
changeset
|
196 |
|
3489
e062885a3fe6
* libgnomeprint.spec : create libgnomeprint-05-ps-output.diff
tajima
parents:
3425
diff
changeset
|
197 |
* Sat Jul 10 2004 - [email protected] |
e062885a3fe6
* libgnomeprint.spec : create libgnomeprint-05-ps-output.diff
tajima
parents:
3425
diff
changeset
|
198 |
- create libgnomeprint-05-ps-output.diff (bugzilla #148674, |
3628 | 199 |
bugtraq #5065284, #5077052) |
3489
e062885a3fe6
* libgnomeprint.spec : create libgnomeprint-05-ps-output.diff
tajima
parents:
3425
diff
changeset
|
200 |
|
3303 | 201 |
* Sat Jul 10 2004 - [email protected] |
202 |
- Modified libgnomeprint-02-papi.diff to fix crash when there |
|
203 |
are no printers available. Patch by [email protected]. |
|
204 |
||
3279
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
205 |
* 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
|
206 |
- Updated l10n content to libgnomeprint-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
|
207 |
|
3628 | 208 |
* Wed Jul 07 2004 - [email protected] |
209 |
- ported to rpm4 |
|
210 |
||
3263 | 211 |
* Wed Jul 07 2004 - [email protected] |
212 |
- added "-j $CPUS" to make to speed up builds |
|
213 |
||
3081 | 214 |
* Wed Jun 09 2004 - [email protected] |
215 |
- Add libgnomeprint-03-pdf-operator-fix.diff for correcting pdf |
|
216 |
output, backported from community's cvs HEAD |
|
217 |
- Add libgnomeprint-04-TT-subsetting-4928658.diff to support |
|
218 |
TrueType font subsetting for PDF and PS |
|
219 |
||
2999
e6e99aa41e92
* libgnomeprint.spec, patches/libgnomeprint-02-papi.diff: Add PAPI
dduvall
parents:
2958
diff
changeset
|
220 |
* Wed Jun 02 2004 - [email protected] |
e6e99aa41e92
* libgnomeprint.spec, patches/libgnomeprint-02-papi.diff: Add PAPI
dduvall
parents:
2958
diff
changeset
|
221 |
- Add PAPI support |
e6e99aa41e92
* libgnomeprint.spec, patches/libgnomeprint-02-papi.diff: Add PAPI
dduvall
parents:
2958
diff
changeset
|
222 |
|
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
223 |
* 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
|
224 |
- Updated l10n content to libgnomeprint-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
|
225 |
|
2375 | 226 |
* Fri Apr 02 2004 - [email protected] |
227 |
- Updated to 2.6.0 tarball for 2.6 |
|
228 |
||
2350 | 229 |
* Mon Mar 29 2004 - [email protected] |
230 |
- Updated l10n content to libgnomeprint-l10n-po-1.0.tar.bz2 |
|
231 |
||
2251 | 232 |
* Fri Mar 19 2004 - <[email protected]> |
233 |
- Bump to 2.5.4 and remove a uninstalled, locale generation and potfiles |
|
234 |
patches. |
|
235 |
||
2194 | 236 |
* Tue Mar 09 2004 - <[email protected]> |
237 |
- Hacked around with libgnomeprint-04-old-version-cups-hack.diff |
|
238 |
since the version of cups we have is just too old. This patch should be |
|
239 |
removed once CUPS 1.1.20 is made available. |
|
240 |
||
1798 | 241 |
* Thu Feb 19 2004 - <[email protected]> |
242 |
- Bump to 2.5.2, re-apply patches, bump l10n to 0.8 |
|
243 |
||
1657 | 244 |
* Thu Feb 12 2004 - <[email protected]> |
1629 | 245 |
- Add patch 03 to create a -uninstalled.pc file |
246 |
- autotoolize the build stage |
|
247 |
||
1472 | 248 |
* Wed Dec 17 2003 - <[email protected]> |
249 |
- Bump to 2.5.0.1 |
|
250 |
||
1217 | 251 |
* Thu Oct 09 2003 - <[email protected]> |
252 |
- Updated spec file to build for QS, since this CUPS stuff has not be integrated into |
|
253 |
GNOME 2.4. Still needs to use the same tarball as Mercury. |
|
254 |
||
1058 | 255 |
* Thu Aug 14 2003 - <[email protected]> |
256 |
- move lib*.so to -devel, remove *.a, *.la |
|
257 |
||
523 | 258 |
* Thu Jul 10 2003 - [email protected] |
259 |
- Added .po tarball |
|
260 |
||
480 | 261 |
* Tue Jul 08 2003 - [email protected] |
262 |
- Changed files section to include printer icons and also libraries |
|
263 |
that import the cups printers into libgnomeprintui dialog. |
|
264 |
||
327 | 265 |
* Mon Jun 30 2003 - [email protected] |
266 |
- Added cups integration with a new version of tarball. |
|
267 |
libgnomeprint-2.3.0.cvs.9.tar.bz2 |
|
268 |
||
42 | 269 |
* Tue May 13 2003 - [email protected] |
156 | 270 |
- Initial Sun release |