File scim-chewing.spec of Package scim-chewing

#
# spec file for package scim-chewing
#
# Copyright (c) 2013 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-chewing
Version:        0.3.5
Release:        0
Summary:        Chewing input method module for SCIM
License:        GPL-2.0+
Group:          System/I18n/Chinese
Url:            http://chewing.csie.net/
Source:         http://chewing.csie.net/download/scim/scim-chewing-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM marguerite@opensuse.org - bump libchewing requirement in configure.ac
Patch:          scim-chewing-0.3.5-bump_libchewing_version.patch
BuildRequires:  gcc-c++
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  libchewing-devel
BuildRequires:  perl-XML-Parser
BuildRequires:  scim-devel
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Chewing input method module for SCIM.

%prep
%define scim_binary_version %(pkg-config --variable=scim_binary_version scim)
%setup -q
%patch -p1

%build
CXXFLAGS="%{optflags}" \
./configure --prefix=/usr \
            --sysconfdir=%{_sysconfdir} \
	    --libdir=%{_libdir} \
            --disable-static \
	    --disable-schemas-install \
	    --with-gconf-schema-file-dir=/etc/opt/gnome/gconf/schemas \
	    --enable-debug
make

%install
%makeinstall
rm -f %{buildroot}%{_libdir}/scim-1.0/%{scim_binary_version}/*/*.la
%find_lang scim-chewing

%clean

%files -f scim-chewing.lang
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README ChangeLog
%{_libdir}/scim-1.0/%{scim_binary_version}/IMEngine/chewing.so
%{_libdir}/scim-1.0/%{scim_binary_version}/SetupUI/chewing-imengine-setup.so
%{_datadir}/scim/icons/*.png

%changelog
openSUSE Build Service is sponsored by