Sync from SUSE:SLFO:Main libglade2 revision 318e0648d0bd4a2fffe1a20c0b5c8351
This commit is contained in:
parent
d45f0cb08e
commit
6c9a3f4378
@ -1,6 +1,8 @@
|
|||||||
--- libglade-convert.in (original)
|
Index: libglade-2.6.4/libglade-convert.in
|
||||||
+++ libglade-convert.in (refactored)
|
===================================================================
|
||||||
@@ -45,7 +45,7 @@
|
--- libglade-2.6.4.orig/libglade-convert.in
|
||||||
|
+++ libglade-2.6.4/libglade-convert.in
|
||||||
|
@@ -45,7 +45,7 @@ class WidgetDef:
|
||||||
if name == 'class':
|
if name == 'class':
|
||||||
self.wclass = value
|
self.wclass = value
|
||||||
return
|
return
|
||||||
@ -9,7 +11,7 @@
|
|||||||
self.property_names.remove(name)
|
self.property_names.remove(name)
|
||||||
del self.properties[name]
|
del self.properties[name]
|
||||||
if value == 'True': value = 'yes'
|
if value == 'True': value = 'yes'
|
||||||
@@ -53,19 +53,19 @@
|
@@ -53,19 +53,19 @@ class WidgetDef:
|
||||||
self.property_names.append(name)
|
self.property_names.append(name)
|
||||||
self.properties[name] = value
|
self.properties[name] = value
|
||||||
def __delitem__(self, name):
|
def __delitem__(self, name):
|
||||||
@ -33,7 +35,7 @@
|
|||||||
self.property_names.remove(name)
|
self.property_names.remove(name)
|
||||||
del self.properties[name]
|
del self.properties[name]
|
||||||
|
|
||||||
@@ -85,7 +85,7 @@
|
@@ -85,7 +85,7 @@ class WidgetDef:
|
||||||
def __getitem__(self, name):
|
def __getitem__(self, name):
|
||||||
return self.properties[name]
|
return self.properties[name]
|
||||||
def __setitem__(self, name, value):
|
def __setitem__(self, name, value):
|
||||||
@ -42,7 +44,7 @@
|
|||||||
self.property_names.remove(name)
|
self.property_names.remove(name)
|
||||||
del self.properties[name]
|
del self.properties[name]
|
||||||
if value == 'True': value = 'yes'
|
if value == 'True': value = 'yes'
|
||||||
@@ -93,19 +93,19 @@
|
@@ -93,19 +93,19 @@ class WidgetDef:
|
||||||
self.property_names.append(name)
|
self.property_names.append(name)
|
||||||
self.properties[name] = value
|
self.properties[name] = value
|
||||||
def __delitem__(self, name):
|
def __delitem__(self, name):
|
||||||
@ -66,7 +68,7 @@
|
|||||||
self.property_names.remove(name)
|
self.property_names.remove(name)
|
||||||
del self.properties[name]
|
del self.properties[name]
|
||||||
|
|
||||||
@@ -114,27 +114,27 @@
|
@@ -114,27 +114,27 @@ class WidgetDef:
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.internal_child:
|
if self.internal_child:
|
||||||
@ -103,7 +105,7 @@
|
|||||||
|
|
||||||
def add_child(self, widget, internal_child=None):
|
def add_child(self, widget, internal_child=None):
|
||||||
child = self.ChildDef(widget, internal_child)
|
child = self.ChildDef(widget, internal_child)
|
||||||
@@ -142,7 +142,7 @@
|
@@ -142,7 +142,7 @@ class WidgetDef:
|
||||||
return child
|
return child
|
||||||
|
|
||||||
def dump(self, indent):
|
def dump(self, indent):
|
||||||
@ -112,7 +114,7 @@
|
|||||||
want_newline = 0
|
want_newline = 0
|
||||||
for name in self.property_names:
|
for name in self.property_names:
|
||||||
attrs = ''
|
attrs = ''
|
||||||
@@ -154,41 +154,41 @@
|
@@ -154,41 +154,41 @@ class WidgetDef:
|
||||||
attrs += ' translatable="yes"'
|
attrs += ' translatable="yes"'
|
||||||
if name[:3] == 'cxx':
|
if name[:3] == 'cxx':
|
||||||
attrs += ' agent="glademm"'
|
attrs += ' agent="glademm"'
|
||||||
@ -169,7 +171,7 @@
|
|||||||
|
|
||||||
def handle_signal(widget, signalnode):
|
def handle_signal(widget, signalnode):
|
||||||
name = None
|
name = None
|
||||||
@@ -414,7 +414,7 @@
|
@@ -414,7 +414,7 @@ parent_table = {
|
||||||
global_group_map = { }
|
global_group_map = { }
|
||||||
|
|
||||||
def find_parent(type):
|
def find_parent(type):
|
||||||
@ -178,7 +180,7 @@
|
|||||||
return parent_table[type]
|
return parent_table[type]
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
@@ -585,7 +585,7 @@
|
@@ -585,7 +585,7 @@ stock_menu_items = {
|
||||||
'GNOMEUIINFO_MENU_GAME_TREE': (0, '_Game'),
|
'GNOMEUIINFO_MENU_GAME_TREE': (0, '_Game'),
|
||||||
}
|
}
|
||||||
def stock_menu_translate(old_name):
|
def stock_menu_translate(old_name):
|
||||||
@ -187,7 +189,7 @@
|
|||||||
return stock_menu_items[old_name]
|
return stock_menu_items[old_name]
|
||||||
else:
|
else:
|
||||||
return (0, old_name)
|
return (0, old_name)
|
||||||
@@ -598,7 +598,7 @@
|
@@ -598,7 +598,7 @@ def translate_color (color):
|
||||||
def fixup_as_type(widget, type):
|
def fixup_as_type(widget, type):
|
||||||
|
|
||||||
if verbose:
|
if verbose:
|
||||||
@ -196,7 +198,7 @@
|
|||||||
|
|
||||||
# table based property removals/renames
|
# table based property removals/renames
|
||||||
for name in global_obsolete_props:
|
for name in global_obsolete_props:
|
||||||
@@ -606,11 +606,11 @@
|
@@ -606,11 +606,11 @@ def fixup_as_type(widget, type):
|
||||||
for old, new in global_renamed_props:
|
for old, new in global_renamed_props:
|
||||||
widget.rename_prop(old, new)
|
widget.rename_prop(old, new)
|
||||||
|
|
||||||
@ -210,7 +212,7 @@
|
|||||||
for old, new in renamed_props[type]:
|
for old, new in renamed_props[type]:
|
||||||
widget.rename_prop(old, new)
|
widget.rename_prop(old, new)
|
||||||
|
|
||||||
@@ -618,12 +618,12 @@
|
@@ -618,12 +618,12 @@ def fixup_as_type(widget, type):
|
||||||
for childdef in widget.children:
|
for childdef in widget.children:
|
||||||
childdef.rename_prop(old, new)
|
childdef.rename_prop(old, new)
|
||||||
|
|
||||||
@ -225,7 +227,7 @@
|
|||||||
for old, new in renamed_child_props[type]:
|
for old, new in renamed_child_props[type]:
|
||||||
for childdef in widget.children:
|
for childdef in widget.children:
|
||||||
childdef.rename_prop(old, new)
|
childdef.rename_prop(old, new)
|
||||||
@@ -689,8 +689,8 @@
|
@@ -689,8 +689,8 @@ def fixup_as_type(widget, type):
|
||||||
del childdef.widget['child_name']
|
del childdef.widget['child_name']
|
||||||
childdef['type'] = 'tab'
|
childdef['type'] = 'tab'
|
||||||
else:
|
else:
|
||||||
@ -236,7 +238,7 @@
|
|||||||
|
|
||||||
if type == 'GtkFileSelection':
|
if type == 'GtkFileSelection':
|
||||||
for childdef in widget.children:
|
for childdef in widget.children:
|
||||||
@@ -775,8 +775,7 @@
|
@@ -775,8 +775,7 @@ def fixup_as_type(widget, type):
|
||||||
del childdef.widget['child_name']
|
del childdef.widget['child_name']
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -246,7 +248,7 @@
|
|||||||
except IndexError:
|
except IndexError:
|
||||||
return 0
|
return 0
|
||||||
childdef.widget['class'] = 'GtkHButtonBox'
|
childdef.widget['class'] = 'GtkHButtonBox'
|
||||||
@@ -791,8 +790,7 @@
|
@@ -791,8 +790,7 @@ def fixup_as_type(widget, type):
|
||||||
del childdef.widget['child_name']
|
del childdef.widget['child_name']
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -256,7 +258,7 @@
|
|||||||
except IndexError:
|
except IndexError:
|
||||||
return 0
|
return 0
|
||||||
childdef.widget['class'] = 'GtkHButtonBox'
|
childdef.widget['class'] = 'GtkHButtonBox'
|
||||||
@@ -881,7 +879,7 @@
|
@@ -881,7 +879,7 @@ def fixup_as_type(widget, type):
|
||||||
# have the glade id of the root group widget.
|
# have the glade id of the root group widget.
|
||||||
if type == 'GtkRadioButton' or type == 'GtkRadioMenuItem':
|
if type == 'GtkRadioButton' or type == 'GtkRadioMenuItem':
|
||||||
if widget.has_prop ('group'):
|
if widget.has_prop ('group'):
|
||||||
@ -265,7 +267,7 @@
|
|||||||
widget['group'] = global_group_map[widget['group']]
|
widget['group'] = global_group_map[widget['group']]
|
||||||
else:
|
else:
|
||||||
global_group_map[widget['group']] = widget['name']
|
global_group_map[widget['group']] = widget['name']
|
||||||
@@ -898,7 +896,7 @@
|
@@ -898,7 +896,7 @@ def fixup_as_type(widget, type):
|
||||||
elif childdef.widget['class'] == 'GtkRadioButton':
|
elif childdef.widget['class'] == 'GtkRadioButton':
|
||||||
childdef.widget['class'] = 'radio'
|
childdef.widget['class'] = 'radio'
|
||||||
if childdef.widget.has_prop('group'):
|
if childdef.widget.has_prop('group'):
|
||||||
@ -274,7 +276,7 @@
|
|||||||
childdef.widget['group'] = global_group_map[childdef.widget['group']]
|
childdef.widget['group'] = global_group_map[childdef.widget['group']]
|
||||||
else:
|
else:
|
||||||
global_group_map[childdef.widget['group']] = childdef.widget['name']
|
global_group_map[childdef.widget['group']] = childdef.widget['name']
|
||||||
@@ -1135,8 +1133,8 @@
|
@@ -1135,8 +1133,8 @@ bad_widgets = {
|
||||||
def check_widget(widget, requirelist=[]):
|
def check_widget(widget, requirelist=[]):
|
||||||
try:
|
try:
|
||||||
error = bad_widgets[widget['class']]
|
error = bad_widgets[widget['class']]
|
||||||
@ -285,7 +287,7 @@
|
|||||||
if error == 'removed':
|
if error == 'removed':
|
||||||
widget.mark_obsolete ()
|
widget.mark_obsolete ()
|
||||||
except KeyError:
|
except KeyError:
|
||||||
@@ -1171,21 +1169,21 @@
|
@@ -1171,21 +1169,21 @@ def handle_file(filename):
|
||||||
fixup_widget(widgetdef)
|
fixup_widget(widgetdef)
|
||||||
check_widget(widgetdef, requireslist)
|
check_widget(widgetdef, requireslist)
|
||||||
|
|
||||||
@ -314,7 +316,7 @@
|
|||||||
document.unlink() # only needed for python interpreters without cyclic gc
|
document.unlink() # only needed for python interpreters without cyclic gc
|
||||||
|
|
||||||
usage = 'usage: libglade-convert [--no-upgrade] [--verbose] oldfile.glade'
|
usage = 'usage: libglade-convert [--no-upgrade] [--verbose] oldfile.glade'
|
||||||
@@ -1201,10 +1199,10 @@
|
@@ -1201,10 +1199,10 @@ def main():
|
||||||
elif opt == '--verbose':
|
elif opt == '--verbose':
|
||||||
verbose = 1
|
verbose = 1
|
||||||
elif opt == '--help':
|
elif opt == '--help':
|
||||||
|
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 11 07:13:20 UTC 2024 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- remove dependency on /usr/bin/python3 using
|
||||||
|
%python3_fix_shebang macro, [bsc#1212476]
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 28 10:57:58 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- Use %autosetup instead of %setup/%patch.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Dec 19 08:39:21 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>
|
Mon Dec 19 08:39:21 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libglade2
|
# spec file for package libglade2
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -74,16 +74,13 @@ to compile and link applications that use libglade2.
|
|||||||
Summary: Documentation for the Glade library
|
Summary: Documentation for the Glade library
|
||||||
Group: Development/Libraries/GNOME
|
Group: Development/Libraries/GNOME
|
||||||
Requires: libglade-2_0-0 = %{version}
|
Requires: libglade-2_0-0 = %{version}
|
||||||
%if 0%{?suse_version} >= 1120
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
This package contains documentation and examples for the Glade library.
|
This package contains documentation and examples for the Glade library.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{_name}-%{version}
|
%autosetup -n %{_name}-%{version} -p1
|
||||||
%patch0
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export PYTHON=%{_bindir}/python3
|
export PYTHON=%{_bindir}/python3
|
||||||
@ -95,9 +92,8 @@ make %{?_smp_mflags}
|
|||||||
%make_install
|
%make_install
|
||||||
mkdir -p %{buildroot}%{_libdir}/libglade/2.0
|
mkdir -p %{buildroot}%{_libdir}/libglade/2.0
|
||||||
find %{buildroot} -type f -name "*.la" -delete -print
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
%if 0%{?suse_version} > 1020
|
|
||||||
%fdupes %{buildroot}
|
%fdupes %{buildroot}
|
||||||
%endif
|
%python3_fix_shebang
|
||||||
|
|
||||||
%post -n libglade-2_0-0 -p /sbin/ldconfig
|
%post -n libglade-2_0-0 -p /sbin/ldconfig
|
||||||
%postun -n libglade-2_0-0 -p /sbin/ldconfig
|
%postun -n libglade-2_0-0 -p /sbin/ldconfig
|
||||||
|
Loading…
Reference in New Issue
Block a user