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