blob: 2ac906e14fcf8971fcbb4426b3448da5904cdf9e (
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
|
Name: wrt_widgets
Summary: Wrt_widgets
Version: 0.1
Release: 1
Group: Framework/system
License: Apache License, Version 2.0
Source0: %{name}-%{version}.tar.gz
Requires: wrt
Requires: wrt-commons
Requires: wrt-installer
Requires: wrt-plugins-tizen
Requires: wrt-security
Requires: aul-1-configPC
Requires: dbus-configPC
%description
Description: Wrt_Widget DEMO
%prep
%setup -q
%build
%install
mkdir -p %{buildroot}/usr/bin/
cp install_widgets.sh %{buildroot}/usr/bin/
if [ ! -d %{buildroot}/root/widget_demo ]
then
mkdir -p %{buildroot}/root/widget_demo
fi
cp *.wgt %{buildroot}/root/widget_demo/
%post
mkdir -p /opt/usr/apps
mkdir -p /opt/share/applications
mkdir -p /opt/share/packages
rm /opt/dbspace/.wrt*
wrt_commons_create_clean_db.sh
wrt_reset_all.sh
pkg_initdb
mkdir -p /usr/share/applications_tmp
mv /usr/share/applications/* /usr/share/applications_tmp/
mv /usr/share/applications_tmp/*tizen*.desktop /usr/share/applications/
ail_initdb
mv /usr/share/applications_tmp/* /usr/share/applications/
for d in dbspace home usr; do find /opt/$d -exec chsmack -a '*' {} \; ; done;
find /usr/lib64/ -exec chsmack -a _ {} \;
chmod -R a+rw /opt/dbspace/
echo "Please Reboot and Execute the script install_widgets.sh as user root"
%files
/root/widget_demo/*.wgt
/usr/bin/install_widgets.sh
|