]>
Commit | Line | Data |
---|---|---|
b7e0dc1a WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
403482a1 | 4 | %define kdeframever 5.110 |
7c1503a4 | 5 | %define qtver 5.15.2 |
133f9fc6 | 6 | %define kfname kitemmodels |
2c8b5e74 WF |
7 | |
8 | Summary: Set of item models extending the Qt model-view framework | |
133f9fc6 | 9 | Name: kf5-%{kfname} |
403482a1 | 10 | Version: 5.110.0 |
77a63e27 | 11 | Release: 1 |
2c8b5e74 WF |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
7a0fd804 | 14 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
403482a1 | 15 | # Source0-md5: 45ab593f9cdcb59dbaa8aedce6295307 |
2c8b5e74 | 16 | URL: http://www.kde.org/ |
133f9fc6 AM |
17 | BuildRequires: Qt5Core-devel >= %{qtver} |
18 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
19 | BuildRequires: Qt5Test-devel >= %{qtver} | |
20 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
847d4362 | 21 | BuildRequires: cmake >= 3.16 |
c2a099c3 | 22 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
54882264 | 23 | BuildRequires: ninja |
133f9fc6 | 24 | BuildRequires: qt5-linguist >= %{qtver} |
2c8b5e74 | 25 | BuildRequires: rpmbuild(macros) >= 1.164 |
d54e7fc9 ER |
26 | BuildRequires: tar >= 1:1.22 |
27 | BuildRequires: xz | |
ac80d6f0 | 28 | Requires: kf5-dirs |
2c8b5e74 WF |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %define qt5dir %{_libdir}/qt5 | |
32 | ||
33 | %description | |
34 | KItemModels provides the following models: | |
35 | ||
36 | - KBreadcrumbSelectionModel - Selects the parents of selected items to | |
37 | create breadcrumbs | |
38 | - KCheckableProxyModel - Adds a checkable capability to a source model | |
39 | - KDescendantsProxyModel - Proxy Model for restructuring a Tree into a | |
40 | list | |
41 | - KLinkItemSelectionModel - Share a selection in multiple views which | |
42 | do not have the same source model | |
43 | - KModelIndexProxyMapper - Mapping of indexes and selections through | |
44 | proxy models | |
45 | - KRecursiveFilterProxyModel - Recursive filtering of models | |
46 | - KSelectionProxyModel - A Proxy Model which presents a subset of its | |
47 | source model to observers | |
48 | ||
49 | %package devel | |
133f9fc6 AM |
50 | Summary: Header files for %{kfname} development |
51 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
2c8b5e74 WF |
52 | Group: X11/Development/Libraries |
53 | Requires: %{name} = %{version}-%{release} | |
54 | ||
55 | %description devel | |
133f9fc6 | 56 | Header files for %{kfname} development. |
2c8b5e74 WF |
57 | |
58 | %description devel -l pl.UTF-8 | |
133f9fc6 | 59 | Pliki nagłówkowe dla programistów używających %{kfname}. |
2c8b5e74 WF |
60 | |
61 | %prep | |
133f9fc6 | 62 | %setup -q -n %{kfname}-%{version} |
2c8b5e74 WF |
63 | |
64 | %build | |
847d4362 WF |
65 | %cmake -B build \ |
66 | -G Ninja \ | |
b7e0dc1a | 67 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
847d4362 WF |
68 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON |
69 | ||
70 | %ninja_build -C build | |
2c8b5e74 | 71 | |
b7e0dc1a | 72 | %if %{with tests} |
847d4362 | 73 | %ninja_build -C build test |
b7e0dc1a WF |
74 | %endif |
75 | ||
76 | ||
2c8b5e74 WF |
77 | %install |
78 | rm -rf $RPM_BUILD_ROOT | |
54882264 | 79 | %ninja_install -C build |
2c8b5e74 WF |
80 | |
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %post -p /sbin/ldconfig | |
85 | %postun -p /sbin/ldconfig | |
86 | ||
87 | %files | |
88 | %defattr(644,root,root,755) | |
89 | %doc README.md | |
a816c44e | 90 | %ghost %{_libdir}/libKF5ItemModels.so.5 |
7b012b58 | 91 | %attr(755,root,root) %{_libdir}/libKF5ItemModels.so.*.* |
65d59634 ŁM |
92 | %dir %{qt5dir}/qml/org/kde/kitemmodels |
93 | %attr(755,root,root) %{qt5dir}/qml/org/kde/kitemmodels/libitemmodelsplugin.so | |
94 | %{qt5dir}/qml/org/kde/kitemmodels/qmldir | |
cbeabd75 | 95 | %{_datadir}/qlogging-categories5/kitemmodels.categories |
e5a8d17c | 96 | %{_datadir}/qlogging-categories5/kitemmodels.renamecategories |
2c8b5e74 WF |
97 | |
98 | %files devel | |
99 | %defattr(644,root,root,755) | |
100 | %{_includedir}/KF5/KItemModels | |
2c8b5e74 | 101 | %{_libdir}/cmake/KF5ItemModels |
a816c44e | 102 | %{_libdir}/libKF5ItemModels.so |
2c8b5e74 | 103 | %{qt5dir}/mkspecs/modules/qt_KItemModels.pri |