File scim-m17n.spec of Package scim-m17n
#
# spec file for package scim-m17n
#
# Copyright (c) 2012 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/
#
Name: scim-m17n
#!BuildIgnore: NX
BuildRequires: gcc-c++
BuildRequires: libotf-devel
BuildRequires: libtool
BuildRequires: m17n-lib-devel
BuildRequires: scim-devel
BuildRequires: wordcut-devel
Version: 0.2.2
Release: 0
# 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)
Requires: m17n-db
Requires: m17n-lib
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
License: GPL-2.0+
Group: System/I18n/Chinese
%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