65 lines
1.8 KiB
RPMSpec
65 lines
1.8 KiB
RPMSpec
#
|
|
# spec file for ibus-sunpinyin
|
|
#
|
|
# Copyright (c) 2010 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/
|
|
#
|
|
|
|
# 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
|
|
|
|
%changelog
|
|
|