%define P_NAME package-manager-worker %define ORG_PREFIX org.tizen Name: %{ORG_PREFIX}.%{P_NAME} %define alias %{name} Summary: TTSD Worker that manages packages - will be installed & was installed. Version: 0.1.0 Release: 1 Group: Service App License: Flora-1.1 Source0: %{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: hash-signer BuildRequires: pkgconfig(capi-appfw-service-application) BuildRequires: pkgconfig(capi-appfw-package-manager) BuildRequires: pkgconfig(capi-appfw-app-manager) BuildRequires: pkgconfig(things-service-worker) BuildRequires: pkgconfig(libtzplatform-config) BuildRequires: pkgconfig(json-glib-1.0) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(dlog) %description TTSD Worker that manages packages - will be installed & was installed. TTS Cloud can push packages into the things with this worker, also the cloud can retrieve information of packages on the things. %prep %setup -q %define _pkg_dir %{TZ_SYS_RO_APP}/%{alias} %define _pkg_shared_dir %{_pkg_dir}/shared %define _pkg_data_dir %{_pkg_dir}/data %define _pkg_res_dir %{_pkg_dir}/res %define _sys_icons_dir %{_pkg_shared_dir}/res %define _sys_packages_dir %{TZ_SYS_RO_PACKAGES} %build %ifarch %{arm} export CFLAGS="$CFLAGS -DTIZEN_BUILD_TARGET" export CXXFLAGS="$CXXFLAGS -DTIZEN_BUILD_TARGET" export FFLAGS="$FFLAGS -DTIZEN_BUILD_TARGET" %else export CFLAGS="$CFLAGS -DTIZEN_BUILD_EMULATOR" export CXXFLAGS="$CXXFLAGS -DTIZEN_BUILD_EMULATOR" export FFLAGS="$FFLAGS -DTIZEN_BUILD_EMULATOR" %endif cmake . -DCMAKE_INSTALL_PREFIX="%{_pkg_dir}" \ -DSYS_PACKAGES_DIR=%{_sys_packages_dir} \ make %{?jobs:-j%jobs} %install rm -rf %{buildroot} %make_install %define tizen_sign 1 %define tizen_sign_base %{_pkg_dir} %define tizen_sign_level platform %define tizen_author_sign 1 %define tizen_dist_sign 1 %post /sbin/ldconfig %postun -p /sbin/ldconfig %files %manifest %{P_NAME}.manifest %defattr(-,root,root,-) %{_pkg_dir}/* %{_sys_packages_dir}/%{name}.xml