blob: 11a84248530055af3011e81cdfe15578ddf3b89b (
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
|
Name: org.tizen.homescreen-tv-ref
Summary: TV homescreen reference application
Version: 0.1
Release: 1
Group: Applications/Core Applications
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1: %{name}.service
BuildRequires: cmake
BuildRequires: pkgconfig(capi-appfw-application)
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(ecore-x)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(utilX)
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(notification)
BuildRequires: pkgconfig(app-content-favorite)
BuildRequires: pkgconfig(app-content-provider)
BuildRequires: edje-bin
BuildRequires: gettext-devel
%define _pkgdir /usr/apps/%{name}
%define _bindir %{_pkgdir}/bin
%define _resdir %{_pkgdir}/res
%define _datadir %{_pkgdir}/data
%define _imagedir %{_resdir}/images
%define _cfgdir %{_resdir}/config
%define _edjedir %{_resdir}/edje
%define _manifestdir /usr/share/packages
%define _sysuserdir /systemd/user
%define _servicedir /systemd/user/default.target.wants
%description
Application for providing user status and tv contents
%prep
%setup -q
%build
cmake \
-DCMAKE_INSTALL_PREFIX=%{_pkgdir} \
-DPACKAGE_NAME=%{name} \
-DBINDIR=%{_bindir} \
-DEDJEDIR=%{_edjedir} \
-DIMAGEDIR=%{_imagedir} \
-DCFGDIR=%{_cfgdir} \
-DMANIFESTDIR=%{_manifestdir} \
-DVERSION=%{version}
make %{?jobs:-j%jobs}
%install
%make_install
install --directory %{buildroot}/%{_datadir}
install --directory %{buildroot}%{_libdir}%{_servicedir}
install -m 0644 %{SOURCE1} %{buildroot}%{_libdir}%{_sysuserdir}
ln -sf ../%{name}.service %{buildroot}%{_libdir}%{_servicedir}
%clean
rm -rf %{buildroot}
%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{_bindir}/*
%{_resdir}/*
%{_datadir}
%{_manifestdir}/%{name}.xml
%{_libdir}%{_sysuserdir}/%{name}.service
%{_libdir}%{_servicedir}/%{name}.service
|