1 %define kdeframever 5.90
3 %define kfname kwidgetsaddons
5 Summary: Large set of desktop widgets
11 Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
12 # Source0-md5: e2b6d59e62123df1574666e7bfb748ed
13 Patch0: failed-tests.patch
14 URL: http://www.kde.org/
15 BuildRequires: Qt5Core-devel >= %{qtver}
16 BuildRequires: Qt5Test-devel >= %{qtver}
17 BuildRequires: Qt5UiTools-devel >= %{qtver}
18 BuildRequires: Qt5Widgets-devel >= %{qtver}
19 BuildRequires: cmake >= 3.16
20 BuildRequires: kf5-extra-cmake-modules >= %{version}
22 BuildRequires: qt5-linguist >= %{qtver}
23 BuildRequires: rpmbuild(macros) >= 1.736
24 BuildRequires: tar >= 1:1.22
26 Requires: Qt5Widgets >= %{qtver}
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define qt5dir %{_libdir}/qt5
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
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.
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/>
49 Summary: Header files for %{kfname} development
50 Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname}
51 Group: X11/Development/Libraries
52 Requires: %{name} = %{version}-%{release}
53 Requires: Qt5Widgets-devel >= %{qtver}
54 Requires: cmake >= 3.16
57 Header files for %{kfname} development.
59 %description devel -l pl.UTF-8
60 Pliki nagłówkowe dla programistów używających %{kfname}.
63 %setup -q -n %{kfname}-%{version}
70 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
75 rm -rf $RPM_BUILD_ROOT
76 %ninja_install -C build
78 %find_lang %{kfname}5_qt --with-qm --all-name --with-kde
81 rm -rf $RPM_BUILD_ROOT
83 %post -p /sbin/ldconfig
84 %postun -p /sbin/ldconfig
86 %files -f %{kfname}5_qt.lang
87 %defattr(644,root,root,755)
89 %ghost %{_libdir}/libKF5WidgetsAddons.so.5
90 %attr(755,root,root) %{_libdir}/libKF5WidgetsAddons.so.*.*
91 %attr(755,root,root) %{_libdir}/qt5/plugins/designer/kwidgetsaddons5widgets.so
92 %dir %{_datadir}/kf5/kcharselect
93 %{_datadir}/kf5/kcharselect/kcharselect-data
94 %{_datadir}/qlogging-categories5/kwidgetsaddons.categories
97 %defattr(644,root,root,755)
98 %{_includedir}/KF5/KWidgetsAddons
99 %{_includedir}/KF5/kwidgetsaddons_version.h
100 %{_libdir}/cmake/KF5WidgetsAddons
101 %{_libdir}/libKF5WidgetsAddons.so
102 %{qt5dir}/mkspecs/modules/qt_KWidgetsAddons.pri