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