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