5 Summary: Syspopup package
8 Group: System/Libraries
10 Source0: syspopup-%{version}.tar.gz
11 Source1001: %{name}.manifest
12 Source1002: %{name}-devel.manifest
13 Source1003: %{name}-caller.manifest
14 Source1004: %{name}-caller-devel.manifest
17 BuildRequires: pkgconfig(sqlite3)
18 BuildRequires: pkgconfig(bundle)
19 BuildRequires: pkgconfig(dlog)
20 BuildRequires: pkgconfig(glib-2.0)
21 BuildRequires: pkgconfig(gio-2.0)
23 BuildRequires: pkgconfig(ecore-wayland)
24 BuildRequires: pkgconfig(capi-ui-efl-util)
27 BuildRequires: pkgconfig(utilX)
28 BuildRequires: pkgconfig(x11)
29 BuildRequires: pkgconfig(ecore-x)
32 BuildRequires: pkgconfig(evas)
33 BuildRequires: pkgconfig(elementary)
34 BuildRequires: pkgconfig(libtzplatform-config)
35 BuildRequires: pkgconfig(aul)
37 %define upgrade_script_path /usr/share/upgrade/scripts
38 %define upgrade_data_path /usr/share/upgrade/data
40 %if "%{?profile}" == "wearable"
41 %define profile_wearable 1
43 %define profile_wearable 0
47 syspopup package for popup
50 Summary: Syspopup development package
51 Group: System/Libraries
52 Requires: %{name} = %{version}-%{release}
55 syspopup development package popup
58 Summary: Syspopup-caller package
59 Group: System/Libraries
60 Requires: %{name} = %{version}-%{release}
61 Requires(post): /sbin/ldconfig
62 Requires(postun): /sbin/ldconfig
65 syspopup-caller package for popup
68 Summary: Syspopup-caller development package
69 Group: System/Development
70 Requires: %{name} = %{version}-%{release}
72 %description caller-devel
73 syspopup-caller development package for popup
77 sed -i %{SOURCE1001} -e "s|TZ_SYS_DB|%TZ_SYS_DB|g"
78 cp %{SOURCE1001} %{SOURCE1002} %{SOURCE1003} %{SOURCE1004} .
81 %if %{?profile_wearable}
93 -DTZ_SYS_RO_PACKAGES=%{TZ_SYS_RO_PACKAGES} \
94 -DTZ_SYS_RO_SHARE=%{TZ_SYS_RO_SHARE} \
95 -DEXTRA_CFLAGS=-fPIC \
96 -DPROFILE_WEARABLE:BOOL=${PROFILE_WEARABLE} \
103 mkdir -p %{buildroot}%{TZ_SYS_RO_SHARE}/license
104 install LICENSE %{buildroot}%{TZ_SYS_RO_SHARE}/license/%{name}
105 install LICENSE %{buildroot}%{TZ_SYS_RO_SHARE}/license/%{name}-devel
106 install LICENSE %{buildroot}%{TZ_SYS_RO_SHARE}/license/%{name}-caller
107 install LICENSE %{buildroot}%{TZ_SYS_RO_SHARE}/license/%{name}-caller-devel
109 mkdir -p %{buildroot}%{TZ_SYS_DB}
110 sqlite3 %{buildroot}%{TZ_SYS_DB}/.syspopup.db < %{buildroot}%{TZ_SYS_RO_SHARE}/syspopup/syspopup_db.sql
111 rm -rf %{buildroot}%{TZ_SYS_RO_SHARE}/syspopup/syspopup_db.sql
112 rm -rf %{buildroot}%{TZ_SYS_DB}/.syspopup.db-journal
114 touch %{buildroot}%{_datadir}/popup_noti_term
116 mkdir -p %{buildroot}%{upgrade_script_path}
117 mkdir -p %{buildroot}%{upgrade_data_path}
118 cp -f scripts/502.syspopup_upgrade.sh %{buildroot}%{upgrade_script_path}
119 cp -f %{buildroot}%{TZ_SYS_DB}/.syspopup.db %{buildroot}%{upgrade_data_path}
121 %post -p /sbin/ldconfig
123 %postun -p /sbin/ldconfig
125 %post caller -p /sbin/ldconfig
127 %postun caller -p /sbin/ldconfig
130 %manifest %{name}.manifest
131 %defattr(-,root,root,-)
133 %{_libdir}/libsyspopup.so.0.1.0
134 %{_datadir}/popup_noti_term
135 %attr(644,root,%{TZ_SYS_USER_GROUP}) %{TZ_SYS_DB}/.syspopup.db
136 %TZ_SYS_RO_SHARE/license/%{name}
137 %{upgrade_script_path}/502.syspopup_upgrade.sh
138 %{upgrade_data_path}/.syspopup.db
141 %manifest %{name}-devel.manifest
142 %defattr(-,root,root,-)
143 %{_includedir}/SLP_SYSPOPUP_PG.h
144 %{_includedir}/syspopup.h
145 %{_libdir}/libsyspopup.so
146 %{_libdir}/pkgconfig/syspopup.pc
147 %TZ_SYS_RO_SHARE/license/%{name}-devel
150 %manifest %{name}-caller.manifest
151 %defattr(-,root,root,-)
152 %{_libdir}/libsyspopup_caller.so.0.1.0
153 %TZ_SYS_RO_SHARE/license/%{name}-caller
156 %manifest %{name}-caller-devel.manifest
157 %defattr(-,root,root,-)
158 %{_libdir}/libsyspopup_caller.so
159 %{_includedir}/syspopup_caller.h
160 %{_libdir}/pkgconfig/syspopup-caller.pc
161 %TZ_SYS_RO_SHARE/license/%{name}-caller-devel