rpms/kdeadmin/devel kdeadmin-4.2.85-printing.patch, NONE, 1.1 kdeadmin.spec, 1.134, 1.135 kdeadmin-4.2.2-printing.patch, 1.2, NONE
Kevin Kofler
kkofler at fedoraproject.org
Wed May 20 14:13:17 UTC 2009
- Previous message: rpms/plexus-containers/devel plexus-containers.spec, 1.1.2.1, 1.1.2.2
- Next message: rpms/java-1.6.0-openjdk/F-10 .cvsignore, 1.48, 1.49 java-1.6.0-openjdk-sparc-fixes.patch, 1.1, 1.2 java-1.6.0-openjdk.spec, 1.107, 1.108 sources, 1.54, 1.55 java-1.6.0-openjdk-lcms.patch, 1.4, NONE java-1.6.0-openjdk-pulsejava.patch, 1.1, NONE java-1.6.0-openjdk-securitypatches.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: kkofler
Update of /cvs/pkgs/rpms/kdeadmin/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv12896/devel
Modified Files:
kdeadmin.spec
Added Files:
kdeadmin-4.2.85-printing.patch
Removed Files:
kdeadmin-4.2.2-printing.patch
Log Message:
* Wed May 20 2009 Kevin Kofler <Kevin at tigcc.ticalc.org> - 4.2.85-2
- reenable sytem-config-printer-kde
- rebase printing patch, drop upstreamed hunks
kdeadmin-4.2.85-printing.patch:
--- NEW FILE kdeadmin-4.2.85-printing.patch ---
diff -Nur kdeadmin-4.2.85/system-config-printer-kde/CMakeLists.txt kdeadmin-4.2.85-printing/system-config-printer-kde/CMakeLists.txt
--- kdeadmin-4.2.85/system-config-printer-kde/CMakeLists.txt 2009-04-28 15:47:13.000000000 +0200
+++ kdeadmin-4.2.85-printing/system-config-printer-kde/CMakeLists.txt 2009-05-20 16:00:15.000000000 +0200
@@ -5,29 +5,9 @@
macro_optional_find_package(PythonLibrary)
macro_optional_find_package(SIP)
-macro_optional_find_package(PyQt4)
-IF(NOT PYQT4_FOUND)
- macro_log_feature(PYQT4_FOUND "PyQt4" "PyQt4 was not found. It is needed by system-config-printer-kde to run. (Use -DINSTALL_SYSTEM_CONFIG_PRINTER=TRUE to install anyway)" "http://www.riverbankcomputing.co.uk/pyqt/" FALSE)
-ENDIF(NOT PYQT4_FOUND)
-
-macro_optional_find_package(PyKDE4)
-IF(NOT PYKDE4_FOUND)
- macro_log_feature(PYKDE_FOUND "PyKDE4" "PyKDE4 was not found. It is needed by system-config-printer-kde to run. (Use -DINSTALL_SYSTEM_CONFIG_PRINTER=TRUE to install anyway)" "http://websvn.kde.org/trunk/KDE/kdebindings/python/pykde4/" FALSE)
-ENDIF(NOT PYKDE4_FOUND)
-
-macro_optional_find_package(PyCups)
-IF(NOT PYCUPS_FOUND)
- macro_log_feature(PYCUPS_FOUND "PyCups" "PyCups was not found. It is needed by system-config-printer-kde to run. (Use -DINSTALL_SYSTEM_CONFIG_PRINTER=TRUE to install anyway)" "http://cyberelk.net/tim/software/pycups/" FALSE)
-ENDIF(NOT PYCUPS_FOUND)
-
-macro_optional_find_package(SystemConfigPrinter)
-IF(NOT SYSTEMCONFIGPRINTER_FOUND)
- macro_log_feature(SYSTEMCONFIGPRINTER_FOUND "system-config-printer" "system-config-printer was not found. Some of its modules (cupshelpers.py, config.py, smburi.py and debug.py) are required by system-config-printer-kde." "http://cyberelk.net/tim/software/system-config-printer/" FALSE)
-ENDIF(NOT SYSTEMCONFIGPRINTER_FOUND)
-
-IF(PYQT4_FOUND AND PYKDE4_FOUND AND PYCUPS_FOUND AND SYSTEMCONFIGPRINTER_FOUND)
- SET(INSTALL_SYSTEM_CONFIG_PRINTER TRUE)
-ENDIF(PYQT4_FOUND AND PYKDE4_FOUND AND PYCUPS_FOUND AND SYSTEMCONFIGPRINTER_FOUND)
+if(PYTHONLIBRARY_FOUND)
+ set(INSTALL_SYSTEM_CONFIG_PRINTER TRUE)
+endif(PYTHONLIBRARY_FOUND)
IF(INSTALL_SYSTEM_CONFIG_PRINTER)
install( FILES
@@ -36,6 +16,8 @@
system-config-printer-kde.py
options.py
optionwidgets.py
+ debug.py
+ smburi.py
ipp-browse-dialog.ui
smb-browse-dialog.ui
DESTINATION ${DATA_INSTALL_DIR}/system-config-printer-kde )
diff -Nur kdeadmin-4.2.85/system-config-printer-kde/debug.py kdeadmin-4.2.85-printing/system-config-printer-kde/debug.py
--- kdeadmin-4.2.85/system-config-printer-kde/debug.py 1970-01-01 01:00:00.000000000 +0100
+++ kdeadmin-4.2.85-printing/system-config-printer-kde/debug.py 2009-05-20 15:57:50.000000000 +0200
@@ -0,0 +1,55 @@
+#!/usr/bin/env python
+
+## Copyright (C) 2008 Red Hat, Inc.
+## Copyright (C) 2008 Tim Waugh <twaugh at redhat.com>
+
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+import sys
+import traceback
+
+_debug=False
+def debugprint (x):
+ if _debug:
+ try:
+ print >>sys.stderr, x
+ except:
+ pass
+
+def get_debugging ():
+ return _debug
+
+def set_debugging (d):
+ global _debug
+ _debug = d
+
+def fatalException (exitcode=1):
+ nonfatalException (type="fatal", end="Exiting")
+ sys.exit (exitcode)
+
+def nonfatalException (type="non-fatal", end="Continuing anyway.."):
+ d = get_debugging ()
+ set_debugging (True)
+ debugprint ("Caught %s exception. Traceback:" % type)
+ (type, value, tb) = sys.exc_info ()
+ tblast = traceback.extract_tb (tb, limit=None)
+ if len (tblast):
+ tblast = tblast[:len (tblast) - 1]
+ extxt = traceback.format_exception_only (type, value)
+ for line in traceback.format_tb(tb):
+ debugprint (line.strip ())
+ debugprint (extxt[0].strip ())
+ debugprint (end)
+ set_debugging (d)
diff -Nur kdeadmin-4.2.85/system-config-printer-kde/smburi.py kdeadmin-4.2.85-printing/system-config-printer-kde/smburi.py
--- kdeadmin-4.2.85/system-config-printer-kde/smburi.py 1970-01-01 01:00:00.000000000 +0100
+++ kdeadmin-4.2.85-printing/system-config-printer-kde/smburi.py 2009-05-20 15:57:50.000000000 +0200
@@ -0,0 +1,95 @@
+#!/usr/bin/env python
+
+## system-config-printer
+
+## Copyright (C) 2006, 2007, 2008 Red Hat, Inc.
+## Copyright (C) 2006, 2007 Florian Festi <ffesti at redhat.com>
+## Copyright (C) 2006, 2007, 2008 Tim Waugh <twaugh at redhat.com>
+
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+import urllib
+
+class SMBURI:
+ def __init__ (self,
+ uri=None,
+ group='', host='', share='', user='', password=''):
+ if uri:
+ if group or host or share or user or password:
+ raise RuntimeError
+
+ if uri.startswith ("smb://"):
+ uri = uri[6:]
+
+ self.uri = uri
+ else:
+ self.uri = self._construct (group, host, share,
+ user=user, password=password)
+
+ def _construct (self, group, host, share, user='', password=''):
+ uri_password = ''
+ if password:
+ uri_password = ':' + urllib.quote (password)
+ if user:
+ uri_password += '@'
+ uri = "%s%s%s" % (urllib.quote (user),
+ uri_password,
+ urllib.quote (group))
+ if len (group) > 0:
+ uri += '/'
+ uri += urllib.quote (host)
+ if len (share) > 0:
+ uri += "/" + urllib.quote (share)
+ return uri
+
+ def get_uri (self):
+ return self.uri
+
+ def sanitize_uri (self):
+ group, host, share, user, password = self.separate ()
+ return self._construct (group, host, share)
+
+ def separate (self):
+ uri = self.get_uri ()
+ user = ''
+ password = ''
+ auth = uri.find ('@')
+ if auth != -1:
+ u = uri[:auth].find(':')
+ if u != -1:
+ user = uri[:u]
+ password = uri[u + 1:auth]
+ else:
+ user = uri[:auth]
+ uri = uri[auth + 1:]
+ sep = uri.count ('/')
+ group = ''
+ if sep == 2:
+ g = uri.find('/')
+ group = uri[:g]
+ uri = uri[g + 1:]
+ if sep < 1:
+ host = ''
+ else:
+ h = uri.find('/')
+ host = uri[:h]
+ uri = uri[h + 1:]
+ p = host.find(':')
+ if p != -1:
+ host = host[:p]
+ share = uri
+ return (urllib.unquote (group), urllib.unquote (host),
+ urllib.unquote (share),
+ urllib.unquote (user), urllib.unquote (password))
diff -Nur kdeadmin-4.2.85/system-config-printer-kde/system-config-printer-kde.py kdeadmin-4.2.85-printing/system-config-printer-kde/system-config-printer-kde.py
--- kdeadmin-4.2.85/system-config-printer-kde/system-config-printer-kde.py 2009-04-15 12:26:27.000000000 +0200
+++ kdeadmin-4.2.85-printing/system-config-printer-kde/system-config-printer-kde.py 2009-05-20 16:05:17.000000000 +0200
@@ -34,7 +34,7 @@
import sys, os, time, traceback, re, tempfile, httplib, thread
#load modules from system-config-printer-common (debug, smburi), change path here if you have it installed elsewhere
-SYSTEM_CONFIG_PRINTER_DIR = "/usr/share/system-config-printer"
+SYSTEM_CONFIG_PRINTER_DIR = "/usr/share/kde4/apps/system-config-printer-kde"
if os.path.exists(SYSTEM_CONFIG_PRINTER_DIR + "/debug.py"):
sys.path.append(SYSTEM_CONFIG_PRINTER_DIR)
@@ -66,7 +66,6 @@
cups.require ("1.9.27")
# These come from system-config-printer
-import config
import cupshelpers, options
from optionwidgets import OptionWidget
from smburi import SMBURI
Index: kdeadmin.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kdeadmin/devel/kdeadmin.spec,v
retrieving revision 1.134
retrieving revision 1.135
diff -u -p -r1.134 -r1.135
--- kdeadmin.spec 17 May 2009 15:40:11 -0000 1.134
+++ kdeadmin.spec 20 May 2009 14:12:47 -0000 1.135
@@ -1,10 +1,9 @@
-# disable, for now, until kdebindings builds/works again
-%define system_config_printer_kde 0
+%define system_config_printer_kde 1
Name: kdeadmin
Epoch: 7
Version: 4.2.85
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: K Desktop Environment - Administrative tools
Group: User Interface/Desktops
@@ -13,8 +12,8 @@ URL: http://www.kde.org/
Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-# FIXME/TODO: update and (preferably) upstream this -- Rex
-Patch0: kdeadmin-4.2.2-printing.patch
+# FIXME/TODO: upstream this -- Rex
+Patch0: kdeadmin-4.2.85-printing.patch
Source1: kuser.pam
Source2: kuser.pamd
@@ -59,7 +58,7 @@ a CUPS print server.
%prep
%setup -q
-#patch0 -p1 -b .printing
+%patch0 -p1 -b .printing
%build
@@ -151,6 +150,10 @@ fi
%changelog
+* Wed May 20 2009 Kevin Kofler <Kevin at tigcc.ticalc.org> - 4.2.85-2
+- reenable sytem-config-printer-kde
+- rebase printing patch, drop hunks fixed upstream
+
* Wed May 13 2009 Lukáš Tinkl <ltinkl at redhat.com> - 4.2.85-1
- KDE 4.3 beta 1
--- kdeadmin-4.2.2-printing.patch DELETED ---
- Previous message: rpms/plexus-containers/devel plexus-containers.spec, 1.1.2.1, 1.1.2.2
- Next message: rpms/java-1.6.0-openjdk/F-10 .cvsignore, 1.48, 1.49 java-1.6.0-openjdk-sparc-fixes.patch, 1.1, 1.2 java-1.6.0-openjdk.spec, 1.107, 1.108 sources, 1.54, 1.55 java-1.6.0-openjdk-lcms.patch, 1.4, NONE java-1.6.0-openjdk-pulsejava.patch, 1.1, NONE java-1.6.0-openjdk-securitypatches.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list