sociald.spec 19.1 KB
Newer Older
1 2
Name:       sociald
Summary:    Syncs device data from social services
3
Version:    0.1.67
4
Release:    1
5
Group:      System/Libraries
6
License:    LGPLv2.1
7 8
URL:        https://bitbucket.org/jolla/base-sociald
Source0:    %{name}-%{version}.tar.bz2
9
BuildRequires:  pkgconfig(Qt5Core)
10
BuildRequires:  pkgconfig(Qt5Gui)
11 12 13 14
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Sql)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(mlite5)
15
BuildRequires:  pkgconfig(buteosyncfw5) >= 0.6.36
16
BuildRequires:  pkgconfig(libsignon-qt5)
17
BuildRequires:  pkgconfig(accounts-qt5) >= 1.13
18
BuildRequires:  pkgconfig(socialcache) >= 0.0.48
19
BuildRequires:  pkgconfig(libsailfishkeyprovider)
20
BuildRequires:  qt5-qttools-linguist
21
BuildRequires:  ssu-devel
22
Requires: buteo-syncfw-qt5-msyncd
23 24
Requires: systemd
Requires(post): systemd
25
Obsoletes: sociald-facebook-notifications
26 27

%description
28
A Buteo plugin which provides data synchronization with various social services.
29 30 31

%files
%defattr(-,root,root,-)
32 33 34 35
#out-of-process-plugin form:
/usr/lib/buteo-plugins-qt5/oopp/sociald-client
#in-process-plugin form:
#/usr/lib/buteo-plugins-qt5/libsociald-client.so
Raine Makelainen's avatar
Raine Makelainen committed
36
%config %{_sysconfdir}/buteo/profiles/client/sociald.xml
37 38 39 40 41
%config %{_sysconfdir}/buteo/profiles/sync/sociald.All.xml


%package facebook-calendars
Summary:    Provides calendar synchronisation with Facebook
42
License:    LGPLv2.1
43 44 45 46 47 48 49 50 51
Group:      System/Libraries
BuildRequires:  pkgconfig(libmkcal-qt5)
BuildRequires:  pkgconfig(libkcalcoren-qt5)
Requires: %{name} = %{version}-%{release}

%description facebook-calendars
Provides calendar synchronisation with Facebook

%files facebook-calendars
52 53 54 55
#out-of-process-plugin form:
/usr/lib/buteo-plugins-qt5/oopp/facebook-calendars-client
#in-process-plugin form:
#/usr/lib/buteo-plugins-qt5/libfacebook-calendars-client.so
56
%config %{_sysconfdir}/buteo/profiles/client/facebook-calendars.xml
57
%config %{_sysconfdir}/buteo/profiles/sync/facebook.Calendars.xml
58 59

%pre facebook-calendars
60 61
rm -f /home/nemo/.cache/msyncd/sync/client/facebook-calendars.xml || :
rm -f /home/nemo/.cache/msyncd/sync/facebook.Calendars.xml || :
62 63

%post facebook-calendars
64
systemctl-user try-restart msyncd.service || :
65 66 67 68


%package facebook-contacts
Summary:    Provides contact synchronisation with Facebook
69
License:    LGPLv2.1
70 71 72 73 74 75 76 77 78
Group:      System/Libraries
BuildRequires:  pkgconfig(Qt5Contacts)
BuildRequires:  pkgconfig(qtcontacts-sqlite-qt5-extensions)
Requires: %{name} = %{version}-%{release}

%description facebook-contacts
Provides contact synchronisation with Facebook

%files facebook-contacts
79 80 81 82
#out-of-process-plugin form:
/usr/lib/buteo-plugins-qt5/oopp/facebook-contacts-client
#in-process-plugin form:
#/usr/lib/buteo-plugins-qt5/libfacebook-contacts-client.so
83
%config %{_sysconfdir}/buteo/profiles/client/facebook-contacts.xml
84
%config %{_sysconfdir}/buteo/profiles/sync/facebook.Contacts.xml
85 86

%pre facebook-contacts
87 88
rm -f /home/nemo/.cache/msyncd/sync/client/facebook-contacts.xml || :
rm -f /home/nemo/.cache/msyncd/sync/facebook.Contacts.xml || :
89 90

%post facebook-contacts
91
systemctl-user try-restart msyncd.service || :
92 93 94 95


%package facebook-images
Summary:    Provides image synchronisation with Facebook
96
License:    LGPLv2.1
97 98 99 100 101 102 103
Group:      System/Libraries
Requires: %{name} = %{version}-%{release}

%description facebook-images
Provides image synchronisation with Facebook

%files facebook-images
104 105 106 107
#out-of-process-plugin form:
/usr/lib/buteo-plugins-qt5/oopp/facebook-images-client
#in-process-plugin form:
#/usr/lib/buteo-plugins-qt5/libfacebook-images-client.so
108
%config %{_sysconfdir}/buteo/profiles/client/facebook-images.xml
109
%config %{_sysconfdir}/buteo/profiles/sync/facebook.Images.xml
110 111

%pre facebook-images
112 113
rm -f /home/nemo/.cache/msyncd/sync/client/facebook-images.xml || :
rm -f /home/nemo/.cache/msyncd/sync/facebook.Images.xml || :
114 115

%post facebook-images
116
systemctl-user try-restart msyncd.service || :
117 118


119 120
%package facebook-signon
Summary:    Provides signon credentials refreshing with Facebook
121
License:    LGPLv2.1
122 123 124 125 126 127 128 129
Group:      System/Libraries
BuildRequires:  qt5-qttools-linguist
Requires: %{name} = %{version}-%{release}

%description facebook-signon
Provides signon credentials refreshing with Facebook

%files facebook-signon
130 131 132 133
#out-of-process-plugin form:
/usr/lib/buteo-plugins-qt5/oopp/facebook-signon-client
#in-process-plugin form:
#/usr/lib/buteo-plugins-qt5/libfacebook-signon-client.so
134 135 136 137
%config %{_sysconfdir}/buteo/profiles/client/facebook-signon.xml
%config %{_sysconfdir}/buteo/profiles/sync/facebook.Signon.xml

%pre facebook-signon
138 139
rm -f /home/nemo/.cache/msyncd/sync/client/facebook-signon.xml || :
rm -f /home/nemo/.cache/msyncd/sync/facebook.Signon.xml || :
140 141

%post facebook-signon
142
systemctl-user try-restart msyncd.service || :
143 144 145



146 147
%package google-calendars
Summary:    Provides calendar synchronisation with Google
148
License:    LGPLv2.1
149 150 151 152 153 154 155 156 157
Group:      System/Libraries
BuildRequires:  pkgconfig(libmkcal-qt5)
BuildRequires:  pkgconfig(libkcalcoren-qt5)
Requires: %{name} = %{version}-%{release}

%description google-calendars
Provides calendar synchronisation with Google

%files google-calendars
158 159 160 161
#out-of-process-plugin form:
/usr/lib/buteo-plugins-qt5/oopp/google-calendars-client
#in-process-plugin form:
#/usr/lib/buteo-plugins-qt5/libgoogle-calendars-client.so
162 163 164 165
%config %{_sysconfdir}/buteo/profiles/client/google-calendars.xml
%config %{_sysconfdir}/buteo/profiles/sync/google.Calendars.xml

%pre google-calendars
166 167
rm -f /home/nemo/.cache/msyncd/sync/client/google-calendars.xml || :
rm -f /home/nemo/.cache/msyncd/sync/google.Calendars.xml || :
168 169

%post google-calendars
170
systemctl-user try-restart msyncd.service || :
171 172 173 174


%package google-contacts
Summary:    Provides contact synchronisation with Google
175
License:    LGPLv2.1
176 177
Group:      System/Libraries
BuildRequires:  pkgconfig(Qt5Contacts)
178
BuildRequires:  pkgconfig(qtcontacts-sqlite-qt5-extensions) >= 0.1.58
179 180 181 182 183 184
Requires: %{name} = %{version}-%{release}

%description google-contacts
Provides contact synchronisation with Google

%files google-contacts
185 186 187 188
#out-of-process-plugin form:
/usr/lib/buteo-plugins-qt5/oopp/google-contacts-client
#in-process-plugin form:
#/usr/lib/buteo-plugins-qt5/libgoogle-contacts-client.so
189 190 191 192
%config %{_sysconfdir}/buteo/profiles/client/google-contacts.xml
%config %{_sysconfdir}/buteo/profiles/sync/google.Contacts.xml

%pre google-contacts
193 194
rm -f /home/nemo/.cache/msyncd/sync/client/google-contacts.xml || :
rm -f /home/nemo/.cache/msyncd/sync/google.Contacts.xml || :
195 196

%post google-contacts
197
systemctl-user try-restart msyncd.service || :
198 199


200 201
%package google-signon
Summary:    Provides signon credentials refreshing with Google
202
License:    LGPLv2.1
203 204 205 206 207 208 209 210
Group:      System/Libraries
BuildRequires:  qt5-qttools-linguist
Requires: %{name} = %{version}-%{release}

%description google-signon
Provides signon credentials refreshing with Google

%files google-signon
211 212 213 214
#out-of-process-plugin form:
/usr/lib/buteo-plugins-qt5/oopp/google-signon-client
#in-process-plugin form:
#/usr/lib/buteo-plugins-qt5/libgoogle-signon-client.so
215 216 217 218
%config %{_sysconfdir}/buteo/profiles/client/google-signon.xml
%config %{_sysconfdir}/buteo/profiles/sync/google.Signon.xml

%pre google-signon
219 220
rm -f /home/nemo/.cache/msyncd/sync/client/google-signon.xml || :
rm -f /home/nemo/.cache/msyncd/sync/google.Signon.xml || :
221 222

%post google-signon
223
systemctl-user try-restart msyncd.service || :
224 225


226 227 228

%package twitter-notifications
Summary:    Provides notification synchronisation with Twitter
229
License:    LGPLv2.1
230 231 232 233 234 235 236 237 238 239 240
Group:      System/Libraries
BuildRequires:  pkgconfig(Qt5Contacts)
BuildRequires:  pkgconfig(qtcontacts-sqlite-qt5-extensions)
BuildRequires:  nemo-qml-plugin-notifications-qt5-devel
BuildRequires:  qt5-qttools-linguist
Requires: %{name} = %{version}-%{release}

%description twitter-notifications
Provides notification synchronisation with Twitter

%files twitter-notifications
241 242 243 244
#out-of-process-plugin form:
/usr/lib/buteo-plugins-qt5/oopp/twitter-notifications-client
#in-process-plugin form:
#/usr/lib/buteo-plugins-qt5/libtwitter-notifications-client.so
245 246 247
%config %{_sysconfdir}/buteo/profiles/client/twitter-notifications.xml
%config %{_sysconfdir}/buteo/profiles/sync/twitter.Notifications.xml
%{_datadir}/lipstick/notificationcategories/x-nemo.social.twitter.mention.conf
248 249
%{_datadir}/lipstick/notificationcategories/x-nemo.social.twitter.retweet.conf
%{_datadir}/lipstick/notificationcategories/x-nemo.social.twitter.follower.conf
250
%{_datadir}/translations/lipstick-jolla-home-twitter-notif_eng_en.qm
251 252

%pre twitter-notifications
253 254
rm -f /home/nemo/.cache/msyncd/sync/client/twitter-notifications.xml || :
rm -f /home/nemo/.cache/msyncd/sync/twitter.Notifications.xml || :
255 256

%post twitter-notifications
257
systemctl-user try-restart msyncd.service || :
258 259 260 261


%package twitter-posts
Summary:    Provides post synchronisation with Twitter
262
License:    LGPLv2.1
263 264 265 266 267 268 269 270 271 272
Group:      System/Libraries
BuildRequires:  pkgconfig(Qt5Contacts)
BuildRequires:  pkgconfig(qtcontacts-sqlite-qt5-extensions)
BuildRequires:  qt5-qttools-linguist
Requires: %{name} = %{version}-%{release}

%description twitter-posts
Provides post synchronisation with Twitter

%files twitter-posts
273 274 275 276
#out-of-process-plugin form:
/usr/lib/buteo-plugins-qt5/oopp/twitter-posts-client
#in-process-plugin form:
#/usr/lib/buteo-plugins-qt5/libtwitter-posts-client.so
277 278 279 280 281
%config %{_sysconfdir}/buteo/profiles/client/twitter-posts.xml
%config %{_sysconfdir}/buteo/profiles/sync/twitter.Posts.xml
%{_datadir}/lipstick/notificationcategories/x-nemo.social.twitter.tweet.conf

%pre twitter-posts
282 283
rm -f /home/nemo/.cache/msyncd/sync/client/twitter-posts.xml || :
rm -f /home/nemo/.cache/msyncd/sync/twitter.Posts.xml || :
284 285

%post twitter-posts
286
systemctl-user try-restart msyncd.service || :
287

288

289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307
%package onedrive-signon
Summary:    Provides signon credentials refreshing with OneDrive
License:    LGPLv2.1
Group:      System/Libraries
BuildRequires:  qt5-qttools-linguist
Requires: %{name} = %{version}-%{release}

%description onedrive-signon
Provides signon credentials refreshing with OneDrive

%files onedrive-signon
#out-of-process-plugin form:
/usr/lib/buteo-plugins-qt5/oopp/onedrive-signon-client
#in-process-plugin form:
#/usr/lib/buteo-plugins-qt5/libonedrive-signon-client.so
%config %{_sysconfdir}/buteo/profiles/client/onedrive-signon.xml
%config %{_sysconfdir}/buteo/profiles/sync/onedrive.Signon.xml

%pre onedrive-signon
308 309
rm -f /home/nemo/.cache/msyncd/sync/client/onedrive-signon.xml || :
rm -f /home/nemo/.cache/msyncd/sync/onedrive.Signon.xml || :
310 311 312 313 314

%post onedrive-signon
systemctl-user try-restart msyncd.service || :


315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337
%package vk-posts
Summary:    Provides post synchronisation with VK
License:    LGPLv2.1
Group:      System/Libraries
BuildRequires:  pkgconfig(Qt5Contacts)
BuildRequires:  pkgconfig(qtcontacts-sqlite-qt5-extensions)
BuildRequires:  qt5-qttools-linguist
Requires: %{name} = %{version}-%{release}

%description vk-posts
Provides post synchronisation with VK

%files vk-posts
%{_datadir}/lipstick/notificationcategories/x-nemo.social.vk.statuspost.conf
#%{_datadir}/translations/lipstick-jolla-home-vk_eng_en.qm
#out-of-process-plugin form:
/usr/lib/buteo-plugins-qt5/oopp/vk-posts-client
#in-process-plugin form:
#/usr/lib/buteo-plugins-qt5/libvk-posts-client.so
%config %{_sysconfdir}/buteo/profiles/client/vk-posts.xml
%config %{_sysconfdir}/buteo/profiles/sync/vk.Posts.xml

%pre vk-posts
338 339
rm -f /home/nemo/.cache/msyncd/sync/client/vk-posts.xml || :
rm -f /home/nemo/.cache/msyncd/sync/vk.Posts.xml || :
340 341 342

%post vk-posts
systemctl-user restart msyncd.service || :
343

344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361
%package dropbox-images
Summary:    Provides image synchronisation with Dropbox
License:    LGPLv2.1
Group:      System/Libraries
Requires: %{name} = %{version}-%{release}

%description dropbox-images
Provides image synchronisation with Dropbox

%files dropbox-images
#out-of-process-plugin form:
/usr/lib/buteo-plugins-qt5/oopp/dropbox-images-client
#in-process-plugin form:
#/usr/lib/buteo-plugins-qt5/libdropbox-images-client.so
%config %{_sysconfdir}/buteo/profiles/client/dropbox-images.xml
%config %{_sysconfdir}/buteo/profiles/sync/dropbox.Images.xml

%pre dropbox-images
362 363
rm -f /home/nemo/.cache/msyncd/sync/client/dropbox-images.xml || :
rm -f /home/nemo/.cache/msyncd/sync/dropbox.Images.xml || :
364 365 366 367

%post dropbox-images
systemctl-user try-restart msyncd.service || :

368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385
%package onedrive-images
Summary:    Provides image synchronisation with OneDrive
License:    LGPLv2.1
Group:      System/Libraries
Requires: %{name} = %{version}-%{release}

%description onedrive-images
Provides image synchronisation with OneDrive

%files onedrive-images
#out-of-process-plugin form:
/usr/lib/buteo-plugins-qt5/oopp/onedrive-images-client
#in-process-plugin form:
#/usr/lib/buteo-plugins-qt5/libonedrive-images-client.so
%config %{_sysconfdir}/buteo/profiles/client/onedrive-images.xml
%config %{_sysconfdir}/buteo/profiles/sync/onedrive.Images.xml

%pre onedrive-images
386 387
rm -f /home/nemo/.cache/msyncd/sync/client/onedrive-images.xml || :
rm -f /home/nemo/.cache/msyncd/sync/onedrive.Images.xml || :
388 389 390 391 392 393

%post onedrive-images
systemctl-user try-restart msyncd.service || :



394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412
%package onedrive-backup
Summary:    Provides backup-blob synchronization for OneDrive
License:    LGPLv2.1
Group:      System/Libraries
BuildRequires:  qt5-qttools-linguist
Requires: %{name} = %{version}-%{release}

%description onedrive-backup
Provides backup-blob synchronization for OneDrive

%files onedrive-backup
#out-of-process-plugin form:
/usr/lib/buteo-plugins-qt5/oopp/onedrive-backup-client
#in-process-plugin form:
#/usr/lib/buteo-plugins-qt5/libonedrive-backup-client.so
%config %{_sysconfdir}/buteo/profiles/client/onedrive-backup.xml
%config %{_sysconfdir}/buteo/profiles/sync/onedrive.Backup.xml

%pre onedrive-backup
413 414
rm -f /home/nemo/.cache/msyncd/sync/client/onedrive-backup.xml || :
rm -f /home/nemo/.cache/msyncd/sync/onedrive.Backup.xml || :
415 416 417 418

%post onedrive-backup
systemctl-user try-restart msyncd.service || :

419

420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439

%package dropbox-backup
Summary:    Provides backup-blob synchronization for Dropbox
License:    LGPLv2.1
Group:      System/Libraries
BuildRequires:  qt5-qttools-linguist
Requires: %{name} = %{version}-%{release}

%description dropbox-backup
Provides backup-blob synchronization for Dropbox

%files dropbox-backup
#out-of-process-plugin form:
/usr/lib/buteo-plugins-qt5/oopp/dropbox-backup-client
#in-process-plugin form:
#/usr/lib/buteo-plugins-qt5/libdropbox-backup-client.so
%config %{_sysconfdir}/buteo/profiles/client/dropbox-backup.xml
%config %{_sysconfdir}/buteo/profiles/sync/dropbox.Backup.xml

%pre dropbox-backup
440 441
rm -f /home/nemo/.cache/msyncd/sync/client/dropbox-backup.xml || :
rm -f /home/nemo/.cache/msyncd/sync/dropbox.Backup.xml || :
442 443 444 445 446 447

%post dropbox-backup
systemctl-user try-restart msyncd.service || :



448 449
%package vk-notifications
Summary:    Provides notification synchronisation with VK
450
License:    LGPLv2.1
451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468
Group:      System/Libraries
BuildRequires:  nemo-qml-plugin-notifications-qt5-devel
BuildRequires:  qt5-qttools-linguist
Requires: %{name} = %{version}-%{release}

%description vk-notifications
Provides notification synchronisation with VK

%files vk-notifications
#out-of-process-plugin form:
/usr/lib/buteo-plugins-qt5/oopp/vk-notifications-client
#in-process-plugin form:
#/usr/lib/buteo-plugins-qt5/libvk-notifications-client.so
%config %{_sysconfdir}/buteo/profiles/client/vk-notifications.xml
%config %{_sysconfdir}/buteo/profiles/sync/vk.Notifications.xml
%{_datadir}/lipstick/notificationcategories/x-nemo.social.vk.notification.conf

%pre vk-notifications
469 470
rm -f /home/nemo/.cache/msyncd/sync/client/vk-notifications.xml || :
rm -f /home/nemo/.cache/msyncd/sync/vk.Notifications.xml || :
471 472 473 474 475

%post vk-notifications
systemctl-user restart msyncd.service || :


476 477
%package vk-calendars
Summary:    Provides calendar synchronisation with VK
478
License:    LGPLv2.1
479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495
Group:      System/Libraries
BuildRequires:  pkgconfig(libmkcal-qt5)
BuildRequires:  pkgconfig(libkcalcoren-qt5)
Requires: %{name} = %{version}-%{release}

%description vk-calendars
Provides calendar synchronisation with VK

%files vk-calendars
#out-of-proces-plugin form:
/usr/lib/buteo-plugins-qt5/oopp/vk-calendars-client
#in-process-plugin form:
#/usr/lib/buteo-plugins-qt5/libvk-calendars-client.so
%config %{_sysconfdir}/buteo/profiles/client/vk-calendars.xml
%config %{_sysconfdir}/buteo/profiles/sync/vk.Calendars.xml

%pre vk-calendars
496 497
rm -f /home/nemo/.cache/msyncd/sync/client/vk-calendars.xml || :
rm -f /home/nemo/.cache/msyncd/sync/vk.Calendars.xml || :
498 499 500 501 502

%post vk-calendars
systemctl-user restart msyncd.service || :


503 504
%package vk-contacts
Summary:    Provides contact synchronisation with VK
505
License:    LGPLv2.1
506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522
Group:      System/Libraries
BuildRequires:  pkgconfig(Qt5Contacts)
BuildRequires:  pkgconfig(qtcontacts-sqlite-qt5-extensions)
Requires: %{name} = %{version}-%{release}

%description vk-contacts
Provides contact synchronisation with VK

%files vk-contacts
#out-of-process-plugin form:
/usr/lib/buteo-plugins-qt5/oopp/vk-contacts-client
#in-process-plugin form:
#/usr/lib/buteo-plugins-qt5/libvk-contacts-client.so
%config %{_sysconfdir}/buteo/profiles/client/vk-contacts.xml
%config %{_sysconfdir}/buteo/profiles/sync/vk.Contacts.xml

%pre vk-contacts
523 524
rm -f /home/nemo/.cache/msyncd/sync/client/vk-contacts.xml || :
rm -f /home/nemo/.cache/msyncd/sync/vk.Contacts.xml || :
525 526 527 528

%post vk-contacts
systemctl-user restart msyncd.service || :

529

530 531
%package vk-images
Summary:    Provides image synchronisation with VK
532
License:    LGPLv2.1
533 534 535 536 537 538 539 540 541 542 543 544 545 546 547
Group:      System/Libraries
Requires: %{name} = %{version}-%{release}

%description vk-images
Provides image synchronisation with VK

%files vk-images
#out-of-process-plugin form:
/usr/lib/buteo-plugins-qt5/oopp/vk-images-client
#in-process-plugin form:
#/usr/lib/buteo-plugins-qt5/libvk-images-client.so
%config %{_sysconfdir}/buteo/profiles/client/vk-images.xml
%config %{_sysconfdir}/buteo/profiles/sync/vk.Images.xml

%pre vk-images
548 549
rm -f /home/nemo/.cache/msyncd/sync/client/vk-images.xml || :
rm -f /home/nemo/.cache/msyncd/sync/vk.Images.xml || :
550 551 552 553 554

%post vk-images
systemctl-user restart msyncd.service || :


555 556
%package ts-devel
Summary:    Translation source for sociald
557
License:    LGPLv2.1
558 559 560 561 562 563 564
Group:      System/Applications

%description ts-devel
Translation source for sociald

%files ts-devel
%defattr(-,root,root,-)
565
%{_datadir}/translations/source/lipstick-jolla-home-twitter-notif.ts
566

567 568
%package tests
Summary:    Automatable tests for sociald
569
License:    LGPLv2.1
570
Group:      System/Applications
571 572 573
BuildRequires:  pkgconfig(Qt5Test)
Requires:   qt5-qtdeclarative-devel-tools
Requires:   qt5-qtdeclarative-import-qttest
574 575 576 577 578 579 580 581

%description tests
Automatable tests for sociald

%files tests
%defattr(-,root,root,-)
/opt/tests/sociald/*

582

583 584 585 586
%prep
%setup -q -n %{name}-%{version}

%build
587
%qmake5 "DEFINES+=OUT_OF_PROCESS_PLUGIN"
588
make %{_smp_mflags}
589

590
%pre
591 592 593 594 595 596 597 598 599
rm -f /home/nemo/.cache/msyncd/sync/client/sociald.xml || :
rm -f /home/nemo/.cache/msyncd/sync/sociald.facebook.Calendars.xml || :
rm -f /home/nemo/.cache/msyncd/sync/sociald.facebook.Contacts.xml || :
rm -f /home/nemo/.cache/msyncd/sync/sociald.facebook.Images.xml || :
rm -f /home/nemo/.cache/msyncd/sync/sociald.facebook.Notifications.xml || :
rm -f /home/nemo/.cache/msyncd/sync/sociald.twitter.Notifications.xml || :
rm -f /home/nemo/.cache/msyncd/sync/sociald.twitter.Posts.xml || :
rm -f /home/nemo/.cache/msyncd/sync/sociald.google.Calendars.xml || :
rm -f /home/nemo/.cache/msyncd/sync/sociald.google.Contacts.xml || :
600

601 602
%install
rm -rf %{buildroot}
603
%qmake5_install
604 605

%post
606
systemctl-user try-restart msyncd.service || :
607