]>
Commit | Line | Data |
---|---|---|
27754232 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
5d865d46 | 4 | %define kdeframever 5.105 |
5ec3866f | 5 | %define qtver 5.15.2 |
47652857 | 6 | %define kfname knewstuff |
7b843605 WF |
7 | |
8 | Summary: Framework for downloading and sharing additional application data | |
71897f5b | 9 | Name: kf5-%{kfname} |
5d865d46 WF |
10 | Version: 5.105.0 |
11 | Release: 1 | |
7b843605 WF |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
1273a5ea | 14 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
5d865d46 | 15 | # Source0-md5: 443267f89f359638f6d783386f95ef2f |
7b843605 | 16 | URL: http://www.kde.org/ |
a0507245 JP |
17 | BuildRequires: Qt5Core-devel >= %{qtver} |
18 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
19 | BuildRequires: Qt5Qml-devel >= %{qtver} | |
20 | BuildRequires: Qt5Quick-devel >= %{qtver} | |
21 | BuildRequires: Qt5Test-devel >= %{qtver} | |
22 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
23 | BuildRequires: Qt5Xml-devel >= %{qtver} | |
5ec3866f | 24 | BuildRequires: cmake >= 3.16 |
7b843605 | 25 | BuildRequires: kf5-attica-devel >= %{version} |
52386dca | 26 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
7b843605 | 27 | BuildRequires: kf5-karchive-devel >= %{version} |
7b843605 WF |
28 | BuildRequires: kf5-kcompletion-devel >= %{version} |
29 | BuildRequires: kf5-kconfig-devel >= %{version} | |
7b843605 | 30 | BuildRequires: kf5-kcoreaddons-devel >= %{version} |
a1e43c4e | 31 | BuildRequires: kf5-kdesignerplugin-devel >= %{version} |
7b843605 WF |
32 | BuildRequires: kf5-ki18n-devel >= %{version} |
33 | BuildRequires: kf5-kiconthemes-devel >= %{version} | |
34 | BuildRequires: kf5-kio-devel >= %{version} | |
35 | BuildRequires: kf5-kitemviews-devel >= %{version} | |
e36c87b1 | 36 | BuildRequires: kf5-kpackage-devel >= %{version} |
7b843605 WF |
37 | BuildRequires: kf5-kservice-devel >= %{version} |
38 | BuildRequires: kf5-ktextwidgets-devel >= %{version} | |
39 | BuildRequires: kf5-kwidgetsaddons-devel >= %{version} | |
7b843605 | 40 | BuildRequires: kf5-kxmlgui-devel >= %{version} |
5ec3866f | 41 | BuildRequires: kf5-syndication-devel >= %{version} |
a0507245 | 42 | BuildRequires: libstdc++-devel >= 6:5 |
5ba5f419 | 43 | BuildRequires: ninja |
c8961b3f | 44 | BuildRequires: rpmbuild(macros) >= 1.736 |
7b843605 WF |
45 | BuildRequires: tar >= 1:1.22 |
46 | BuildRequires: xz | |
a0507245 JP |
47 | Requires: Qt5Core >= %{qtver} |
48 | Requires: Qt5Gui >= %{qtver} | |
49 | Requires: Qt5Qml >= %{qtver} | |
50 | Requires: Qt5Widgets >= %{qtver} | |
51 | Requires: Qt5Xml >= %{qtver} | |
a0507245 | 52 | Requires: kf5-attica >= %{version} |
e4c85190 | 53 | Requires: kf5-dirs |
a0507245 JP |
54 | Requires: kf5-karchive >= %{version} |
55 | Requires: kf5-kcompletion >= %{version} | |
56 | Requires: kf5-kconfig >= %{version} | |
57 | Requires: kf5-kcoreaddons >= %{version} | |
58 | Requires: kf5-ki18n >= %{version} | |
59 | Requires: kf5-kiconthemes >= %{version} | |
60 | Requires: kf5-kio >= %{version} | |
61 | Requires: kf5-kitemviews >= %{version} | |
62 | Requires: kf5-kpackage >= %{version} | |
63 | Requires: kf5-kservice >= %{version} | |
64 | Requires: kf5-ktextwidgets >= %{version} | |
65 | Requires: kf5-kwidgetsaddons >= %{version} | |
66 | Requires: kf5-kxmlgui >= %{version} | |
7b843605 WF |
67 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
68 | ||
69 | %define qt5dir %{_libdir}/qt5 | |
70 | ||
71 | %description | |
72 | The KNewStuff library implements collaborative data sharing for | |
73 | applications. It uses libattica to support the Open Collaboration | |
74 | Services specification. | |
75 | ||
76 | %package devel | |
71897f5b AM |
77 | Summary: Header files for %{kfname} development |
78 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
7b843605 WF |
79 | Group: X11/Development/Libraries |
80 | Requires: %{name} = %{version}-%{release} | |
a0507245 JP |
81 | Requires: Qt5Widgets-devel >= %{qtver} |
82 | Requires: Qt5Xml-devel >= %{qtver} | |
5ec3866f | 83 | Requires: cmake >= 3.16 |
a0507245 JP |
84 | Requires: kf5-attica-devel >= %{version} |
85 | Requires: kf5-kservice-devel >= %{version} | |
bbe90cb7 | 86 | Requires: kf5-kxmlgui-devel >= %{version} |
7b843605 WF |
87 | |
88 | %description devel | |
71897f5b | 89 | Header files for %{kfname} development. |
7b843605 WF |
90 | |
91 | %description devel -l pl.UTF-8 | |
71897f5b | 92 | Pliki nagłówkowe dla programistów używających %{kfname}. |
7b843605 WF |
93 | |
94 | %prep | |
71897f5b | 95 | %setup -q -n %{kfname}-%{version} |
7b843605 WF |
96 | |
97 | %build | |
98 | install -d build | |
99 | cd build | |
5ba5f419 | 100 | %cmake -G Ninja \ |
27754232 | 101 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
71897f5b | 102 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
7b843605 | 103 | ../ |
5ba5f419 | 104 | %ninja_build |
7b843605 | 105 | |
27754232 WF |
106 | %if %{with tests} |
107 | ctest | |
108 | %endif | |
109 | ||
110 | ||
7b843605 WF |
111 | %install |
112 | rm -rf $RPM_BUILD_ROOT | |
5ba5f419 | 113 | %ninja_install -C build |
7b843605 | 114 | |
71897f5b | 115 | %find_lang %{kfname}5 |
7b843605 WF |
116 | |
117 | %clean | |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
120 | %post -p /sbin/ldconfig | |
121 | %postun -p /sbin/ldconfig | |
122 | ||
71897f5b | 123 | %files -f %{kfname}5.lang |
7b843605 WF |
124 | %defattr(644,root,root,755) |
125 | %doc README.md | |
0b650669 | 126 | %ghost %{_libdir}/libKF5NewStuff.so.5 |
e4c85190 | 127 | %{_libdir}/libKF5NewStuff.so.*.*.* |
0b650669 | 128 | %ghost %{_libdir}/libKF5NewStuffCore.so.5 |
e4c85190 WF |
129 | %{_libdir}/libKF5NewStuffCore.so.5.*.* |
130 | %ghost %{_libdir}/libKF5NewStuffWidgets.so.5 | |
131 | %{_libdir}/libKF5NewStuffWidgets.so.5.*.* | |
71897f5b | 132 | %{_datadir}/kf5/kmoretools |
ac16f7ab | 133 | %{_datadir}/qlogging-categories5/knewstuff.categories |
e4c85190 | 134 | %{_libdir}/qt5/qml/org/kde/newstuff/libnewstuffqmlplugin.so |
451d7d75 | 135 | %dir %{_libdir}/qt5/qml/org/kde/newstuff |
0311142b WF |
136 | %{_libdir}/qt5/qml/org/kde/newstuff/Action.qml |
137 | %{_libdir}/qt5/qml/org/kde/newstuff/Button.qml | |
138 | %{_libdir}/qt5/qml/org/kde/newstuff/Dialog.qml | |
139 | %{_libdir}/qt5/qml/org/kde/newstuff/DialogContent.qml | |
140 | %{_libdir}/qt5/qml/org/kde/newstuff/DownloadItemsSheet.qml | |
141 | %{_libdir}/qt5/qml/org/kde/newstuff/EntryDetails.qml | |
142 | %{_libdir}/qt5/qml/org/kde/newstuff/NewStuffItem.qml | |
143 | %{_libdir}/qt5/qml/org/kde/newstuff/NewStuffList.qml | |
144 | %{_libdir}/qt5/qml/org/kde/newstuff/Page.qml | |
145 | %{_libdir}/qt5/qml/org/kde/newstuff/QuestionAsker.qml | |
146 | %{_libdir}/qt5/qml/org/kde/newstuff/UploadPage.qml | |
147 | %dir %{_libdir}/qt5/qml/org/kde/newstuff/private | |
148 | %{_libdir}/qt5/qml/org/kde/newstuff/private/ConditionalLoader.qml | |
149 | %{_libdir}/qt5/qml/org/kde/newstuff/private/EntryCommentDelegate.qml | |
150 | %{_libdir}/qt5/qml/org/kde/newstuff/private/EntryCommentsPage.qml | |
151 | %{_libdir}/qt5/qml/org/kde/newstuff/private/EntryScreenshots.qml | |
152 | %{_libdir}/qt5/qml/org/kde/newstuff/private/ErrorDisplayer.qml | |
153 | %{_libdir}/qt5/qml/org/kde/newstuff/private/GridTileDelegate.qml | |
154 | %{_libdir}/qt5/qml/org/kde/newstuff/private/MessageBoxSheet.qml | |
155 | %{_libdir}/qt5/qml/org/kde/newstuff/private/Rating.qml | |
156 | %{_libdir}/qt5/qml/org/kde/newstuff/private/Shadow.qml | |
157 | %dir %{_libdir}/qt5/qml/org/kde/newstuff/private/entrygriddelegates | |
158 | %{_libdir}/qt5/qml/org/kde/newstuff/private/entrygriddelegates/BigPreviewDelegate.qml | |
159 | %{_libdir}/qt5/qml/org/kde/newstuff/private/entrygriddelegates/FeedbackOverlay.qml | |
160 | %{_libdir}/qt5/qml/org/kde/newstuff/private/entrygriddelegates/ThumbDelegate.qml | |
161 | %{_libdir}/qt5/qml/org/kde/newstuff/private/entrygriddelegates/TileDelegate.qml | |
451d7d75 | 162 | %{_libdir}/qt5/qml/org/kde/newstuff/qmldir |
3e67a57e WF |
163 | %attr(755,root,root) %{_bindir}/knewstuff-dialog |
164 | %{_datadir}/qlogging-categories5/knewstuff.renamecategories | |
a1e43c4e | 165 | %{_libdir}/qt5/plugins/designer/knewstuffwidgets.so |
5ff63fc9 | 166 | %{_desktopdir}/org.kde.knewstuff-dialog.desktop |
7b843605 WF |
167 | |
168 | %files devel | |
169 | %defattr(644,root,root,755) | |
8e550616 | 170 | %{_includedir}/KF5/KMoreTools |
7b843605 | 171 | %{_includedir}/KF5/KNewStuff3 |
7b843605 | 172 | %{_libdir}/cmake/KF5NewStuff |
451d7d75 WF |
173 | %{_libdir}/cmake/KF5NewStuffCore |
174 | %{_libdir}/cmake/KF5NewStuffQuick | |
0b650669 WF |
175 | %{_libdir}/libKF5NewStuff.so |
176 | %{_libdir}/libKF5NewStuffCore.so | |
e4c85190 | 177 | %{_libdir}/libKF5NewStuffWidgets.so |
7b843605 | 178 | %{qt5dir}/mkspecs/modules/qt_KNewStuff.pri |
451d7d75 | 179 | %{_libdir}/qt5/mkspecs/modules/qt_KNewStuffCore.pri |