summaryrefslogtreecommitdiff
path: root/packaging/ug-nfc-efl.spec
blob: 204efae10ffc60dfd01cee7eb14b509381927a01 (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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
%if "%{?profile}" == "mobile"
%global PREFIX  /usr/ug
%endif

%if "%{?profile}" == "wearable"
%global PREFIX  %{_prefix}/apps/org.tizen.nfc-setting-app/
%endif

%if "%{?profile}" == "tv"
ExcludeArch: %{arm} %ix86 x86_64
%endif

%if "%{?profile}" == "common"
%global PREFIX /usr/ug
%endif

Name:       ug-nfc-efl
Summary:    NFC Setting UI
Version:    3.1.5
Release:    0
Group:      App/Network
License:    Flora-1.1
Source0:    %{name}-%{version}.tar.gz

%if "%{?profile}" == "mobile"
BuildRequires:  pkgconfig(ui-gadget-1)
BuildRequires:  pkgconfig(notification)
BuildRequires:  pkgconfig(capi-content-mime-type)
BuildRequires:  pkgconfig(capi-appfw-app-manager)
BuildRequires:  pkgconfig(sqlite3)
BuildRequires:  pkgconfig(notification)
%endif

%if "%{?profile}" == "wearable"
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(pkgmgr-info)
BuildRequires:  pkgconfig(syspopup)
%endif

%if "%{?profile}" == "common"
BuildRequires:  pkgconfig(ui-gadget-1)
BuildRequires:  pkgconfig(notification)
BuildRequires:  pkgconfig(capi-content-mime-type)
BuildRequires:  pkgconfig(capi-appfw-app-manager)
BuildRequires:  pkgconfig(sqlite3)
BuildRequires:  pkgconfig(notification)
%endif

BuildRequires:  pkgconfig(capi-network-nfc)
BuildRequires:  pkgconfig(capi-appfw-application)
BuildRequires:  pkgconfig(dlog)
BuildRequires:  pkgconfig(vconf)
BuildRequires:  pkgconfig(efl-extension)
BuildRequires:  pkgconfig(elementary)
BuildRequires:  cmake
BuildRequires:  edje-tools
BuildRequires:  gettext-tools
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig

%description
NFC Setting UI

%prep
%setup -q

%build
cmake . -DCMAKE_INSTALL_PREFIX=%{PREFIX} \
%if "%{?profile}" == "mobile"
	-DTIZEN_MOBILE=1
%endif
%if "%{?profile}" == "wearable"
	-DTIZEN_WEARABLE=1
%endif
%if "%{?profile}" == "common"
	-DTIZEN_COMMON=1
%endif

make %{?jobs:-j%jobs}

%install
%make_install

mkdir -p %{buildroot}/usr/share/license
cp -af %{_builddir}/%{name}-%{version}/LICENSE.Flora %{buildroot}/usr/share/license/

%post
/sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%{_datadir}/license/LICENSE.Flora
%{_datadir}/packages/*
%{PREFIX}/*