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