Fail to copy web application icon
[framework/web/wrt-installer.git] / packaging / wrt-installer.spec
1 #git:slp/pkgs/w/wrt-installer wrt-installer 0.0.72
2 Name:       wrt-installer
3 Summary:    Installer for tizen Webruntime
4 Version:    0.0.72
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(cert-svc-vcore)
16 BuildRequires:  pkgconfig(dpl-event-efl)
17 BuildRequires:  pkgconfig(dpl-utils-efl)
18 BuildRequires:  pkgconfig(dpl-wrt-dao-ro)
19 BuildRequires:  pkgconfig(dpl-wrt-dao-rw)
20 BuildRequires:  pkgconfig(ecore-x)
21 BuildRequires:  pkgconfig(security)
22 BuildRequires:  pkgconfig(security-install)
23 BuildRequires:  pkgconfig(xmlsec1)
24 BuildRequires:  pkgconfig(libidn)
25 BuildRequires:  pkgconfig(libiri)
26 BuildRequires:  pkgconfig(libpcrecpp)
27 BuildRequires:  pkgconfig(pkgmgr-installer)
28 BuildRequires:  pkgconfig(pkgmgr-parser)
29 BuildRequires:  pkgconfig(pkgmgr-types)
30 BuildRequires:  pkgconfig(dlog)
31 BuildRequires:  pkgconfig(cert-svc)
32 BuildRequires:  pkgconfig(utilX)
33 BuildRequires:  pkgconfig(wrt-plugins-types)
34 BuildRequires:  pkgconfig(tapi)
35 BuildRequires:  pkgconfig(shortcut)
36 BuildRequires:  pkgconfig(dpl-encryption)
37 BuildRequires:  pkgconfig(capi-appfw-app-manager)
38 BuildRequires:  pkgconfig(drm-client)
39 Requires: xmlsec1
40
41 Provides: libdrm-service-core-intel.so.0
42
43 %description
44 Description: Wrt Installer for Tizen apps and Wac apps
45
46 %prep
47 %setup -q
48
49 %build
50 # for drm temporary code
51 %ifarch %{ix86}
52 BUILD_ARCH_=x86
53 %else
54 BUILD_ARCH_=arm
55 %endif
56
57 export LDFLAGS+="-Wl,--rpath=/usr/lib -Wl,--hash-style=both -Wl,--as-needed"
58 LDFLAGS="$LDFLAGS"
59
60 cmake . -DCMAKE_INSTALL_PREFIX=/usr \
61         -DDPL_LOG=ON \
62         -DCMAKE_PACKAGE_VERSION=%{version} \
63         -DARCH="$BUILD_ARCH_" \
64         -DCMAKE_BUILD_TYPE=%{?build_type:%build_type}
65 make %{?jobs:-j%jobs}
66
67 %install
68 rm -rf %{buildroot}
69 mkdir -p %{buildroot}/usr/share/license
70 cp LICENSE %{buildroot}/usr/share/license/%{name}
71 %make_install
72
73 %clean
74 rm -rf %{buildroot}
75
76 %post
77 chmod +s /usr/bin/wrt-installer
78
79 #symlink for package manager
80 ln -sf /usr/bin/wrt-installer /usr/etc/package-manager/backend/wgt
81
82 #for booting recovery
83 mkdir -p /opt/share/widget/temp_info
84 [ -h /etc/rc.d/rc3.d/S46lwrt_preinstall_widgets.sh ] && rm /etc/rc.d/rc3.d/S46lwrt_preinstall_widgets.sh
85 [ -h /etc/rc.d/rc5.d/S46lwrt_preinstall_widgets.sh ] && rm /etc/rc.d/rc5.d/S46lwrt_preinstall_widgets.sh
86 ln -s /etc/rc.d/init.d/wrt_preinstall_widgets.sh /etc/rc.d/rc3.d/S46lwrt_preinstall_widgets.sh
87 ln -s /etc/rc.d/init.d/wrt_preinstall_widgets.sh /etc/rc.d/rc5.d/S46lwrt_preinstall_widgets.sh
88
89 # for drm temporary code
90 mkdir -p /opt/var/drm/inteldrm
91 mkdir -p own 0:5000 /opt/var/drm/inteldrm
92 chmod 755 /opt/var/drm/inteldrm
93
94 ln -s /usr/lib/libdrm-service-core-intel.so.0.0.0 /usr/lib/libdrm-service-core-intel.so.0
95 ln -s /usr/lib/libdrm-service-core-intel.so.0 /usr/lib/libdrm-service-core-intel.so
96
97 # for downloadable Application icons path
98 mkdir -p /opt/share/icons/default/small
99
100 %files
101 %manifest wrt-installer.manifest
102 %attr(755,root,root) %{_bindir}/wrt-installer
103 %attr(775,root,root) %{_initrddir}/wrt_preinstall_widgets.sh
104 %attr(644,root,root) %{_datadir}/edje/wrt/*
105 /usr/etc/package-manager/backendlib/libwgt.so
106 %{_datadir}/license/%{name}
107 # for drm temporary code
108 /usr/lib/*.so*