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

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

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: gettext
BuildRequires: cmake
BuildRequires: edje-tools
Requires(post): /usr/bin/vconftool

%description
Password lock application.

%prep
%setup -q

%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"

%files
%defattr(-,root,root,-)
%attr(-,inhouse,inhouse) %dir /opt/apps/org.tizen.pwlock/data
/opt/apps/org.tizen.pwlock/bin/pwlock
/opt/apps/org.tizen.pwlock/res/locale/*/LC_MESSAGES/pwlock.mo
/opt/share/packages/org.tizen.pwlock.xml
/opt/apps/org.tizen.pwlock/res/edje/*.edj
/opt/apps/org.tizen.pwlock/res/images/*.png