From 8936e09d54d3ff60b93c61d1d11e9ef5ad8c5f5b Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Fri, 5 Jan 2024 18:18:34 +0100 Subject: [PATCH] automatic version update by autodist [release 1.4.4-1mamba;Sun Apr 27 2014] --- README.md | 3 + ...wprinter-smb_select_function-argsfix.patch | 12 ++ ...dbus-service-fix-dbus-signature-typo.patch | 11 ++ system-config-printer.spec | 180 ++++++++++++++++++ 4 files changed, 206 insertions(+) create mode 100644 system-config-printer-1.4.1-newprinter-smb_select_function-argsfix.patch create mode 100644 system-config-printer-1.4.3-scp-dbus-service-fix-dbus-signature-typo.patch create mode 100644 system-config-printer.spec diff --git a/README.md b/README.md index 0c0d146..9e29e38 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # system-config-printer +Helper functions and classes for using CUPS. +The purpose of the tool is to configure a CUPS server (often the local machine) using the CUPS API. The tool is written in Python, using pygtk for the graphical parts and with some Python bindings (pycups) for the CUPS API. + diff --git a/system-config-printer-1.4.1-newprinter-smb_select_function-argsfix.patch b/system-config-printer-1.4.1-newprinter-smb_select_function-argsfix.patch new file mode 100644 index 0000000..e5c9aea --- /dev/null +++ b/system-config-printer-1.4.1-newprinter-smb_select_function-argsfix.patch @@ -0,0 +1,12 @@ +diff -Nru system-config-printer-1.4.1.orig/newprinter.py system-config-printer-1.4.1/newprinter.py +--- system-config-printer-1.4.1.orig/newprinter.py 2013-05-09 13:10:43.000000000 +0200 ++++ system-config-printer-1.4.1/newprinter.py 2013-08-07 11:37:25.399433951 +0200 +@@ -2201,7 +2201,7 @@ + "configuration."), + parent=self.NewPrinterWindow) + +- def smb_select_function (self, model, path, path_selected, data): ++ def smb_select_function (self, widget, model, path, path_selected, data): + """Don't allow this path to be selected unless it is a leaf.""" + iter = self.smb_store.get_iter (path) + return not self.smb_store.iter_has_child (iter) diff --git a/system-config-printer-1.4.3-scp-dbus-service-fix-dbus-signature-typo.patch b/system-config-printer-1.4.3-scp-dbus-service-fix-dbus-signature-typo.patch new file mode 100644 index 0000000..ea7e26a --- /dev/null +++ b/system-config-printer-1.4.3-scp-dbus-service-fix-dbus-signature-typo.patch @@ -0,0 +1,11 @@ +--- system-config-printer-1.4.2+20130920/scp-dbus-service.py 2013-09-20 22:26:27.000000000 +0200 ++++ system-config-printer-1.4.2+20130920.new/scp-dbus-service.py 2013-10-24 13:12:44.998717234 +0200 +@@ -367,7 +367,7 @@ + pass + + @dbus.service.signal(dbus_interface=CONFIG_NEWPRINTERDIALOG_IFACE, +- signature='a{s}') ++ signature='a(s)') + def DriverDownloadChecked(self, installed_files): + pass + diff --git a/system-config-printer.spec b/system-config-printer.spec new file mode 100644 index 0000000..320bfb7 --- /dev/null +++ b/system-config-printer.spec @@ -0,0 +1,180 @@ +%define majver %(echo %version | cut -d. -f1-2) + +Name: system-config-printer +Version: 1.4.4 +Release: 1mamba +Summary: Helper functions and classes for using CUPS +Group: System/Libraries/Python +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://cyberelk.net/tim/software/system-config-printer/ +Source: http://cyberelk.net/tim/data/system-config-printer/%majver/system-config-printer-%{version}.tar.xz +Patch0: system-config-printer-1.4.1-newprinter-smb_select_function-argsfix.patch +Patch1: system-config-printer-1.4.3-scp-dbus-service-fix-dbus-signature-typo.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: desktop-file-utils +BuildRequires: libpython-devel +BuildRequires: python-pynotify +BuildRequires: udev-devel +## AUTOBUILDREQ-END +BuildRequires: intltool +BuildRequires: xmlto +BuildRequires: desktop-file-utils +BuildRequires: python-pynotify +Requires: python >= %python_version +Provides: python-cupshelper +Obsoletes: python-cupshelper +Provides: python-cupshelpers +Obsoletes: python-cupshelpers +Requires: desktop-file-utils +Requires: python-pynotify +Requires: python-smbc +Requires: python-cups +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Helper functions and classes for using CUPS. +The purpose of the tool is to configure a CUPS server (often the local machine) using the CUPS API. The tool is written in Python, using pygtk for the graphical parts and with some Python bindings (pycups) for the CUPS API. + +%prep +%setup -q -n system-config-printer-%{version} +#%patch0 -p1 +#%patch1 -p1 + +%build +%configure \ + --with-udev-rules +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall udevhelperdir=/lib/udev/ + +%find_lang system-config-printer + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -f system-config-printer.lang +%defattr(-,root,root) +%{_sysconfdir}/cupshelpers/preferreddrivers.xml +%{_sysconfdir}/dbus-1/system.d/com.redhat.NewPrinterNotification.conf +%{_sysconfdir}/dbus-1/system.d/com.redhat.PrinterDriversInstaller.conf +%{_sysconfdir}/xdg/autostart/print-applet.desktop +%{_bindir}/install-printerdriver +%{_bindir}/system-config-printer +%{_bindir}/system-config-printer-applet +%{_bindir}/scp-dbus-service +/lib/systemd/system/configure-printer@.service +/lib/udev/udev-add-printer +/lib/udev/udev-configure-printer +/lib/udev/rules.d/70-printers.rules +%{_datadir}/dbus-1/interfaces/org.fedoraproject.Config.Printing.xml +%{_datadir}/dbus-1/services/org.fedoraproject.Config.Printing.service +%{_datadir}/applications/system-config-printer.desktop +%dir %{_datadir}/system-config-printer +%{_datadir}/system-config-printer/* +%{python_sitelib}/cupshelpers/* +%{python_sitelib}/cupshelpers-1.0-py*.egg-info +%{_mandir}/man1/system-config-printer.1* +%{_mandir}/man1/system-config-printer-applet.1* + +%changelog +* Sun Apr 27 2014 Automatic Build System 1.4.4-1mamba +- automatic version update by autodist + +* Mon Nov 11 2013 Silvan Calarco 1.4.3-2mamba +- added patch to fix typo in scp + +* Fri Nov 08 2013 Automatic Build System 1.4.3-1mamba +- automatic version update by autodist + +* Tue Aug 27 2013 Automatic Build System 1.4.2-1mamba +- automatic update by autodist + +* Wed Aug 07 2013 Silvan Calarco 1.4.1-3mamba +- added a patch to fix number of arguments in internal function when adding a new printer + +* Wed May 29 2013 Silvan Calarco 1.4.1-2mamba +- python 2.7 mass rebuild + +* Sat May 11 2013 Automatic Build System 1.4.1-1mamba +- automatic version update by autodist + +* Wed May 08 2013 Automatic Build System 1.4.0-1mamba +- automatic version update by autodist + +* Mon Apr 01 2013 Automatic Build System 1.3.13-1mamba +- automatic version update by autodist + +* Mon Feb 04 2013 Silvan Calarco 1.3.12-2mamba +- rebuilt with systemd + +* Fri Oct 12 2012 Automatic Build System 1.3.12-1mamba +- automatic version update by autodist + +* Wed Aug 15 2012 Automatic Build System 1.3.11-1mamba +- automatic version update by autodist + +* Fri Jun 15 2012 Automatic Build System 1.3.9-1mamba +- automatic version update by autodist + +* Sat Oct 08 2011 Automatic Build System 1.3.7-1mamba +- automatic version update by autodist + +* Tue Oct 04 2011 Automatic Build System 1.3.6-1mamba +- automatic version update by autodist + +* Sun Aug 21 2011 Silvan Calarco 1.3.5-1mamba +- update to 1.3.5 + +* Tue May 03 2011 Automatic Build System 1.2.8-1mamba +- automatic update by autodist + +* Wed Feb 23 2011 Automatic Build System 1.2.7-1mamba +- automatic update by autodist + +* Wed Jan 19 2011 Automatic Build System 1.2.6-1mamba +- automatic update by autodist + +* Mon Dec 06 2010 Automatic Build System 1.2.5-1mamba +- automatic update by autodist + +* Sat Aug 21 2010 Davide Madrisan 1.2.3-2mamba +- add a requirement for python-cups +- build requires udev-devel + +* Wed Jun 30 2010 Automatic Build System 1.2.3-1mamba +- automatic update by autodist + +* Tue Jun 22 2010 Automatic Build System 1.2.2-1mamba +- automatic update by autodist + +* Mon Apr 05 2010 Silvan Calarco 1.2.0-1mamba +- update to 1.2.0 + +* Mon Jan 25 2010 Automatic Build System 1.1.16-1mamba +- automatic update by autodist + +* Thu Oct 15 2009 Automatic Build System 1.1.13-1mamba +- automatic update by autodist + +* Mon Aug 31 2009 Automatic Build System 1.1.12-1mamba +- automatic update by autodist + +* Tue Aug 11 2009 Automatic Build System 1.1.11-1mamba +- automatic update by autodist + +* Mon Jul 27 2009 Automatic Build System 1.1.10-1mamba +- automatic update by autodist + +* Thu Jul 02 2009 Automatic Build System 1.1.8-1mamba +- automatic update by autodist + +* Tue Jun 16 2009 Silvan Calarco 1.1.7-2mamba +- added requirement for python-smbc + +* Tue Jun 16 2009 Silvan Calarco 1.1.7-1mamba +- package created by autospec