summaryrefslogtreecommitdiff
path: root/packaging/org.tizen.pwlock.spec
blob: d74ee7efea1c96924ce59fa9ca591d52a846934b (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
%define PREFIX /usr/apps/org.tizen.pwlock

Name:       org.tizen.pwlock
Summary:    Password Lock application
Version:    0.4.0
Release:    1
Group:      TBD
License:    TBD
Source0:    %{name}-%{version}.tar.gz
Source1001: 	org.tizen.pwlock.manifest

BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(ui-gadget-1)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(appcore-efl)
BuildRequires: pkgconfig(tapi)
BuildRequires: pkgconfig(utilX)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(accounts-svc)
BuildRequires: pkgconfig(appsvc)
BuildRequires: pkgconfig(sysman)
BuildRequires: pkgconfig(capi-base-common)
BuildRequires: pkgconfig(iniparser)
BuildRequires: pkgconfig(capi-system-info)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: gettext
BuildRequires: cmake
BuildRequires: edje-tools
Requires(post): /usr/bin/vconftool

%description
Password lock application.

%prep
%setup -q
cp %{SOURCE1001} .

%build
LDFLAGS+="-Wl,--rpath=%{PREFIX}/lib -Wl,--as-needed";export LDFLAGS
cmake . -DCMAKE_INSTALL_PREFIX=%{PREFIX}
# cmake does not have a good dependency and make parallel will fail
# make %{?jobs:-j%jobs}
make

%install
%make_install

%post
GOPTION="-g 6514"
vconftool $GOPTION set -t bool db/pwlock/first_boot "1" -f
vconftool $GOPTION set -t int memory/pwlock/state "0" -f -i

%files
%manifest %{name}.manifest
/etc/smack/accesses.d/org.tizen.pwlock.rule
%defattr(-,root,root,-)
%attr(4755,root,root) /usr/apps/org.tizen.pwlock/bin/pwlock
/usr/apps/org.tizen.pwlock/bin/pwlock
/usr/apps/org.tizen.pwlock/res/locale/*/LC_MESSAGES/pwlock.mo
/usr/share/packages/org.tizen.pwlock.xml
/usr/apps/org.tizen.pwlock/res/langlist.xml
/usr/apps/org.tizen.pwlock/res/edje/*.edj
/usr/apps/org.tizen.pwlock/res/images/*.png