]>
Commit | Line | Data |
---|---|---|
39b7f672 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
789a7804 | 4 | %define kdeframever 5.249.0 |
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} |
789a7804 WF |
10 | Version: 5.249.0 |
11 | Release: 0.1 | |
cd375125 WF |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
789a7804 WF |
14 | Source0: https://download.kde.org/unstable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
15 | # Source0-md5: 5756df993df341be741a26cb5aa7a576 | |
cd375125 | 16 | URL: http://www.kde.org/ |
789a7804 WF |
17 | BuildRequires: Qt6Core-devel >= %{qtver} |
18 | BuildRequires: Qt6Test-devel >= %{qtver} | |
ccb08012 | 19 | BuildRequires: cmake >= 3.16 |
cd375125 | 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} |
789a7804 | 27 | BuildRequires: kf6-kirigami-devel |
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 | ||
789a7804 | 39 | %define qt6dir %{_libdir}/qt6 |
cd375125 WF |
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 | |
ccb08012 WF |
73 | %cmake -B build \ |
74 | -G Ninja \ | |
39b7f672 | 75 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
ccb08012 WF |
76 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON |
77 | ||
78 | %ninja_build -C build | |
cd375125 | 79 | |
39b7f672 | 80 | %if %{with tests} |
ccb08012 | 81 | %ninja_build -C build test |
39b7f672 WF |
82 | %endif |
83 | ||
84 | ||
cd375125 WF |
85 | %install |
86 | rm -rf $RPM_BUILD_ROOT | |
b61db7fa | 87 | %ninja_install -C build |
cd375125 | 88 | |
789a7804 | 89 | %find_lang %{kfname}6 --all-name --with-kde |
cd375125 WF |
90 | |
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %post -p /sbin/ldconfig | |
95 | %postun -p /sbin/ldconfig | |
96 | ||
789a7804 | 97 | %files -f %{kfname}6.lang |
cd375125 | 98 | %defattr(644,root,root,755) |
789a7804 WF |
99 | %ghost %{_libdir}/libKF6Purpose.so.6 |
100 | %attr(755,root,root) %{_libdir}/libKF6Purpose.so.5.*.* | |
101 | %ghost %{_libdir}/libKF6PurposeWidgets.so.6 | |
102 | %attr(755,root,root) %{_libdir}/libKF6PurposeWidgets.so.5.*.* | |
103 | %attr(755,root,root) %{_libdir}/qt6/plugins/kf6/kfileitemaction/sharefileitemaction.so | |
104 | %dir %{_libdir}/qt6/plugins/kf6/purpose | |
105 | %attr(755,root,root) %{_libdir}/qt6/plugins/kf6/purpose/barcodeplugin.so | |
106 | %attr(755,root,root) %{_libdir}/qt6/plugins/kf6/purpose/bluetoothplugin.so | |
107 | %attr(755,root,root) %{_libdir}/qt6/plugins/kf6/purpose/emailplugin.so | |
108 | %attr(755,root,root) %{_libdir}/qt6/plugins/kf6/purpose/imgurplugin.so | |
109 | %attr(755,root,root) %{_libdir}/qt6/plugins/kf6/purpose/kdeconnectplugin.so | |
110 | %attr(755,root,root) %{_libdir}/qt6/plugins/kf6/purpose/kdeconnectsmsplugin.so | |
111 | %attr(755,root,root) %{_libdir}/qt6/plugins/kf6/purpose/pastebinplugin.so | |
112 | %attr(755,root,root) %{_libdir}/qt6/plugins/kf6/purpose/phabricatorplugin.so | |
113 | %attr(755,root,root) %{_libdir}/qt6/plugins/kf6/purpose/reviewboardplugin.so | |
114 | %attr(755,root,root) %{_libdir}/qt6/plugins/kf6/purpose/saveasplugin.so | |
115 | %attr(755,root,root) %{_libdir}/qt6/plugins/kf6/purpose/telegramplugin.so | |
116 | %attr(755,root,root) %{_libdir}/qt6/plugins/kf6/purpose/twitterplugin.so | |
117 | %{_libdir}/qt6/qml/org/kde/purpose/AlternativesView.qml | |
118 | %{_libdir}/qt6/qml/org/kde/purpose/JobView.qml | |
119 | %{_libdir}/qt6/qml/org/kde/purpose/kde-qmlmodule.version | |
120 | %attr(755,root,root) %{_libdir}/qt6/qml/org/kde/purpose/libpurposequickplugin.so | |
121 | %dir %{_libdir}/qt6/qml/org/kde/purpose/phabricator | |
122 | %attr(755,root,root) %{_libdir}/qt6/qml/org/kde/purpose/phabricator/libphabricatorquickplugin.so | |
123 | %{_libdir}/qt6/qml/org/kde/purpose/phabricator/qmldir | |
124 | %{_libdir}/qt6/qml/org/kde/purpose/purposequickplugin.qmltypes | |
125 | %{_libdir}/qt6/qml/org/kde/purpose/qmldir | |
126 | %dir %{_libdir}/qt6/qml/org/kde/purpose/reviewboard | |
127 | %attr(755,root,root) %{_libdir}/qt6/qml/org/kde/purpose/reviewboard/librbpurposequickplugin.so | |
128 | %{_libdir}/qt6/qml/org/kde/purpose/reviewboard/qmldir | |
129 | %{_prefix}/libexec/kf6/purposeprocess | |
130 | %{_iconsdir}/hicolor/128x128/apps/phabricator-purpose6.png | |
131 | %{_iconsdir}/hicolor/128x128/apps/reviewboard-purpose6.png | |
132 | %{_iconsdir}/hicolor/16x16/apps/phabricator-purpose6.png | |
133 | %{_iconsdir}/hicolor/16x16/apps/reviewboard-purpose6.png | |
134 | %dir %{_datadir}/kf6/purpose | |
135 | %{_datadir}/kf6/purpose/barcodeplugin_config.qml | |
136 | %{_datadir}/kf6/purpose/bluetoothplugin_config.qml | |
137 | %{_datadir}/kf6/purpose/kdeconnectplugin_config.qml | |
138 | %{_datadir}/kf6/purpose/phabricatorplugin_config.qml | |
139 | %{_datadir}/kf6/purpose/reviewboardplugin_config.qml | |
140 | %{_datadir}/kf6/purpose/saveasplugin_config.qml | |
141 | %{_datadir}/qlogging-categories6/purpose.categories | |
142 | %{_datadir}/qlogging-categories6/purpose.renamecategories | |
cd375125 WF |
143 | |
144 | %files devel | |
145 | %defattr(644,root,root,755) | |
789a7804 WF |
146 | %{_includedir}/KF6/Purpose |
147 | %{_includedir}/KF6/PurposeWidgets | |
148 | %{_libdir}/cmake/KF6Purpose | |
149 | %{_libdir}/libKF6Purpose.so | |
150 | %{_libdir}/libKF6PurposeWidgets.so |