]>
Commit | Line | Data |
---|---|---|
af1fd638 | 1 | %define kdeframever 5.67 |
cd375125 WF |
2 | %define qtver 5.9.0 |
3 | %define kfname purpose | |
4 | ||
5f5b102f | 5 | Summary: Offers available actions for a specific purpose |
cd375125 | 6 | Name: kf5-%{kfname} |
af1fd638 | 7 | Version: 5.67.0 |
eda51aa3 | 8 | Release: 5 |
cd375125 WF |
9 | License: LGPL v2.1+ |
10 | Group: X11/Libraries | |
11 | Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz | |
af1fd638 | 12 | # Source0-md5: 4039367834bc9039a84261b5a8d9912c |
3dd9a7b1 | 13 | Patch0: %{name}-main_js.patch |
eda51aa3 | 14 | Patch1: qt-5.15.patch |
cd375125 WF |
15 | URL: http://www.kde.org/ |
16 | BuildRequires: Qt5Core-devel >= %{qtver} | |
17 | BuildRequires: Qt5Test-devel >= %{qtver} | |
18 | BuildRequires: cmake >= 2.8.12 | |
19 | BuildRequires: gettext-devel | |
4887f3f3 | 20 | BuildRequires: ka5-kaccounts-integration-devel |
60804979 | 21 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
3a27bdfa | 22 | BuildRequires: kf5-kconfig-devel >= %{version} |
cd375125 WF |
23 | BuildRequires: kf5-kcoreaddons-devel >= %{version} |
24 | BuildRequires: kf5-ki18n-devel >= %{version} | |
d4e7c556 | 25 | BuildRequires: kf5-kio-devel >= %{version} |
3a27bdfa | 26 | BuildRequires: kf5-kirigami2-devel >= %{version} |
29c9489b | 27 | BuildRequires: libaccounts-glib-devel |
3a27bdfa | 28 | BuildRequires: libaccounts-qt5-devel |
e8282625 | 29 | BuildRequires: libsignon-qt5-devel >= 8.55 |
cd375125 | 30 | BuildRequires: libutempter-devel |
b61db7fa | 31 | BuildRequires: ninja |
cd375125 WF |
32 | BuildRequires: rpmbuild(macros) >= 1.164 |
33 | BuildRequires: tar >= 1:1.22 | |
34 | BuildRequires: xz | |
35 | Requires: kf5-dirs | |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
38 | %define qt5dir %{_libdir}/qt5 | |
39 | ||
40 | %description | |
5f5b102f JR |
41 | This framework offers the possibility to create integrate services and |
42 | actions on any application without having to implement them | |
43 | specifically. Purpose will offer them mechanisms to list the different | |
44 | alternatives to execute given the requested action type and will | |
45 | facilitate components so that all the plugins can receive all the | |
46 | information they need. | |
47 | ||
48 | %package twitter | |
49 | Summary: Twitter plugin for purpose | |
50 | Group: X11/Development/Libraries | |
51 | Requires: %{name} = %{version}-%{release} | |
52 | ||
7f9364c1 | 53 | %description twitter |
5f5b102f | 54 | Twitter plugin for purpose. |
cd375125 WF |
55 | |
56 | %package devel | |
57 | Summary: Header files for %{kfname} development | |
58 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
59 | Group: X11/Development/Libraries | |
60 | Requires: %{name} = %{version}-%{release} | |
61 | ||
62 | %description devel | |
63 | Header files for %{kfname} development. | |
64 | ||
65 | %description devel -l pl.UTF-8 | |
66 | Pliki nagłówkowe dla programistów używających %{kfname}. | |
67 | ||
68 | %prep | |
69 | %setup -q -n %{kfname}-%{version} | |
3dd9a7b1 | 70 | %patch0 -p0 |
eda51aa3 | 71 | %patch1 -p1 |
cd375125 WF |
72 | |
73 | %build | |
74 | install -d build | |
75 | cd build | |
b61db7fa | 76 | %cmake -G Ninja \ |
cd375125 WF |
77 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
78 | ../ | |
b61db7fa | 79 | %ninja_build |
cd375125 WF |
80 | |
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
b61db7fa | 83 | %ninja_install -C build |
cd375125 WF |
84 | |
85 | %find_lang %{kfname}5 --all-name --with-kde | |
86 | ||
87 | %clean | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %post -p /sbin/ldconfig | |
91 | %postun -p /sbin/ldconfig | |
92 | ||
93 | %files -f %{kfname}5.lang | |
94 | %defattr(644,root,root,755) | |
cd375125 WF |
95 | %attr(755,root,root) %ghost %{_libdir}/libKF5Purpose.so.5 |
96 | %attr(755,root,root) %{_libdir}/libKF5Purpose.so.5.*.* | |
97 | %attr(755,root,root) %ghost %{_libdir}/libKF5PurposeWidgets.so.5 | |
98 | %attr(755,root,root) %{_libdir}/libKF5PurposeWidgets.so.5.*.* | |
99 | %attr(755,root,root) %ghost %{_libdir}/libPhabricatorHelpers.so.5 | |
100 | %attr(755,root,root) %{_libdir}/libPhabricatorHelpers.so.5.*.* | |
101 | %attr(755,root,root) %ghost %{_libdir}/libReviewboardHelpers.so.5 | |
102 | %attr(755,root,root) %{_libdir}/libReviewboardHelpers.so.5.*.* | |
103 | %dir %{_libdir}/qt5/plugins/kf5/kfileitemaction | |
104 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kfileitemaction/sharefileitemaction.so | |
105 | %dir %{_libdir}/qt5/plugins/kf5/purpose | |
106 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/purpose/bluetoothplugin.so | |
107 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/purpose/emailplugin.so | |
108 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/purpose/imgurplugin.so | |
109 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/purpose/kdeconnectplugin.so | |
b61db7fa | 110 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/purpose/kdeconnectsmsplugin.so |
cd375125 WF |
111 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/purpose/ktpsendfileplugin.so |
112 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/purpose/nextcloudplugin.so | |
113 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/purpose/pastebinplugin.so | |
114 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/purpose/phabricatorplugin.so | |
115 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/purpose/reviewboardplugin.so | |
116 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/purpose/saveasplugin.so | |
117 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/purpose/telegramplugin.so | |
118 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/purpose/youtubeplugin.so | |
119 | %dir %{_libdir}/qt5/qml/org/kde/purpose | |
120 | %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/purpose/libpurposequickplugin.so | |
121 | %dir %{_libdir}/qt5/qml/org/kde/purpose/phabricator | |
122 | %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/purpose/phabricator/libphabricatorquickplugin.so | |
123 | %{_libdir}/qt5/qml/org/kde/purpose/phabricator/qmldir | |
124 | %{_libdir}/qt5/qml/org/kde/purpose/plugins.qmltypes | |
125 | %{_libdir}/qt5/qml/org/kde/purpose/qmldir | |
126 | %dir %{_libdir}/qt5/qml/org/kde/purpose/reviewboard | |
127 | %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/purpose/reviewboard/librbpurposequickplugin.so | |
128 | %{_libdir}/qt5/qml/org/kde/purpose/reviewboard/qmldir | |
129 | %attr(755,root,root) %{_libexecdir}/kf5/purposeprocess | |
f7e2688c | 130 | %dir %{_datadir}/accounts |
cd375125 WF |
131 | %dir %{_datadir}/accounts/services |
132 | %dir %{_datadir}/accounts/services/kde | |
133 | %{_datadir}/accounts/services/kde/google-youtube.service | |
134 | %{_datadir}/accounts/services/kde/nextcloud-upload.service | |
3dd9a7b1 | 135 | %{_datadir}/qlogging-categories5/purpose.categories |
cd375125 WF |
136 | %{_iconsdir}/hicolor/128x128/apps/phabricator-purpose.png |
137 | %{_iconsdir}/hicolor/128x128/apps/reviewboard-purpose.png | |
138 | %{_iconsdir}/hicolor/16x16/actions/kipiplugin_youtube.png | |
139 | %{_iconsdir}/hicolor/16x16/apps/phabricator-purpose.png | |
140 | %{_iconsdir}/hicolor/16x16/apps/reviewboard-purpose.png | |
141 | %{_iconsdir}/hicolor/22x22/actions/kipiplugin_youtube.png | |
142 | %{_iconsdir}/hicolor/32x32/actions/kipiplugin_youtube.png | |
143 | %{_iconsdir}/hicolor/48x48/actions/kipiplugin_youtube.png | |
144 | %{_iconsdir}/hicolor/64x64/actions/kipiplugin_youtube.png | |
145 | %dir %{_datadir}/kpackage/Purpose | |
cd375125 WF |
146 | %dir %{_datadir}/purpose |
147 | %{_datadir}/purpose/bluetoothplugin_config.qml | |
148 | %{_datadir}/purpose/kdeconnectplugin_config.qml | |
149 | %{_datadir}/purpose/nextcloudplugin_config.qml | |
150 | %{_datadir}/purpose/phabricatorplugin_config.qml | |
151 | %{_datadir}/purpose/reviewboardplugin_config.qml | |
152 | %{_datadir}/purpose/saveasplugin_config.qml | |
153 | %{_datadir}/purpose/youtubeplugin_config.qml | |
154 | ||
5f5b102f JR |
155 | %files twitter |
156 | %defattr(644,root,root,755) | |
157 | %{_datadir}/accounts/services/kde/twitter-microblog.service | |
158 | %dir %{_datadir}/kpackage/Purpose/Twitter | |
159 | %dir %{_datadir}/kpackage/Purpose/Twitter/contents | |
160 | %dir %{_datadir}/kpackage/Purpose/Twitter/contents/code | |
161 | %{_datadir}/kpackage/Purpose/Twitter/contents/code/main.js | |
162 | %{_datadir}/kpackage/Purpose/Twitter/contents/code/package.json | |
163 | %dir %{_datadir}/kpackage/Purpose/Twitter/contents/config | |
164 | %{_datadir}/kpackage/Purpose/Twitter/contents/config/config.qml | |
165 | %{_datadir}/kpackage/Purpose/Twitter/metadata.json | |
166 | ||
cd375125 WF |
167 | %files devel |
168 | %defattr(644,root,root,755) | |
169 | %{_includedir}/KF5/purpose | |
170 | %{_includedir}/KF5/purposewidgets | |
171 | %{_libdir}/cmake/KDEExperimentalPurpose | |
172 | %{_libdir}/cmake/KF5Purpose | |
173 | %attr(755,root,root) %{_libdir}/libKF5Purpose.so | |
174 | %attr(755,root,root) %{_libdir}/libKF5PurposeWidgets.so |