File ibus-anthy.spec of Package ibus-anthy
#
# spec file for package ibus-anthy
#
# 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: ibus-anthy
BuildRequires: anthy-devel
BuildRequires: fdupes
BuildRequires: gobject-introspection-devel
BuildRequires: ibus-devel
BuildRequires: intltool
BuildRequires: pkgconfig
BuildRequires: python-devel
BuildRequires: swig
BuildRequires: typelib-1_0-Gtk-3_0
Version: 1.5.0
Release: 2.1.1
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
%description
The Anthy engine for IBus platform. It provides Japanese input method from
libanthy.
%package -n libanthygobject-1_0-5
Summary: The Anthy engine for IBus input platform
Group: System/I18n/Japanese
%description -n libanthygobject-1_0-5
The Anthy engine for IBus platform. It provides Japanese input method from
libanthy.
%package -n typelib-1_0-Anthy-9000
Summary: The Anthy engine for IBus input platform
Group: System/I18n/Japanese
%description -n typelib-1_0-Anthy-9000
The Anthy engine for IBus platform. It provides Japanese input method from
libanthy.
%package devel
Summary: The Anthy engine for IBus input platform
Group: Development/Libraries/Other
Requires: anthy-devel
Requires: typelib-1_0-Anthy-9000 = %{version}
Requires: ibus-anthy = %{version}
%description devel
The Anthy engine for IBus platform. It provides Japanese input method from
libanthy.
%prep
%setup -q
%build
%configure --disable-static \
--libexecdir=%{_prefix}/%{_lib}/ibus
make
%install
%makeinstall
rm -f $RPM_BUILD_ROOT%{python_sitearch}/_anthy.la
# Fix python-bytecode-inconsistent-mtime
pushd %{buildroot}%{_datadir}/ibus-anthy/engine
%py_compile _config.py
%py_compile -O _config.py
mv ./_config.pyc %{buildroot}%{_datadir}/ibus-anthy/setup/_config.pyc
mv ./_config.pyo %{buildroot}%{_datadir}/ibus-anthy/setup/_config.pyo
popd
# Remove static libs
rm -f %{buildroot}/%{_libdir}/libanthygobject-*.*a
%find_lang %{name}
%fdupes -s $RPM_BUILD_ROOT
%post -n libanthygobject-1_0-5 -p /sbin/ldconfig
%postun -n libanthygobject-1_0-5 -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
%{_prefix}/%{_lib}/ibus
%{_datadir}/applications/*
%{_datadir}/ibus-anthy
%{_datadir}/ibus
%{_datadir}/icons/hicolor/*/apps/*
%files -n libanthygobject-1_0-5
%defattr(-,root,root,-)
%{_libdir}/libanthygobject*.so.*
%files -n typelib-1_0-Anthy-9000
%defattr(-,root,root,-)
%{_libdir}/girepository-1.0/Anthy-9000.typelib
%files devel
%defattr(-,root,root,-)
%{_libdir}/libanthygobject*.so
%{_includedir}/*
%{_datadir}/gir-1.0/Anthy-9000.gir
%changelog
* Sun Apr 28 2013 kyoushuu@yahoo.com
- Update to 1.5.0
- Use `make %%{?_smp_mflags}` instead of `make %%{?jobs:-j%%jobs}`
See: http://en.opensuse.org/openSUSE:Specfile_guidelines#Parallel_make
- fix python-bytecode-inconsistent-mtime
* Tue Jun 26 2012 tiwai@suse.de
- back to version 1.2.7, as 1.4rc is still too unstable and
doesn't work on M17N/12.1 systems at all
* Sat Jun 9 2012 hillwood@linuxfans.org
- update to 1.3.99.20120327(1.4rc).
* Wed Jun 6 2012 hillwood@linuxfans.org
- update to 1.2.7
* Fri Jul 22 2011 tiwai@suse.de
- Add missing locale-specific provides tag (bnc#707712)
* Tue Jun 14 2011 swyear@gmail.com
- Update to 1.2.6
translation updates; gconf-SEGV fix; fixes for new ibus; etc
* Wed Mar 24 2010 tiwai@suse.de
- fix file list
* Thu Jan 28 2010 mxwu@novell.com
- Initial import