summaryrefslogtreecommitdiff
path: root/packaging/wrt-installer.spec
blob: 653c2dedc115c6ec56af73ab738bf0c214e3289c (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
#sbs-git:slp/pkgs/w/wrt-installer wrt-installer 0.0.54
Name:       wrt-installer
Summary:    Installer for tizen Webruntime
Version:    0.0.54
Release:    1
Group:      Development/Libraries
License:    Apache License, Version 2.0
URL:        N/A
Source0:    %{name}-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  edje-tools
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(dpl-efl)
BuildRequires:  pkgconfig(vcore)
BuildRequires:  pkgconfig(dpl-event-efl)
BuildRequires:  pkgconfig(dpl-utils-efl)
BuildRequires:  pkgconfig(dpl-popup-efl)
BuildRequires:  pkgconfig(dpl-wrt-dao-ro)
BuildRequires:  pkgconfig(dpl-wrt-dao-rw)
BuildRequires:  pkgconfig(ecore-x)
BuildRequires:  pkgconfig(ace)
BuildRequires:  pkgconfig(ace-dao-ro)
BuildRequires:  pkgconfig(ace-dao-rw)
BuildRequires:  pkgconfig(xmlsec1)
BuildRequires:  pkgconfig(libidn)
BuildRequires:  pkgconfig(libiri)
BuildRequires:  pkgconfig(libpcrecpp)
BuildRequires:  pkgconfig(pkgmgr-installer)
BuildRequires:  pkgconfig(pkgmgr-parser)
BuildRequires:  pkgconfig(pkgmgr-types)
BuildRequires:  pkgconfig(dlog)
BuildRequires:  pkgconfig(cert-svc)
BuildRequires:  pkgconfig(utilX)
BuildRequires:  pkgconfig(wrt-plugins-types)
BuildRequires:  pkgconfig(tapi)
BuildRequires:  pkgconfig(shortcut)
BuildRequires:  pkgconfig(dpl-encryption)

%description
Description: Wrt Installer for Tizen apps and Wac apps

%prep
%setup -q

%build
export LDFLAGS+="-Wl,--rpath=/usr/lib -Wl,--hash-style=both -Wl,--as-needed"
LDFLAGS="$LDFLAGS"

cmake . -DCMAKE_INSTALL_PREFIX=/usr \
        -DDPL_LOG=ON \
        -DCMAKE_PACKAGE_VERSION=%{version} \
        -DCMAKE_BUILD_TYPE=%{?build_type:%build_type}
make %{?jobs:-j%jobs}

%install
rm -rf %{buildroot}
%make_install

%clean
rm -rf %{buildroot}

%post
chmod +s /usr/bin/wrt-installer

#symlink for package manager
ln -sf /usr/bin/wrt-installer /usr/etc/package-manager/backend/wgt

#for booting recovery
mkdir -p /opt/apps/widget/temp_info
[ -h /etc/rc.d/rc3.d/S46lwrt_preinstall_widgets.sh ] && rm /etc/rc.d/rc3.d/S46lwrt_preinstall_widgets.sh
[ -h /etc/rc.d/rc5.d/S46lwrt_preinstall_widgets.sh ] && rm /etc/rc.d/rc5.d/S46lwrt_preinstall_widgets.sh
ln -s /etc/rc.d/init.d/wrt_preinstall_widgets.sh /etc/rc.d/rc3.d/S46lwrt_preinstall_widgets.sh
ln -s /etc/rc.d/init.d/wrt_preinstall_widgets.sh /etc/rc.d/rc5.d/S46lwrt_preinstall_widgets.sh

%files
%attr(755,root,root) %{_bindir}/wrt-installer
%attr(775,root,root) %{_initrddir}/wrt_preinstall_widgets.sh
%attr(644,root,root) %{_datadir}/edje/wrt/*
/usr/etc/package-manager/backendlib/libwgt.so