summaryrefslogtreecommitdiff
path: root/packaging/wrt-widgets.spec
blob: cafdbb7ca6d8c808feaa938e53be8dabaadccd61 (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
Name:       wrt-widgets
Summary:    Wrt-widgets Installer
Version:    0.1
Release:    1
Group:      Web Framework/Web Run Time
License:    Apache-2.0
BuildArch:  noarch
Source0:    %{name}-%{version}.tar.gz
Requires:   wrt
Requires:   wrt-commons
Requires:   wrt-installer 
Requires:   wrt-plugins-tizen
Requires:   wrt-security
Requires:   daemon-launch-config-pc
Requires:   dbus-config-pc
Requires:   libprivilege-control-conf

%description
Wrt-widgets prepare a suitable pc oriented environment to install WRT widgets
After installing wrt-widgets, launch install_widgets.sh script as root to install them.

%prep
%setup -q

%build

%install

mkdir -p %{buildroot}/%{_bindir}
cp install_widgets.sh %{buildroot}/%{_bindir}
cp prepare_widgets.sh %{buildroot}/%{_bindir}

if [ ! -d %{buildroot}/%{_sysconfdir}/sysconfig ]
then
	mkdir -p %{buildroot}/%{_sysconfdir}/sysconfig
fi
cp wrt %{buildroot}/%{_sysconfdir}/sysconfig/

if [ ! -d %{buildroot}/%{_datadir}/widget_demo ]
then
    mkdir -p  %{buildroot}/%{_datadir}/widget_demo
fi

cp -r *.wgt %{buildroot}/%{_datadir}/widget_demo/

%post
%{_bindir}/prepare_widgets.sh

%files
%{_datadir}/widget_demo/*.wgt
%attr(755,root,root) %{_bindir}/install_widgets.sh
%attr(755,root,root) %{_bindir}/prepare_widgets.sh
%attr(644,root,root) %{_sysconfdir}/sysconfig/wrt