File scim-m17n.spec of Package scim-m17n

#
# spec file for package scim-m17n (Version 0.2.2)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#

# norootforbuild


Name:           scim-m17n
#!BuildIgnore: NX
BuildRequires:  gcc-c++ libotf-devel m17n-lib-devel scim-devel wordcut-devel
Version:        0.2.2
Release:        230
License:        GPL v2 or later
Group:          System/I18n/Chinese
AutoReqProv:    on
Provides:       locale(scim:am;ar;as;bn;cs;da;de;el;en;es;fa;fi;fr;gu;he;hi;hr;it;ja;ka;kk;kn;ko;lo;ml;my;nb;nl;nn;pa;pl;ru;sk;sv;vi;zh)
Requires:       m17n-lib, m17n-db
Url:            http://www.scim-im.org/
# CVS:
# cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/scim login
# cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/scim co scim-m17n
Source0:        scim-m17n-0.2.2.tar.bz2
Patch0:         missing-includes.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        M17N Input Method Engine for SCIM

%description
M17N Input Method Engine for SCIM

Supports all input methods offered by m17n-lib and m17n-db.

Currently the following languages are supported:

Amharic, Arabic, Armenian, Assamese, Bengali, Chinese, Croatian,
Devanagari, Dhivehi, Farsi, Georgian Greek, Gujarati, Hebrew, Japanese,
Kannada, Kazakh, Khmer, Korean, Lao, Malayalam, Myanmar, Oriya,
Punjabi, Russian, Serbian, Sinhala, Slovak, Syriac, Tamil, Telugu,
Thai, Tibetan, Vietnamese

Several generic input methods for languages based on the Latin alphabet
are also included.



Authors:
--------
    James Su <suzhe@tsinghua.org.cn>

%prep
%define scim_binary_version %(pkg-config --variable=scim_binary_version scim)
%setup -q -n %{name}-%{version}
%patch0 -p1
find . -name CVS -type d | xargs rm -rf

%build
libtoolize --force
autoreconf --force --install --verbose
CXXFLAGS="$RPM_OPT_FLAGS" \
./configure --prefix=/usr \
            --sysconfdir=%{_sysconfdir} \
	    --libdir=%{_libdir} \
	    --enable-debug \
            --disable-static 
make 

%install
make DESTDIR=${RPM_BUILD_ROOT} install
rm -f $RPM_BUILD_ROOT/%{_libdir}/scim-1.0/%{scim_binary_version}/IMEngine/m17n.{a,la}
# %find_lang scim-m17n

%clean
#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;

%files
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README ChangeLog
%dir %{_libdir}/scim-1.0/
%dir %{_libdir}/scim-1.0/%{scim_binary_version}/
%dir %{_libdir}/scim-1.0/%{scim_binary_version}/IMEngine/
%{_libdir}/scim-1.0/%{scim_binary_version}/IMEngine/m17n.so
%dir %{_datadir}/scim/icons/
%{_datadir}/scim/icons/scim-m17n.png

%changelog
* Wed Nov 07 2007 mfabian@suse.de
- add missing includes to fix build with gcc 4.3.0.
* Mon Apr 23 2007 mfabian@suse.de
- update to 0.2.2.
- remove force-us-keyboard.patch (was from upstream CVS).
* Thu Nov 02 2006 zsu@suse.de
- Force to convert all key events to US English keyboard layout.
  Because m17n-lib can only use US English keyboard layout.
* Sun Oct 29 2006 meissner@suse.de
- use RPM_OPT_FLAGS correctly.
* Thu Oct 12 2006 mfabian@suse.de
- update to 0.2.1
  • Improve surrounding text support
- fix build with scim 1.4.5
* Mon Jul 17 2006 mfabian@suse.de
- add "#!BuildIgnore: NX" to make it build for the
  xorg7-SUSE_Factory in the openSUSE build service.
* Tue Feb 28 2006 mfabian@suse.de
- Bugzilla #153791: use ';' in Provides locale(...).
* Thu Feb 23 2006 mfabian@suse.de
- add "Provides: locale(scim:am,ar,as,bn,cs,da,de,el,en,es,fa,fi,fr,gu,he,hi,hr,it,ja,ka,kk,kn,ko,lo,ml,my,nb,nl,nn,pa,pl,ru,sk,sv,vi,zh)".
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 13 2006 zsu@suse.de
- update to 0.2.0
* Mon Jan 10 2005 mfabian@suse.de
- update to 0.1.3.20050110.
- remove my reset-when-focus-out.patch (included now).
* Thu Dec 30 2004 mfabian@suse.de
- add Requires: m17n-lib, m17n-db.
* Wed Dec 22 2004 mfabian@suse.de
- Bugzilla #47019: add reset-when-focus-out.patch to commit
  the preedit string when switching off the input method or moving
  the focus to another application.
* Tue Dec 21 2004 mfabian@suse.de
- update to 0.1.3.20041221 (CVS version) and remove the last patch
  which is already in current CVS.
* Thu Dec 16 2004 mfabian@suse.de
- Bugzilla #49200:
  ("A patch to scim-m17n to fix an input issue in OOo when using
  gtk immodule."). Patch received from author Zhe Su applied.
* Fri Sep 03 2004 mfabian@suse.de
- update to 0.1.3.
* Tue Aug 17 2004 mfabian@suse.de
- new package: scim-m17n, version 0.1.1.
openSUSE Build Service is sponsored by