Takashi Iwai
f5c0dde74c
OBS-URL: https://build.opensuse.org/package/show/M17N/ibus-sunpinyin?expand=0&rev=3
53 lines
1.2 KiB
RPMSpec
53 lines
1.2 KiB
RPMSpec
#
|
|
# This file and all modifications and additions to the pristine
|
|
# package are under the same license as the package itself.
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
Name: ibus-sunpinyin
|
|
Version: 2.0.3
|
|
Release: 1
|
|
Summary: Sunpinyin module for ibus
|
|
Group: System/I18n/Chinese
|
|
License: GPLv2 and CDDL dual-licenses
|
|
Url: http://code.google.com/p/sunpinyin/
|
|
BuildRequires: ibus-devel, python >= 2.6, intltool, gcc-c++, scons >= 1.2.0
|
|
%if 0%{?suse_version}
|
|
BuildRequires: sqlite3-devel libxslt
|
|
%else
|
|
BuildRequires: sqlite-devel
|
|
%endif
|
|
BuildRequires: libsunpinyin-devel
|
|
Requires: ibus
|
|
Source: http://sunpinyin.googlecode.com/files/ibus-sunpinyin-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
AutoReqProv: on
|
|
|
|
%description
|
|
ibus-sunpinyin is a wrapper around SunPinyin which enables user to use
|
|
SunPinyin with IBus framework.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
scons --prefix=%{_prefix} --libdir=%{_libdir}
|
|
|
|
%install
|
|
scons install --prefix=%{_prefix} --libdir=%{_libdir} --install-sandbox=$RPM_BUILD_ROOT
|
|
%find_lang %{name}
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%doc README COPYING
|
|
/usr/lib/ibus-sunpinyin
|
|
%{_datadir}/%{name}
|
|
%{_datadir}/ibus/component/*
|
|
|
|
%changelog
|
|
|