diff --git a/0001-gnome-scores.h-Convert-to-UTF-8.patch b/0001-gnome-scores.h-Convert-to-UTF-8.patch new file mode 100644 index 0000000..7fa89ae --- /dev/null +++ b/0001-gnome-scores.h-Convert-to-UTF-8.patch @@ -0,0 +1,26 @@ +From 30334c28794ef85d8973f4ed0779b5ceed6594f2 Mon Sep 17 00:00:00 2001 +From: Colin Walters +Date: Mon, 7 Aug 2017 13:15:26 -0400 +Subject: [PATCH] gnome-scores.h: Convert to UTF-8 + +The new Python `glib-mkenums` barfs on ISO-8859-1 input. +--- + libgnomeui/gnome-scores.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libgnomeui/gnome-scores.h b/libgnomeui/gnome-scores.h +index 911b12d1..4e641d22 100644 +--- a/libgnomeui/gnome-scores.h ++++ b/libgnomeui/gnome-scores.h +@@ -27,7 +27,7 @@ + * "High Scores" Widget + * + * AUTHOR: +- * Horacio J. Peña ++ * Horacio J. Peña + * + * This is free software (under the terms of the GNU LGPL) + * +-- +2.13.4 + diff --git a/libgnomeui-2.24.5.tar.bz2 b/libgnomeui-2.24.5.tar.bz2 new file mode 100644 index 0000000..b1996d2 Binary files /dev/null and b/libgnomeui-2.24.5.tar.bz2 differ diff --git a/libgnomeui.spec b/libgnomeui.spec new file mode 100644 index 0000000..2201a0e --- /dev/null +++ b/libgnomeui.spec @@ -0,0 +1,63 @@ +Name: libgnomeui +Version: 2.24.5 +Release: 20 +Summary: GNOME base GUI library +License: LGPLv2+ +URL: http://www.gnome.org +Source0: http://download.gnome.org/sources/libgnomeui/2.24/%{name}-%{version}.tar.bz2 + +Patch0001: 0001-gnome-scores.h-Convert-to-UTF-8.patch + +BuildRequires: glib2-devel gvfs-devel pango-devel gtk2-devel GConf2-devel gnome-vfs2-devel libgnomecanvas-devel +BuildRequires: libbonoboui-devel libxml2-devel libgnome-devel libart_lgpl-devel libglade2-devel libgnome-keyring-devel +BuildRequires: libSM-devel fontconfig-devel gettext automake autoconf libtool intltool + +%description +The libgnomeui library provides additional widgets for applications. Many of the widgets from +libgnomeui have already been ported to GTK+. + +This module is heading towards planned deprecation. It will continue to be supported and API/ABI +stable throughout the GNOME 2.x series, but we do not recommend using it in new applications unless +you require functionality that has not already been moved elsewhere. + +%package devel +Summary: Libraries and headers for libgnome +Requires: %{name} = %{version}-%{release} libSM-devel libICE-devel + +%description devel +This package contains libraries and headers for developing GNOME applications. + +%prep +%autosetup -n %{name}-%{version} -p1 +libtoolize --force --copy +autoreconf -i + +%build +%configure --disable-gtk-doc +sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool +%make_build + +%install +%make_install +%delete_la_and_a +%find_lang libgnomeui-2.0 + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%files -f libgnomeui-2.0.lang +%doc COPYING.LIB NEWS ChangeLog +%{_libdir}/{lib*.so.*,libglade} +%{_datadir}/pixmaps/* + +%files devel +%doc %{_datadir}/gtk-doc/html/libgnomeui +%{_libdir}/{lib*.so,pkgconfig} +%{_includedir}/* + +%changelog +* Wed Feb 19 2020 zhusongbao - 2.24.5-20 +- Package init