File scim-unikey.spec of Package scim-unikey
#
# spec file for package scim-unikey
#
# Copyright (c) 2011 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-unikey
Version: 0.3.1
Release: 1
Summary: Vietnamese Input Method Engine for SCIM using Unikey IME
License: GPLv2
Group: System/Localization
Url: http://code.google.com/p/scim-unikey/
Source: %{name}-%{version}.tar.bz2
BuildRequires: scim-devel >= 1.4.7
BuildRequires: gcc-c++
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
%build
%configure -libdir=%_libdir --prefix=%{_prefix}
%__make
%install
%makeinstall
%__rm -f %{buildroot}%{_libdir}/*.so
%if ! 0%{?sles_version}
%ifarch x86_64
%__mv %{buildroot}/usr/{lib,lib64}/scim-setup-unikey
%endif
%endif
find $RPM_BUILD_ROOT -name *.la -exec rm '{}' +
%find_lang %{name}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %name.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING INSTALL 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