4 # Do not create auto-Provides from .so files of wearable so that
5 # we can manually create .so Provides from the main package,
6 # which eliminates ambiguity in build systems.
7 %global __provides_exclude_from ^%{_libdir}/.*\\.so.wearable$
10 Summary: A library for developing software keyboards
13 Group: Graphics & UI Framework/Input
15 Source0: %{name}-%{version}.tar.gz
17 BuildRequires: pkgconfig(elementary)
18 BuildRequires: pkgconfig(vconf)
19 BuildRequires: pkgconfig(dlog)
20 BuildRequires: pkgconfig(isf)
22 BuildRequires: pkgconfig(ecore-wl2)
23 BuildRequires: pkgconfig(wayland-client)
24 BuildRequires: pkgconfig(input-method-client)
26 BuildRequires: pkgconfig(ecore-x)
27 BuildRequires: pkgconfig(x11)
29 BuildRequires: pkgconfig(libscl-common)
30 BuildRequires: pkgconfig(appcore-efl)
31 BuildRequires: pkgconfig(capi-appfw-app-common)
32 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
33 # if wearable || "undefined"
34 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
35 BuildRequires: pkgconfig(libwebsockets)
38 Provides: %{name}-profile_common = %{version}-%{release}
39 Provides: %{name}-profile_mobile = %{version}-%{release}
40 Provides: %{name}-profile_tv = %{version}-%{release}
41 Provides: %{name}-profile_ivi = %{version}-%{release}
44 A library that helps developing S/W Keyboard
46 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
47 # if wearable || "undefined"
48 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
49 %package profile_wearable
50 Summary: libscl-core subpackage for wearable
51 Requires: %{name} = %{version}-%{release}
52 %description profile_wearable
53 A library extension for %{name} for developing software keyboards for wearable.
57 Summary: SCL-Core header file
58 Group: Development/Libraries
59 Requires: %{name} = %{version}-%{release}
61 A devel package of libscl-core library that helps developing S/W Keyboard
67 export CFLAGS+=" -fvisibility=hidden -DTIZEN_DEBUG_ENABLE -Werror"
68 export CXXFLAGS+=" -fvisibility=hidden -fvisibility-inlines-hidden -DTIZEN_DEBUG_ENABLE -Werror"
69 export FFLAGS+=" -DTIZEN_DEBUG_ENABLE"
74 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
75 # if wearable || "undefined"
76 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
81 cmake .. -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_INSTALL_DIR:PATH=%{_libdir} -Dwith_wayland=TRUE -Dwith_websocket=TRUE
83 cmake .. -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_INSTALL_DIR:PATH=%{_libdir} -Dwith_websocket=TRUE
89 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
90 # if mobile || tv || ivi || common || "undefined"
91 %if "%{?profile}" != "wearable"
94 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_INSTALL_DIR:PATH=%{_libdir} -Dwith_wayland=TRUE -Dwith_websocket=FALSE
96 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_INSTALL_DIR:PATH=%{_libdir} -Dwith_websocket=FALSE
104 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
105 # if wearable || "undefined"
106 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
109 %if "%{?profile}" == "wearable"
110 cp %{buildroot}%{_libdir}/%{name}.so %{buildroot}%{_libdir}/%{name}.so.wearable
112 mv %{buildroot}%{_libdir}/%{name}.so %{buildroot}%{_libdir}/%{name}.so.wearable
117 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
118 # if mobile || tv || ivi || common || "undefined"
119 %if "%{?profile}" != "wearable"
123 %post -p /sbin/ldconfig
125 %postun -p /sbin/ldconfig
127 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
128 # if wearable || "undefined"
129 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
130 %post profile_wearable
132 for FILE in %{name}.so.wearable; do ln -sf "$FILE" "${FILE%.wearable}"; done
136 %preun profile_wearable
137 rm %{_libdir}/%{name}.so
142 %manifest %{name}.manifest
143 %defattr(-,root,root,-)
144 %{_libdir}/%{name}.so
147 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
148 # if wearable || "undefined"
149 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
151 %files profile_wearable
152 %manifest %{name}.manifest
153 %defattr(-,root,root,-)
154 %{_libdir}/%{name}.so.wearable
158 %defattr(-,root,root,-)
160 %{_libdir}/pkgconfig/%{name}.pc