summaryrefslogtreecommitdiff
path: root/packaging/org.tizen.mediahub.spec
blob: d5a7724e1f6fb26a4b37c3e8cda94907c29236b7 (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
Name:      org.tizen.mediahub
Summary:   Media Hub application
Version:   0.1
Release:   1
Group:     Applications/Core Applications
License:   Apache-2.0
Source0:   %{name}-%{version}.tar.gz
Source1:   %{name}.manifest

BuildRequires: cmake
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(capi-appfw-application)
BuildRequires: pkgconfig(app-utils)

%define _appdir /usr/apps/%{name}
%define _bindir %{_appdir}/bin
%define _resdir %{_appdir}/res
%define _localedir %{_resdir}/locale
%define _pkgdir %{_datadir}/packages

%description
Media Hub Application

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

cmake \
	-DCMAKE_INSTALL_PREFIX=%{_appdir} \
	-DPACKAGE_NAME=%{name} \
	-DBINDIR=%{_bindir} \
	-DLOCALEDIR=%{_localedir} \
	-DPACKAGEDIR=%{_pkgdir} \
	-DVERSION=%{version}

make %{?jobs:-j%jobs}

%install
%make_install

%clean
rm -rf %{buildroot}

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