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 BuildRequires: tar >= 1:1.22
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define qt5dir %{_libdir}/qt5
30 KItemModels provides the following models:
32 - KBreadcrumbSelectionModel - Selects the parents of selected items to
34 - KCheckableProxyModel - Adds a checkable capability to a source model
35 - KDescendantsProxyModel - Proxy Model for restructuring a Tree into a
37 - KLinkItemSelectionModel - Share a selection in multiple views which
38 do not have the same source model
39 - KModelIndexProxyMapper - Mapping of indexes and selections through
41 - KRecursiveFilterProxyModel - Recursive filtering of models
42 - KSelectionProxyModel - A Proxy Model which presents a subset of its
43 source model to observers
46 Summary: Header files for %{orgname} development
47 Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{orgname}
48 Group: X11/Development/Libraries
49 Requires: %{name} = %{version}-%{release}
52 Header files for %{orgname} development.
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe dla programistów używających %{orgname}.
58 %setup -q -n %{orgname}-%{version}
64 -DBIN_INSTALL_DIR=%{_bindir} \
65 -DKCFG_INSTALL_DIR=%{_datadir}/config.kcfg \
66 -DPLUGIN_INSTALL_DIR=%{qt5dir}/plugins \
67 -DQT_PLUGIN_INSTALL_DIR=%{qt5dir}/plugins \
68 -DQML_INSTALL_DIR=%{qt5dir}/qml \
69 -DIMPORTS_INSTALL_DIR=%{qt5dirs}/imports \
70 -DSYSCONF_INSTALL_DIR=%{_sysconfdir} \
71 -DLIBEXEC_INSTALL_DIR=%{_libexecdir} \
72 -DKF5_LIBEXEC_INSTALL_DIR=%{_libexecdir} \
73 -DKF5_INCLUDE_INSTALL_DIR=%{_includedir} \
74 -DECM_MKSPECS_INSTALL_DIR=%{qt5dir}/mkspecs/modules \
79 rm -rf $RPM_BUILD_ROOT
81 %{__make} -C build/ install \
82 DESTDIR=$RPM_BUILD_ROOT
85 rm -rf $RPM_BUILD_ROOT
87 %post -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
91 %defattr(644,root,root,755)
93 %attr(755,root,root) %ghost %{_libdir}/libKF5ItemModels.so.5
94 %attr(755,root,root) %{_libdir}/libKF5ItemModels.so.5.0.0
97 %defattr(644,root,root,755)
98 %{_includedir}/KF5/KItemModels
99 %{_includedir}/KF5/kitemmodels_version.h
100 %{_libdir}/cmake/KF5ItemModels
101 %attr(755,root,root) %{_libdir}/libKF5ItemModels.so
102 %{qt5dir}/mkspecs/modules/qt_KItemModels.pri