Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.3
kimtoy
kimtoy.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kimtoy.spec of Package kimtoy
# # spec file for package kimtoy # # 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: kimtoy Version: 1.9.2 Release: 0 Summary: An input method frontend for KDE License: GPL-2.0+ Group: System/I18n/Chinese Url: http://kde-apps.org/content/show.php/KIMToy?content=140967 Source: %{name}-%{version}.tar.bz2 Source1: xim.d-kimtoy Source2: draw-freehand.svg Source3: draw-freehand.svgz BuildRequires: cmake %if 0%{?suse_version} > 1210 BuildRequires: libdbus-c++-devel %endif BuildRequires: gcc-c++ BuildRequires: ibus-devel BuildRequires: intltool BuildRequires: libkde4-devel BuildRequires: libtool BuildRequires: libunique-devel # libpng Upstream rejected Mozilla's apng, thus can't be included in SuSE either. #BuildRequires: libpng14-devel libpng14-compat-devel libpng-apng BuildRequires: rsvg-view BuildRequires: scim-devel BuildRequires: update-desktop-files BuildRequires: pkgconfig(dbus-1) BuildRoot: %{_tmppath}/%{name}-%{version}-build Recommends: %{name}-lang = %{version} %kde4_runtime_requires %description KIMToy is an input method frontend for KDE. It is an alternative to kimpanel plasmoid. KIMToy uses the same dbus ipc specification as kimpanel, say org.kde.impanel, so where kimpanel works, where KIMToy works. KIMToy is a standalone application, has no dependence on plasma, so it won\'t make your whole desktop unstable. KIMToy aims to provide a stable and intergrated frontend for Asian input method, such as fcitx, scim and ibus. KIMToy makes easy for fcitx/ibus/scim users. These three input method should work out of box since KIMToy-0.2. KIMToy is able to load sogou input method theme since KIMToy-0.4. %package -n kimtoy-backend-scim Summary: Scim Backend for Kimtoy Group: System/I18n/Chinese Requires: %{name} = %{version} %kde4_runtime_requires %description -n kimtoy-backend-scim KIMToy is an input method frontend for KDE. This contains its scim backend %package -n kimtoy-backend-ibus Summary: Ibus Backend for Kimtoy Group: System/I18n/Chinese Requires: %{name} = %{version} %kde4_runtime_requires %description -n kimtoy-backend-ibus KIMToy is an input method frontend for KDE. This contains its ibus backend. %lang_package %prep %setup -q %build mkdir build cd build CXXFLAGS="-pthread" cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=%{_libdir} make %install cd build %make_install cd .. %suse_update_desktop_file kimtoy Utility DesktopUtility #The autolaunch of fcitx must be disabled. The following is just a work around. mkdir -p %{buildroot}%{_sysconfdir}/X11/xim.d/ install -m 644 $RPM_SOURCE_DIR/xim.d-kimtoy %{buildroot}%{_sysconfdir}/X11/xim.d/kimtoy pushd %{buildroot}%{_sysconfdir}/X11/xim.d/ for lang in en zh_CN ; do mkdir $lang pushd $lang ln -s ../kimtoy 35-kimtoy popd done popd %suse_update_desktop_file %{buildroot}%{_datadir}/autostart/%{name}.desktop %suse_update_desktop_file %{buildroot}%{_datadir}/kde4/services/qimageioplugins/apng.desktop %suse_update_desktop_file %{buildroot}%{_datadir}/kde4/services/ssfthumbnail.desktop %suse_update_desktop_file %{buildroot}%{_datadir}/kde4/services/fskinthumbnail.desktop #fix ibus mv %{buildroot}%{_prefix}/libexec/* %{buildroot}%{_libdir} rm -rf %{buildroot}%{_prefix}/libexec/ #fix desktopfile #generate full sizes of icon beforehand %if 0%{?suse_version} mkdir -pv %{buildroot}%{_datadir}/icons/hicolor/scalable/actions/ cp -r %{SOURCE3} %{buildroot}%{_datadir}/icons/hicolor/scalable/actions/ ICONSIZE="16 22 32 48 64 128 256" for i in $ICONSIZE; do mkdir -pv %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/actions/ rsvg-convert -h $i -w $i %{SOURCE2} -o %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/actions/draw-freehand.png done %endif #fix shebang sed -i "38d" %{buildroot}%{_datadir}/autostart/%{name}.desktop sed -i "38iX-KDE-autostart-condition=kimtoyrc:behavior:AutostartKIMToy:true" %{buildroot}%{_datadir}/autostart/%{name}.desktop %find_lang %{name} %files %defattr(-,root,root,-) %{_bindir}/* %{_libdir}/kde4/* %{_libdir}/strigi %{_datadir}/kde4/services/* %{_datadir}/kde4/config/* %{_datadir}/icons/hicolor/*/actions/*.png %{_datadir}/icons/hicolor/scalable/actions/*.svgz %{_datadir}/applications/kde4/* %{_datadir}/autostart/* %{_datadir}/mime/packages/* %dir %{_sysconfdir}/X11/xim.d %config %{_sysconfdir}/X11/xim.d/* %files lang -f %{name}.lang %files -n kimtoy-backend-scim %defattr(-,root,root) %{_libdir}/scim-1.0/* %files -n kimtoy-backend-ibus %defattr(-,root,root) %{_libdir}/ibus-kconfig %{_libdir}/ibus-ui-impanel %{_datadir}/ibus/ %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor