author | hh150184 |
Tue, 24 Jan 2006 11:56:37 +0000 | |
branch | gnome-2-12 |
changeset 19207 | b59a653a3329 |
parent 5518 | 235b0b4aa324 |
child 6923 | 45fbffcf5f44 |
permissions | -rw-r--r-- |
5518 | 1 |
# |
2 |
# spec file for package gnome-cups-manager |
|
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 |
# |
|
327 | 8 |
Name: gnome-cups-manager |
9 |
License: LGPL |
|
10 |
Group: Applications/System |
|
5518 | 11 |
Version: 0.30 |
12 |
Release: 2 |
|
13 |
Distribution: Java Desktop System |
|
575 | 14 |
Vendor: Sun Microsystems, Inc. |
327 | 15 |
Summary: Gnome CUPS Manager |
5518 | 16 |
Source: gnome-cups-manager-%{version}.tar.bz2 |
1135 | 17 |
Source1: sun-testpage-a4.eps.bz2 |
18 |
Source2: sun-testpage-letter.eps.bz2 |
|
1806 | 19 |
Source4: gnome-cups-add.1.gz |
20 |
Source5: gnome-cups-manager.1.gz |
|
4261 | 21 |
Source6: cupsd.conf.jds |
1806 | 22 |
Patch1: gnome-cups-manager-01-testpages.diff |
5518 | 23 |
Patch2: gnome-cups-manager-02-g11n-icon.diff |
24 |
Patch3: gnome-cups-manager-03-g11n-i18n-ui.diff |
|
25 |
Patch4: gnome-cups-manager-04-help-button.diff |
|
26 |
Patch5: gnome-cups-manager-05-a11y.diff |
|
27 |
Patch6: gnome-cups-manager-06-crash.diff |
|
327 | 28 |
URL: http://www.gnome.org |
29 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
30 |
Docdir: %{_docdir}/doc |
|
31 |
Autoreqprov: on |
|
1080 | 32 |
Prereq: /sbin/ldconfig |
5518 | 33 |
Prereq: coreutils |
34 |
Prereq: cups |
|
327 | 35 |
|
5518 | 36 |
%define libgnomecups_version 0.2.0 |
3628 | 37 |
%define cups_version 1.1.20 |
38 |
%define samba_client_version 3.0.2 |
|
5518 | 39 |
%define libgnomeui_version 2.0.0 |
40 |
%define libgnome_version 2.0.0 |
|
41 |
%define libglade_version 2.0.0 |
|
42 |
%define libbonobo_version 2.0.0 |
|
43 |
%define gtk2_version 2.3.1 |
|
44 |
%define glib2_version 2.3.1 |
|
327 | 45 |
|
46 |
Requires: cups >= %{cups_version} |
|
47 |
Requires: cups-libs >= %{cups_version} |
|
48 |
Requires: cups-drivers >= %{cups_version} |
|
49 |
Requires: cups-drivers-stp >= %{cups_version} |
|
864 | 50 |
Requires: samba-client >= %{samba_client_version} |
327 | 51 |
Requires: libgnomecups >= %{libgnomecups_version} |
52 |
||
53 |
BuildRequires: pkgconfig |
|
54 |
BuildRequires: cups-devel >= %{cups_version} |
|
55 |
BuildRequires: cups >= %{cups_version} |
|
5518 | 56 |
BuildRequires: libgnomeui-devel >= %{libgnomeui_version} |
327 | 57 |
BuildRequires: libgnomecups-devel >= %{libgnomecups_version} |
5518 | 58 |
BuildRequires: libgnome >= %{libgnome_version} |
59 |
BuildRequires: libglade >= %{libgnome_version} |
|
60 |
BuildRequires: libbonobo >= %{libbonobo_version} |
|
61 |
BuildRequires: gtk2 >= %{gtk_version} |
|
62 |
BuildRequires: glib2 >= %{glib2_version} |
|
327 | 63 |
|
64 |
%description |
|
65 |
An interface and library for adding, monitoring, and configuring |
|
66 |
printers in the GNOME Desktop. |
|
67 |
||
68 |
%package devel |
|
69 |
Summary: Gnome CUPS Manager Devel |
|
70 |
Group: System Environment/Libraries |
|
71 |
Autoreqprov: on |
|
72 |
||
73 |
Requires: %{name} >= %{version} |
|
74 |
Requires: glib2-devel |
|
75 |
Requires: cups-devel >= %{cups_version} |
|
76 |
Requires: libgnomecups-devel |
|
77 |
||
78 |
%description devel |
|
79 |
Development headers and libraries for gnome-cups-manager |
|
80 |
||
81 |
%prep |
|
82 |
%setup -q |
|
5518 | 83 |
cp %SOURCE1 %SOURCE2 gnome-cups-manager |
409 | 84 |
%patch1 -p1 |
481 | 85 |
%patch2 -p1 |
1806 | 86 |
%patch3 -p1 |
87 |
%patch4 -p1 |
|
88 |
%patch5 -p1 |
|
89 |
%patch6 -p1 |
|
327 | 90 |
|
4455 | 91 |
|
327 | 92 |
%build |
5518 | 93 |
bzip2 -d gnome-cups-manager/sun-testpage-a4.eps.bz2 |
94 |
bzip2 -d gnome-cups-manager/sun-testpage-letter.eps.bz2 |
|
3263 | 95 |
%ifos linux |
96 |
if [ -x /usr/bin/getconf ]; then |
|
97 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
98 |
fi |
|
99 |
%else |
|
3846 | 100 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 101 |
%endif |
102 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
103 |
CPUS=1 |
|
104 |
fi |
|
105 |
||
1497 | 106 |
libtoolize --force |
5518 | 107 |
aclocal $ACLOCAL_FLAGS |
1497 | 108 |
automake -a -c -f |
109 |
autoconf |
|
110 |
||
327 | 111 |
CFLAGS="$RPM_OPT_FLAGS" \ |
112 |
./configure --prefix=%{_prefix} \ |
|
113 |
--sysconfdir=/etc \ |
|
114 |
--infodir=%{_prefix}/info |
|
4426 | 115 |
|
3263 | 116 |
make -j $CPUS |
327 | 117 |
|
118 |
%install |
|
119 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
1806 | 120 |
install -d $RPM_BUILD_ROOT/usr/share/man/man1 |
121 |
install --mode=0644 %SOURCE4 $RPM_BUILD_ROOT/usr/share/man/man1 |
|
122 |
install --mode=0644 %SOURCE5 $RPM_BUILD_ROOT/usr/share/man/man1 |
|
4261 | 123 |
install -d $RPM_BUILD_ROOT/etc/cups |
124 |
install --mode=0644 %SOURCE6 $RPM_BUILD_ROOT/etc/cups/cupsd.conf.jds |
|
3628 | 125 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
126 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
|
4261 | 127 |
rm $RPM_BUILD_ROOT%{_bindir}/gnome-cups-icon |
128 |
rm $RPM_BUILD_ROOT%{_prefix}/sbin/gnome-cups-switch |
|
129 |
||
327 | 130 |
|
131 |
%clean |
|
132 |
rm -rf $RPM_BUILD_ROOT |
|
133 |
||
134 |
%post |
|
135 |
/sbin/ldconfig |
|
5208 | 136 |
# Got to do this in the case of install ($1=1) or upgrade ($1=2) |
137 |
if [ "$1" = "1" -o "$1" = "2" ]; then |
|
4261 | 138 |
# backup original cupsd config file |
139 |
mv /etc/cups/cupsd.conf /etc/cups/cupsd.conf.orig |
|
140 |
||
141 |
# Use compatible cupsd config file and restart cups daemon |
|
142 |
ln -s /etc/cups/cupsd.conf.jds /etc/cups/cupsd.conf |
|
143 |
/etc/init.d/cups restart |
|
144 |
fi |
|
327 | 145 |
|
146 |
%postun |
|
147 |
/sbin/ldconfig |
|
4261 | 148 |
if [ "$1" = "0" ]; then |
149 |
# restore the files created in post-install section |
|
150 |
rm /etc/cups/cupsd.conf |
|
151 |
mv /etc/cups/cupsd.conf.orig /etc/cups/cupsd.conf |
|
152 |
||
153 |
# restart cupsd to revert back to original setup. |
|
154 |
/etc/init.d/cups restart |
|
155 |
fi |
|
327 | 156 |
|
157 |
%files |
|
158 |
%defattr(-, root, root) |
|
159 |
%doc AUTHORS ChangeLog COPYING NEWS README |
|
1806 | 160 |
%{_bindir}/* |
161 |
%{_libdir}/*.so.* |
|
4426 | 162 |
%{_datadir}/icons/*/*/devices/gnome-dev-printer.png |
1806 | 163 |
%{_datadir}/icons/*/*/devices/gnome-dev-printer-new.png |
164 |
%{_datadir}/icons/*/*/devices/gnome-dev-printer-network.png |
|
5518 | 165 |
%{_datadir}/icons/*/*/stock/data/* |
1806 | 166 |
%{_datadir}/pixmaps/gnome-cups-manager |
167 |
%{_datadir}/gnome-cups-manager |
|
168 |
%{_libdir}/bonobo/servers/*.server |
|
169 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
|
170 |
%{_mandir}/man1/* |
|
4261 | 171 |
%config %{_sysconfdir}/cups/cupsd.conf.jds |
327 | 172 |
|
173 |
%files devel |
|
174 |
%defattr(-, root, root) |
|
1806 | 175 |
%{_libdir}/*.so |
176 |
%{_includedir}/libgnomecups-1 |
|
177 |
%{_libdir}/pkgconfig/*.pc |
|
327 | 178 |
|
179 |
%changelog |
|
5518 | 180 |
* Fri Jul 17 2005 - [email protected] |
181 |
- Ported the remaining patches. |
|
182 |
||
183 |
* Mon Jun 13 2005 - [email protected] |
|
184 |
- Bump to 0.30 |
|
185 |
||
5379 | 186 |
* Fri Apr 29 2005 - [email protected] |
187 |
- Added patch to prevent cups manager crash when giving a hostname beginning |
|
188 |
with a number and containing '-' during adding a new printer. |
|
189 |
Fixes bug #6260711. |
|
190 |
||
5208 | 191 |
* Thu Mar 10 2005 - [email protected] |
192 |
- The %post failed to run during an upgrade because $1 has a avlue of 2 |
|
193 |
instead of 1 which is for install. So making making sure that postinstall |
|
194 |
script is run when updating as well as installing, fixing bug 6236784. |
|
195 |
||
5185 | 196 |
* Tue Mar 08 2005 - [email protected] |
197 |
- Patch added gnome-cups-manager-09-a11y.diff which fixes some a11y issues. |
|
198 |
Fixes bug #6208754 |
|
199 |
||
4714 | 200 |
* Tue Dec 07 2004 - [email protected] |
201 |
- Fixes 6183705 by updating the two test pages by cleaning up |
|
202 |
the %%BeginAGDEmbeddedDoc section according to Muktha. |
|
203 |
||
4441 | 204 |
* Thu Nov 04 2004 - [email protected] |
205 |
- Fixed a bad putback for the fix below. So putting the correct |
|
206 |
patch to gnome-cups-manager-07-help-button.diff to fix the |
|
207 |
build failure. |
|
208 |
||
4426 | 209 |
* Mon Nov 01 2004 - [email protected] |
210 |
- gnome-cups-manager crashes when the window are print queue |
|
211 |
window is opened and testpage is sent to the printer. |
|
212 |
So, I uprev to 0.18 for gnome-cups-manager, and I did: |
|
213 |
o gnome-cups-manager-03-smb-changes.diff - split out the |
|
214 |
code changes and the glade files changes. glade files changes |
|
215 |
are proven to impossible to merged at this stage. |
|
216 |
So I created Source7 (gnome-cups-manager.glade) and |
|
217 |
source 8 (gnome-cups-add.galde) for that. |
|
218 |
o dropped gnome-cups-manager-04-enable-deprecated-widgets.diff |
|
219 |
as it is no longer needed. |
|
220 |
o Merged gnome-cups-manager-05-add-all-linguas.diff and |
|
221 |
gnome-cups-manager-10-g11n-alllinguas.diff into |
|
222 |
gnome-cups-manager-04-g11n-all-linguas.diff |
|
223 |
o and renumbered the rest. |
|
224 |
||
4261 | 225 |
* Tue Oct 12 2004 - [email protected] |
226 |
- 6177618 stops a non-root user to add new print queue due to a security |
|
227 |
improvement patch that SuSE put in. However, that solution is far from |
|
228 |
complete and had cause this bug. So deliver a cupsd.conf.jds that uses |
|
229 |
the original authentication method as in JDS 1 and 2. |
|
230 |
Also clean up the list of binary which are inappropriate for JDS in the |
|
231 |
first place. |
|
232 |
||
4185
590dfb2c6dff
Updating spec-files to include All Linguas patches
cm152228
parents:
4133
diff
changeset
|
233 |
* Thu Oct 07 2004 - [email protected] |
590dfb2c6dff
Updating spec-files to include All Linguas patches
cm152228
parents:
4133
diff
changeset
|
234 |
- Added gnome-cups-manager-10-g11n-alllinguas.diff to add cs,hu locales |
590dfb2c6dff
Updating spec-files to include All Linguas patches
cm152228
parents:
4133
diff
changeset
|
235 |
|
3279
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
236 |
* 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
|
237 |
- Updated l10n content to gnome-cups-manager-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
|
238 |
|
3628 | 239 |
* Wed Jul 07 2004 - [email protected] |
240 |
- ported to rpm4 |
|
241 |
||
3263 | 242 |
* Wed Jul 07 2004 - [email protected] |
243 |
- added "-j $CPUS" to make to speed up builds |
|
244 |
||
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
245 |
* 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
|
246 |
- Updated l10n content to gnome-cups-manager-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
|
247 |
|
2350 | 248 |
* Mon Mar 29 2004 - [email protected] |
249 |
- Updated l10n content to gnome-cups-manager-l10n-po-1.0.tar.bz2 |
|
250 |
||
2220 | 251 |
* Tue Mar 16 2004 - [email protected] |
252 |
- Replaced gnome-cups-manager-06-trans-emblem-icon.diff |
|
253 |
with gnome-cups-manager-06-g11n-icon.diff to fix 4957964 |
|
254 |
- Replaced gnome-cups-manager-07-i18n-printer-dialog.diff |
|
255 |
with gnome-cups-manager-07-g11n-i18n-ui.diff to fix 4969680, 4955053, 4993651 |
|
256 |
- Added gnome-cups-manager-09-g11n-potfiles.diff |
|
2155 | 257 |
* Fri Mar 05 2004 - Vijaykumar patwari <[email protected]> |
258 |
- Added patch to show help button and provided appopriate links. |
|
259 |
||
1806 | 260 |
* Thu Feb 19 2004 - <[email protected]> |
261 |
- Distro update to Cinnabar, l10n added |
|
262 |
- Updated %files, remove .la install |
|
263 |
||
1497 | 264 |
* Wed Jan 07 2004 - <[email protected]> |
265 |
- Add patch #04 to fix broken compilation |
|
266 |
- Do full automake/autoconf of sources. |
|
267 |
||
1235 | 268 |
* Fri Oct 10 2003 - <[email protected]> |
269 |
- Uprev to 0.17 for Quicksilver release. Drop the icon theme patch |
|
270 |
which is now in 0.17 release. Merged gnome-cups-manager-02-password-not-visble.diff |
|
271 |
and gnome-cups-manager-05-masked-smb-username-passwd.diff into |
|
272 |
gnome-cups-manager-03-smb-changes.diff |
|
273 |
||
1140 | 274 |
* Thu Sep 18 2003 - <[email protected]> |
275 |
- Got patch from Bala for 4915752. Integrate for build 09 |
|
276 |
by modifying gnome-cups-manager-05-masked-smb-username-passwd.diff |
|
277 |
||
1135 | 278 |
* Mon Sep 15 2003 - <[email protected]> |
279 |
- Changed print test page to Java Desktop also store test pages |
|
280 |
in bz2 compressed format |
|
281 |
||
1058 | 282 |
* Thu Aug 14 2003 - <[email protected]> |
283 |
- remove *.a, *.la |
|
284 |
||
697 | 285 |
* Mon Jul 21 2003 - [email protected] |
286 |
- The previous fix has a bug in that it did not separate out the smb |
|
287 |
workgroup from location. Rework the patch so that the patch id is |
|
288 |
reused but with the additional fix. Bump up the rev. |
|
289 |
||
544 | 290 |
* Fri Jul 11 2003 - [email protected] |
291 |
- Modified property dialog to allow smb password to be masked out and |
|
292 |
fixed created a couple of error handling functions to prevent user from |
|
293 |
crashing gnome-cups-manager. |
|
490 | 294 |
* Tue Jul 08 2003 - [email protected] |
295 |
- Set the window icons as appropriate |
|
481 | 296 |
* Tue Jul 08 2003 - [email protected] |
297 |
- Create a patch to prompt for root password first if user is not root |
|
298 |
instead of prompt for root password at the end. |
|
299 |
* Tue Jul 08 2003 - [email protected] |
|
300 |
- Up release to 3 to include the couple of patches put in earlier |
|
301 |
which include the use of Sun sample PostScript files and changed |
|
302 |
the glade file to mask the password field. |
|
327 | 303 |
* Thu Jun 26 2003 - [email protected] |
304 |
- Initial Sun release with cups integration |