Update package version to 3.0.70
[platform/core/uifw/isf.git] / packaging / isf.spec
1 %bcond_with wayland
2 Name:       isf
3 Summary:    Input Service Framework
4 Version:    3.0.70
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+=" -fvisibility=hidden ${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 %if "%{?profile}" == "mobile"
128 mkdir -p %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/
129 ln -sf %{_prefix}/lib/systemd/user/scim.service %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/
130 %endif
131 ln -sf %{_libdir}/ecore_imf/modules/wayland/v-1.16/module.so %{_libdir}/ecore_imf/modules/wayland/v-1.16/libwltextinputmodule.so
132 /sbin/ldconfig
133
134
135 %postun -p /sbin/ldconfig
136
137
138 %files -f isf.lang
139 %manifest %{name}.manifest
140 %defattr(-,root,root,-)
141 %dir /etc/scim/conf
142 %{_prefix}/lib/systemd/user/default.target.wants/scim.path
143 %{_prefix}/lib/systemd/user/scim.service
144 %{_prefix}/lib/systemd/user/scim.path
145 %attr(755,root,root) %{_sysconfdir}/profile.d/isf.sh
146 %{_sysconfdir}/scim/global
147 %{_sysconfdir}/scim/config
148 %{_datadir}/scim/isf_candidate_theme1.edj
149 %{_datadir}/scim/icons/*
150 %{_bindir}/isf-demo-efl
151 %{_bindir}/isf-panel-efl
152 %{_bindir}/scim
153 %{_bindir}/isf-log
154 %{_libdir}/ecore_imf/modules/*/*/*.so
155 %{_libdir}/scim-1.0/1.4.0/IMEngine/socket.so
156 %{_libdir}/scim-1.0/1.4.0/PanelAgent/*.so
157 %{_libdir}/scim-1.0/1.4.0/Config/simple.so
158 %{_libdir}/scim-1.0/1.4.0/Config/socket.so
159 %{_libdir}/scim-1.0/1.4.0/FrontEnd/*.so
160 %{_libdir}/scim-1.0/scim-launcher
161 %{_libdir}/scim-1.0/scim-helper-launcher
162 %{_libdir}/libscim-*.so*
163 %license COPYING
164 %{TZ_SYS_ETC}/dump.d/module.d/*
165
166 %files devel
167 %defattr(-,root,root,-)
168 %{_includedir}/scim-1.0/*
169 %{_libdir}/libscim-*.so
170 %{_libdir}/pkgconfig/isf.pc
171 %{_libdir}/pkgconfig/scim.pc
172
173 %post -n org.tizen.isf-kbd-mode-changer
174 mkdir -p %{TZ_SYS_RO_APP}/org.tizen.isf-kbd-mode-changer
175
176 %files -n org.tizen.isf-kbd-mode-changer
177 %manifest org.tizen.isf-kbd-mode-changer.manifest
178 %{TZ_SYS_RO_PACKAGES}/org.tizen.isf-kbd-mode-changer.xml
179 %{APP_PREFIX}/*