Browse Source

gdm2setup:
- add patch4: ConfigParser should be case-sensitive.
- add patch5 to fix typo
- add patch6 to enable show userlist even if autologin is enabled.
- add patch7 to disable debug message



git-svn-id: http://trac.vinelinux.org/repos/projects/specs@4235 ec354946-7b23-47d6-9f5a-488ba84defc7

daisuke 13 years ago
parent
commit
2e8ef22f10

+ 24 - 0
g/gdm2setup/gdm2setup-0.5.3-disable-debug.patch

@@ -0,0 +1,24 @@
+diff -up gdm2setup-0.5.3-lucid/gdm2/gdm2gconf.py.disable-debug gdm2setup-0.5.3-lucid/gdm2/gdm2gconf.py
+--- gdm2setup-0.5.3-lucid/gdm2/gdm2gconf.py.disable-debug	2011-06-28 20:54:05.630692463 +0900
++++ gdm2setup-0.5.3-lucid/gdm2/gdm2gconf.py	2011-06-28 20:54:54.472692463 +0900
+@@ -39,7 +39,7 @@ import ConfigParser
+ 
+ class GDM2Theme(object):  
+       
+-    DBUG = True
++    DBUG = False
+ 
+     GDMCONF_FILE = u"/etc/X11/gdm/custom.conf"
+     THEMES_DIRECTORY = u"/usr/share/themes/"
+diff -up gdm2setup-0.5.3-lucid/gdm2/gdm2setup.py.disable-debug gdm2setup-0.5.3-lucid/gdm2/gdm2setup.py
+--- gdm2setup-0.5.3-lucid/gdm2/gdm2setup.py.disable-debug	2011-06-28 20:55:33.512692463 +0900
++++ gdm2setup-0.5.3-lucid/gdm2/gdm2setup.py	2011-06-28 20:56:00.805692463 +0900
+@@ -35,7 +35,7 @@ for module in (gettext, locale):
+ ### ...for now, we must continue to use os.Popen calls to indirectly bypass issues with Orbit/Gconf
+ from gdm2.gdm2gconf import GDM2Theme
+ 
+-DEBUG = True
++DEBUG = False
+ 
+ class GDM2Setup(object):    
+     __VERSION__ = '0.5.3'

+ 21 - 0
g/gdm2setup/gdm2setup-0.5.3-enable-show-userlist.patch

@@ -0,0 +1,21 @@
+diff -up gdm2setup-0.5.3-lucid/gdm2/gdm2setup.py.enable-show-userlist gdm2setup-0.5.3-lucid/gdm2/gdm2setup.py
+--- gdm2setup-0.5.3-lucid/gdm2/gdm2setup.py.enable-show-userlist	2011-06-28 20:50:59.782692463 +0900
++++ gdm2setup-0.5.3-lucid/gdm2/gdm2setup.py	2011-06-28 20:51:20.011692463 +0900
+@@ -74,7 +74,7 @@ class GDM2Setup(object):    
+         if DEBUG:
+             print "on_userlist_checkbutton_toggled, value: ",widget.get_active()
+             
+-        self.theme.SetShowUserList(widget.get_active())
++        self.theme.SetShowUserList(True)
+ 
+     def on_autologin_radiobutton_toggled(self, widget, data=None):
+         if DEBUG:
+@@ -93,7 +93,7 @@ class GDM2Setup(object):    
+ 
+         # Disable mutually exclusive properties
+         self.builder.get_object('userlist_checkbutton').set_sensitive(False) 
+-        self.theme.SetShowUserList(False)
++        # self.theme.SetShowUserList(False)
+ 
+     def on_autologin_combobox_changed(self, widget, data=None):
+         if DEBUG:

+ 11 - 0
g/gdm2setup/gdm2setup-0.5.3-fix-case-sensitive.patch

@@ -0,0 +1,11 @@
+diff -up gdm2setup-0.5.3-lucid/gdm2/gdm2gconf.py.fix-case-sensitive gdm2setup-0.5.3-lucid/gdm2/gdm2gconf.py
+--- gdm2setup-0.5.3-lucid/gdm2/gdm2gconf.py.fix-case-sensitive	2011-06-28 20:20:45.923692463 +0900
++++ gdm2setup-0.5.3-lucid/gdm2/gdm2gconf.py	2011-06-28 20:22:51.979692463 +0900
+@@ -61,6 +61,7 @@ class GDM2Theme(object):  
+     def GetAutoLogin(self):
+         try:
+             config = ConfigParser.RawConfigParser()
++            config.optionxform = str
+             config.read(self.GDMCONF_FILE)
+             return config.getboolean('daemon', 'AutomaticLoginEnable')
+         except:

+ 12 - 0
g/gdm2setup/gdm2setup-0.5.3-fix-typo.patch

@@ -0,0 +1,12 @@
+diff -up gdm2setup-0.5.3-lucid/gdm2/gdm2gconf.py.fix-typo gdm2setup-0.5.3-lucid/gdm2/gdm2gconf.py
+--- gdm2setup-0.5.3-lucid/gdm2/gdm2gconf.py.fix-typo	2011-06-28 20:26:17.576692463 +0900
++++ gdm2setup-0.5.3-lucid/gdm2/gdm2gconf.py	2011-06-28 20:26:27.286692463 +0900
+@@ -124,7 +124,7 @@ class GDM2Theme(object):  
+             TimedLoginDelay = float(config.get('daemon', 'TimedLoginDelay'))
+             if self.DEBUG: 
+                 print "GetTimedLoginDelay: ", TimedLoginDelay
+-            return fTimedLoginDelay
++            return TimedLoginDelay
+         except Exception, err:
+             if self.DEBUG: 
+                 print "Error: ",err

+ 15 - 1
g/gdm2setup/gdm2setup-vl.spec

@@ -2,7 +2,7 @@ Name:			gdm2setup
 Summary:		GDM2 Setup utility
 Summary(ja):		GDM2 設定ユーティリティ
 Version:		0.5.3
-Release:                2%{?_dist_release}
+Release:                3%{?_dist_release}
 License:		GPLv3
 Group:			User Interface/X
 URL:			https://launchpad.net/gdm2setup
@@ -14,6 +14,10 @@ Patch0:                 gdm2setup-0.5.3-install-fix.patch
 Patch1:                 gdm2setup-0.5.3-vine.patch
 Patch2:                 gdm2setup-0.5.3-gettext.patch
 Patch3:                 gdm2setup-0.5.3-remove-blur-option.patch
+Patch4:			gdm2setup-0.5.3-fix-case-sensitive.patch
+Patch5:			gdm2setup-0.5.3-fix-typo.patch
+Patch6:			gdm2setup-0.5.3-enable-show-userlist.patch
+Patch7:			gdm2setup-0.5.3-disable-debug.patch
 
 BuildRoot:              %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildArch:		noarch
@@ -38,6 +42,10 @@ functionality back into Ubuntu and other Gnome based Linux distributions.
 %patch1 -p1 -b .vine
 %patch2 -p1 -b .gettext
 %patch3 -p1 -b .no-blur
+%patch4 -p1 -b .case-sensitive
+%patch5 -p1 -b .fix-typo
+%patch6 -p1 -b .enable-show-userlist
+%patch7 -p1 -b .disable-debug
 
 cp -f %{SOURCE2} gdm2setup.desktop
 
@@ -65,6 +73,12 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/locale/ja/LC_MESSAGES/*
 
 %changelog
+* Tue Jun 28 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.5.3-3
+- add patch4: ConfigParser should be case-sensitive.
+- add patch5 to fix typo
+- add patch6 to enable show userlist even if autologin is enabled.
+- add patch7 to disable debug message
+
 * Sat Jun 04 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.5.3-2
 - add R: python-imaging