File system-config-printer.spec of Package system-config-printer
#
# spec file for package system-config-printer (Version 1.1.4)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: system-config-printer
License: GPL v2 or later
Group: Hardware/Printing
Version: 1.1.4
Release: 1
Summary: A printer administration tool
Url: http://cyberelk.net/tim/software/system-config-printer/
Source0: http://cyberelk.net/tim/data/system-config-printer/1.0.x/system-config-printer-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE system-config-printer-icon-brp-friendly.patch vuntz@novell.com -- brp checks don't like the printer icon name, so we have to use something else
Patch13: system-config-printer-icon-brp-friendly.patch
# PATCH-FIX-OPENSUSE system-config-printer-cups-autoconfig-notifications.patch vuntz@novell.com -- Integration with cups-autoconfig. This will be removed after 11.1, since we'll move to hal-cups-utils.
Patch16: system-config-printer-cups-autoconfig-notifications.patch
# PATCH-FIX-OPENSUSE system-config-printer-hide-my-default-printer.patch vuntz@novell.com -- Hide my-default-printer in the menus
Patch17: system-config-printer-hide-my-default-printer.patch
# PATCH-FIX-OPENSUSE system-config-printer-firewall-menu.patch vuntz@novell.com -- Fix string to mention correct path in menus to firewall tool
Patch18: system-config-printer-firewall-menu.patch
# PATCH-FIX-UPSTREAM system-config-printer-bnc456110-non-blocking-probe.patch bnc456110 vuntz@novell.com -- Make the probing code not block the UI
Patch19: system-config-printer-bnc456110-non-blocking-probe.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Obsoletes: gnome-cups-manager <= 0.33
# For directory ownership
BuildRequires: dbus-1
BuildRequires: desktop-file-utils
BuildRequires: fdupes
BuildRequires: gnome-icon-theme
BuildRequires: gnome-patch-translation
# For directory ownership
BuildRequires: hicolor-icon-theme
BuildRequires: intltool
BuildRequires: python-devel
BuildRequires: python-xml
BuildRequires: update-desktop-files
BuildRequires: xmlto
Requires: cups
Requires: dbus-1-x11
Requires: dbus-1-python
Requires: desktop-file-utils
Requires: python-cups
Requires: python-gnome
Requires: python-gobject2
Requires: python-gtk
Requires: python-notify
Requires: python-smbc
Requires: %{name}-lang = %{version}
%py_requires
Recommends: cups-pk-helper
%description
system-config-printer is a graphical user interface that allows the
user to configure a CUPS print server.
Authors:
--------
Florian Festi <ffesti@redhat.com>
Tim Waugh <twaugh@redhat.com>
%lang_package
%prep
%setup -q
gnome-patch-translation-prepare
%patch13 -p1
%patch16 -p1
%patch17 -p1
%patch18 -p1
%patch19 -p1
gnome-patch-translation-update
%build
%configure
%install
%makeinstall
for size in 8x8 16x16 22x22 24x24 32x32 48x48; do
if test -f %{_datadir}/icons/gnome/$size/devices/printer.png; then
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/$size/apps
cp -a %{_datadir}/icons/gnome/$size/devices/printer.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/$size/apps/%{name}.png
fi
done
%suse_update_desktop_file my-default-printer X-SuSE-PrintingUtility X-SuSE-ControlCenter-Hardware
%suse_update_desktop_file print-applet
%suse_update_desktop_file system-config-printer X-SuSE-PrintingUtility X-SuSE-ControlCenter-Hardware
%suse_update_desktop_file manage-print-jobs
%fdupes $RPM_BUILD_ROOT/%{py_sitedir}
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc ChangeLog README
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/newprinternotification.conf
%exclude %{py_sitedir}/cupshelpers/*.pyc
%{py_sitedir}/cupshelpers
%{py_sitedir}/cupshelpers*.egg-info
%{_bindir}/%{name}
%{_bindir}/%{name}-applet
%{_bindir}/my-default-printer
%{_datadir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/*
%{_sysconfdir}/xdg/autostart/*.desktop
%{_mandir}/man1/*
%files lang -f %{name}.lang
%changelog
* Tue Feb 24 2009 vuntz@novell.com
- Add system-config-printer-bnc456110-non-blocking-probe.patch:
make the probing code non-blocking for the UI.
Fix bnc#456110.
* Mon Feb 23 2009 vuntz@novell.com
- Add system-config-printer-firewall-menu.patch: fix string to
mention the correct path in menus to access the firewall tool.
Fix bnc#442106.
- Use gnome-patch-translation for the new string.
(Thanks to Stanislav Brabec for this)
* Sun Feb 22 2009 vuntz@novell.com
- Update to version 1.1.4 (this is not a complete list of changes
since upstream uses git, but some changes aren't listed in
ChangeLog):
+ Don't display status icon for completed jobs
+ Only add job to the active set if it is active; otherwise,
remove it from the set if it is there.
+ If the emptiness of the active set has changed, update the
status icon.
+ Handle D-Bus failures when connecting to the session bus
(Jockey) (rh#484402)
+ Don't show wait window when adding a new printer, as that may
require an authentication dialog and we don't want them
competing for focus (rh#484960)
+ Don't grab keyboard and pointer when displaying authentication
dialog. Instead let the window manager prevent keyboard input
accidentally going to the wrong window.
+ Don't display a notification when authentication is required,
just go straight to the authentication dialog. Don't grab
keyboard and pointer for that dialog and instead let the window
manager prevent keyboard input accidentally going to the wrong
window.
+ Otptions: Check constraints in reverse as well, so that
constraint checking is symmetrical.
+ Don't allow PPD changes when there are conflicts
+ Support for auto-detection of printers vis hal-cups-utils
without hal-cups-utils creating a queue, especially if there is
no driver specifically assigned to the detected printer.
+ Skip selection of manufacturer, model, and driver in the
new-printer wizard if an exact driver match has been found.
+ Added functionality to automatically recognize whether the
proprietary plug-in of HPLIP is useful or even required and to
ask the user whether he want to download and install it.
+ Fixed "hp-info" calls: There should be no space between "-d"
and the "URI" to work around HPLIP option parsing bug.
+ Return None if the "fax-type" is 0, this means that fax is not
available on the given printer.
+ Fixed switch between the notification for the case that a queue
got created and the case that no queue got created.
+ Perform lowercase operations in locale-independent manner.
+ Merge cups-pk-helper branch.
+ Updated translations.
- Split cups-pk-helper and pysmbc in their own packages.
- Remove BuildRequires because of the split: PolicyKit-devel,
cups-devel, dbus-1-glib-devel, epydoc, gtk2-devel,
libsmbclient-devel.
- Remove BuildRequires: gettext-devel.
- Add Requires on python-smbc.
- Add Recommends on cups-pk-helper.
- Drop system-config-printer-policykit.patch: accepted upstream!
- Drop system-config-printer-more-checks.patch: upstream improved
the PolicyKit support to not require this.
- Drop system-config-printer-python-prefix.patch: was needed only
for pysmbc.
- Do not call autoreconf anymore.
* Thu Feb 05 2009 vuntz@novell.com
- Drop system-config-printer-install-python.patch after discussion
on opensuse-packaging. Update the file list accordingly.
* Thu Feb 05 2009 vuntz@novell.com
- Update to version 1.1.3:
+ Refresh server settings when the advanced server settings
dialog has finished.
+ Better default height for jobs window.
+ Put waiting cursor when filling make/model lists.
+ Find parent window to set Conflicts dialogtransient for.
+ Various fixes for conflicts button.
+ Fix the potential dbus security issue with send_interface
+ Fixed traceback while fetching hpfax device ID (lp#321139)
+ Use authenticated connection, except when printing the test
page.
+ Don't make the troubleshooter window transient for the main
window (rh#481505)
- Drop system-config-printer-bnc468379-dbus-send-dest.patch: fixed
upstream.
- Respin system-config-printer-install-python.patch.
* Mon Feb 02 2009 mboman@suse.de
- Update to version 1.1.2:
+ Prevent traceback.
+ Collapse/expand device rows on activation.
+ Avoid traceback with raw queues.
+ Added accessibility relations
+ Handle notification closure for re-connected printers correctly.
+ Advertise correct defaults for page-left, page-right, page-top and
page-bottom job options (rh#468553).
* Tue Jan 27 2009 vuntz@novell.com
- Update to pysmbc 1.0.6 (no NEWS included).
- Drop pysmbc-bnc433994-crash.patch: fixed upstream.
- Really drop system-config-printer-prefill-name-descr.patch.
- Minor cleanup of the file list.
- Use system-config-printer-policykit.patch from my git tree.
- Add cups-pk-helper-bnc468389-dbus-send-dest.patch and
system-config-printer-bnc468379-dbus-send-dest.patch to add
send_destination in the dbus policies. Fix bnc#468379 and
bnc#468387.
* Sun Jan 11 2009 mboman@suse.de
- Fix a small issue in system-config-printer-policykit.patch
* Mon Jan 05 2009 mboman@suse.de
- Update to version 1.1.1:
+ Too many fixes/changes. Please see Changelog for full details.
- Remove system-config-printer-git1.0.x.patch and
system-config-printer-git1.0.x-po.patch due to version upgrade
- Remove system-config-printer-remove-redhat-base.patch. Fixed upstream
- Remove system-config-printer-prefill-name-descr.patch. Fixed upstream
- Remove pycups package, already in the distro as python-cups
- Respin system-config-printer-install-python.patch
- Respin system-config-printer-policykit.patch
* Tue Dec 16 2008 coolo@suse.de
- require lang subpackage
* Fri Nov 21 2008 vuntz@novell.com
- Update cups-pk-helper to 0.0.3 (there is no upstream project, but
I still version the code):
+ make various checks to be sure that the arguments passed over
dbus are valid.
+ fix a major issue with many options never being changed
+ implement various dbus methods that were missing until there,
so that the old authentication dialog never appears.
+ add more fine-grained PolicyKit policies.
This is actually needed for bnc#439286.
- Update system-config-printer-policykit.patch to match the
cups-pk-helper update.
- Drop cups-pk-helper-acceptjobs.patch (fixed in 0.0.3).
- Add system-config-printer-more-checks.patch, to avoid a few
uncaught exceptions.
* Tue Oct 28 2008 vuntz@novell.com
- Add system-config-printer-prefill-name-descr.patch to prefill
name and description of new printers. Fix bnc#433633.
* Mon Oct 27 2008 vuntz@novell.com
- Add cups-pk-helper-acceptjobs.patch to make cups-pk-helper
correctly handle AcceptJobs requests. This is essential to have
new printers configured with system-config-printer working.
Fix bnc#433634.
- Add system-config-printer-hide-my-default-printer.patch to hide
my-default-printer from the menus. Note that
system-config-printer already provides this functionality.
- Update system-config-printer-policykit.patch so that we don't
show the old password prompt after changing something in a
printer.
- Obsoletes gnome-cups-manager. No Provides, since it's not the
same application...
* Thu Oct 23 2008 vuntz@novell.com
- Add system-config-printer-cups-autoconfig-notifications.patch.
We display notifications for printers automatically configured
by cups-autoconfig. This is the missing piece for dropping
gnome-volume-manager.
* Fri Oct 17 2008 vuntz@novell.com
- Update to version 1.0.8:
+ Handle IPP_FORBIDDEN.
+ Use modelName from custom PPD to suggest name for new printer.
+ Avoid display problem with installable options.
+ Better matching for Lexmark printers.
+ Catch exceptions from advanced server settings dialog.
+ Added some missing OpenPrinting query fields.
+ Jockey support added.
+ Updated translations.
(summary of changes taken from the Fedora package)
- Remove system-config-printer-forbidden.patch: fixed upstream.
- Add pysmbc-bnc433994-crash.patch to potentially fix a crash when
browsing smb printers. Should fix bnc#433994.
- Add system-config-printer-git1.0.x.patch to include fixes from
the 1.0.x branch. This fixes some crashes, and some SMB
authentication issues. Should fix bnc#433992.
- Add system-config-printer-git1.0.x-po.patch to include updated
translations from the 1.0.x branch.
- Update system-config-printer-icon-brp-friendly.patch.
* Thu Oct 16 2008 vuntz@novell.com
- Add more categories to my-default-printer.desktop and
system-config-printer.desktop so that they appear in the control
center. Fix bnc#433605.
* Fri Oct 03 2008 vuntz@novell.com
- Use %%{py_sitedir} instead of %%{_libdir}/python*/site-packages
* Fri Sep 26 2008 vuntz@novell.com
- Implement fate#4161 and fate#4162:
+ add cups-pk-helper, which is a PolicyKit helper implementing
some parts of the API exposed by pycups.
+ add system-config-printer-policykit.patch that adds a "backend"
for system-config-printer to use cups-pk-helper to do the CUPS
calls.
- It's been discussed a bit with upstream, but no agreement was
reached on this so far. The patch is not intrusive, so it's the
best solution right now. I'll try to push it again upstream.
* Wed Sep 17 2008 vuntz@suse.de
- Copy the printer icon from gnome-icon-theme and use it as
system-config-printer in all desktop files. Add
system-config-printer-icon-brp-friendly.patch for this.
- Clean up packaging, and use fdupes.
* Wed Sep 10 2008 vuntz@suse.de
- Push to Factory.
* Fri Sep 05 2008 vuntz@novell.com
- Add missing system-config-printer-forbidden.patch.
- Add system-config-printer-install-python.patch to install python
files where they should live. Also fixes the issue where the
programs couldn't be run (because they were not +x).
* Fri Sep 05 2008 vuntz@novell.com
- Update to version 1.0.7.
+ See ChangeLog for details.
- Update pycups to 1.9.42 and pysmbc to 1.0.5.
- Remove pysmbc-debug.patch (fixed upstream) and take
system-config-printer-forbidden.patch from Fedora package.
* Wed Aug 27 2008 vuntz@novell.com
- Update to version 1.0.6.
+ See ChangeLog for details.
* Wed Jul 30 2008 vuntz@novell.com
- Import package, based on the one from fedora and one the one on
from home:chrismrivera in the build service.