[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: New package: scim-pinyin



Ryo Dairiki wrote:
> Hi,
> I've made scim-pinyin package.
> You can get it from here:
> http://briefcase.yahoo.co.jp/bc/ryo_dairiki/lst?&.dir=/&.src=bc&.view=l

Thanks, Dairiki-san. :)

Please feel free to import it into cvs (again with the origin
unmodified upstream tarball please).

I attach a small patch with some minor fixes, and your cast patch.

> Btw, currently my scim package contains two "scim-setup."
> One is a capplet and the other is an application, but actually, they are
> the same things.

Sorry which is the capplet?

> Now I'm thinking of removing the capplet one.  What do you think?

Sounds like a good idea.  Did you test scim without it? :)

Jens
diff -u scim-pinyin.spec~ scim-pinyin.spec
--- scim-pinyin.spec~	2005-06-20 22:36:03.000000000 +0900
+++ scim-pinyin.spec	2005-06-20 22:36:03.000000000 +0900
@@ -1,26 +1,28 @@
 Name:           scim-pinyin
 Version:        0.5.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Smart Pinyin IMEngine for Smart Common Input Method platform
 
 License:        GPL
 Group:          System Environment/Libraries
-URL:            http://www.scim-im.org/
-Source0:        %{name}-%{version}.tar.gz
+URL:            http://www.scim-im.org/projects/imengines/
+Source0:        http://dl.sourceforge.net/scim/%{name}-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Patch1:         scim-pinyin-0.5.0-setup-ambiguity-cast.patch
 
 BuildRequires:  scim-devel, gtk2-devel
 
 
 %description
-This package includes Simplified Chinese Smart Pinyin IMEngine for SCIM.
+Simplified Chinese Smart Pinyin IMEngine for SCIM.
 
 
 %prep
 %setup -q
+%patch1 -p1 -b .orig
 
 %build
-%configure
+%configure --disable-static
 make %{?_smp_mflags}
 
 
@@ -28,10 +30,7 @@
 rm -rf $RPM_BUILD_ROOT
 make DESTDIR=${RPM_BUILD_ROOT} install
 
-# kill *.a and *.la files
-rm -f $RPM_BUILD_ROOT/%{_libdir}/scim-1.0/IMEngine/*.{a,la}
-rm -f $RPM_BUILD_ROOT/%{_libdir}/scim-1.0/SetupUI/*.{a,la}
-
+rm $RPM_BUILD_ROOT%{_libdir}/scim-1.0/{IMEngine,SetupUI}/*.la
 
 %find_lang %{name}
 
@@ -58,7 +57,13 @@
 
 
 %changelog
-* Sat Jun 18 2005 Ryo Dairiki <ryo-dairiki users sourceforge net> -0.5.0
+* Mon Jun 20 2005 Jens Petersen <petersen redhat com> - 0.5.0-2
+- add source url
+- add scim-pinyin-0.5.0-setup-ambiguity-cast.patch from cvs to fixing build
+  on 64bit archs (Ryo Dairiki)
+- configure with --disable-static so only .la files need to be removed
+
+* Sat Jun 18 2005 Ryo Dairiki <ryo-dairiki users sourceforge net> - 0.5.0-1
 - Initial packaging for Fedora Extras.
 
 * Thu Jan 06 2005 James Su <suzhe tsinghua org cn>
--- scim-pinyin-0.5.0/src/scim_pinyin_imengine_setup.cpp~	2005-01-06 22:31:00.000000000 +0900
+++ scim-pinyin-0.5.0/src/scim_pinyin_imengine_setup.cpp	2005-06-20 15:50:02.000000000 +0900
@@ -1290,7 +1290,7 @@
 __on_ambiguities_toggled               (GtkToggleButton *togglebutton,
                                         gpointer         user_data)
 {
-    int  index = (int) user_data;
+    size_t index = (size_t) user_data;
 
     if (index >= 0 && index <= SCIM_PINYIN_AmbLast) {
         __config_ambiguities [index] = gtk_toggle_button_get_active (togglebutton);

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]