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