Skip to content

Commit

Permalink
Merged in chriadam/base-sociald (pull request #1)
Browse files Browse the repository at this point in the history
[sociald] Create sociald process - JB#5544
  • Loading branch information
Chris Adams committed Mar 12, 2013
2 parents 79bda4a + bea2077 commit 3175fd8
Show file tree
Hide file tree
Showing 18 changed files with 2,098 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rpm/sociald.desktop
@@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Name=Social service sync daemon
Exec=/usr/bin/sociald
X-Moblin-Priority=Low
OnlyShowIn=X-MEEGO-HS;
X-Meego-Watchdog=Restart
10 changes: 10 additions & 0 deletions rpm/sociald.service
@@ -0,0 +1,10 @@
[Unit]
Description=The sociald sync daemon
After=xorg.target
Requires=dbus.socket xorg.target lipstick.service

[Service]
Type=notify
ExecStart=/usr/bin/sociald --systemd
Restart=always

61 changes: 61 additions & 0 deletions rpm/sociald.spec
@@ -0,0 +1,61 @@
Name: sociald
Summary: Syncs device data from social services
Version: 0.0.1
Release: 1
Group: System/Applications
License: TBD
URL: https://bitbucket.org/jolla/base-sociald
Source0: %{name}-%{version}.tar.bz2
Source1: sociald.desktop
Source2: sociald.service
BuildRequires: pkgconfig(QtCore)
BuildRequires: pkgconfig(QtDBus)
BuildRequires: pkgconfig(QtSql)
BuildRequires: pkgconfig(QtNetwork)
BuildRequires: pkgconfig(QtContacts)
BuildRequires: pkgconfig(mlite)
BuildRequires: pkgconfig(systemd)
BuildRequires: pkgconfig(QJson)
BuildRequires: pkgconfig(libsignon-qt)
BuildRequires: pkgconfig(accounts-qt)
BuildRequires: eventfeed-devel
BuildRequires: libmeegotouchevents-devel
Requires: lipstick-jolla-home

%description
A daemon process which provides data synchronization with various social services.

%files
%defattr(-,root,root,-)
%{_bindir}/sociald
%{_libdir}/systemd/user/sociald.service
%config /etc/xdg/autostart/sociald.desktop
%{_datadir}/translations/sociald_eng_en.qm


%package ts-devel
Summary: Translation source for sociald
License: TBD
Group: System/Applications

%description ts-devel
Translation source for sociald

%files ts-devel
%defattr(-,root,root,-)
%{_datadir}/translations/source/sociald.ts

%prep
%setup -q -n %{name}-%{version}

%build
%qmake
make %{?jobs:-j%jobs}

%install
rm -rf %{buildroot}
%qmake_install
mkdir -p %{buildroot}%{_libdir}/systemd/user/
cp -a %{SOURCE2} %{buildroot}%{_libdir}/systemd/user/
install -D -m 644 %{SOURCE1} %{buildroot}/etc/xdg/autostart/sociald.desktop

2 changes: 2 additions & 0 deletions sociald.pro
@@ -0,0 +1,2 @@
TEMPLATE = subdirs
SUBDIRS = src
21 changes: 21 additions & 0 deletions src/facebook/facebook.pri
@@ -0,0 +1,21 @@
CONFIG += link_pkgconfig
PKGCONFIG += accounts-qt libsignon-qt
lessThan(QT_MAJOR_VERSION, 5) {
PKGCONFIG += QJson
}

CONFIG += mobility
MOBILITY += contacts

# possibly temporary? use DBus API instead of meventfeed.h ?
CONFIG += meegotouchevents

INCLUDEPATH += . ..

HEADERS += \
$$PWD/facebooksyncadaptor.h \
$$PWD/facebooknotificationsyncadaptor.h

SOURCES += \
$$PWD/facebooksyncadaptor.cpp \
$$PWD/facebooknotificationsyncadaptor.cpp

0 comments on commit 3175fd8

Please sign in to comment.