summaryrefslogtreecommitdiff
path: root/packaging/org.tizen.favorite.spec
blob: 9ce947ce86f27cb63ce879ad43041b933ae4e3ee (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
Name: org.tizen.favorite
Summary: Favorite application for Tizen TV based on AirFlex UX
Version: 0.1
Release: 1
Group: Applications/Core Applications
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Packager: hj903.jo@samsung.com

BuildRequires: cmake
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(capi-appfw-application)
BuildRequires: pkgconfig(app-utils)
BuildRequires: pkgconfig(pkgmgr-info)
BuildRequires: pkgconfig(capi-content-media-content)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(capi-web-bookmark)
BuildRequires: pkgconfig(tv-service)

%define _appdir /usr/apps/%{name}
%define _bindir %{_appdir}/bin
%define _resdir %{_appdir}/res
%define _edjedir %{_resdir}/edje
%define _imgdir %{_resdir}/images
%define _pkgdir %{_datadir}/packages
%define _desktop_icondir /usr/share/icons

%description
Favorite application shows the contents which were registered as favorite.

%prep
%setup -q

%build
cmake \
	-DCMAKE_INSTALL_PREFIX=%{_appdir} \
	-DPACKAGE_NAME=%{name} \
	-DVERSION=%{version} \
	-DBINDIR=%{_bindir} \
	-DRESDIR=%{_resdir} \
	-DEDJEDIR=%{_edjedir} \
	-DIMGDIR=%{_imgdir} \
	-DDESKTOP_ICONDIR=%{_desktop_icondir} \
	-DDESKTOP_ICON=%{name}.png \
	-DPACKAGEDIR=%{_pkgdir}

make %{?jobs:-j%jobs}

# Copies the executables to appropriate location
%install
%make_install

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_bindir}/*
%{_resdir}/*
%{_pkgdir}/%{name}.xml
%{_desktop_icondir}/%{name}.png