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