File chameleon-tongue.spec of Package chameleon-tongue
#
# spec file for package chameleon-tongue
#
# Copyright (c) 2015 SUSE LINUX 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: chameleon-tongue
Version: 0.2.0
Release: 0
Summary: An extensible input method launcher
License: BSD-3-Clause
Group: System/I18n/Chinese
Url: https://github.com/ftake/chameleon-tongue
Source: %{name}-%{version}.tar.xz
BuildRequires: boost-devel
BuildRequires: cmake
BuildRequires: gcc-c++
%description
chameleon-tongue is a framework for launching input methods. It provides
mechanisms selecting a input method accoding to the current locale,
setting up environment variables for the selected one, and starting
the input method in an aprropriate way for the current desktop environment.
It also allows users to customize input methods in both user level and
system wide.
%package ibus
Summary: This package contsins launch scripts for IBus
Group: System/I18n/Chinese
Requires: %{name} = %{version}
Requires: ibus
%description ibus
This package contains launch scripts for IBus
%package fcitx
Summary: This package contsins launch scripts for Fcitx
Group: System/I18n/Chinese
Requires: %{name} = %{version}
Requires: fcitx
%description fcitx
This package contains launch scripts for Fcitx
%package gcin
Summary: This package contsins launch scripts for Gcin
Group: System/I18n/Chinese
Requires: %{name} = %{version}
Requires: gcin
%description gcin
This package contains launch scripts for Gcin
%prep
%setup -q
%build
%cmake
%make_jobs
%install
%cmake_install
%files
%defattr(-,root,root)
%doc COPYING
%{_prefix}/bin/im-settings
%dir %{_prefix}/lib/input-method/
%{_prefix}/lib/input-method/check-libreoffice-gnome
%{_prefix}/lib/input-method/start-im
%dir %{_prefix}/lib/input-method/locale.d/
%dir %{_prefix}/lib/input-method/locale.d/*
%dir %{_prefix}/lib/input-method/profile.d/
%{_prefix}/lib/input-method/profile.d/auto
%{_prefix}/lib/input-method/profile.d/none
%dir %{_sysconfdir}/X11/
%dir %{_sysconfdir}/X11/xinit/
%dir %{_sysconfdir}/X11/xinit/xinitrc.d/
%{_sysconfdir}/X11/xinit/xinitrc.d/*
%config %dir %{_sysconfdir}/input-method
%config %{_sysconfdir}/input-method/*
%{_sysconfdir}/xdg/autostart/*
%files ibus
%defattr(-,root,root)
%{_prefix}/lib/input-method/locale.d/*/*-ibus
%{_prefix}/lib/input-method/profile.d/ibus
%files fcitx
%defattr(-,root,root)
%{_prefix}/lib/input-method/locale.d/*/*-fcitx
%{_prefix}/lib/input-method/profile.d/fcitx
%files gcin
%defattr(-,root,root)
%{_prefix}/lib/input-method/locale.d/*/*-gcin
%{_prefix}/lib/input-method/profile.d/gcin
%changelog