Update package version to 0.6.15
[platform/core/uifw/libscl-ui.git] / packaging / libscl-ui.spec
1 %bcond_with x
2 %bcond_with wayland
3
4 %define _optdir /opt
5 %define _appdir %{_optdir}/apps
6
7 Name:       libscl-ui
8 Summary:    A library for developing XML-based software keyboards
9 Version:    0.6.15
10 Release:    1
11 Group:      Graphics & UI Framework/Input
12 License:    Apache-2.0
13 Source0:    libscl-ui-%{version}.tar.gz
14 BuildRequires:  gettext-tools
15 BuildRequires:  cmake
16 BuildRequires:  pkgconfig(elementary)
17 %if %{with wayland}
18 %else
19 BuildRequires:  pkgconfig(x11)
20 %endif
21 BuildRequires:  pkgconfig(vconf)
22 BuildRequires:  pkgconfig(feedback)
23 BuildRequires:  pkgconfig(dlog)
24 BuildRequires:  pkgconfig(libxml-2.0)
25 BuildRequires:  pkgconfig(tts)
26 BuildRequires:  pkgconfig(libscl-common)
27
28
29 %description
30 A library that helps developing S/W Keyboard
31
32 %package devel
33 Summary:    SCL header file
34 Group:      Development/Libraries
35 Requires:   %{name} = %{version}-%{release}
36
37 %description devel
38 A devel package of libscl-ui library that helps developing S/W Keyboard
39
40 %prep
41 %setup -q
42
43
44 %build
45 rm -rf CMakeFiles
46 rm -rf CMakeCache.txt
47
48 %if "%{profile}" == "wearable"
49 CFLAGS+=" -D_WEARABLE";
50 CXXFLAGS+=" -D_WEARABLE";
51 %endif
52
53 %if "%{profile}" == "mobile"
54 CFLAGS+=" -D_MOBILE";
55 CXXFLAGS+=" -D_MOBILE";
56 %endif
57
58 %if "%{profile}" == "tv"
59 CFLAGS+=" -D_TV";
60 CXXFLAGS+=" -D_TV";
61 %endif
62
63 %if %{with wayland}
64 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_INSTALL_DIR:PATH=%{_libdir} -Dwith_wayland=TRUE
65 %else
66 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_INSTALL_DIR:PATH=%{_libdir}
67 %endif
68 make %{?jobs:-j%jobs}
69
70 %install
71 rm -rf %{buildroot}
72
73 %make_install
74
75
76
77 %post
78
79 %postun
80
81 %files
82 %manifest %{name}.manifest
83 %defattr(-,root,root,-)
84 %{_libdir}/libscl-ui.so
85 %{_datadir}/libscl-ui/metadata.xml
86 %license LICENSE
87
88 %files devel
89 %defattr(-,root,root,-)
90 %{_includedir}/*
91 %{_libdir}/pkgconfig/libscl-ui.pc
92 %{_bindir}/xml2binary