%global __provides_exclude_from ^(.*\\.(wearable|tv|mobile|ivi))$ %bcond_with wayland Name: isf Summary: Input Service Framework Version: 6.5.8 Release: 1 Group: Graphics & UI Framework/Input License: LGPL-2.1+ Source0: %{name}-%{version}.tar.gz Source100: %{name}.conf Source200: engine-loader.service Source300: org.tizen.engine-loader.service Source400: engine-loader.conf BuildRequires: edje-bin BuildRequires: gettext-tools BuildRequires: pkgconfig(elementary) BuildRequires: pkgconfig(vconf) %if %{with wayland} BuildRequires: pkgconfig(ecore-wl2) BuildRequires: pkgconfig(xkbcommon) >= 0.3.0 BuildRequires: pkgconfig(text-client) BuildRequires: pkgconfig(input-method-client) %else BuildRequires: pkgconfig(ecore-x) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(tts) %endif BuildRequires: pkgconfig(eina) BuildRequires: pkgconfig(ecore) BuildRequires: pkgconfig(evas) BuildRequires: pkgconfig(edje) BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(efl-extension) BuildRequires: pkgconfig(libtzplatform-config) BuildRequires: pkgconfig(pkgmgr-info) BuildRequires: pkgconfig(sqlite3) BuildRequires: pkgconfig(aul) BuildRequires: pkgconfig(capi-appfw-app-control) BuildRequires: pkgconfig(capi-appfw-app-common) BuildRequires: pkgconfig(capi-appfw-service-application) BuildRequires: pkgconfig(cynara-client) BuildRequires: pkgconfig(cynara-creds-socket) BuildRequires: pkgconfig(cynara-session) BuildRequires: pkgconfig(capi-appfw-package-manager) BuildRequires: pkgconfig(capi-system-info) BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(notification) BuildRequires: pkgconfig(gmock) BuildRequires: pkgconfig(gio-2.0) Requires(postun): /sbin/ldconfig Requires: org.tizen.isf-kbd-mode-changer %define APP_PREFIX %{TZ_SYS_RO_APP}/org.tizen.isf-kbd-mode-changer/bin/ %description Input Service Framewok (ISF) is an input method (IM) platform, and it has been derived from SCIM. %package devel Summary: ISF header files Requires: %{name} = %{version}-%{release} %description devel This package contains ISF header files for ISE development. %package -n org.tizen.isf-kbd-mode-changer Summary: Keyboard mode changer Group: Graphics & UI Framework/Input Requires: %{name} = %{version}-%{release} %description -n org.tizen.isf-kbd-mode-changer Keyboard mode changer application %package unittests Summary: Unit test cases for isf Group: Graphics & UI Framework/Input Requires: %{name} = %{version}-%{release} %description unittests Unit test cases for isf %package -n ise-engine-loader Summary: ISE engine loader Group: Graphics & UI Framework/Input License: GPL-2.0+ Requires: %{name} = %{version}-%{release} %description -n ise-engine-loader ISE Engine loader %prep %setup -q cp %{SOURCE300} . %build export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE" export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE" export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE" %if %{with wayland} export CFLAGS="$CFLAGS -DWAYLAND" export CXXFLAGS="$CXXFLAGS -DWAYLAND" %endif export GC_SECTIONS_FLAGS="-fdata-sections -ffunction-sections -Wl,--gc-sections" export CFLAGS="$CFLAGS -fvisibility=hidden ${GC_SECTIONS_FLAGS} -Werror" export CXXFLAGS="$CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden ${GC_SECTIONS_FLAGS} -Werror" export CFLAGS_BASIS="$CFLAGS" export CXXFLAGS_BASIS="$CXXFLAGS" %autogen %configure --disable-static \ --disable-tray-icon \ --disable-filter-sctc \ %if %{with wayland} --disable-efl-immodule \ %endif --disable-frontend-x11 \ --disable-multiwindow-support \ --disable-ime-embed-app \ --with-ro-app-dir=%{TZ_SYS_RO_APP} \ --with-ro-packages-dir=%{TZ_SYS_RO_PACKAGES} \ --enable-remote-input make %{?_smp_mflags} %install rm -rf %{buildroot} %make_install mkdir -p %{buildroot}%{_tmpfilesdir} install -m 0644 %SOURCE100 %{buildroot}%{_tmpfilesdir}/%{name}.conf mkdir -p %{buildroot}/%{TZ_SYS_ETC}/dump.d/module.d cp -af ism/dump/isf_log_dump.sh %{buildroot}/%{TZ_SYS_ETC}/dump.d/module.d mkdir -p %{buildroot}/etc/scim/conf mkdir -p %{buildroot}/usr/share/upgrade/scripts/ mkdir -p %{buildroot}%{_prefix}/lib/systemd/system install -m 0644 %SOURCE200 %{buildroot}%{_unitdir}/engine-loader.service mkdir -p %{buildroot}%{_datadir}/dbus-1/system-services install -m 0644 %SOURCE300 %{buildroot}%{_datadir}/dbus-1/system-services/org.tizen.engine-loader.service mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d install -m 0644 %SOURCE400 %{buildroot}%{_sysconfdir}/dbus-1/system.d/engine-loader.conf %find_lang scim cat scim.lang > isf.lang %post /sbin/ldconfig %postun -p /sbin/ldconfig %files -f isf.lang %manifest %{name}.manifest %defattr(-,root,root,-) %dir /etc/scim/conf %attr(644,root,root) %{_sysconfdir}/profile.d/isf.sh %{_sysconfdir}/scim/global %{_sysconfdir}/scim/config %{_datadir}/scim/icons/* %{_bindir}/isf-demo-efl %{_bindir}/isf-panel-efl %{_libdir}/ecore_imf/modules/*/*/*.so %{_libdir}/scim-1.0/1.4.0/IMEngine/socket.so %{_libdir}/scim-1.0/1.4.0/PanelAgent/*.so %{_libdir}/scim-1.0/1.4.0/Config/simple.so %{_libdir}/scim-1.0/1.4.0/Config/socket.so %{_libdir}/scim-1.0/1.4.0/FrontEnd/*.so %{_libdir}/scim-1.0/scim-helper-launcher %{_libdir}/libscim-*.so.* %{_libdir}/libisf-control.so.* %{_libdir}/libscim_imengine.so.* %{TZ_SYS_RO_ETC}/package-manager/parserlib/category/libimeparser.so %license COPYING %{TZ_SYS_ETC}/dump.d/module.d/* %{_tmpfilesdir}/%{name}.conf %files devel %defattr(-,root,root,-) %{_includedir}/scim-1.0/* %{_libdir}/libscim-*.so %{_includedir}/isf-control/* %{_includedir}/scim_imengine/* %{_libdir}/libisf-control.so %{_libdir}/libscim_imengine.so %{_libdir}/pkgconfig/isf.pc %{_libdir}/pkgconfig/scim.pc %{_libdir}/pkgconfig/isf-control.pc %post -n org.tizen.isf-kbd-mode-changer mkdir -p %{TZ_SYS_RO_APP}/org.tizen.isf-kbd-mode-changer %files -n org.tizen.isf-kbd-mode-changer %manifest org.tizen.isf-kbd-mode-changer.manifest %license COPYING %{TZ_SYS_RO_PACKAGES}/org.tizen.isf-kbd-mode-changer.xml %{APP_PREFIX}/* %files unittests %manifest isf-unittests.manifest %license COPYING %defattr(-,root,root,-) %{_bindir}/isf-tests %files -n ise-engine-loader %manifest ise-engine-loader.manifest %license GPL.LICENSE %attr(0755,ui_fw,ui_fw) %{_bindir}/ise-engine-loader %attr(0644,root,root) %{_unitdir}/engine-loader.service %attr(0644,root,root) %{_datadir}/dbus-1/system-services/org.tizen.engine-loader.service %config %{_sysconfdir}/dbus-1/system.d/engine-loader.conf