1 #git:framework/web/web-provider
2 Name: livebox.web-provider
3 Summary: web framework for livebox
7 License: Flora License, Version 1.1
8 Source0: %{name}-%{version}.tar.gz
9 BuildRequires: cmake, gettext-tools
10 BuildRequires: pkgconfig(aul)
11 BuildRequires: pkgconfig(appcore-efl)
12 BuildRequires: pkgconfig(dlog)
13 BuildRequires: pkgconfig(bundle)
14 BuildRequires: pkgconfig(eina)
15 BuildRequires: pkgconfig(ecore)
16 BuildRequires: pkgconfig(ecore-x)
17 BuildRequires: pkgconfig(evas)
18 BuildRequires: pkgconfig(ecore-evas)
19 BuildRequires: pkgconfig(elementary)
20 BuildRequires: pkgconfig(ewebkit2)
21 BuildRequires: pkgconfig(wrt-core)
22 BuildRequires: pkgconfig(xmlsec1)
23 BuildRequires: pkgconfig(dpl-efl)
24 BuildRequires: pkgconfig(provider)
25 BuildRequires: pkgconfig(livebox-service)
26 BuildRequires: pkgconfig(glib-2.0)
27 BuildRequires: pkgconfig(json-glib-1.0)
28 BuildRequires: pkgconfig(capi-appfw-application)
31 # We need to add smack dependancies here on specific criteria
32 Requires(post): sys-assert
33 Requires(post): busybox-symlinks-sysklogd
34 Requires(post): data-provider-master
39 This is web framework responsible to manage liveboxes that consist of web contents
42 Summary: Files for web provider devel.
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
47 Web Provider library (dev)
53 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_PROJECT_VERSION=%{version}
54 #-fpie LDFLAGS="${LDFLAGS} -pie -O3"
55 CFLAGS="${CFLAGS} -Wall -Winline -Werror -fno-builtin-malloc" make %{?jobs:-j%jobs}
60 %define app_data /opt/usr/apps/livebox.web-provider/data
61 mkdir -p %{buildroot}%{app_data}
64 killall -9 web-provider
65 /usr/bin/web_provider_reset_db.sh
66 if [ -f /usr/lib/rpm-plugins/msm.so ]; then
67 echo "smack setting..."
68 chsmack -a 'livebox.web-provider::db' /opt/usr/dbspace/.web_provider.db
69 chsmack -a 'livebox.web-provider::db' /opt/usr/dbspace/.web_provider.db-journal
71 chown 5000:5000 %{app_data}
74 %files -n livebox.web-provider
75 %manifest livebox.web-provider.manifest
76 %defattr(-,root,root,-)
78 %{_libdir}/web-provider/*.so*
79 %{_libdir}/web-provider/*.json
80 %{_datadir}/web-provider/*
81 %attr(755,root,root) %{_bindir}/web_provider_reset_db.sh
82 %{_prefix}/apps/livebox.web-provider/bin/web-provider
83 %{_datarootdir}/packages/livebox.web-provider.xml
84 %{_prefix}/share/res/*
88 %defattr(-,root,root,-)
89 %{_includedir}/web-provider/*
90 %{_libdir}/pkgconfig/*.pc