summaryrefslogtreecommitdiff
path: root/packaging/d2d-conv-setting.spec
blob: dd57febc51ae51c8c714b7a249e0434e4edeb203 (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
Name: org.tizen.d2d-conv-setting
Version:    1.0
Release:    1
Summary: Tizen D2D Convergence Setting Application
Source: %{name}-%{version}.tar.gz
License: Apache-2.0
Group: tizen/Application
BuildRequires:  pkgconfig(dlog)
BuildRequires:  pkgconfig(elementary)
BuildRequires:  pkgconfig(efl-extension)
BuildRequires:  pkgconfig(capi-appfw-application)
BuildRequires:  pkgconfig(capi-system-system-settings)
BuildRequires:  pkgconfig(capi-appfw-app-manager)
BuildRequires:  pkgconfig(d2d-conv-manager)
BuildRequires:  app-core-efl-devel
BuildRequires:  efl-extension-devel
BuildRequires:  cmake
BuildRequires:  gettext-tools

%description
Tizen D2D Convergence Setting Application

%prep
%setup -q

%define _pkg_dir %{TZ_SYS_RO_APP}/%{name}

%build
rm -rf CMakeFiles CMakeCache.txt && cmake . -DCMAKE_INSTALL_PREFIX=%{_pkg_dir} -DPKG_MANIFEST_PATH=%{TZ_SYS_RO_PACKAGES} -DPKG_VERSION=%{version}
make %{?jobs:-j%jobs}

%post
echo -e '\033[1m\033[36m ===== Import to package DB using tpk-backend ===== \033[0m'
echo 'tpk-backend -y %{name} --preload'
tpk-backend -y %{name} --preload
echo -e '\033[1m\033[36m ===== done ===== \033[0m'

%install
%make_install

mkdir -p %{buildroot}/%{_datadir}/packages/
cp %{_builddir}/%{buildsubdir}/org.tizen.d2d-conv-setting.xml %{buildroot}/%{_datadir}/packages/org.tizen.d2d-conv-setting.xml

mkdir -p %{buildroot}/%{_datadir}/license
cp %{_builddir}/%{buildsubdir}/LICENSE %{buildroot}/%{_datadir}/license/%{name}

%files
%defattr(-,root,root,-)
%{_pkg_dir}/bin/*
%{_pkg_dir}/shared/*
%{_datadir}/locale/*/LC_MESSAGES/*.mo
%{TZ_SYS_RO_PACKAGES}/%{name}.xml
%{_datadir}/license/%{name}
%manifest %{name}.manifest