2 Summary: Syspopup package
5 Group: System/Libraries
7 Source0: syspopup-%{version}.tar.gz
8 Source1001: %{name}.manifest
9 Source1002: %{name}-devel.manifest
10 Source1003: %{name}-caller.manifest
11 Source1004: %{name}-caller-devel.manifest
14 BuildRequires: pkgconfig(sqlite3)
15 BuildRequires: pkgconfig(bundle)
16 BuildRequires: pkgconfig(dlog)
17 BuildRequires: pkgconfig(glib-2.0)
18 BuildRequires: pkgconfig(gio-2.0)
19 BuildRequires: pkgconfig(ecore-wl2)
20 BuildRequires: pkgconfig(capi-ui-efl-util)
21 BuildRequires: pkgconfig(evas)
22 BuildRequires: pkgconfig(elementary)
23 BuildRequires: pkgconfig(libtzplatform-config)
24 BuildRequires: pkgconfig(aul)
25 BuildRequires: pkgconfig(capi-system-info)
26 BuildRequires: pkgconfig(libsmack)
27 BuildRequires: pkgconfig(libxml-2.0)
29 Requires(posttrans): /usr/bin/rm
31 %define upgrade_script_path /usr/share/upgrade/scripts
34 syspopup package for popup
37 Summary: Syspopup development package
38 Group: System/Libraries
39 Requires: %{name} = %{version}-%{release}
42 syspopup development package popup
45 Summary: Syspopup-caller package
46 Group: System/Libraries
47 Requires: %{name} = %{version}-%{release}
48 Requires(post): /sbin/ldconfig
49 Requires(postun): /sbin/ldconfig
52 syspopup-caller package for popup
55 Summary: Syspopup-caller development package
56 Group: System/Development
57 Requires: %{name} = %{version}-%{release}
59 %description caller-devel
60 syspopup-caller development package for popup
64 cp %{SOURCE1001} %{SOURCE1002} %{SOURCE1003} %{SOURCE1004} .
67 export CFLAGS+=" -DEFL_BETA_API_SUPPORT "
68 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
69 %cmake -DTZ_SYS_RO_PACKAGES=%{TZ_SYS_RO_PACKAGES} \
70 -DTZ_SYS_RO_SHARE=%{TZ_SYS_RO_SHARE} \
71 -DEXTRA_CFLAGS=-fPIC \
72 -DFULLVER=%{version} \
73 -DMAJORVER=${MAJORVER} \
74 -DSYSCONFDIR=%{_sysconfdir} \
81 mkdir -p %{buildroot}%{_datadir}
82 touch %{buildroot}%{_datadir}/popup_noti_term
84 mkdir -p %{buildroot}%{upgrade_script_path}
85 cp -f scripts/502.syspopup_upgrade.sh %{buildroot}%{upgrade_script_path}
87 %post -p /sbin/ldconfig
89 %postun -p /sbin/ldconfig
91 %post caller -p /sbin/ldconfig
93 %postun caller -p /sbin/ldconfig
96 if [ -e %{_sysconfdir}/config/model-config.xml ]; then
97 PROFILE=`grep "feature\/profile" %{_sysconfdir}/config/model-config.xml`
98 if [[ "${PROFILE}" == *"mobile"* ]]; then
99 rm -rf %{_datarootdir}/syspopup/default/wearable.xml
100 rm -rf %{_datarootdir}/syspopup/default/tv.xml
101 rm -rf %{_datarootdir}/syspopup/default/common.xml
102 rm -rf %{_datarootdir}/syspopup/default/ivi.xml
103 elif [[ "${PROFILE}" == *"wearable"* ]]; then
104 rm -rf %{_datarootdir}/syspopup/default/mobile.xml
105 rm -rf %{_datarootdir}/syspopup/default/tv.xml
106 rm -rf %{_datarootdir}/syspopup/default/common.xml
107 rm -rf %{_datarootdir}/syspopup/default/ivi.xml
108 elif [[ "${PROFILE}" == *"tv"* ]]; then
109 rm -rf %{_datarootdir}/syspopup/default/mobile.xml
110 rm -rf %{_datarootdir}/syspopup/default/wearable.xml
111 rm -rf %{_datarootdir}/syspopup/default/common.xml
112 rm -rf %{_datarootdir}/syspopup/default/ivi.xml
113 elif [[ "${PROFILE}" == *"common"* ]]; then
114 rm -rf %{_datarootdir}/syspopup/default/mobile.xml
115 rm -rf %{_datarootdir}/syspopup/default/wearable.xml
116 rm -rf %{_datarootdir}/syspopup/default/tv.xml
117 rm -rf %{_datarootdir}/syspopup/default/ivi.xml
118 elif [[ "${PROFILE}" == *"ivi"* ]]; then
119 rm -rf %{_datarootdir}/syspopup/default/mobile.xml
120 rm -rf %{_datarootdir}/syspopup/default/wearable.xml
121 rm -rf %{_datarootdir}/syspopup/default/tv.xml
122 rm -rf %{_datarootdir}/syspopup/default/common.xml
124 rm -rf %{_datarootdir}/syspopup/default/mobile.xml
125 rm -rf %{_datarootdir}/syspopup/default/wearable.xml
126 rm -rf %{_datarootdir}/syspopup/default/tv.xml
127 rm -rf %{_datarootdir}/syspopup/default/common.xml
128 rm -rf %{_datarootdir}/syspopup/default/ivi.xml
132 rm -rf %{_datarootdir}/syspopup/default/mobile.xml
133 rm -rf %{_datarootdir}/syspopup/default/wearable.xml
134 rm -rf %{_datarootdir}/syspopup/default/tv.xml
135 rm -rf %{_datarootdir}/syspopup/default/common.xml
136 rm -rf %{_datarootdir}/syspopup/default/ivi.xml
142 %manifest %{name}.manifest
143 %defattr(-,root,root,-)
146 %{_libdir}/libsyspopup.so.*
147 %{_datadir}/popup_noti_term
149 %{upgrade_script_path}/502.syspopup_upgrade.sh
150 %{_sysconfdir}/syspopup/preload/*
151 %{_prefix}/share/syspopup/*
154 %manifest %{name}-devel.manifest
155 %defattr(-,root,root,-)
156 %{_includedir}/SLP_SYSPOPUP_PG.h
157 %{_includedir}/syspopup.h
158 %{_libdir}/libsyspopup.so
159 %{_libdir}/pkgconfig/syspopup.pc
162 %manifest %{name}-caller.manifest
163 %defattr(-,root,root,-)
164 %{_libdir}/libsyspopup_caller.so.*
168 %manifest %{name}-caller-devel.manifest
169 %defattr(-,root,root,-)
170 %{_libdir}/libsyspopup_caller.so
171 %{_includedir}/syspopup_caller.h
172 %{_libdir}/pkgconfig/syspopup-caller.pc