]>
Commit | Line | Data |
---|---|---|
f7a2a0dd WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
6eee6d83 | 4 | %define kdeframever 5.107 |
c4672324 | 5 | %define qtver 5.15.2 |
30a703f0 | 6 | %define kfname kitemviews |
12a199bf WF |
7 | |
8 | Summary: Set of item views extending the Qt model-view framework | |
30a703f0 | 9 | Name: kf5-%{kfname} |
6eee6d83 | 10 | Version: 5.107.0 |
c2bd3988 | 11 | Release: 1 |
12a199bf WF |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
c5cbcdd0 | 14 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
6eee6d83 | 15 | # Source0-md5: 7358fdb0c34a8edc6755a96cfafecb12 |
12a199bf | 16 | URL: http://www.kde.org/ |
c4672324 | 17 | BuildRequires: Qt5Core-devel >= %{qtver} |
30a703f0 AM |
18 | BuildRequires: Qt5Test-devel >= %{qtver} |
19 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
c4672324 | 20 | BuildRequires: cmake >= 3.16 |
e9465158 | 21 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
77590826 | 22 | BuildRequires: ninja |
30a703f0 | 23 | BuildRequires: qt5-linguist >= %{qtver} |
9b7ddb54 | 24 | BuildRequires: rpmbuild(macros) >= 1.736 |
93d6afc4 ER |
25 | BuildRequires: tar >= 1:1.22 |
26 | BuildRequires: xz | |
0b5ed206 | 27 | Requires: Qt5Widgets >= %{qtver} |
a1ff12e9 | 28 | Requires: kf5-dirs |
12a199bf WF |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %define qt5dir %{_libdir}/qt5 | |
32 | ||
33 | %description | |
34 | KItemViews includes a set of views, which can be used with item | |
35 | models. It includes views for categorizing lists and to add search | |
36 | filters to flat and hierarchical lists. | |
37 | ||
38 | %package devel | |
30a703f0 AM |
39 | Summary: Header files for %{kfname} development |
40 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
12a199bf WF |
41 | Group: X11/Development/Libraries |
42 | Requires: %{name} = %{version}-%{release} | |
efc394e2 | 43 | Requires: Qt5Widgets-devel >= %{qtver} |
c4672324 | 44 | Requires: cmake >= 3.16 |
12a199bf WF |
45 | |
46 | %description devel | |
30a703f0 | 47 | Header files for %{kfname} development. |
12a199bf WF |
48 | |
49 | %description devel -l pl.UTF-8 | |
30a703f0 | 50 | Pliki nagłówkowe dla programistów używających %{kfname}. |
12a199bf WF |
51 | |
52 | %prep | |
30a703f0 | 53 | %setup -q -n %{kfname}-%{version} |
12a199bf WF |
54 | |
55 | %build | |
56 | install -d build | |
57 | cd build | |
77590826 | 58 | %cmake -G Ninja \ |
f7a2a0dd | 59 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
30a703f0 | 60 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
12a199bf | 61 | ../ |
77590826 | 62 | %ninja_build |
12a199bf | 63 | |
f7a2a0dd WF |
64 | %if %{with tests} |
65 | ctest | |
66 | %endif | |
67 | ||
68 | ||
12a199bf WF |
69 | %install |
70 | rm -rf $RPM_BUILD_ROOT | |
77590826 | 71 | %ninja_install -C build |
12a199bf | 72 | |
3d6c8434 | 73 | %find_lang %{kfname}5_qt --with-qm --all-name --with-kde |
12a199bf WF |
74 | |
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %post -p /sbin/ldconfig | |
79 | %postun -p /sbin/ldconfig | |
80 | ||
30a703f0 | 81 | %files -f %{kfname}5_qt.lang |
12a199bf WF |
82 | %defattr(644,root,root,755) |
83 | %doc README.md | |
ff0f88c9 | 84 | %ghost %{_libdir}/libKF5ItemViews.so.5 |
3f75247c | 85 | %attr(755,root,root) %{_libdir}/libKF5ItemViews.so.*.* |
85c2bc11 | 86 | %attr(755,root,root) %{_libdir}/qt5/plugins/designer/kitemviews5widgets.so |
a288e8f4 | 87 | %{_datadir}/qlogging-categories5/kitemviews.categories |
12a199bf WF |
88 | |
89 | %files devel | |
90 | %defattr(644,root,root,755) | |
91 | %{_includedir}/KF5/KItemViews | |
12a199bf | 92 | %{_libdir}/cmake/KF5ItemViews |
ff0f88c9 | 93 | %{_libdir}/libKF5ItemViews.so |
12a199bf | 94 | %{qt5dir}/mkspecs/modules/qt_KItemViews.pri |