[Release] livebox.web-provider-1.33
[platform/framework/web/web-provider.git] / packaging / livebox.web-provider.spec
1 #git:framework/web/web-provider
2 Name: livebox.web-provider
3 Summary: web framework for livebox 
4 Version: 1.33
5 Release: 1
6 Group: main/app
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)
29
30 # requires for smack
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
35 Requires(post): isf
36 Requires(post): e17 
37
38 %description
39 This is web framework responsible to manage liveboxes that consist of web contents
40
41 %package devel
42 Summary: Files for web provider devel.
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
45
46 %description devel
47 Web Provider library (dev)
48
49 %prep
50 %setup -q
51
52 %build
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}
56
57 %install
58 rm -rf %{buildroot}
59 %make_install
60 %define app_data /opt/usr/apps/livebox.web-provider/data
61 mkdir -p %{buildroot}%{app_data}
62
63 %post
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
70 fi
71 chown 5000:5000 %{app_data}
72 chmod 755 %{app_data}
73
74 %files -n livebox.web-provider
75 %manifest livebox.web-provider.manifest
76 %defattr(-,root,root,-)
77 %{_libdir}/*.so*
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/*
85 %{app_data}
86
87 %files devel
88 %defattr(-,root,root,-)
89 %{_includedir}/web-provider/*
90 %{_libdir}/pkgconfig/*.pc