blob: 94bc0732847e63073c0a8066e3f04ae1125a5708 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
|
Name: sailfish-account-mastodon
License: LGPLv2+
Version: 0.1.0
Release: 1
Source0: %{name}-%{version}.tar.bz2
Summary: Account plugin for Mastodon
BuildRequires: qt5-qmake
BuildRequires: qt5-qttools-linguist
BuildRequires: sailfish-svg2png
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Sql)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(mlite5)
BuildRequires: pkgconfig(buteosyncfw5) >= 0.10.0
BuildRequires: pkgconfig(accounts-qt5)
BuildRequires: pkgconfig(libsignon-qt5)
BuildRequires: pkgconfig(socialcache)
BuildRequires: pkgconfig(libsailfishkeyprovider)
BuildRequires: pkgconfig(sailfishaccounts)
BuildRequires: pkgconfig(nemotransferengine-qt5) >= 2.0.0
BuildRequires: pkgconfig(nemonotifications-qt5)
Requires: jolla-settings-accounts-extensions-onlinesync
Requires: qmf-oauth2-plugin >= 0.0.7
Requires: buteo-sync-plugin-mastodon-posts
Requires: buteo-sync-plugin-mastodon-notifications
Requires: eventsview-extensions-mastodon
Requires: transferengine-plugin-mastodon
Requires(post): %{_libexecdir}/manage-groups
Requires(postun): %{_libexecdir}/manage-groups
%description
%{summary}.
%package -n buteo-sync-plugin-mastodon-posts
Summary: Provides synchronisation of Mastodon posts
Requires: %{name} = %{version}-%{release}
Requires: buteo-syncfw-qt5-msyncd
Requires: systemd
Requires(post): systemd
%description -n buteo-sync-plugin-mastodon-posts
Provides synchronisation of Mastodon posts.
%package -n buteo-sync-plugin-mastodon-notifications
Summary: Provides synchronisation of Mastodon notifications
Requires: %{name} = %{version}-%{release}
Requires: buteo-syncfw-qt5-msyncd
Requires: systemd
Requires(post): systemd
%description -n buteo-sync-plugin-mastodon-notifications
Provides synchronisation of Mastodon notifications.
%package -n eventsview-extensions-mastodon
Summary: Provides integration of Mastodon posts into Events view
Requires: lipstick-jolla-home-qt5-components >= 1.2.50
Requires: eventsview-extensions
%description -n eventsview-extensions-mastodon
Provides integration of Mastodon posts into Events view.
%package -n transferengine-plugin-mastodon
Summary: Mastodon image sharing plugin for Transfer Engine
Requires: sailfishsilica-qt5 >= 1.1.108
Requires: declarative-transferengine-qt5 >= 0.3.13
Requires: nemo-transferengine-qt5 >= 2.0.0
Requires: %{name} = %{version}-%{release}
%description -n transferengine-plugin-mastodon
Mastodon image sharing plugin for Transfer Engine.
%package -n sailfish-account-mastodon-ts-devel
Summary: Translation source files for sailfish-account-mastodon
Requires: %{name} = %{version}-%{release}
Requires: eventsview-extensions-mastodon = %{version}-%{release}
%description -n sailfish-account-mastodon-ts-devel
Translation source files for sailfish-account-mastodon components.
%prep
%setup -q -n %{name}-%{version}
%build
%qmake5 "VERSION=%{version}"
%make_build
%install
%qmake5_install
%post
/sbin/ldconfig
%{_libexecdir}/manage-groups add account-mastodon || :
%postun
/sbin/ldconfig
if [ "$1" -eq 0 ]; then
%{_libexecdir}/manage-groups remove account-mastodon || :
fi
%files
%{_libdir}/libmastodoncommon.so.*
%exclude %{_libdir}/libmastodoncommon.so
%{_libdir}/libmastodonbuteocommon.so.*
%exclude %{_libdir}/libmastodonbuteocommon.so
%{_datadir}/accounts/providers/mastodon.provider
%{_datadir}/accounts/services/mastodon-microblog.service
%{_datadir}/accounts/services/mastodon-sharing.service
%{_datadir}/accounts/ui/MastodonSettingsDisplay.qml
%{_datadir}/accounts/ui/mastodon.qml
%{_datadir}/accounts/ui/mastodon-settings.qml
%{_datadir}/accounts/ui/mastodon-update.qml
%{_libdir}/qt5/qml/com/jolla/settings/accounts/mastodon/*
%{_datadir}/translations/settings-accounts-mastodon_eng_en.qm
%{_datadir}/themes/sailfish-default/silica/*/icons/icon-l-mastodon.png
%files -n buteo-sync-plugin-mastodon-posts
%{_libdir}/buteo-plugins-qt5/oopp/libmastodon-posts-client.so
%config %{_sysconfdir}/buteo/profiles/client/mastodon-posts.xml
%config %{_sysconfdir}/buteo/profiles/sync/mastodon.Posts.xml
%files -n buteo-sync-plugin-mastodon-notifications
%{_libdir}/buteo-plugins-qt5/oopp/libmastodon-notifications-client.so
%config %{_sysconfdir}/buteo/profiles/client/mastodon-notifications.xml
%config %{_sysconfdir}/buteo/profiles/sync/mastodon.Notifications.xml
%files -n eventsview-extensions-mastodon
%{_libdir}/qt5/qml/com/jolla/eventsview/mastodon/*
%{_datadir}/lipstick/eventfeed/mastodon-delegate.qml
%{_datadir}/lipstick/eventfeed/MastodonFeedItem.qml
%{_datadir}/translations/lipstick-jolla-home-mastodon_eng_en.qm
%files -n sailfish-account-mastodon-ts-devel
%{_datadir}/translations/source/settings-accounts-mastodon.ts
%{_datadir}/translations/source/lipstick-jolla-home-mastodon.ts
%files -n transferengine-plugin-mastodon
%{_libdir}/nemo-transferengine/plugins/sharing/libmastodonshareplugin.so
%{_libdir}/nemo-transferengine/plugins/transfer/libmastodontransferplugin.so
%{_datadir}/nemo-transferengine/plugins/sharing/MastodonShareImage.qml
|