File ibus-anthy.spec of Package ibus-anthy

#
# spec file for package ibus-anthy
#
# Copyright (c) 2014 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:           ibus-anthy
BuildRequires:  anthy-devel
BuildRequires:  fdupes
BuildRequires:  gobject-introspection-devel
BuildRequires:  ibus-devel >= 1.4.99
BuildRequires:  intltool
BuildRequires:  pkgconfig
BuildRequires:  python
BuildRequires:  python-devel
BuildRequires:  python-gobject-devel
BuildRequires:  python-gobject2-devel
BuildRequires:  swig
BuildRequires:  update-desktop-files
Version:        1.5.4
Release:        0
Summary:        The Anthy engine for IBus input platform
License:        GPL-2.0+
Group:          System/I18n/Japanese
Provides:       locale(ibus:ja)
Url:            http://code.google.com/p/ibus/
Source:         %{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")

%description
The Anthy engine for IBus platform. It provides Japanese input method from
libanthy.

%package devel
Summary:        Development files for %{name}
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}-%{release}

%description devel
The %{name}-devel package includes the header files for the %{name} package.


%prep
%setup -q

%build
%configure --disable-static \
	   --libexecdir=%{_libexecdir}
make %{?jobs:-j %jobs}

%install
%makeinstall
rm -f $RPM_BUILD_ROOT%{python_sitearch}/_anthy.la
rm -f $RPM_BUILD_ROOT%{_libdir}/libanthygobject-1.0.la

%find_lang %{name}
%fdupes -s $RPM_BUILD_ROOT

%suse_update_desktop_file ibus-setup-anthy System Utility settings

%post devel -p /sbin/ldconfig

%postun devel -p/sbin/ldconfig

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
#%{_prefix}/%{_lib}/ibus
%{_libexecdir}/ibus-*
%{_datadir}/ibus-anthy
%{_datadir}/ibus
%{_libdir}/girepository-1.0
%{_datadir}/applications/ibus-setup-anthy.desktop
%{_datadir}/icons/hicolor/
%{_libdir}/libanthygobject-*.so.*

%files devel 
%defattr(-,root,root,-)
%{_includedir}/ibus-anthy-1.0
%{_datadir}/gir-1.0
%{_libdir}/libanthygobject-*.so

%changelog
openSUSE Build Service is sponsored by