File scim-unikey.spec of Package scim-unikey

#
# spec file for package scim-unikey
#
# 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-unikey
Version:        0.3.1
Release:        0
Summary:        Vietnamese Input Method Engine for SCIM using Unikey IME
License:        GPL-2.0
Group:          System/Localization
Url:            http://code.google.com/p/scim-unikey/
Source:         %{name}-%{version}.tar.bz2
#FIX-FOR-UPSTREAM replace old gtk functions for openSUSE
Patch1:         gtk-replace-gtk_signal_connect-and-GTK_OBJECT.patch
BuildRequires:  automake
BuildRequires:  gcc-c++
BuildRequires:  scim-devel >= 1.4.7
Requires:       scim

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
SCIM (Smart Common Input Method) is an input method (IM) platform.
scim-unikey is a IME for scim. Use for type Vietnamese
Support via forum at: http://forum.ubuntu-vn.com/viewforum.php?f=85

%prep
%setup -q
%if %suse_version >= 1140
%patch1 -p1
%endif

%build
%configure -libdir=%{_libdir} --prefix=%{_prefix}
make

%install
%makeinstall
rm -f %{buildroot}%{_libdir}/*.so

%if ! 0%{?sles_version}
%if %{_lib} == lib64
mv %{buildroot}%{_prefix}/{lib,lib64}/scim-setup-unikey
%endif
%endif

find %{buildroot} -name *.la -exec rm '{}' +
%find_lang %{name}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_libdir}/scim-1.0/1.4.0/IMEngine/unikey.*
%{_libdir}/scim-1.0/1.4.0/Helper/unikey-helper.so
%{_datadir}/scim-unikey/
%{_libdir}/libunikey-scim.so.*
%{_datadir}/scim/icons/scim-unikey*.png
%{_libdir}/scim-setup-unikey

%changelog
openSUSE Build Service is sponsored by