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