Sync from SUSE:SLFO:Main libglade2 revision 858887b753e801a799ebb46ad0c54d59

This commit is contained in:
Adrian Schröter 2024-05-03 14:59:04 +02:00
commit d45f0cb08e
5 changed files with 769 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
libglade-2.6.4.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

329
libglade2-python3.patch Normal file
View File

@ -0,0 +1,329 @@
--- libglade-convert.in (original)
+++ libglade-convert.in (refactored)
@@ -45,7 +45,7 @@
if name == 'class':
self.wclass = value
return
- if self.properties.has_key(name):
+ if name in self.properties:
self.property_names.remove(name)
del self.properties[name]
if value == 'True': value = 'yes'
@@ -53,19 +53,19 @@
self.property_names.append(name)
self.properties[name] = value
def __delitem__(self, name):
- if self.properties.has_key(name):
+ if name in self.properties:
self.property_names.remove(name)
del self.properties[name]
else:
- raise KeyError, "unknown property `%s'" % name
+ raise KeyError("unknown property `%s'" % name)
def has_prop(self, name):
- return self.properties.has_key(name)
+ return name in self.properties
def rename_prop(self, old_name, new_name):
if self.has_prop(old_name):
self[new_name] = self[old_name]
del self[old_name]
def remove_prop(self, name):
- if self.properties.has_key(name):
+ if name in self.properties:
self.property_names.remove(name)
del self.properties[name]
@@ -85,7 +85,7 @@
def __getitem__(self, name):
return self.properties[name]
def __setitem__(self, name, value):
- if self.properties.has_key(name):
+ if name in self.properties:
self.property_names.remove(name)
del self.properties[name]
if value == 'True': value = 'yes'
@@ -93,19 +93,19 @@
self.property_names.append(name)
self.properties[name] = value
def __delitem__(self, name):
- if self.properties.has_key(name):
+ if name in self.properties:
self.property_names.remove(name)
del self.properties[name]
else:
- raise KeyError, "unknown property `%s'" % name
+ raise KeyError("unknown property `%s'" % name)
def has_prop(self, name):
- return self.properties.has_key(name)
+ return name in self.properties
def rename_prop(self, old_name, new_name):
if self.has_prop(old_name):
self[new_name] = self[old_name]
del self[old_name]
def remove_prop(self, name):
- if self.properties.has_key(name):
+ if name in self.properties:
self.property_names.remove(name)
del self.properties[name]
@@ -114,27 +114,27 @@
return
if self.internal_child:
- print '%s<child internal-child="%s">' % \
- (indent, self.internal_child)
+ print('%s<child internal-child="%s">' % \
+ (indent, self.internal_child))
else:
- print '%s<child>' % indent
+ print('%s<child>' % indent)
if self.widget.wclass == 'Placeholder':
- print '%s <placeholder />' % indent
+ print('%s <placeholder />' % indent)
else:
self.widget.dump(indent + ' ')
if self.properties:
- print '%s <packing>' % indent
+ print('%s <packing>' % indent)
for name in self.property_names:
attrs = ''
if name in translatable_properties:
attrs += ' translatable="yes"'
if name[:3] == 'cxx':
attrs += ' agent="glademm"'
- print '%s <property name="%s"%s>%s</property>' % \
+ print('%s <property name="%s"%s>%s</property>' % \
(indent, name, attrs,
- self.properties[name].encode('utf-8'))
- print '%s </packing>' % indent
- print '%s</child>' % indent
+ self.properties[name].encode('utf-8')))
+ print('%s </packing>' % indent)
+ print('%s</child>' % indent)
def add_child(self, widget, internal_child=None):
child = self.ChildDef(widget, internal_child)
@@ -142,7 +142,7 @@
return child
def dump(self, indent):
- print '%s<widget class="%s" id="%s">' %(indent, self.wclass, self.name)
+ print('%s<widget class="%s" id="%s">' %(indent, self.wclass, self.name))
want_newline = 0
for name in self.property_names:
attrs = ''
@@ -154,41 +154,41 @@
attrs += ' translatable="yes"'
if name[:3] == 'cxx':
attrs += ' agent="glademm"'
- print '%s <property name="%s"%s>%s</property>' % \
- (indent, name, attrs, self.properties[name].encode('utf-8'))
+ print('%s <property name="%s"%s>%s</property>' % \
+ (indent, name, attrs, self.properties[name].encode('utf-8')))
want_newline = 1
if want_newline and (self.signals or self.accels or self.children):
- print
+ print()
want_newline = 0
for name, handler, object, after in self.signals:
- print '%s <signal name="%s" handler="%s"' % (indent, name,
- handler),
- if object: print 'object="%s"' % object,
- if after: print 'after="yes"',
- print '/>'
+ print('%s <signal name="%s" handler="%s"' % (indent, name,
+ handler), end=' ')
+ if object: print('object="%s"' % object, end=' ')
+ if after: print('after="yes"', end=' ')
+ print('/>')
want_newline = 1
- if want_newline and (self.accels or self.children): print
+ if want_newline and (self.accels or self.children): print()
want_newline = 0
for key, modifiers, signal in self.accels:
- print '%s <accelerator key="%s" modifiers="%s" signal="%s" />' % \
- (indent, key, modifiers, signal)
+ print('%s <accelerator key="%s" modifiers="%s" signal="%s" />' % \
+ (indent, key, modifiers, signal))
want_newline = 1
- if want_newline and self.children: print
+ if want_newline and self.children: print()
want_newline = 0
for child in self.children:
- if want_newline: print
+ if want_newline: print()
child.dump(indent + ' ')
want_newline = 1
- print '%s</widget>' % indent
+ print('%s</widget>' % indent)
# --- Code to parse the glade1 XML files into WidgetDef instances ---
def totext(nodelist):
- return string.join(map(lambda node: node.toxml(), nodelist), '')
+ return string.join([node.toxml() for node in nodelist], '')
def handle_signal(widget, signalnode):
name = None
@@ -414,7 +414,7 @@
global_group_map = { }
def find_parent(type):
- if parent_table.has_key(type):
+ if type in parent_table:
return parent_table[type]
return ''
@@ -585,7 +585,7 @@
'GNOMEUIINFO_MENU_GAME_TREE': (0, '_Game'),
}
def stock_menu_translate(old_name):
- if stock_menu_items.has_key(old_name):
+ if old_name in stock_menu_items:
return stock_menu_items[old_name]
else:
return (0, old_name)
@@ -598,7 +598,7 @@
def fixup_as_type(widget, type):
if verbose:
- print >> sys.stderr, 'Fixing', widget['name'], 'up as', type
+ print('Fixing', widget['name'], 'up as', type, file=sys.stderr)
# table based property removals/renames
for name in global_obsolete_props:
@@ -606,11 +606,11 @@
for old, new in global_renamed_props:
widget.rename_prop(old, new)
- if obsolete_props.has_key(type):
+ if type in obsolete_props:
for name in obsolete_props[type]:
widget.remove_prop(name)
- if renamed_props.has_key(type):
+ if type in renamed_props:
for old, new in renamed_props[type]:
widget.rename_prop(old, new)
@@ -618,12 +618,12 @@
for childdef in widget.children:
childdef.rename_prop(old, new)
- if obsolete_child_props.has_key(type):
+ if type in obsolete_child_props:
for name in obsolete_child_props[type]:
for childdef in widget.children:
childdef.remove_prop(name)
- if renamed_child_props.has_key(type):
+ if type in renamed_child_props:
for old, new in renamed_child_props[type]:
for childdef in widget.children:
childdef.rename_prop(old, new)
@@ -689,8 +689,8 @@
del childdef.widget['child_name']
childdef['type'] = 'tab'
else:
- print >> sys.stderr , 'Unknown child_name', \
- childdef.widget['child_name']
+ print('Unknown child_name', \
+ childdef.widget['child_name'], file=sys.stderr)
if type == 'GtkFileSelection':
for childdef in widget.children:
@@ -775,8 +775,7 @@
del childdef.widget['child_name']
try:
- childdef = filter(lambda x: x.widget.has_prop('child_name'),
- childdef.widget.children)[0]
+ childdef = [x for x in childdef.widget.children if x.widget.has_prop('child_name')][0]
except IndexError:
return 0
childdef.widget['class'] = 'GtkHButtonBox'
@@ -791,8 +790,7 @@
del childdef.widget['child_name']
try:
- childdef = filter(lambda x: x.widget.has_prop('child_name'),
- childdef.widget.children)[0]
+ childdef = [x for x in childdef.widget.children if x.widget.has_prop('child_name')][0]
except IndexError:
return 0
childdef.widget['class'] = 'GtkHButtonBox'
@@ -881,7 +879,7 @@
# have the glade id of the root group widget.
if type == 'GtkRadioButton' or type == 'GtkRadioMenuItem':
if widget.has_prop ('group'):
- if global_group_map.has_key (widget['group']):
+ if widget['group'] in global_group_map:
widget['group'] = global_group_map[widget['group']]
else:
global_group_map[widget['group']] = widget['name']
@@ -898,7 +896,7 @@
elif childdef.widget['class'] == 'GtkRadioButton':
childdef.widget['class'] = 'radio'
if childdef.widget.has_prop('group'):
- if global_group_map.has_key (childdef.widget['group']):
+ if childdef.widget['group'] in global_group_map:
childdef.widget['group'] = global_group_map[childdef.widget['group']]
else:
global_group_map[childdef.widget['group']] = childdef.widget['name']
@@ -1135,8 +1133,8 @@
def check_widget(widget, requirelist=[]):
try:
error = bad_widgets[widget['class']]
- print >> sys.stderr , 'widget %s of class %s is %s.' % \
- (widget['name'], widget['class'], error)
+ print('widget %s of class %s is %s.' % \
+ (widget['name'], widget['class'], error), file=sys.stderr)
if error == 'removed':
widget.mark_obsolete ()
except KeyError:
@@ -1171,21 +1169,21 @@
fixup_widget(widgetdef)
check_widget(widgetdef, requireslist)
- print '<?xml version="1.0" standalone="no"?> <!--*- mode: nxml -*-->'
- print '<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd" >'
- print
- print '<glade-interface>'
+ print('<?xml version="1.0" standalone="no"?> <!--*- mode: nxml -*-->')
+ print('<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd" >')
+ print()
+ print('<glade-interface>')
for requirement in requireslist:
- print ' <requires lib="%s" />' % requirement
+ print(' <requires lib="%s" />' % requirement)
if requireslist:
- print
+ print()
indent = ' '
for widgetdef in widgets:
widgetdef.dump(indent)
- print '</glade-interface>'
+ print('</glade-interface>')
document.unlink() # only needed for python interpreters without cyclic gc
usage = 'usage: libglade-convert [--no-upgrade] [--verbose] oldfile.glade'
@@ -1201,10 +1199,10 @@
elif opt == '--verbose':
verbose = 1
elif opt == '--help':
- print usage
+ print(usage)
sys.exit(0)
if len(args) != 1:
- print >> sys.stderr, usage
+ print(usage, file=sys.stderr)
sys.exit(1)
handle_file(args[0])

292
libglade2.changes Normal file
View File

@ -0,0 +1,292 @@
-------------------------------------------------------------------
Mon Dec 19 08:39:21 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>
- Drop baselibs.conf: there is no known consumer of the -32bit
package.
-------------------------------------------------------------------
Fri May 14 19:58:56 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
- Normalize patch tag line.
-------------------------------------------------------------------
Tue Jan 5 09:41:49 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
- Add gtk-doc BuildRequires: if configure.ac contains
GTK_DOC_CHECK, autoconf 2.70+ implicilty wants to start
gtkdocize.
-------------------------------------------------------------------
Mon Mar 5 14:11:14 UTC 2018 - jengelh@inai.de
- Remove ineffective --with-pic.
-------------------------------------------------------------------
Wed Feb 28 16:34:35 UTC 2018 - dimstar@opensuse.org
- Modernize spec-file by calling spec-cleaner
-------------------------------------------------------------------
Wed Nov 29 16:53:52 UTC 2017 - dimstar@opensuse.org
- Switch to python3:
+ Add libglade2-python3.patch: convert libglade-convert to a
python3 program.
+ Export PYTHON=/usr/bin/python3 before calling configure.
+ Replace python-devel and python-xml BuildRequires with
python3-devel and python3-xml.
+ Add libtool BuildRequires and call to autoreconf: the currently
bootstrapped configure script can't cope with python3 version
comparison.
-------------------------------------------------------------------
Fri Mar 1 12:44:58 UTC 2013 - dimstar@opensuse.org
- Spec-cleanup using format_spec_file service.
-------------------------------------------------------------------
Mon Oct 11 21:16:53 CEST 2010 - vuntz@opensuse.org
- Update packaging to use the shared library packaging policy:
+ Create libglade-2_0-0 subpackage.
+ Add Provides/Obsoletes for libglade2 to libglade-2_0-0.
+ Update baselibs.conf accordingly.
- Remove explicit Requires of devel packages in devel subpackage:
they will be added automatically the pkgconfig() way.
-------------------------------------------------------------------
Thu Dec 17 17:14:44 CET 2009 - jengelh@medozas.de
- Add baselibs.conf as a source
- Make doc subpackage a noarch package
-------------------------------------------------------------------
Tue Mar 17 18:06:57 CET 2009 - vuntz@novell.com
- Update to version 2.6.4:
+ Fix GTK+ single includes
+ Use G_DEFINE_TYPE instead of registering the type by hand
+ Clean up code
+ Remove deprecated GLib functions
- Remove AutoReqProv: it's default now.
- Remove unneeded BuildRequires: gnome-common, gtk-doc, indent,
orbit2-devel, update-desktop-files.
- Do not call autoreconf.
-------------------------------------------------------------------
Wed Jan 21 23:31:40 CET 2009 - crrodriguez@suse.de
- remove "la" files
-------------------------------------------------------------------
Wed Jan 7 12:34:56 CET 2009 - olh@suse.de
- obsolete old -XXbit packages (bnc#437293)
-------------------------------------------------------------------
Thu Aug 28 19:01:08 CEST 2008 - maw@suse.de
- Update to version 2.6.3:
+ glade_xml_new_from_buffer(): Do not call g_free() on a GObject
+ Documentation:
* Actually show glade_xml_construct_from_buffer()
(Murray Cumming)
* Improve the book title and abstract
+ Mention gmodule-export-2.0 for autoconnecting (bgo#446175).
-------------------------------------------------------------------
Thu Apr 10 12:54:45 CEST 2008 - ro@suse.de
- added baselibs.conf file to build xxbit packages
for multilib support
-------------------------------------------------------------------
Tue Jul 31 20:37:11 CEST 2007 - maw@suse.de
- Update to version 2.6.2, which fixes building with gtk+ 2.11
- Remove dont-disable-deprecated.patch as it is no longer needed.
-------------------------------------------------------------------
Fri Jul 27 21:25:10 CEST 2007 - maw@suse.de
- Add dont-disable-deprecated.patch
- Use %fdupes.
-------------------------------------------------------------------
Wed Jul 11 21:35:31 CEST 2007 - mauro@suse.de
- Update to version 2.6.1
- Fix for bug #326511
- Added support for automake 1.10 and autoconf 2.6x
-------------------------------------------------------------------
Wed Feb 7 12:27:30 CET 2007 - sbrabec@suse.cz
- Do not build unusable static libraries (#238552).
-------------------------------------------------------------------
Fri Dec 8 16:24:43 CET 2006 - sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
-------------------------------------------------------------------
Sat Jul 22 00:51:16 CEST 2006 - gekker@suse.de
- Update to version 2.6.0
- Win32 portability fixes (Tor)
- Compiler warning fixes (Kjartan)
- Fixes for ASCII characters in entries (Matthias)
-------------------------------------------------------------------
Wed Jan 25 21:32:20 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Mon Sep 26 22:41:05 CEST 2005 - mls@suse.de
- make devel package require base package
-------------------------------------------------------------------
Mon Apr 11 16:52:52 CEST 2005 - sbrabec@suse.cz
- Fixed Requires of doc subpackage.
-------------------------------------------------------------------
Mon Mar 21 11:14:41 CET 2005 - sbrabec@suse.cz
- Fixed Requires of devel subpackage (#61933).
-------------------------------------------------------------------
Wed Mar 2 22:55:02 CET 2005 - gekker@suse.de
- Update to version 2.5.1
- Note: the update below was to 2.5.0
-------------------------------------------------------------------
Thu Dec 16 01:02:52 CET 2004 - gekker@suse.de
- Update version
- Change aclocal to find new xml_catalog macros
-------------------------------------------------------------------
Mon Nov 22 20:42:44 CET 2004 - gekker@suse.de
- Update version to 2.8.0
-------------------------------------------------------------------
Thu Apr 15 18:05:42 CEST 2004 - sbrabec@suse.cz
- Updated to version 2.3.6 (GNOME 2.6).
-------------------------------------------------------------------
Sat Jan 10 18:23:55 CET 2004 - adrian@suse.de
- add %defattr and %run_ldconfig
-------------------------------------------------------------------
Mon Jul 14 14:36:52 CEST 2003 - sbrabec@suse.cz
- GNOME prefix change to /opt/gnome.
-------------------------------------------------------------------
Fri Jun 20 13:02:23 CEST 2003 - sbrabec@suse.cz
- Created empty directory for libglade modules.
-------------------------------------------------------------------
Fri Jun 13 13:15:12 CEST 2003 - sbrabec@suse.cz
- Fixed directory packaging.
- Prefix clash fix.
-------------------------------------------------------------------
Tue May 27 16:16:45 CEST 2003 - sbrabec@suse.cz
- Clean install-root.
-------------------------------------------------------------------
Fri Oct 18 17:39:13 CEST 2002 - sbrabec@suse.cz
- Update to version to 2.0.1.
- Clean up %files and splitting to sub-packages.
-------------------------------------------------------------------
Fri Sep 27 14:34:29 CEST 2002 - ro@suse.de
- Added alsa alsa-devel to neededforbuild (esound)
-------------------------------------------------------------------
Thu Aug 15 14:46:39 CEST 2002 - hhetter@suse.de
- branch doc package
-------------------------------------------------------------------
Tue Aug 13 10:16:11 CEST 2002 - hhetter@suse.de
- build with bonobo support (#17641)
-------------------------------------------------------------------
Fri Jun 7 08:43:38 CEST 2002 - hhetter@suse.de
- updated to version 2.0.0
* gtkdoc improvements
-------------------------------------------------------------------
Tue Jun 4 10:24:44 CEST 2002 - hhetter@suse.de
- updated to version 1.99.12, source frozen
* more changes to help with Murray's C++ bindings.
check whether GTK has a GtkPlug implementation to help with
* building with gtk targets other than X11.
Only build the docs if --enable-gtk-doc is passed to configure.
* pass CFLAGS and LDFLAGS to gtkdoc when building docs, in
case they are needed to build against the library (fixes
64-bit solaris issues, #81347).
* fix up a missing g_object_ref() call in AtkRelationSet
handling code.
* More helpful error message if glade file could not be found
(#80411).
-------------------------------------------------------------------
Wed May 15 11:07:33 CEST 2002 - ro@suse.de
- use libdir
-------------------------------------------------------------------
Tue Apr 9 16:16:35 CEST 2002 - hhetter@suse.de
- update to version 1.99.10 [gnome desktop beta3]
-------------------------------------------------------------------
Fri Feb 1 10:12:40 CET 2002 - hhetter@suse.de
- updated to version 1.99.6 [gnome desktop alpha2]
-------------------------------------------------------------------
Fri Feb 1 00:26:05 CET 2002 - ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
-------------------------------------------------------------------
Thu Jan 17 09:51:35 CET 2002 - hhetter@suse.de
- filelist cleanup
- prefix to /opt/gnome2
-------------------------------------------------------------------
Wed Jan 16 09:02:31 CET 2002 - hhetter@suse.de
- build with python-expat support
- provide libglade2-convert
-------------------------------------------------------------------
Fri Jan 11 08:48:55 CET 2002 - hhetter@suse.de
- build with freetype2
-------------------------------------------------------------------
Wed Jan 9 16:23:37 CET 2002 - hhetter@suse.de
- initial SuSE package for GNOME 2.0 platform

122
libglade2.spec Normal file
View File

@ -0,0 +1,122 @@
#
# spec file for package libglade2
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define _name libglade
Name: libglade2
Version: 2.6.4
Release: 0
Summary: Glade Library Compatible with the GNOME 2.x Desktop Platform
# NOTE: on upgrade to a new upstream version, change the Obsoletes from <= to <
License: LGPL-2.1-or-later
Group: Development/Libraries/GNOME
URL: http://www.daa.com.au/~james/gnome/
Source: https://download.gnome.org/sources/libglade/2.6/libglade-2.6.4.tar.bz2
# PATCH-FEATURE-OPENSUSE libglade2-python3.patch dimstar@opensuse.org -- Use python3
Patch0: libglade2-python3.patch
BuildRequires: fdupes
BuildRequires: gtk-doc
BuildRequires: gtk2-devel
BuildRequires: libtool
BuildRequires: libxml2-devel
BuildRequires: python3-base
BuildRequires: python3-xml
%description
This library allows you to load Glade interface files in a program at
runtime. It does not require that you use Glade, but Glade is the
easiest way to create the interface files. For an idea of how to use
the library, see the documentation, especially
%{_docdir}/libglade/test-libgladee.c and the glade-xml.h
include, which is in the libglade package.
%package -n libglade-2_0-0
Summary: Glade Library Compatible with the GNOME 2.x Desktop Platform
Group: Development/Libraries/GNOME
Provides: %{name} = %{version}
# Note: we keep <= (and a rpmlint warning...) until we get a version higher than 2.6.4 (when this provides/obsoletes was introduced)
Obsoletes: %{name} <= %{version}
#
%description -n libglade-2_0-0
This library allows you to load Glade interface files in a program at
runtime. It does not require that you use Glade, but Glade is the
easiest way to create the interface files. For an idea of how to use
the library, see the documentation, especially
%{_docdir}/libglade/test-libgladee.c and the glade-xml.h
include, which is in the libglade package.
%package devel
Summary: Include files and libraries mandatory for development
Group: Development/Libraries/GNOME
Requires: libglade-2_0-0 = %{version}
#
%description devel
This package contains all necessary include files and libraries needed
to compile and link applications that use libglade2.
%package doc
Summary: Documentation for the Glade library
Group: Development/Libraries/GNOME
Requires: libglade-2_0-0 = %{version}
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%description doc
This package contains documentation and examples for the Glade library.
%prep
%setup -q -n %{_name}-%{version}
%patch0
%build
export PYTHON=%{_bindir}/python3
autoreconf -fiv
%configure --disable-static
make %{?_smp_mflags}
%install
%make_install
mkdir -p %{buildroot}%{_libdir}/libglade/2.0
find %{buildroot} -type f -name "*.la" -delete -print
%if 0%{?suse_version} > 1020
%fdupes %{buildroot}
%endif
%post -n libglade-2_0-0 -p /sbin/ldconfig
%postun -n libglade-2_0-0 -p /sbin/ldconfig
%files -n libglade-2_0-0
%license COPYING
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/libglade-2.0.so.*
%dir %{_libdir}/libglade
%dir %{_libdir}/libglade/2.0
%files devel
%{_bindir}/*
%{_includedir}/libglade-2.0
%{_libdir}/libglade-2.0.so
%{_libdir}/pkgconfig/*.pc
%files doc
%{_datadir}/gtk-doc/html/libglade
%{_datadir}/xml/libglade
%changelog