2 # - dir /usr/include/KF5 not packaged
4 %define orgname kitemmodels
6 Summary: Set of item models extending the Qt model-view framework
12 Source0: ftp://ftp.kde.org/pub/kde/%{_state}/frameworks/%{version}/%{orgname}-%{version}.tar.xz
13 # Source0-md5: c1bb781f39b2c6d232a0fb490f2aa9dc
14 URL: http://www.kde.org/
15 BuildRequires: Qt5Core-devel
16 BuildRequires: Qt5Gui-devel >= 5.3.1
17 BuildRequires: Qt5Test-devel
18 BuildRequires: Qt5Widgets-devel >= 5.2.0
19 BuildRequires: cmake >= 2.8.12
20 BuildRequires: kf5-extra-cmake-modules >= 1.0.0
21 BuildRequires: qt5-linguist
22 BuildRequires: rpmbuild(macros) >= 1.164
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define qt5dir %{_libdir}/qt5
28 KItemModels provides the following models:
30 - KBreadcrumbSelectionModel - Selects the parents of selected items to
32 - KCheckableProxyModel - Adds a checkable capability to a source model
33 - KDescendantsProxyModel - Proxy Model for restructuring a Tree into a
35 - KLinkItemSelectionModel - Share a selection in multiple views which
36 do not have the same source model
37 - KModelIndexProxyMapper - Mapping of indexes and selections through
39 - KRecursiveFilterProxyModel - Recursive filtering of models
40 - KSelectionProxyModel - A Proxy Model which presents a subset of its
41 source model to observers
44 Summary: Header files for %{orgname} development
45 Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{orgname}
46 Group: X11/Development/Libraries
47 Requires: %{name} = %{version}-%{release}
50 Header files for %{orgname} development.
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe dla programistów używających %{orgname}.
56 %setup -q -n %{orgname}-%{version}
62 -DBIN_INSTALL_DIR=%{_bindir} \
63 -DKCFG_INSTALL_DIR=%{_datadir}/config.kcfg \
64 -DPLUGIN_INSTALL_DIR=%{qt5dir}/plugins \
65 -DQT_PLUGIN_INSTALL_DIR=%{qt5dir}/plugins \
66 -DQML_INSTALL_DIR=%{qt5dir}/qml \
67 -DIMPORTS_INSTALL_DIR=%{qt5dirs}/imports \
68 -DSYSCONF_INSTALL_DIR=%{_sysconfdir} \
69 -DLIBEXEC_INSTALL_DIR=%{_libexecdir} \
70 -DKF5_LIBEXEC_INSTALL_DIR=%{_libexecdir} \
71 -DKF5_INCLUDE_INSTALL_DIR=%{_includedir} \
72 -DECM_MKSPECS_INSTALL_DIR=%{qt5dir}/mkspecs/modules \
77 rm -rf $RPM_BUILD_ROOT
79 %{__make} -C build/ install \
80 DESTDIR=$RPM_BUILD_ROOT
83 rm -rf $RPM_BUILD_ROOT
85 %post -p /sbin/ldconfig
86 %postun -p /sbin/ldconfig
89 %defattr(644,root,root,755)
91 %attr(755,root,root) %ghost %{_libdir}/libKF5ItemModels.so.5
92 %attr(755,root,root) %{_libdir}/libKF5ItemModels.so.5.0.0
95 %defattr(644,root,root,755)
96 %{_includedir}/KF5/KItemModels
97 %{_includedir}/KF5/kitemmodels_version.h
98 %{_libdir}/cmake/KF5ItemModels
99 %attr(755,root,root) %{_libdir}/libKF5ItemModels.so
100 %{qt5dir}/mkspecs/modules/qt_KItemModels.pri