File scim-wnn.spec of Package scim-wnn
#
# spec file for package scim-wnn
#
# Copyright (c) 2015 SUSE LINUX 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-wnn
Version: 1.0.0
Release: 0
Summary: Wnn Input Method Engine for SCIM
License: GPL-2.0+
Group: System/I18n/Japanese
Url: http://nop.net-p.org/modules/pukiwiki/index.php?%{name}
Source0: http://nop.net-p.org/files/%{name}/%{name}-%{version}.tar.gz
Patch0: libtool-autoconf.patch
Patch1: missing-includes.patch
Patch2: scim-wnn-no-return-in-nonvoid-function.patch
Patch3: scim-wnn-gtk3.patch
BuildRequires: gcc-c++
BuildRequires: gtk3-devel
BuildRequires: libtool
BuildRequires: scim-devel
BuildRequires: wnn-sdk
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Wnn Input Method Engine for SCIM
%prep
%setup -q
%patch -P 0 -p1
%patch -P 1 -p1
%patch -P 2 -p1
%patch -P 3 -p1
%build
autoreconf -fiv
CXXFLAGS="%{optflags}"
%configure \
--disable-static \
--enable-debug
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot} -name "*.a" -delete
find %{buildroot} -name "*.la" -delete
%find_lang %{name}
%files -f %{name}.lang
%defattr(-, root, root)
%doc AUTHORS COPYING README ChangeLog
%{_scim_enginedir}/wnn.so
%{_scim_uidir}/wnn-imengine-setup.so
%{_scim_icondir}/scim-wnn.png
%{_datadir}/scim/scim-wnn/
%changelog