2 # - dir /usr/include/KF5 not packaged
3 # /usr/share/kf5 not packaged
4 %define kdeframever 5.4
6 %define kfname kwidgetsaddons
8 Summary: Large set of desktop widgets
14 Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
15 # Source0-md5: ac2a39d3de060c91c3f65d21a21d6693
16 URL: http://www.kde.org/
17 BuildRequires: Qt5Core-devel >= %{qtver}
18 BuildRequires: Qt5Gui-devel >= %{qtver}
19 BuildRequires: Qt5Test-devel >= %{qtver}
20 BuildRequires: Qt5UiTools-devel >= %{qtver}
21 BuildRequires: Qt5Widgets-devel >= %{qtver}
22 BuildRequires: cmake >= 2.8.12
23 BuildRequires: kf5-extra-cmake-modules >= 1.0.0
24 BuildRequires: qt5-linguist >= %{qtver}
25 BuildRequires: rpmbuild(macros) >= 1.164
26 BuildRequires: tar >= 1:1.22
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}
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}
67 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
72 rm -rf $RPM_BUILD_ROOT
74 %{__make} -C build/ install \
75 DESTDIR=$RPM_BUILD_ROOT
77 %find_lang %{kfname}5_qt --with-qm
80 rm -rf $RPM_BUILD_ROOT
82 %post -p /sbin/ldconfig
83 %postun -p /sbin/ldconfig
85 %files -f %{kfname}5_qt.lang
86 %defattr(644,root,root,755)
88 %attr(755,root,root) %ghost %{_libdir}/libKF5WidgetsAddons.so.5
89 %attr(755,root,root) %{_libdir}/libKF5WidgetsAddons.so.5.4.0
90 %dir %{_datadir}/kf5/kcharselect
91 %{_datadir}/kf5/kcharselect/kcharselect-data
94 %defattr(644,root,root,755)
95 %{_includedir}/KF5/KWidgetsAddons
96 %{_includedir}/KF5/kwidgetsaddons_version.h
97 %{_libdir}/cmake/KF5WidgetsAddons
98 %attr(755,root,root) %{_libdir}/libKF5WidgetsAddons.so
99 %{qt5dir}/mkspecs/modules/qt_KWidgetsAddons.pri