summaryrefslogtreecommitdiff
path: root/packaging/syspopup.spec
blob: 05034dc59703df8e1e5204fdb70fc2ca899f3fee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
%bcond_with x
%bcond_with wayland

Name:           syspopup
Summary:        Syspopup package
Version:        0.0.100
Release:        0
Group:          System/Libraries
License:        Apache-2.0
Source0:        syspopup-%{version}.tar.gz
Source1001:     %{name}.manifest
Source1002:     %{name}-devel.manifest
Source1003:     %{name}-caller.manifest
Source1004:     %{name}-caller-devel.manifest
Source1005:	org.tizen.aul.syspopup.conf.in

BuildRequires:  cmake
BuildRequires:  pkgconfig(sqlite3)
BuildRequires:  pkgconfig(bundle)
BuildRequires:  pkgconfig(dlog)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gio-2.0)
%if %{with wayland}
BuildRequires:  pkgconfig(ecore-wayland)
BuildRequires:  pkgconfig(capi-ui-efl-util)
%else
%if %{with x}
BuildRequires:  pkgconfig(utilX)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(ecore-x)
%endif
%endif
BuildRequires:  pkgconfig(evas)
BuildRequires:  pkgconfig(elementary)
BuildRequires:  pkgconfig(libtzplatform-config)
BuildRequires:  pkgconfig(capi-appfw-application)
BuildRequires:  pkgconfig(capi-system-system-settings)
BuildRequires:  pkgconfig(libsystemd-daemon)
BuildRequires:  pkgconfig(aul)

%define upgrade_script_path /usr/share/upgrade/scripts
%define upgrade_data_path /usr/share/upgrade/data

%if "%{?profile}" == "wearable"
%define profile_wearable 1
%else
%define profile_wearable 0
%endif

%description
syspopup package for popup

%package devel
Summary:    Syspopup development package
Group:      System/Libraries
Requires:   %{name} = %{version}-%{release}

%description devel
syspopup development package popup

%package caller
Summary:          Syspopup-caller package
Group:            System/Libraries
Requires:         %{name} = %{version}-%{release}
Requires(post):   /sbin/ldconfig
Requires(postun): /sbin/ldconfig

%description caller
syspopup-caller package for popup

%package caller-devel
Summary:    Syspopup-caller development package
Group:      System/Development
Requires:   %{name} = %{version}-%{release}

%description caller-devel
syspopup-caller development package for popup

%prep
%setup -q
sed -i %{SOURCE1001} -e "s|TZ_SYS_DB|%TZ_SYS_DB|g"
cp %{SOURCE1001} %{SOURCE1002} %{SOURCE1003} %{SOURCE1004} .

%build
%if %{?profile_wearable}
PROFILE_WEARABLE=ON
%endif

%cmake \
%if %{with wayland}
	-Dwith_wayland=TRUE \
%else
%if %{with x}
	-Dwith_x11=TRUE \
%endif
%endif
	-DTZ_SYS_RO_PACKAGES=%{TZ_SYS_RO_PACKAGES} \
	-DTZ_SYS_RO_SHARE=%{TZ_SYS_RO_SHARE} \
	-DEXTRA_CFLAGS=-fPIC \
	-DPROFILE_WEARABLE:BOOL=${PROFILE_WEARABLE} \
	.

make %{?jobs:-j%jobs}

%install
%make_install
mkdir -p %{buildroot}%{TZ_SYS_RO_SHARE}/license
install LICENSE %{buildroot}%{TZ_SYS_RO_SHARE}/license/%{name}
install LICENSE %{buildroot}%{TZ_SYS_RO_SHARE}/license/%{name}-devel
install LICENSE %{buildroot}%{TZ_SYS_RO_SHARE}/license/%{name}-caller
install LICENSE %{buildroot}%{TZ_SYS_RO_SHARE}/license/%{name}-caller-devel

mkdir -p %{buildroot}%{TZ_SYS_DB}
sqlite3 %{buildroot}%{TZ_SYS_DB}/.syspopup.db < %{buildroot}%{TZ_SYS_RO_SHARE}/syspopup/syspopup_db.sql
rm -rf %{buildroot}%{TZ_SYS_RO_SHARE}/syspopup/syspopup_db.sql
rm -rf %{buildroot}%{TZ_SYS_DB}/.syspopup.db-journal

touch %{buildroot}%{_datadir}/popup_noti_term

mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
install -m 0644 %SOURCE1005 %{buildroot}%{_sysconfdir}/dbus-1/system.d/org.tizen.aul.syspopup.conf

mkdir -p %{buildroot}%{upgrade_script_path}
mkdir -p %{buildroot}%{upgrade_data_path}
cp -f scripts/102.syspopup_upgrade.sh %{buildroot}%{upgrade_script_path}
cp -f %{buildroot}%{TZ_SYS_DB}/.syspopup.db %{buildroot}%{upgrade_data_path}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%post caller -p /sbin/ldconfig

%postun caller -p /sbin/ldconfig

%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{_datadir}/icons/default/small/org.tizen.syspopup-app.png
%{_bindir}/sp_test
%{_bindir}/syspopup-app
%{_libdir}/libsyspopup.so.0.1.0
%TZ_SYS_RO_PACKAGES/org.tizen.syspopup-app.xml
%{_datadir}/popup_noti_term
%attr(644,root,%{TZ_SYS_USER_GROUP}) %{TZ_SYS_DB}/.syspopup.db
%TZ_SYS_RO_SHARE/license/%{name}
%{upgrade_script_path}/102.syspopup_upgrade.sh
%{upgrade_data_path}/.syspopup.db

%files devel
%manifest %{name}-devel.manifest
%defattr(-,root,root,-)
%{_includedir}/SLP_SYSPOPUP_PG.h
%{_includedir}/syspopup.h
%{_libdir}/libsyspopup.so
%{_libdir}/pkgconfig/syspopup.pc
%TZ_SYS_RO_SHARE/license/%{name}-devel

%files caller
%manifest %{name}-caller.manifest
%defattr(-,root,root,-)
%{_libdir}/libsyspopup_caller.so.0.1.0
%TZ_SYS_RO_SHARE/license/%{name}-caller
%{_sysconfdir}/dbus-1/system.d/org.tizen.aul.syspopup.conf

%files caller-devel
%manifest %{name}-caller-devel.manifest
%defattr(-,root,root,-)
%{_libdir}/libsyspopup_caller.so
%{_includedir}/syspopup_caller.h
%{_libdir}/pkgconfig/syspopup-caller.pc
%TZ_SYS_RO_SHARE/license/%{name}-caller-devel


%changelog
* Tue Aug 13 2013 - Hyungdeuk Kim <hd3.kim@samsung.com>
- Add key handler for esc of keyboard

* Fri Jun 21 2013 - Hyungdeuk Kim <hd3.kim@samsung.com>
- Change end key term info of wifi-qs

* Fri Apr 12 2013 - Hyungdeuk Kim <hd3.kim@samsung.com>
- Remove drm syspopup requested by hakjoo.ko

* Tue Apr 2 2013 - Hyugdeuk Kim <hd3.kim@samsung.com>
- Add syspopup_reset_timeout api