author | dermotm |
Mon, 24 Jul 2006 12:30:39 +0000 | |
branch | gnome-2-10 |
changeset 19949 | 94f49bf19351 |
parent 19719 | d184ca39d269 |
permissions | -rw-r--r-- |
19693 | 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 |
19291 | 11 |
Version: 2.10.3 |
12 |
Release: 1 |
|
19693 | 13 |
Distribution: Java Desktop System |
575 | 14 |
Vendor: Sun Microsystems, Inc. |
217 | 15 |
Summary: Print Library for the GNOME Desktop |
19291 | 16 |
Source: http://ftp.gnome.org/pub/GNOME/sources/libgnomeprint/2.10/libgnomeprint-%{version}.tar.bz2 |
19719 | 17 |
Source1: libgnomeprint-2.2.3.gz |
217 | 18 |
URL: http://www.gnome.org |
42 | 19 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
156 | 20 |
Autoreqprov: on |
1080 | 21 |
Prereq: /sbin/ldconfig |
42 | 22 |
|
23 |
%define INSTALL_DIR install -d -m755 |
|
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 |
4455 | 66 |
|
42 | 67 |
%build |
3263 | 68 |
%ifos linux |
69 |
if [ -x /usr/bin/getconf ]; then |
|
70 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
71 |
fi |
|
72 |
%else |
|
3846 | 73 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 74 |
%endif |
75 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
76 |
CPUS=1 |
|
77 |
fi |
|
78 |
||
1629 | 79 |
libtoolize --force --copy |
19243 | 80 |
aclocal $ACLOCAL_FLAGS -I . |
2999
e6e99aa41e92
* libgnomeprint.spec, patches/libgnomeprint-02-papi.diff: Add PAPI
dduvall
parents:
2958
diff
changeset
|
81 |
autoheader |
1629 | 82 |
automake -a -c -f |
83 |
autoconf |
|
84 |
||
217 | 85 |
CFLAGS="$RPM_OPT_FLAGS" \ |
86 |
./configure --prefix=%{_prefix} \ |
|
87 |
--sysconfdir=%{_sysconfdir} \ |
|
3730 | 88 |
--mandir=%{_mandir} \ |
89 |
--enable-gtk-doc |
|
90 |
||
3263 | 91 |
make -j $CPUS |
42 | 92 |
|
93 |
%install |
|
217 | 94 |
make DESTDIR=$RPM_BUILD_ROOT install |
1472 | 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/ |
|
4357 | 99 |
install -d $RPM_BUILD_ROOT%{_mandir}/man3 |
19719 | 100 |
install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man3 |
3628 | 101 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
102 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
|
103 |
rm $RPM_BUILD_ROOT%{_libdir}/libgnomeprint/*/modules/*.a |
|
104 |
rm $RPM_BUILD_ROOT%{_libdir}/libgnomeprint/*/modules/*.la |
|
105 |
rm $RPM_BUILD_ROOT%{_libdir}/libgnomeprint/*/modules/transports/*.a |
|
106 |
rm $RPM_BUILD_ROOT%{_libdir}/libgnomeprint/*/modules/transports/*.la |
|
1472 | 107 |
|
217 | 108 |
%post |
109 |
/sbin/ldconfig |
|
156 | 110 |
|
217 | 111 |
%postun |
112 |
/sbin/ldconfig |
|
42 | 113 |
|
114 |
%clean |
|
115 |
rm -rf $RPM_BUILD_ROOT |
|
116 |
||
117 |
%files |
|
1798 | 118 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
42 | 119 |
%{_datadir}/libgnomeprint |
2194 | 120 |
%{_libdir}/libgnomeprint/*/modules/*so* |
480 | 121 |
%{_libdir}/libgnomeprint/*/modules/*/*so* |
1058 | 122 |
%{_libdir}/*so.* |
42 | 123 |
|
124 |
%files devel |
|
125 |
%{_libdir}/pkgconfig/libgnomeprint-2.2.pc |
|
126 |
%{_includedir}/libgnomeprint-2.2/libgnomeprint |
|
1472 | 127 |
%{_datadir}/gtk-doc |
1058 | 128 |
%{_libdir}/*so |
4357 | 129 |
%{_mandir}/man3/* |
42 | 130 |
|
131 |
%changelog |
|
19649 | 132 |
* Wed Aug 03 2005 - [email protected] |
133 |
- remove upstream patch PDF-landscape-*.diff |
|
134 |
- remove patch use-older-cups.diff: no longer needed |
|
135 |
||
19643 | 136 |
* Thu Jun 02 2005 - [email protected] |
137 |
- Fix for 6263422. Added libgnomeprint-13-PDF-landscape-6263422.diff |
|
138 |
||
19291 | 139 |
* Mon May 16 2005 - [email protected] |
140 |
- Port to 2.10 |
|
141 |
||
5261
48fe72623946
2005-03-21 Suresh Chandrasekharan <[email protected]>
sureshc
parents:
5237
diff
changeset
|
142 |
* Tue Mar 21 2005 - [email protected] |
48fe72623946
2005-03-21 Suresh Chandrasekharan <[email protected]>
sureshc
parents:
5237
diff
changeset
|
143 |
- Fix for 6231341. Added libgnomeprint-12-ja-print-preview-6231341.diff |
48fe72623946
2005-03-21 Suresh Chandrasekharan <[email protected]>
sureshc
parents:
5237
diff
changeset
|
144 |
|
4783
01e059f65c13
2004-12-22 Suresh Chandrasekharan <[email protected]>
sureshc
parents:
4750
diff
changeset
|
145 |
* Tue Dec 21 2004 - [email protected] |
01e059f65c13
2004-12-22 Suresh Chandrasekharan <[email protected]>
sureshc
parents:
4750
diff
changeset
|
146 |
- 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
|
147 |
|
4750 | 148 |
* Tue Dec 14 2004 - [email protected] |
149 |
- Remove the $(datadir)/fonts/pfbs and $(datadir)/gnome-print from |
|
150 |
being created. No idea where this came from, but it's wrong. |
|
4436 | 151 |
* Thu Nov 04 2004 - [email protected] |
152 |
- Updated libgnomeprint-08-g11n-i18n-ui.diff to fix 6188803 |
|
4361
0d06459dc9c5
2004-10-28 Suresh Chandrasekharan <[email protected]>
sureshc
parents:
4357
diff
changeset
|
153 |
* Thu Oct 28 2004 - [email protected] |
0d06459dc9c5
2004-10-28 Suresh Chandrasekharan <[email protected]>
sureshc
parents:
4357
diff
changeset
|
154 |
- Fix for 5090546. Added libgnomeprint-10-chinese-ASCII-5090546.diff. |
0d06459dc9c5
2004-10-28 Suresh Chandrasekharan <[email protected]>
sureshc
parents:
4357
diff
changeset
|
155 |
|
4357 | 156 |
* Thu Oct 28 2004 - [email protected] |
157 |
- Add libgnomeprint-2.2.3 man page |
|
158 |
||
4149 | 159 |
* Tue Oct 05 2004 - [email protected] |
160 |
- Added libgnomeprint-08-g11n-i18n-ui.diff to i18n print dialogs. |
|
161 |
Fixed 4869747 |
|
162 |
- Added libgnomeprint-09-g11n-potfiles.diff |
|
163 |
||
3730 | 164 |
* Wed Aug 18 2004 - [email protected] |
165 |
- added --enable-gtk-doc. Added patch to allow gtk-docs to build. |
|
166 |
||
3618
f8705ffcf07c
2004-08-18 Suresh Chandrasekharan <[email protected]>
sureshc
parents:
3580
diff
changeset
|
167 |
* Fri Aug 18 2004 - [email protected] |
f8705ffcf07c
2004-08-18 Suresh Chandrasekharan <[email protected]>
sureshc
parents:
3580
diff
changeset
|
168 |
- Modified libgnomeprint-05-ps-output.diff, a one line fix. |
f8705ffcf07c
2004-08-18 Suresh Chandrasekharan <[email protected]>
sureshc
parents:
3580
diff
changeset
|
169 |
- Create libgnomeprint-06-broken-ttf-fix.diff (bugzilla #149858, |
3628 | 170 |
bugtraq #5085669) |
3618
f8705ffcf07c
2004-08-18 Suresh Chandrasekharan <[email protected]>
sureshc
parents:
3580
diff
changeset
|
171 |
|
3489
e062885a3fe6
* libgnomeprint.spec : create libgnomeprint-05-ps-output.diff
tajima
parents:
3425
diff
changeset
|
172 |
* Sat Jul 10 2004 - [email protected] |
e062885a3fe6
* libgnomeprint.spec : create libgnomeprint-05-ps-output.diff
tajima
parents:
3425
diff
changeset
|
173 |
- create libgnomeprint-05-ps-output.diff (bugzilla #148674, |
3628 | 174 |
bugtraq #5065284, #5077052) |
3489
e062885a3fe6
* libgnomeprint.spec : create libgnomeprint-05-ps-output.diff
tajima
parents:
3425
diff
changeset
|
175 |
|
3303 | 176 |
* Sat Jul 10 2004 - [email protected] |
177 |
- Modified libgnomeprint-02-papi.diff to fix crash when there |
|
178 |
are no printers available. Patch by [email protected]. |
|
179 |
||
3279
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
180 |
* 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
|
181 |
- 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
|
182 |
|
3628 | 183 |
* Wed Jul 07 2004 - [email protected] |
184 |
- ported to rpm4 |
|
185 |
||
3263 | 186 |
* Wed Jul 07 2004 - [email protected] |
187 |
- added "-j $CPUS" to make to speed up builds |
|
188 |
||
3081 | 189 |
* Wed Jun 09 2004 - [email protected] |
190 |
- Add libgnomeprint-03-pdf-operator-fix.diff for correcting pdf |
|
191 |
output, backported from community's cvs HEAD |
|
192 |
- Add libgnomeprint-04-TT-subsetting-4928658.diff to support |
|
193 |
TrueType font subsetting for PDF and PS |
|
194 |
||
2999
e6e99aa41e92
* libgnomeprint.spec, patches/libgnomeprint-02-papi.diff: Add PAPI
dduvall
parents:
2958
diff
changeset
|
195 |
* Wed Jun 02 2004 - [email protected] |
e6e99aa41e92
* libgnomeprint.spec, patches/libgnomeprint-02-papi.diff: Add PAPI
dduvall
parents:
2958
diff
changeset
|
196 |
- Add PAPI support |
e6e99aa41e92
* libgnomeprint.spec, patches/libgnomeprint-02-papi.diff: Add PAPI
dduvall
parents:
2958
diff
changeset
|
197 |
|
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
198 |
* 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
|
199 |
- 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
|
200 |
|
2375 | 201 |
* Fri Apr 02 2004 - [email protected] |
202 |
- Updated to 2.6.0 tarball for 2.6 |
|
203 |
||
2350 | 204 |
* Mon Mar 29 2004 - [email protected] |
205 |
- Updated l10n content to libgnomeprint-l10n-po-1.0.tar.bz2 |
|
206 |
||
2251 | 207 |
* Fri Mar 19 2004 - <[email protected]> |
208 |
- Bump to 2.5.4 and remove a uninstalled, locale generation and potfiles |
|
209 |
patches. |
|
210 |
||
2194 | 211 |
* Tue Mar 09 2004 - <[email protected]> |
212 |
- Hacked around with libgnomeprint-04-old-version-cups-hack.diff |
|
213 |
since the version of cups we have is just too old. This patch should be |
|
214 |
removed once CUPS 1.1.20 is made available. |
|
215 |
||
1798 | 216 |
* Thu Feb 19 2004 - <[email protected]> |
217 |
- Bump to 2.5.2, re-apply patches, bump l10n to 0.8 |
|
218 |
||
1657 | 219 |
* Thu Feb 12 2004 - <[email protected]> |
1629 | 220 |
- Add patch 03 to create a -uninstalled.pc file |
221 |
- autotoolize the build stage |
|
222 |
||
1472 | 223 |
* Wed Dec 17 2003 - <[email protected]> |
224 |
- Bump to 2.5.0.1 |
|
225 |
||
1217 | 226 |
* Thu Oct 09 2003 - <[email protected]> |
227 |
- Updated spec file to build for QS, since this CUPS stuff has not be integrated into |
|
228 |
GNOME 2.4. Still needs to use the same tarball as Mercury. |
|
229 |
||
1058 | 230 |
* Thu Aug 14 2003 - <[email protected]> |
231 |
- move lib*.so to -devel, remove *.a, *.la |
|
232 |
||
523 | 233 |
* Thu Jul 10 2003 - [email protected] |
234 |
- Added .po tarball |
|
235 |
||
480 | 236 |
* Tue Jul 08 2003 - [email protected] |
237 |
- Changed files section to include printer icons and also libraries |
|
238 |
that import the cups printers into libgnomeprintui dialog. |
|
239 |
||
327 | 240 |
* Mon Jun 30 2003 - [email protected] |
241 |
- Added cups integration with a new version of tarball. |
|
242 |
libgnomeprint-2.3.0.cvs.9.tar.bz2 |
|
243 |
||
42 | 244 |
* Tue May 13 2003 - [email protected] |
156 | 245 |
- Initial Sun release |