%bcond_with x
%bcond_with wayland
-%define _optdir /opt
-%define _appdir %{_optdir}/apps
-
Name: libscl-ui
Summary: A library for developing XML-based software keyboards
-Version: 0.6.2
+Version: 0.6.57
Release: 1
Group: Graphics & UI Framework/Input
License: Apache-2.0
-Source0: libscl-ui-%{version}.tar.gz
-BuildRequires: gettext-tools
+Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: pkgconfig(elementary)
%if %{with wayland}
+BuildRequires: pkgconfig(ecore-wayland)
%else
-BuildRequires: pkgconfig(utilX)
+BuildRequires: pkgconfig(ecore-x)
BuildRequires: pkgconfig(x11)
%endif
BuildRequires: pkgconfig(vconf)
+BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(feedback)
-BuildRequires: pkgconfig(sensor)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(tts)
A library that helps developing S/W Keyboard
%package devel
-Summary: SCL header file
+Summary: SCL-UI header file
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%build
+export CFLAGS+=" -fvisibility=hidden -DTIZEN_DEBUG_ENABLE -Werror"
+export CXXFLAGS+=" -fvisibility=hidden -fvisibility-inlines-hidden -DTIZEN_DEBUG_ENABLE -Werror"
+export FFLAGS+=" -DTIZEN_DEBUG_ENABLE"
+
rm -rf CMakeFiles
rm -rf CMakeCache.txt
-%if "%{profile}" == "wearable"
-CFLAGS+=" -D_WEARABLE";
-CXXFLAGS+=" -D_WEARABLE";
-%endif
-
-%if "%{profile}" == "mobile"
-CFLAGS+=" -D_MOBILE";
-CXXFLAGS+=" -D_MOBILE";
-%endif
-
-%if "%{profile}" == "tv"
-CFLAGS+=" -D_TV";
-CXXFLAGS+=" -D_TV";
-%endif
-
%if %{with wayland}
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_INSTALL_DIR:PATH=%{_libdir} -Dwith_wayland=TRUE
+%cmake . -Dwith_wayland=TRUE
%else
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_INSTALL_DIR:PATH=%{_libdir}
+%cmake .
%endif
-make %{?jobs:-j%jobs}
+make %{?_smp_mflags}
%install
rm -rf %{buildroot}
-mkdir -p %{buildroot}/usr/share/license
-cp LICENSE %{buildroot}/usr/share/license/%{name}
%make_install
-%post
+%post -p /sbin/ldconfig
-%postun
+%postun -p /sbin/ldconfig
%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
-%{_libdir}/libscl-ui.so
-%{_datadir}/libscl-ui/metadata.xml
-/usr/share/license/%{name}
+%{_libdir}/%{name}.so
+%{_datadir}/%{name}/metadata.xml
+%license LICENSE
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
-%{_libdir}/pkgconfig/libscl-ui.pc
+%{_libdir}/pkgconfig/%{name}.pc
%{_bindir}/xml2binary