2011-08-01 10:13:29 +02:00
|
|
|
#
|
2014-09-09 16:43:29 +02:00
|
|
|
# spec file for package ibus-sunpinyin
|
2012-02-11 14:59:13 +01:00
|
|
|
#
|
2021-11-02 05:01:23 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2012-02-11 14:59:13 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-10-24 17:20:45 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-08-01 10:13:29 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: ibus-sunpinyin
|
2021-11-02 05:01:23 +01:00
|
|
|
Version: 2.0.99.2
|
2014-09-09 16:43:29 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Sunpinyin module for ibus
|
2021-11-02 05:01:23 +01:00
|
|
|
License: CDDL-1.0 OR LGPL-2.1-only
|
2014-09-09 16:43:29 +02:00
|
|
|
Group: System/I18n/Chinese
|
2021-11-02 05:01:23 +01:00
|
|
|
URL: https://github.com/sunpinyin/sunpinyin
|
|
|
|
Source: https://github.com/sunpinyin/sunpinyin/archive/v3.0.0-rc2/sunpinyin-3.0.0-rc2.tar.gz
|
2020-03-06 09:57:23 +01:00
|
|
|
# PATCH-FIX-UPSTREAM ibus-sunpinyin-fix-libexecdir.patch hillwood@opensuse.org -- libexecdir should be in %{_libdir}/ibus/
|
2021-11-02 05:01:23 +01:00
|
|
|
Patch0: ibus-sunpinyin-fix-libexecdir.patch
|
2014-09-09 16:43:29 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: scons >= 1.2.0
|
2018-08-28 12:30:23 +02:00
|
|
|
BuildRequires: pkgconfig(ibus-1.0)
|
2020-03-04 13:48:41 +01:00
|
|
|
BuildRequires: pkgconfig(python3)
|
2018-08-28 12:30:23 +02:00
|
|
|
BuildRequires: pkgconfig(sqlite3)
|
|
|
|
BuildRequires: pkgconfig(sunpinyin-2.0)
|
|
|
|
Requires: sunpinyin-data
|
2011-08-01 10:13:29 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
ibus-sunpinyin is a wrapper around SunPinyin which enables user to use
|
2014-09-09 16:43:29 +02:00
|
|
|
SunPinyin with IBus framework.
|
2011-08-01 10:13:29 +02:00
|
|
|
|
|
|
|
%prep
|
2021-11-02 05:01:23 +01:00
|
|
|
%autosetup -p1 -n sunpinyin-3.0.0-rc2
|
2014-09-09 16:43:29 +02:00
|
|
|
sed -i "s/LIBEXECDIR'\].*ibus-sunpinyin.*/LIBEXECDIR'\]/" SConstruct
|
2021-11-05 12:45:09 +01:00
|
|
|
sed -i "s/exec python /exec python3 /g" wrapper/ibus/setup/ibus-setup-sunpinyin.in
|
2011-08-01 10:13:29 +02:00
|
|
|
|
|
|
|
%build
|
2018-08-28 12:30:23 +02:00
|
|
|
cd wrapper/ibus/
|
|
|
|
scons --prefix=%{_prefix} \
|
|
|
|
--libdir=%{_libdir} \
|
2020-03-06 09:57:23 +01:00
|
|
|
--libexecdir=%{_libdir}/ibus
|
2011-08-01 10:13:29 +02:00
|
|
|
|
|
|
|
%install
|
2018-08-28 12:30:23 +02:00
|
|
|
pushd wrapper/ibus/
|
|
|
|
scons install --prefix=%{_prefix} \
|
|
|
|
--libdir=%{_libdir} \
|
2020-03-06 09:57:23 +01:00
|
|
|
--libexecdir=%{_libdir}/ibus \
|
2018-08-28 12:30:23 +02:00
|
|
|
--install-sandbox=%{buildroot}
|
|
|
|
popd
|
2011-08-01 10:13:29 +02:00
|
|
|
|
2020-03-06 09:57:23 +01:00
|
|
|
chmod 755 %{buildroot}%{_datadir}/%{name}/setup/main.py
|
|
|
|
|
2014-09-09 16:43:29 +02:00
|
|
|
%find_lang %{name}
|
2011-08-01 10:13:29 +02:00
|
|
|
|
2011-08-01 10:41:30 +02:00
|
|
|
%files -f %{name}.lang
|
2011-08-01 10:13:29 +02:00
|
|
|
%defattr(-,root,root)
|
2021-11-02 05:01:23 +01:00
|
|
|
%doc wrapper/ibus/README
|
2020-03-03 14:25:08 +01:00
|
|
|
%license wrapper/ibus/COPYING wrapper/ibus/LGPL.LICENSE wrapper/ibus/OPENSOLARIS.LICENSE
|
2020-03-06 09:57:23 +01:00
|
|
|
%{_libdir}/ibus/ibus-engine-sunpinyin
|
|
|
|
%{_libdir}/ibus/ibus-setup-sunpinyin
|
2011-08-01 10:41:30 +02:00
|
|
|
%{_datadir}/%{name}
|
2014-09-09 16:43:29 +02:00
|
|
|
%{_datadir}/ibus/component/sunpinyin.xml
|
2011-08-01 10:13:29 +02:00
|
|
|
|
|
|
|
%changelog
|