summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorYounho Park <younho.park@samsung.com>2017-07-04 15:24:56 +0900
committerYounho Park <younho.park@samsung.com>2017-07-04 15:24:56 +0900
commit9e36db138682b1bc3a12732a19e009325d169ac4 (patch)
tree657c9362ce9bc1eb9576c2cbf3362d5952f6870f /packaging
parent6d39448537e044600418ba503389b74d97b707d7 (diff)
downloadsync-manager-9e36db138682b1bc3a12732a19e009325d169ac4.tar.gz
sync-manager-9e36db138682b1bc3a12732a19e009325d169ac4.tar.bz2
sync-manager-9e36db138682b1bc3a12732a19e009325d169ac4.zip
Rollback to "Remove deprecated D-bus smack policies" commitsubmit/tizen/20170704.063056accepted/tizen/unified/20170704.072838
Change-Id: I0d7985fc6afc504b5986328e65315aa9383eda14 Signed-off-by: Younho Park <younho.park@samsung.com>
Diffstat (limited to 'packaging')
-rw-r--r--packaging/sync-manager.spec39
1 files changed, 22 insertions, 17 deletions
diff --git a/packaging/sync-manager.spec b/packaging/sync-manager.spec
index 0ab390b..e1b87a0 100644
--- a/packaging/sync-manager.spec
+++ b/packaging/sync-manager.spec
@@ -2,7 +2,7 @@
%global __provides_exclude_from ^.*\\.extension-calendar
Name: sync-service
-Version: 0.2.26
+Version: 0.1.24
Release: 1
License: Apache-2.0
Summary: Sync manager daemon
@@ -19,7 +19,6 @@ BuildRequires: pkgconfig(capi-network-connection)
BuildRequires: pkgconfig(capi-system-info)
BuildRequires: pkgconfig(appcore-efl)
BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(db-util)
BuildRequires: pkgconfig(pkgmgr)
BuildRequires: pkgconfig(pkgmgr-info)
BuildRequires: pkgconfig(vconf)
@@ -34,7 +33,10 @@ BuildRequires: pkgconfig(bundle)
BuildRequires: pkgconfig(cynara-client)
BuildRequires: pkgconfig(cynara-session)
BuildRequires: pkgconfig(cynara-creds-gdbus)
+# If it is mobile, common, or "unified (undefined)"
+%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
BuildRequires: pkgconfig(calendar-service2)
+%endif
BuildRequires: pkgconfig(contacts-service2)
BuildRequires: pkgconfig(capi-content-media-content)
BuildRequires: pkgconfig(libtzplatform-config)
@@ -60,6 +62,8 @@ sync client provides sync adapter functionality to register sync adapters and to
%define _pkgdir /usr
%define _upgrade_script_path %{_pkgdir}/share/upgrade/scripts/
%define _upgrade_script 500.sync-manager.sh
+#%define _bindir %{_pkgdir}/bin
+#%define _systemd_dir /usr/lib/systemd/system
%prep
%setup -q
@@ -68,6 +72,15 @@ cp %{SOURCE2} .
%build
_FEATURE_CONTAINER_ENABLE=OFF
+# If it is mobile, common, or "unified (undefined)"
+%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
+# Support runtime feature on/off
+_RUNTIME_PROFILE_TEST=ON
+%else
+# Always off.
+_RUNTIME_PROFILE_TEST=OFF
+%endif
+
cmake \
-DCMAKE_INSTALL_PREFIX=%{_pkgdir} \
-DPACKAGE_NAME=%{name} \
@@ -75,8 +88,10 @@ cmake \
-DLIBDIR=%{_libdir} \
-DINCLUDEDIR=%{_includedir} \
-D_FEATURE_CONTAINER_ENABLE:BOOL=${_FEATURE_CONTAINER_ENABLE} \
+ -D_RUNTIME_PROFILE_TEST:BOOL=${_RUNTIME_PROFILE_TEST} \
-DVERSION=%{version}
+
make %{?jobs:-j%jobs}
%install
@@ -98,21 +113,9 @@ cp -f scripts/%{_upgrade_script} %{buildroot}%{_upgrade_script_path}
%post -n libcore-sync-client-devel -p /sbin/ldconfig
%post
-/sbin/ldconfig
-mkdir -p %{TZ_SYS_HOME}/%{TZ_SYS_DEFAULT_USER}/.applications/dbspace
-if [ ! -f %{TZ_SYS_HOME}/%{TZ_SYS_DEFAULT_USER}/.applications/dbspace/.sync-manager.db ]
-then
- sqlite3 %{TZ_SYS_HOME}/%{TZ_SYS_DEFAULT_USER}/.applications/dbspace/.sync-manager.db 'PRAGMA journal_mode = PERSIST;
- CREATE TABLE if not exists syncadapter (SvcAppId TEXT, PkgName TEXT, UserId TEXT, AppStatus TEXT);
- CREATE TABLE if not exists syncjob (SvcAppId TEXT, PkgName TEXT, UserId TEXT, AppStatus TEXT, SyncJobId TEXT, SyncType TEXT, AccountId TEXT, JobName TEXT, Interval TEXT, Expedit TEXT, NoRetry TEXT, UserDataKey TEXT, UserDataValue TEXT);'
-fi
-
-chown owner:users %{TZ_SYS_HOME}/%{TZ_SYS_DEFAULT_USER}/.applications/dbspace/.sync-manager.db
-chown owner:users %{TZ_SYS_HOME}/%{TZ_SYS_DEFAULT_USER}/.applications/dbspace/.sync-manager.db-journal
-chmod 644 %{TZ_SYS_HOME}/%{TZ_SYS_DEFAULT_USER}/.applications/dbspace/.sync-manager.db
-chmod 644 %{TZ_SYS_HOME}/%{TZ_SYS_DEFAULT_USER}/.applications/dbspace/.sync-manager.db-journal
-chsmack -a "*" %{TZ_SYS_HOME}/%{TZ_SYS_DEFAULT_USER}/.applications/dbspace/.sync-manager.db
-chsmack -a "*" %{TZ_SYS_HOME}/%{TZ_SYS_DEFAULT_USER}/.applications/dbspace/.sync-manager.db-journal
+#chown system:system %{TZ_SYS_DATA}/sync-manager/
+#systemctl enable sync-manager.service
+#systemctl start sync-manager.service
%postun -n libcore-sync-client -p /sbin/ldconfig
%postun -n libcore-sync-client-devel -p /sbin/ldconfig
@@ -123,6 +126,8 @@ chsmack -a "*" %{TZ_SYS_HOME}/%{TZ_SYS_DEFAULT_USER}/.applications/dbspace/.sync
%defattr(-,root,root,-)
%config %{_sysconfdir}/dbus-1/session.d/org.tizen.sync.conf
%{_bindir}/*
+#%{_unitdir}/*
+#%{TZ_SYS_DATA}/sync-manager/
%{_unitdir_user}/sync-manager.service
%{_unitdir_user}/default.target.wants/sync-manager.service
%attr(0644,root,root) /usr/share/dbus-1/services/org.tizen.sync.service