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(libsystemd-daemon)
36 BuildRequires: pkgconfig(aul)
38 %define upgrade_script_path /usr/share/upgrade/scripts
39 %define upgrade_data_path /usr/share/upgrade/data
41 %if "%{?profile}" == "wearable"
42 %define profile_wearable 1
44 %define profile_wearable 0
48 syspopup package for popup
51 Summary: Syspopup development package
52 Group: System/Libraries
53 Requires: %{name} = %{version}-%{release}
56 syspopup development package popup
59 Summary: Syspopup-caller package
60 Group: System/Libraries
61 Requires: %{name} = %{version}-%{release}
62 Requires(post): /sbin/ldconfig
63 Requires(postun): /sbin/ldconfig
66 syspopup-caller package for popup
69 Summary: Syspopup-caller development package
70 Group: System/Development
71 Requires: %{name} = %{version}-%{release}
73 %description caller-devel
74 syspopup-caller development package for popup
78 sed -i %{SOURCE1001} -e "s|TZ_SYS_DB|%TZ_SYS_DB|g"
79 cp %{SOURCE1001} %{SOURCE1002} %{SOURCE1003} %{SOURCE1004} .
82 %if %{?profile_wearable}
94 -DTZ_SYS_RO_PACKAGES=%{TZ_SYS_RO_PACKAGES} \
95 -DTZ_SYS_RO_SHARE=%{TZ_SYS_RO_SHARE} \
96 -DEXTRA_CFLAGS=-fPIC \
97 -DPROFILE_WEARABLE:BOOL=${PROFILE_WEARABLE} \
100 make %{?jobs:-j%jobs}
104 mkdir -p %{buildroot}%{TZ_SYS_RO_SHARE}/license
105 install LICENSE %{buildroot}%{TZ_SYS_RO_SHARE}/license/%{name}
106 install LICENSE %{buildroot}%{TZ_SYS_RO_SHARE}/license/%{name}-devel
107 install LICENSE %{buildroot}%{TZ_SYS_RO_SHARE}/license/%{name}-caller
108 install LICENSE %{buildroot}%{TZ_SYS_RO_SHARE}/license/%{name}-caller-devel
110 mkdir -p %{buildroot}%{TZ_SYS_DB}
111 sqlite3 %{buildroot}%{TZ_SYS_DB}/.syspopup.db < %{buildroot}%{TZ_SYS_RO_SHARE}/syspopup/syspopup_db.sql
112 rm -rf %{buildroot}%{TZ_SYS_RO_SHARE}/syspopup/syspopup_db.sql
113 rm -rf %{buildroot}%{TZ_SYS_DB}/.syspopup.db-journal
115 touch %{buildroot}%{_datadir}/popup_noti_term
117 mkdir -p %{buildroot}%{upgrade_script_path}
118 mkdir -p %{buildroot}%{upgrade_data_path}
119 cp -f scripts/102.syspopup_upgrade.sh %{buildroot}%{upgrade_script_path}
120 cp -f %{buildroot}%{TZ_SYS_DB}/.syspopup.db %{buildroot}%{upgrade_data_path}
122 %post -p /sbin/ldconfig
124 %postun -p /sbin/ldconfig
126 %post caller -p /sbin/ldconfig
128 %postun caller -p /sbin/ldconfig
131 %manifest %{name}.manifest
132 %defattr(-,root,root,-)
134 %{_libdir}/libsyspopup.so.0.1.0
135 %{_datadir}/popup_noti_term
136 %attr(644,root,%{TZ_SYS_USER_GROUP}) %{TZ_SYS_DB}/.syspopup.db
137 %TZ_SYS_RO_SHARE/license/%{name}
138 %{upgrade_script_path}/102.syspopup_upgrade.sh
139 %{upgrade_data_path}/.syspopup.db
142 %manifest %{name}-devel.manifest
143 %defattr(-,root,root,-)
144 %{_includedir}/SLP_SYSPOPUP_PG.h
145 %{_includedir}/syspopup.h
146 %{_libdir}/libsyspopup.so
147 %{_libdir}/pkgconfig/syspopup.pc
148 %TZ_SYS_RO_SHARE/license/%{name}-devel
151 %manifest %{name}-caller.manifest
152 %defattr(-,root,root,-)
153 %{_libdir}/libsyspopup_caller.so.0.1.0
154 %TZ_SYS_RO_SHARE/license/%{name}-caller
157 %manifest %{name}-caller-devel.manifest
158 %defattr(-,root,root,-)
159 %{_libdir}/libsyspopup_caller.so
160 %{_includedir}/syspopup_caller.h
161 %{_libdir}/pkgconfig/syspopup-caller.pc
162 %TZ_SYS_RO_SHARE/license/%{name}-caller-devel