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