]>
Commit | Line | Data |
---|---|---|
a1cb7c81 | 1 | %define kdeframever 5.86 |
a5134952 | 2 | %define qtver 5.14.0 |
2382771a | 3 | %define kfname kwidgetsaddons |
938c12b8 WF |
4 | |
5 | Summary: Large set of desktop widgets | |
2382771a | 6 | Name: kf5-%{kfname} |
a1cb7c81 | 7 | Version: 5.86.0 |
c482eb0e | 8 | Release: 1 |
938c12b8 WF |
9 | License: LGPL v2.1+ |
10 | Group: X11/Libraries | |
a1cb7c81 WF |
11 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
12 | # Source0-md5: 9abc858bb8ca39f5c6f79cee5217b5b8 | |
a069a333 | 13 | Patch0: failed-tests.patch |
938c12b8 | 14 | URL: http://www.kde.org/ |
2382771a | 15 | BuildRequires: Qt5Test-devel >= %{qtver} |
2382771a | 16 | BuildRequires: Qt5Widgets-devel >= %{qtver} |
a5134952 | 17 | BuildRequires: cmake >= 3.5 |
2b8e4a0c | 18 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
9fdb64b6 | 19 | BuildRequires: ninja |
2382771a | 20 | BuildRequires: qt5-linguist >= %{qtver} |
04801e38 | 21 | BuildRequires: rpmbuild(macros) >= 1.736 |
4e91442d ER |
22 | BuildRequires: tar >= 1:1.22 |
23 | BuildRequires: xz | |
a5134952 | 24 | Requires: Qt5Widgets >= %{qtver} |
3416b7c4 | 25 | Requires: kf5-dirs |
938c12b8 WF |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %define qt5dir %{_libdir}/qt5 | |
29 | ||
30 | %description | |
31 | This repository contains add-on widgets and classes for applications | |
32 | that use the Qt Widgets module. If you are porting applications from | |
33 | KDE Platform 4 "kdeui" library, you will find many of its classes | |
34 | here. | |
35 | ||
36 | Provided are action classes that can be added to toolbars or menus, a | |
37 | wide range of widgets for selecting characters, fonts, colors, | |
38 | actions, dates and times, or MIME types, as well as platform-aware | |
39 | dialogs for configuration pages, message boxes, and password requests. | |
40 | ||
41 | Further widgets and classes can be found in other KDE frameworks. For | |
42 | a full list, please see | |
43 | <https://projects.kde.org/projects/frameworks/> | |
44 | ||
45 | ||
46 | %package devel | |
2382771a AM |
47 | Summary: Header files for %{kfname} development |
48 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
938c12b8 WF |
49 | Group: X11/Development/Libraries |
50 | Requires: %{name} = %{version}-%{release} | |
38aea8e8 | 51 | Requires: Qt5Widgets-devel >= %{qtver} |
a5134952 | 52 | Requires: cmake >= 3.5 |
938c12b8 WF |
53 | |
54 | %description devel | |
2382771a | 55 | Header files for %{kfname} development. |
938c12b8 WF |
56 | |
57 | %description devel -l pl.UTF-8 | |
2382771a | 58 | Pliki nagłówkowe dla programistów używających %{kfname}. |
938c12b8 WF |
59 | |
60 | %prep | |
2382771a | 61 | %setup -q -n %{kfname}-%{version} |
da3aa334 | 62 | #%%patch0 -p1 |
938c12b8 WF |
63 | |
64 | %build | |
65 | install -d build | |
66 | cd build | |
9fdb64b6 | 67 | %cmake -G Ninja \ |
2382771a | 68 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
938c12b8 | 69 | ../ |
9fdb64b6 | 70 | %ninja_build |
938c12b8 WF |
71 | |
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
9fdb64b6 | 74 | %ninja_install -C build |
938c12b8 | 75 | |
e7f5a885 | 76 | %find_lang %{kfname}5_qt --with-qm --all-name --with-kde |
938c12b8 WF |
77 | |
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %post -p /sbin/ldconfig | |
82 | %postun -p /sbin/ldconfig | |
83 | ||
2382771a | 84 | %files -f %{kfname}5_qt.lang |
938c12b8 WF |
85 | %defattr(644,root,root,755) |
86 | %doc README.md | |
3a708c04 | 87 | %ghost %{_libdir}/libKF5WidgetsAddons.so.5 |
fe0f7078 | 88 | %attr(755,root,root) %{_libdir}/libKF5WidgetsAddons.so.*.* |
db93af64 | 89 | %attr(755,root,root) %{_libdir}/qt5/plugins/designer/kwidgetsaddons5widgets.so |
938c12b8 WF |
90 | %dir %{_datadir}/kf5/kcharselect |
91 | %{_datadir}/kf5/kcharselect/kcharselect-data | |
08da70fc | 92 | %{_datadir}/qlogging-categories5/kwidgetsaddons.categories |
938c12b8 WF |
93 | |
94 | %files devel | |
95 | %defattr(644,root,root,755) | |
96 | %{_includedir}/KF5/KWidgetsAddons | |
97 | %{_includedir}/KF5/kwidgetsaddons_version.h | |
98 | %{_libdir}/cmake/KF5WidgetsAddons | |
3a708c04 | 99 | %{_libdir}/libKF5WidgetsAddons.so |
938c12b8 | 100 | %{qt5dir}/mkspecs/modules/qt_KWidgetsAddons.pri |