Update wrt-installer_0.0.51
[framework/web/wrt-installer.git] / packaging / wrt-installer.spec
1 #sbs-git:slp/pkgs/w/wrt-installer wrt-installer 0.0.51
2 Name:       wrt-installer
3 Summary:    Installer for tizen Webruntime
4 Version:    0.0.51
5 Release:    1
6 Group:      Development/Libraries
7 License:    Apache License, Version 2.0
8 URL:        N/A
9 Source0:    %{name}-%{version}.tar.gz
10 BuildRequires:  cmake
11 BuildRequires:  edje-tools
12 BuildRequires:  pkgconfig(libxml-2.0)
13 BuildRequires:  pkgconfig(openssl)
14 BuildRequires:  pkgconfig(dpl-efl)
15 BuildRequires:  pkgconfig(vcore)
16 BuildRequires:  pkgconfig(dpl-event-efl)
17 BuildRequires:  pkgconfig(dpl-utils-efl)
18 BuildRequires:  pkgconfig(dpl-popup-efl)
19 BuildRequires:  pkgconfig(dpl-wrt-dao-ro)
20 BuildRequires:  pkgconfig(dpl-wrt-dao-rw)
21 BuildRequires:  pkgconfig(ecore-x)
22 BuildRequires:  pkgconfig(ace)
23 BuildRequires:  pkgconfig(ace-dao-ro)
24 BuildRequires:  pkgconfig(ace-dao-rw)
25 BuildRequires:  pkgconfig(xmlsec1)
26 BuildRequires:  pkgconfig(libidn)
27 BuildRequires:  pkgconfig(libiri)
28 BuildRequires:  pkgconfig(libpcrecpp)
29 BuildRequires:  pkgconfig(pkgmgr-installer)
30 BuildRequires:  pkgconfig(pkgmgr-parser)
31 BuildRequires:  pkgconfig(pkgmgr-types)
32 BuildRequires:  pkgconfig(dlog)
33 BuildRequires:  pkgconfig(cert-svc)
34 BuildRequires:  pkgconfig(utilX)
35 BuildRequires:  pkgconfig(wrt-plugins-types)
36 BuildRequires:  pkgconfig(tapi)
37
38 %description
39 Description: Wrt Installer for Tizen apps and Wac apps
40
41 %prep
42 %setup -q
43
44 %build
45 export LDFLAGS+="-Wl,--rpath=/usr/lib -Wl,--hash-style=both -Wl,--as-needed"
46 LDFLAGS="$LDFLAGS"
47
48 cmake . -DCMAKE_INSTALL_PREFIX=/usr \
49         -DDPL_LOG=ON \
50         -DCMAKE_PACKAGE_VERSION=%{version} \
51         -DCMAKE_BUILD_TYPE=%{?build_type:%build_type}
52 make %{?jobs:-j%jobs}
53
54 %install
55 rm -rf %{buildroot}
56 %make_install
57
58 %clean
59 rm -rf %{buildroot}
60
61 %post
62 chmod +s /usr/bin/wrt-installer
63
64 #symlink for package manager
65 ln -sf /usr/bin/wrt-installer /usr/etc/package-manager/backend/wgt
66
67 #for booting recovery
68 mkdir -p /opt/apps/widget/temp_info
69 [ -h /etc/rc.d/rc3.d/S46lwrt_preinstall_widgets.sh ] && rm /etc/rc.d/rc3.d/S46lwrt_preinstall_widgets.sh
70 [ -h /etc/rc.d/rc5.d/S46lwrt_preinstall_widgets.sh ] && rm /etc/rc.d/rc5.d/S46lwrt_preinstall_widgets.sh
71 ln -s /etc/rc.d/init.d/wrt_preinstall_widgets.sh /etc/rc.d/rc3.d/S46lwrt_preinstall_widgets.sh
72 ln -s /etc/rc.d/init.d/wrt_preinstall_widgets.sh /etc/rc.d/rc5.d/S46lwrt_preinstall_widgets.sh
73
74 %files
75 %attr(755,root,root) %{_bindir}/wrt-installer
76 %attr(775,root,root) %{_initrddir}/wrt_preinstall_widgets.sh
77 %attr(644,root,root) %{_datadir}/edje/wrt/*
78 /usr/etc/package-manager/backendlib/libwgt.so