rpms/scim-input-pad/devel scim-input-pad-0.1.0-casts.patch, NONE, 1.1 scim-input-pad.spec, NONE, 1.1
Ryo Dairiki (ryo)
fedora-extras-commits at redhat.com
Fri Oct 14 12:35:19 UTC 2005
Author: ryo
Update of /cvs/extras/rpms/scim-input-pad/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8987/devel
Added Files:
scim-input-pad-0.1.0-casts.patch scim-input-pad.spec
Log Message:
auto-import scim-input-pad-0.1.0-2 on branch devel from scim-input-pad-0.1.0-2.src.rpm
scim-input-pad-0.1.0-casts.patch:
--- NEW FILE scim-input-pad-0.1.0-casts.patch ---
--- src/scim_input_pad.cpp.orig 2005-10-08 10:02:45.000000000 +0900
+++ src/scim_input_pad.cpp 2005-10-08 10:09:19.000000000 +0900
@@ -245,7 +245,7 @@
InputElement elm;
GtkWidget *vbox = 0;
- elm.type = (InputElementType) ((gint)g_object_get_data (G_OBJECT (button), "element_type"));
+ elm.type = (InputElementType) ((gint)(size_t) g_object_get_data (G_OBJECT (button), "element_type"));
if (elm.type == INPUT_ELEMENT_STRING) {
const gchar *str = gtk_button_get_label(GTK_BUTTON(button));
@@ -305,7 +305,7 @@
button_released_callback (GtkButton *button, gpointer user_data)
{
if (enable_repeat) {
- guint id = (guint) g_object_get_data (G_OBJECT (button), "button_repeat_timeout_id");
+ guint id = (guint)(size_t) g_object_get_data (G_OBJECT (button), "button_repeat_timeout_id");
g_source_remove (id);
g_object_set_data (G_OBJECT (button), "initial_pressed", (gpointer) 0);
}
@@ -390,7 +390,7 @@
if (GTK_WIDGET_VISIBLE (preview_window)) {
gtk_widget_hide (preview_window);
} else {
- guint id = (guint) g_object_get_data (G_OBJECT (button), "preview_timeout_id");
+ guint id = (guint)(size_t) g_object_get_data (G_OBJECT (button), "preview_timeout_id");
g_source_remove (id);
}
}
--- NEW FILE scim-input-pad.spec ---
Name: scim-input-pad
Version: 0.1.0
Release: 2%{?dist}
Summary: On-screen Input Pad for SCIM
Group: System Environment/Libraries
License: GPL
URL: http://www.scim-im.org/
Source0: http://dl.sourceforge.net/sourceforge/scim/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: scim-devel
Requires: scim
Patch0: scim-input-pad-0.1.0-casts.patch
%description
Scim-input-pad is an on-screen input pad used to input symbols easily.
%prep
%setup -q
%patch0 -p0 -b .orig
%build
%configure --disable-static
make %{?_smp_mflags}
%install
rm -rf ${RPM_BUILD_ROOT}
make DESTDIR=${RPM_BUILD_ROOT} install
rm ${RPM_BUILD_ROOT}/%{_libdir}/scim-1.0/Helper/input-pad.la
rm ${RPM_BUILD_ROOT}/%{_libdir}/libscim-input-pad.{la,so}
%find_lang %{name}
%clean
rm -rf ${RPM_BUILD_ROOT}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING NEWS README ChangeLog
%{_bindir}/scim-input-pad
%{_libdir}/libscim-input-pad.so.*
%{_libdir}/scim-1.0/Helper/input-pad.so
%{_datadir}/scim/icons/input-pad.png
%dir %{_datadir}/scim/input-pad/
%{_datadir}/scim/input-pad/*
%changelog
* Sat Oct 8 2005 Ryo Dairiki <ryo-dairiki at users.sourceforge.net>
- initial packaging for Extras.
- add scim-input-pad-0.1.0-casts.patch from cvs to fix build on gcc4
* Sat Mar 5 2005 James Su <suzhe at tsinghua.org.cn>
- first release of scim-input-pad.
More information about the fedora-extras-commits
mailing list