Add libglade2 needed for virt-viewer
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 28 Nov 2008 12:25:43 +0000 (07:25 -0500)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 28 Nov 2008 12:25:43 +0000 (07:25 -0500)
libglade2/libglade-2.0.1-nowarning.patch [new file with mode: 0644]
libglade2/mingw32-libglade2.spec [new file with mode: 0644]

diff --git a/libglade2/libglade-2.0.1-nowarning.patch b/libglade2/libglade-2.0.1-nowarning.patch
new file mode 100644 (file)
index 0000000..fd07121
--- /dev/null
@@ -0,0 +1,39 @@
+--- libglade-2.0.1/glade/glade-gtk.c.nowarning 2003-08-29 14:50:10.000000000 -0400
++++ libglade-2.0.1/glade/glade-gtk.c   2003-08-29 14:58:41.000000000 -0400
+@@ -639,9 +639,8 @@
+               if (!strcmp (childinfo->properties[j].name, "label")) {
+                   label = childinfo->properties[j].value;
+                   break;
+-              } else {
+-                  g_warning ("Unknown CList child property: %s", childinfo->properties[j].name);
+               }
++              /* Ignore all other properties */
+           }
+           if (label) {
+@@ -683,6 +682,7 @@
+           char *icon = NULL;
+           gboolean use_stock = FALSE, active = FALSE, new_group = FALSE;
+           gboolean use_underline = FALSE;
++          gboolean sensitive = TRUE;
+           GtkWidget *iconw = NULL;
+           int j;
+@@ -708,6 +708,8 @@
+                   group_name = value;
+               } else if (!strcmp (name, "new_group")) {
+                   new_group = BOOL (value);
++              } else if (!strcmp (name, "sensitive")) {
++                  sensitive = BOOL (value);
+               } else if (!strcmp (name, "visible")) {
+                   /* ignore for now */
+               } else if (!strcmp (name, "tooltip")) {
+@@ -785,6 +787,8 @@
+               gtk_label_set_use_underline (GTK_LABEL (toolbar_child->label),
+                                            TRUE);
+           }
++          
++          gtk_widget_set_sensitive (child, sensitive);
+           glade_xml_set_common_params (xml, child, childinfo->child);
+       } else {
diff --git a/libglade2/mingw32-libglade2.spec b/libglade2/mingw32-libglade2.spec
new file mode 100644 (file)
index 0000000..90b592d
--- /dev/null
@@ -0,0 +1,71 @@
+%define __strip %{_mingw32_strip}
+%define __objdump %{_mingw32_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw32_findrequires}
+%define __find_provides %{_mingw32_findprovides}
+
+Name:           mingw32-libglade2
+Version:        2.6.3
+Release:        1%{?dist}
+Summary:        MinGW Windows Libglade2 library
+
+License:        LGPLv2+
+Group:          Development/Libraries
+URL:            http://www.gnome.org
+Source0:        http://download.gnome.org/sources/libglade/2.6/libglade-%{version}.tar.bz2
+Patch1:         libglade-2.0.1-nowarning.patch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:      noarch
+
+BuildRequires:  mingw32-filesystem >= 23
+BuildRequires:  mingw32-gcc
+BuildRequires:  mingw32-binutils
+BuildRequires:  mingw32-gtk2
+BuildRequires:  mingw32-fontconfig
+BuildRequires:  mingw32-pango
+BuildRequires:  mingw32-gettext
+# Native one for msgfmt
+BuildRequires:  gettext
+
+%description
+MinGW Windows Libglade2 library.
+
+
+%prep
+%setup -q -n libglade-%{version}
+%patch1 -p1
+
+%build
+%{_mingw32_configure} --disable-gtk-doc
+make
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make DESTDIR=$RPM_BUILD_ROOT install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root)
+%{_mingw32_bindir}/libglade-2.0-0.dll
+%{_mingw32_bindir}/libglade-convert
+%{_mingw32_includedir}/libglade-2.0
+%{_mingw32_libdir}/libglade-2.0.a
+%{_mingw32_libdir}/libglade-2.0.dll.a
+%{_mingw32_libdir}/libglade-2.0.la
+%{_mingw32_libdir}/pkgconfig/libglade-2.0.pc
+
+%{_mingw32_datadir}/gtk-doc/html/libglade
+%dir %{_mingw32_datadir}/xml/libglade
+%{_mingw32_datadir}/xml/libglade/glade-2.0.dtd
+
+
+%changelog
+* Fri Nov 28 2008 Daniel P. Berrange <berrange@redhat.com> - 2.6.3-1
+- Initial build
+