Update package version to 4.0.31
[platform/core/uifw/isf.git] / packaging / isf.spec
1 %global __provides_exclude_from ^(.*\\.(wearable|tv|mobile|ivi))$
2
3 %bcond_with wayland
4 Name:       isf
5 Summary:    Input Service Framework
6 Version:    4.0.31
7 Release:    1
8 Group:      Graphics & UI Framework/Input
9 License:    LGPL-2.1+
10 Source0:    %{name}-%{version}.tar.gz
11 Source100:  %{name}.conf
12 BuildRequires:  edje-bin
13 BuildRequires:  gettext-tools
14 BuildRequires:  pkgconfig(elementary)
15 BuildRequires:  pkgconfig(vconf)
16 %if %{with wayland}
17 BuildRequires:  pkgconfig(ecore-wayland)
18 BuildRequires:  pkgconfig(xkbcommon) >= 0.3.0
19 BuildRequires:  pkgconfig(text-client)
20 BuildRequires:  pkgconfig(input-method-client)
21 %else
22 BuildRequires:  pkgconfig(ecore-x)
23 BuildRequires:  pkgconfig(x11)
24 BuildRequires:  pkgconfig(tts)
25 %endif
26 BuildRequires:  pkgconfig(eina)
27 BuildRequires:  pkgconfig(ecore)
28 BuildRequires:  pkgconfig(evas)
29 BuildRequires:  pkgconfig(edje)
30 BuildRequires:  pkgconfig(dlog)
31 BuildRequires:  pkgconfig(edbus)
32 BuildRequires:  pkgconfig(glib-2.0)
33 BuildRequires:  pkgconfig(capi-network-bluetooth)
34 BuildRequires:  pkgconfig(feedback)
35 BuildRequires:  pkgconfig(efl-extension)
36 BuildRequires:  pkgconfig(libtzplatform-config)
37 BuildRequires:  pkgconfig(pkgmgr-info)
38 BuildRequires:  pkgconfig(db-util)
39 BuildRequires:  pkgconfig(aul)
40 BuildRequires:  pkgconfig(capi-appfw-app-control)
41 BuildRequires:  pkgconfig(capi-appfw-application)
42 BuildRequires:  pkgconfig(cynara-client)
43 BuildRequires:  pkgconfig(cynara-creds-socket)
44 BuildRequires:  pkgconfig(cynara-session)
45 BuildRequires:  pkgconfig(capi-appfw-package-manager)
46 BuildRequires:  pkgconfig(capi-system-info)
47 BuildRequires:  pkgconfig(notification)
48 Requires(postun): /sbin/ldconfig
49 Requires:       org.tizen.isf-kbd-mode-changer
50
51 %define APP_PREFIX %{TZ_SYS_RO_APP}/org.tizen.isf-kbd-mode-changer/bin/
52
53 %description
54 Input Service Framewok (ISF) is an input method (IM) platform, and it has been derived from SCIM.
55
56
57 %package devel
58 Summary:    ISF header files
59 Requires:   %{name} = %{version}-%{release}
60
61 %description devel
62 This package contains ISF header files for ISE development.
63
64 %package -n org.tizen.isf-kbd-mode-changer
65 Summary: Keyboard mode changer
66 Group: Graphics & UI Framework/Input
67 Requires: %{name} = %{version}-%{release}
68
69 %description -n org.tizen.isf-kbd-mode-changer
70 Keyboard mode changer application
71
72 %prep
73 %setup -q
74
75 %build
76 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
77 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
78 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
79 %if %{with wayland}
80 export CFLAGS="$CFLAGS -DWAYLAND"
81 export CXXFLAGS="$CXXFLAGS -DWAYLAND"
82 %endif
83
84 export GC_SECTIONS_FLAGS="-fdata-sections -ffunction-sections -Wl,--gc-sections"
85 export CFLAGS="$CFLAGS -fvisibility=hidden ${GC_SECTIONS_FLAGS} -Werror"
86 export CXXFLAGS="$CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden ${GC_SECTIONS_FLAGS} -Werror"
87 export CFLAGS_BASIS="$CFLAGS"
88 export CXXFLAGS_BASIS="$CXXFLAGS"
89
90 %autogen
91 %configure --disable-static \
92                 --disable-tray-icon \
93                 --disable-filter-sctc \
94 %if %{with wayland}
95         --disable-efl-immodule \
96 %endif
97                 --disable-frontend-x11 \
98                 --disable-multiwindow-support \
99                 --disable-ime-embed-app \
100                 --with-ro-app-dir=%{TZ_SYS_RO_APP} \
101                 --with-ro-packages-dir=%{TZ_SYS_RO_PACKAGES} \
102                 --enable-remote-input
103 make %{?_smp_mflags}
104
105 %install
106 rm -rf %{buildroot}
107
108 %make_install
109 mkdir -p %{buildroot}%{_tmpfilesdir}
110 install -m 0644 %SOURCE100 %{buildroot}%{_tmpfilesdir}/%{name}.conf
111
112 mkdir -p %{buildroot}/%{TZ_SYS_ETC}/dump.d/module.d
113 cp -af ism/dump/isf_log_dump.sh %{buildroot}/%{TZ_SYS_ETC}/dump.d/module.d
114 mkdir -p %{buildroot}/etc/scim/conf
115 mkdir -p %{buildroot}/usr/share/upgrade/scripts/
116
117 %find_lang scim
118
119 cat scim.lang > isf.lang
120 %post
121 ln -sf "module.so" %{_libdir}/ecore_imf/modules/wayland/v-1.16/libwltextinputmodule.so
122 /sbin/ldconfig
123
124
125 %postun -p /sbin/ldconfig
126
127
128 %files -f isf.lang
129 %manifest %{name}.manifest
130 %defattr(-,root,root,-)
131 %dir /etc/scim/conf
132 %attr(755,root,root) %{_sysconfdir}/profile.d/isf.sh
133 %{_sysconfdir}/scim/global
134 %{_sysconfdir}/scim/config
135 %{_datadir}/scim/icons/*
136 %{_bindir}/isf-demo-efl
137 %{_bindir}/isf-panel-efl
138 %{_libdir}/ecore_imf/modules/*/*/*.so
139 %{_libdir}/scim-1.0/1.4.0/IMEngine/socket.so
140 %{_libdir}/scim-1.0/1.4.0/PanelAgent/*.so
141 %{_libdir}/scim-1.0/1.4.0/Config/simple.so
142 %{_libdir}/scim-1.0/1.4.0/Config/socket.so
143 %{_libdir}/scim-1.0/1.4.0/FrontEnd/*.so
144 %{_libdir}/scim-1.0/scim-helper-launcher
145 %{_libdir}/libscim-*.so.*
146 %{TZ_SYS_RO_ETC}/package-manager/parserlib/category/libimeparser.so
147 %license COPYING
148 %{TZ_SYS_ETC}/dump.d/module.d/*
149 %{_tmpfilesdir}/%{name}.conf
150
151 %files devel
152 %defattr(-,root,root,-)
153 %{_includedir}/scim-1.0/*
154 %{_libdir}/libscim-*.so
155 %{_libdir}/pkgconfig/isf.pc
156 %{_libdir}/pkgconfig/scim.pc
157
158 %post -n org.tizen.isf-kbd-mode-changer
159 mkdir -p %{TZ_SYS_RO_APP}/org.tizen.isf-kbd-mode-changer
160
161 %files -n org.tizen.isf-kbd-mode-changer
162 %manifest org.tizen.isf-kbd-mode-changer.manifest
163 %license COPYING
164 %{TZ_SYS_RO_PACKAGES}/org.tizen.isf-kbd-mode-changer.xml
165 %{APP_PREFIX}/*