Release version 1.15.2
[platform/core/appfw/app-core.git] / packaging / app-core.spec
1 Name:           app-core
2 Summary:        Application basic
3 Version:        1.15.2
4 Release:        0
5 Group:          Application Framework/Libraries
6 License:        Apache-2.0
7 Source0:        app-core-%{version}.tar.gz
8 BuildRequires:  pkgconfig(ecore-wl2)
9 BuildRequires:  pkgconfig(wayland-client)
10 BuildRequires:  pkgconfig(tizen-extension-client)
11 BuildRequires:  pkgconfig(wayland-tbm-client)
12 Source1001:     app-core.manifest
13 BuildRequires:  pkgconfig(gio-2.0)
14 BuildRequires:  pkgconfig(sensor)
15 BuildRequires:  pkgconfig(vconf)
16 BuildRequires:  pkgconfig(aul)
17 BuildRequires:  pkgconfig(bundle)
18 BuildRequires:  pkgconfig(dlog)
19 BuildRequires:  pkgconfig(elementary)
20 BuildRequires:  pkgconfig(ecore)
21 BuildRequires:  pkgconfig(gobject-2.0)
22 BuildRequires:  pkgconfig(glib-2.0)
23 BuildRequires:  pkgconfig(pkgmgr-info)
24 BuildRequires:  pkgconfig(ttrace)
25 BuildRequires:  cmake
26 BuildRequires:  pkgconfig(capi-system-info)
27
28 %description
29 SLP common application basic
30
31
32 %package efl
33 Summary:    App basic EFL
34 Group:      Development/Libraries
35 Requires(post): /sbin/ldconfig
36 Requires(postun): /sbin/ldconfig
37
38 %description efl
39 Application basic EFL
40
41
42 %package efl-devel
43 Summary:    App basic EFL (devel)
44 Group:      Development/Libraries
45 Requires:   %{name}-efl = %{version}-%{release}
46 Requires:   %{name}-ui-devel = %{version}-%{release}
47
48 %description efl-devel
49 Application basic EFL (devel)
50
51 %package multiwindow
52 Summary:    Application core for multiwindow
53 Group:      Development/Libraries
54 Requires(post): /sbin/ldconfig
55 Requires(postun): /sbin/ldconfig
56
57 %description multiwindow
58 Application core for multiwindow
59
60 %package multiwindow-devel
61 Summary:    Application core for multiwindow (devel)
62 Group:      Development/Libraries
63 Requires:   %{name}-multiwindow = %{version}-%{release}
64 Requires:   %{name}-common-devel = %{version}-%{release}
65
66 %description multiwindow-devel
67 Application core for multiwindow (devel)
68
69 %package common
70 Summary:    App basics common
71 Group:      Development/Libraries
72 Requires(post): /sbin/ldconfig
73 Requires(postun): /sbin/ldconfig
74
75 %description common
76 Application basics common
77
78
79 %package common-devel
80 Summary:    App basics common (devel)
81 Group:      Development/Libraries
82 Requires:   %{name}-common = %{version}-%{release}
83 Requires:   pkgconfig(sensor)
84 Requires:   pkgconfig(vconf)
85 Requires:   pkgconfig(elementary)
86 Requires:   pkgconfig(aul)
87
88 %description common-devel
89 Application basics common (devel)
90
91 %package ui
92 Summary:    App basic UI
93 Group:      Development/Libraries
94 Requires(post): /sbin/ldconfig
95 Requires(postun): /sbin/ldconfig
96
97 %description ui
98 Application basic UI
99
100 %package ui-devel
101 Summary:    App basic UI (devel)
102 Group:      Development/Libraries
103 Requires:   %{name}-ui = %{version}-%{release}
104 Requires:   %{name}-common-devel = %{version}-%{release}
105
106 %description ui-devel
107 Application basic EFL (devel)
108
109
110 %package template
111 Summary:    App basics template
112 Group:      Development/Libraries
113
114 %description template
115 Application basics template
116
117 %prep
118 %setup -q
119 cp %{SOURCE1001} .
120
121 %build
122 export CFLAGS+=" -DEFL_BETA_API_SUPPORT "
123 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
124 %cmake . \
125         -DENABLE_GTK=OFF \
126         -DFULLVER=%{version} \
127         -DMAJORVER=${MAJORVER}
128
129 make %{?_smp_mflags}
130
131
132 %install
133 rm -rf %{buildroot}
134 %make_install
135
136
137 %post -n app-core-efl -p /sbin/ldconfig
138
139 %postun -n app-core-efl -p /sbin/ldconfig
140
141 %post -n app-core-multiwindow -p /sbin/ldconfig
142
143 %postun -n app-core-multiwindow -p /sbin/ldconfig
144
145 %post -n app-core-common -p /sbin/ldconfig
146
147 %postun -n app-core-common -p /sbin/ldconfig
148
149 %post -n app-core-ui -p /sbin/ldconfig
150
151 %postun -n app-core-ui -p /sbin/ldconfig
152
153
154 %files efl
155 %manifest %{name}.manifest
156 %{_libdir}/libappcore-efl.so.*
157 %license LICENSE
158
159 %files efl-devel
160 %manifest %{name}.manifest
161 %{_includedir}/appcore/appcore-efl.h
162 %{_includedir}/appcore/appcore_efl_base.h
163 %{_libdir}/libappcore-efl.so
164 %{_libdir}/pkgconfig/appcore-efl.pc
165
166 %files multiwindow
167 %manifest %{name}.manifest
168 %{_libdir}/libappcore-multiwindow.so.*
169 %license LICENSE
170
171 %files multiwindow-devel
172 %manifest %{name}.manifest
173 %{_includedir}/appcore/appcore_multiwindow_base.h
174 %{_libdir}/libappcore-multiwindow.so
175 %{_libdir}/pkgconfig/appcore-multiwindow.pc
176
177 %files common
178 %manifest %{name}.manifest
179 %{_libdir}/libappcore-common.so.*
180 %license LICENSE
181
182 %files common-devel
183 %manifest %{name}.manifest
184 %{_libdir}/libappcore-common.so
185 %{_libdir}/pkgconfig/appcore-common.pc
186 %{_includedir}/appcore/appcore-common.h
187 %{_includedir}/appcore/appcore_base.h
188 %{_includedir}/appcore/appcore_watchdog.h
189 %{_includedir}/appcore/appcore_base_control.h
190
191 %files ui
192 %manifest %{name}.manifest
193 %{_libdir}/libappcore-ui.so.*
194 %license LICENSE
195
196 %files ui-devel
197 %manifest %{name}.manifest
198 %{_includedir}/appcore/appcore_ui_base.h
199 %{_libdir}/libappcore-ui.so
200 %{_libdir}/pkgconfig/appcore-ui.pc