Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:ramax
hime
hime.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File hime.spec of Package hime
# # spec file for package hime # # 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 %define date %(date +%Y%m%d) %if ! %{defined _distconfdir} %define _distconfdir %{_sysconfdir} %endif Name: hime Version: 0.10.1 Release: %{date} License: LGPL-2.1+ Summary: A GCIN-like Input Method Editor Url: https://github.com/caleb-/hime Group: System/I18n/Chinese Source: %{name}-%{version}.tar.bz2 Source1: xim.d-%{name} Source2: xinput-%{name}.conf Source3: xim.%{name}.suse.template Source4: hime-rpmlintrc Patch0: utf8-edit.patch Patch1: imhime.c.patch Patch2: qt6path-fix.patch BuildRequires: gtk2-devel BuildRequires: gtk3-devel %if 0%{?suse_version} < 01550 && 0%{?is_opensuse} BuildRequires: libqt4-devel %endif BuildRequires: libQt5Core-devel BuildRequires: libQt5Gui-devel BuildRequires: libQt5DBus-devel BuildRequires: libQt5Gui-private-headers-devel BuildRequires: libQt5Core-private-headers-devel BuildRequires: libQt5DBus-private-headers-devel BuildRequires: qt6-core-devel BuildRequires: qt6-dbus-devel BuildRequires: qt6-gui-devel BuildRequires: qt6-core-private-devel BuildRequires: qt6-dbus-private-devel BuildRequires: qt6-gui-private-devel BuildRequires: anthy-devel BuildRequires: libXtst-devel BuildRequires: libappindicator-devel BuildRequires: libchewing-devel BuildRequires: update-desktop-files BuildRequires: fdupes Requires: %{name}-data = %{version} Requires: %{name}-chewing Requires: %{name}-tables Requires: %{name}-anthy Requires: %{name}-icon-themes BuildRoot: %{_tmppath}/%{name}-%{version}-build %gtk2_immodule_requires %description Hime Input Method is a community GCIN fork. GCIN is an input method server supports various IM and all Unix-like OS. %package data Summary: Arch Independent Data for Hime IM Group: System/I18n/Chinese Requires: %{name} = %{version} BuildArch: noarch %description data This package contains default theme and other arch independent data for Hime Input Method. %package doc Summary: Documentations for Hime IM Group: Documentation/Man Requires: %{name} = %{version} BuildArch: noarch %description doc This package contains Man Documentations for Hime Input Method. %package devel Summary: Development tools for Hime IM Group: Development/Libraries/C and C++ Requires: %{name} = %{version} %description devel This package contains development tools for Hime Input Method. %package anthy Summary: Anthy Support for Hime IM Group: System/I18n/Chinese Requires: %{name} = %{version} %description anthy This package contains anthy support for Hime Input Method. %package chewing Summary: Chewing Support for Hime IM Group: System/I18n/Chinese Requires: %{name} = %{version} %description chewing This package contains chewing support for Hime Input Method. %package gtk3-immodule Summary: GTK3 IM Module for Hime IM Group: System/I18n/Chinese Requires: %{name} = %{version} %gtk3_immodule_requires %description gtk3-immodule This package contains gtk3 im module for Hime Input Method. %if 0%{?suse_version} < 01550 && 0%{?is_opensuse} %package qt4-immodule Summary: QT4 IM Module for Hime IM Group: System/I18n/Chinese Requires: %{name} = %{version} %description qt4-immodule This package contains qt4 im module for Hime Input Method. %endif %package qt5-immodule Summary: QT5 IM Module for Hime IM Group: System/I18n/Chinese Requires: %{name} = %{version} %description qt5-immodule This package contains qt5 im module for Hime Input Method. %package qt6-immodule Summary: QT6 IM Module for Hime IM Group: System/I18n/Chinese Requires: %{name} = %{version} %description qt6-immodule This package contains qt6 im module for Hime Input Method. %package tables Summary: Tables for Hime IM Group: System/I18n/Chinese Requires: %{name} = %{version} BuildArch: noarch %description tables This package contains tables for Hime Input Method. %package icon-themes Summary: Icon Themes for Hime IM Group: System/I18n/Chinese Requires: %{name} = %{version} BuildArch: noarch %description icon-themes This package contains pink/black/dark/gray themes for Hime Input Method. %prep %autosetup -p1 %build %configure --prefix=%{_prefix} -libdir=%{_libdir} --with-gtk=2.0 --qt5-im-module-path=%{_libqt5_plugindir}/platforminputcontexts/ --qt6-moc-path=%{_qt6_libexecdir}/moc --qt6-im-module-path=%{_qt6_pluginsdir}/platforminputcontexts/ make %{?_smp_mflags} %install %make_install %if 0%{?suse_version} %{__mkdir} -pv %{buildroot}%{_distconfdir}/X11/xim.d/ install -m 644 %{S:1} %{buildroot}%{_distconfdir}/X11/xim.d/%{name} pushd %{buildroot}%{_distconfdir}/X11/xim.d/ for lang in zh_CN ja ko en do %{__mkdir} $lang pushd $lang ln -s ../%{name} 60-%{name} popd done %{__mkdir} -pv zh_TW pushd zh_TW ln -s ../%{name} 30-%{name} popd popd #fix desktop categories sed -i "15d" %{buildroot}%{_datadir}/applications/%{name}-setup.desktop echo "Categories=System;Utility;X-SuSE-DesktopUtility;" >> %{buildroot}%{_datadir}/applications/%{name}-setup.desktop %suse_update_desktop_file %{name}-setup Utility DesktopUtility %else %{__mkdir} %{buildroot}%{_distconfdir}/X11/xinit/xinput.d/ install -m 644 %{S:2} %{buildroot}%{_distconfdir}/X11/xinit/xinput.d/%{name}.conf %endif %{__rm} -rf %{buildroot}%{_datadir}/doc/%{name}/ %fdupes %{buildroot} %find_lang %{name} # Convenient %define for the scriplets %if "%_lib" == "lib64" %define _gtk2_query_immodules %{_bindir}/gtk-query-immodules-2.0-64 %define _gtk2_query_immodules_update_cache %{_gtk2_query_immodules} > %{_sysconfdir}/gtk-2.0/gtk64.immodules %else %define _gtk2_query_immodules %{_bindir}/gtk-query-immodules-2.0 %define _gtk2_query_immodules_update_cache %{_gtk2_query_immodules} > %{_sysconfdir}/gtk-2.0/gtk.immodules %endif # Convenient %define for the scriplets %if "%_lib" == "lib64" %define _gtk3_query_immodules %{_bindir}/gtk-query-immodules-3.0-64 %else %define _gtk3_query_immodules %{_bindir}/gtk-query-immodules-3.0 %endif %define _gtk3_query_immodules_update_cache %{_gtk3_query_immodules} --update-cache %post gtk3-immodule %{_gtk3_query_immodules_update_cache} #Add hime icons to gnome3 panel TARGET="/usr/share/gnome-shell/js/ui/statusIconDispatcher.js" if [ -f $TARGET ] && [ ! -f $TARGET-hime ] ; then mv $TARGET $TARGET-hime sed "/^const STANDARD_TRAY_ICON_IMPLEMENTATIONS/a \ 'hime': 'input-method'," $TARGET-hime > $TARGET fi %postun gtk3-immodule %{_gtk3_query_immodules_update_cache} %post /sbin/ldconfig %{_gtk2_query_immodules_update_cache} %postun /sbin/ldconfig %{_gtk2_query_immodules_update_cache} %files -f %{name}.lang %defattr(-,root,root) %{_distconfdir}/X11/xim.d/ %{_bindir}/* %{_libdir}/gtk-2.0/ %{_libdir}/%{name}/ %exclude %{_libdir}/%{name}/lib%{name}-im-client.so %exclude %{_libdir}/%{name}/anthy-module.so %exclude %{_libdir}/%{name}/chewing-module.so %{_datadir}/applications/%{name}-setup.desktop %dir %{_datadir}/%{name}/ %dir %{_datadir}/%{name}/table/ %{_datadir}/%{name}/table/*.tab2 %{_datadir}/%{name}/table/*.xlt %{_datadir}/%{name}/table/*.idx %{_datadir}/%{name}/table/s-tsin32 %{_datadir}/%{name}/table/tsin32 %{_datadir}/%{name}/table/s2t.dat %{_datadir}/%{name}/table/t2s.dat %files data %defattr(-,root,root) %{_datadir}/pixmaps/%{name}/ %exclude %{_datadir}/pixmaps/%{name}/black/ %exclude %{_datadir}/pixmaps/%{name}/dark/ %exclude %{_datadir}/pixmaps/%{name}/gray/ %exclude %{_datadir}/pixmaps/%{name}/pink/ %{_datadir}/pixmaps/%{name}.png %dir %{_datadir}/%{name} %dir %{_datadir}/%{name}/table/ %{_datadir}/%{name}/table/*.kbm %{_datadir}/%{name}/table/gtab.list %{_datadir}/%{name}/table/phrase.table %{_datadir}/%{name}/table/phrase-ctrl.table %{_datadir}/%{name}/table/symbol-table %{_datadir}/%{name}/table/tsin-1.src %{_datadir}/%{name}/script/ %{_datadir}/%{name}/filter/ %files doc %defattr(-,root,root) %doc ChangeLog README.md %{_mandir}/man1/* %files devel %defattr(-,root,root) %{_includedir}/* %{_libdir}/%{name}/lib%{name}-im-client.so %files anthy %defattr(-,root,root) %{_libdir}/%{name}/anthy-module.so %files chewing %defattr(-,root,root) %{_libdir}/%{name}/chewing-module.so %files gtk3-immodule %defattr(-,root,root) %{_libdir}/gtk-3.0/ %if 0%{?suse_version} < 01550 && 0%{?is_opensuse} %files qt4-immodule %defattr(-,root,root) %{_libdir}/qt4/ %endif %files qt5-immodule %defattr(-,root,root) %{_libdir}/qt5/ %files qt6-immodule %defattr(-,root,root) %{_libdir}/qt6/ %files tables %defattr(-,root,root) %dir %{_datadir}/%{name} %dir %{_datadir}/%{name}/table/ %{_datadir}/%{name}/table/*.gtab %files -n %{name}-icon-themes %defattr(-,root,root) %{_datadir}/pixmaps/%{name}/pink/ %{_datadir}/pixmaps/%{name}/black/ %{_datadir}/pixmaps/%{name}/dark/ %{_datadir}/pixmaps/%{name}/gray/ %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