]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
4 | %define kdeframever 5.101 | |
5 | %define qtver 5.15.2 | |
6 | %define kfname purpose | |
7 | ||
8 | Summary: Offers available actions for a specific purpose | |
9 | Name: kf5-%{kfname} | |
10 | Version: 5.101.0 | |
11 | Release: 2 | |
12 | License: LGPL v2.1+ | |
13 | Group: X11/Libraries | |
14 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz | |
15 | # Source0-md5: 07c85066d41aa72bc1124edffe13f2f5 | |
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 | |
21 | BuildRequires: ka5-kaccounts-integration-devel | |
22 | BuildRequires: kf5-extra-cmake-modules >= %{version} | |
23 | BuildRequires: kf5-kconfig-devel >= %{version} | |
24 | BuildRequires: kf5-kcoreaddons-devel >= %{version} | |
25 | BuildRequires: kf5-ki18n-devel >= %{version} | |
26 | BuildRequires: kf5-kio-devel >= %{version} | |
27 | BuildRequires: kf5-kirigami2-devel >= %{version} | |
28 | BuildRequires: libaccounts-glib-devel | |
29 | BuildRequires: libaccounts-qt5-devel | |
30 | BuildRequires: libsignon-qt5-devel >= 8.55 | |
31 | BuildRequires: libutempter-devel | |
32 | BuildRequires: ninja | |
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 | |
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 | ||
54 | %description twitter | |
55 | Twitter plugin for purpose. | |
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 | |
75 | %cmake -G Ninja \ | |
76 | %{!?with_tests:-DBUILD_TESTING=OFF} \ | |
77 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ | |
78 | ../ | |
79 | %ninja_build | |
80 | ||
81 | %if %{with tests} | |
82 | ctest | |
83 | %endif | |
84 | ||
85 | ||
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | %ninja_install -C build | |
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) | |
100 | %ghost %{_libdir}/libKF5Purpose.so.5 | |
101 | %attr(755,root,root) %{_libdir}/libKF5Purpose.so.5.*.* | |
102 | %ghost %{_libdir}/libKF5PurposeWidgets.so.5 | |
103 | %attr(755,root,root) %{_libdir}/libKF5PurposeWidgets.so.5.*.* | |
104 | %ghost %{_libdir}/libPhabricatorHelpers.so.5 | |
105 | %attr(755,root,root) %{_libdir}/libPhabricatorHelpers.so.5.*.* | |
106 | %ghost %{_libdir}/libReviewboardHelpers.so.5 | |
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 | |
111 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/purpose/barcodeplugin.so | |
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 | |
116 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/purpose/kdeconnectsmsplugin.so | |
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 | |
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 | |
135 | %dir %{_datadir}/accounts | |
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 | |
140 | %{_datadir}/qlogging-categories5/purpose.categories | |
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 | |
150 | %{_datadir}/purpose | |
151 | %{_datadir}/qlogging-categories5/purpose.renamecategories | |
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 | |
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 | |
162 | %{_libdir}/libKF5Purpose.so | |
163 | %{_libdir}/libKF5PurposeWidgets.so |