]> git.pld-linux.org Git - packages/kf5-kitemmodels.git/blame - kf5-kitemmodels.spec
- updated to 5.105.0
[packages/kf5-kitemmodels.git] / kf5-kitemmodels.spec
CommitLineData
b7e0dc1a
WF
1#
2# Conditional build:
3%bcond_with tests # build with tests
77a63e27 4%define kdeframever 5.105
7c1503a4 5%define qtver 5.15.2
133f9fc6 6%define kfname kitemmodels
2c8b5e74
WF
7
8Summary: Set of item models extending the Qt model-view framework
133f9fc6 9Name: kf5-%{kfname}
77a63e27
WF
10Version: 5.105.0
11Release: 1
2c8b5e74
WF
12License: LGPL v2.1+
13Group: X11/Libraries
7a0fd804 14Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
77a63e27 15# Source0-md5: 6c0d5a666eba32e9359a426b31e8d288
2c8b5e74 16URL: http://www.kde.org/
133f9fc6
AM
17BuildRequires: Qt5Core-devel >= %{qtver}
18BuildRequires: Qt5Gui-devel >= %{qtver}
19BuildRequires: Qt5Test-devel >= %{qtver}
20BuildRequires: Qt5Widgets-devel >= %{qtver}
2c8b5e74 21BuildRequires: cmake >= 2.8.12
c2a099c3 22BuildRequires: kf5-extra-cmake-modules >= %{version}
54882264 23BuildRequires: ninja
133f9fc6 24BuildRequires: qt5-linguist >= %{qtver}
2c8b5e74 25BuildRequires: rpmbuild(macros) >= 1.164
d54e7fc9
ER
26BuildRequires: tar >= 1:1.22
27BuildRequires: xz
ac80d6f0 28Requires: kf5-dirs
2c8b5e74
WF
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%define qt5dir %{_libdir}/qt5
32
33%description
34KItemModels 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
50Summary: Header files for %{kfname} development
51Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname}
2c8b5e74
WF
52Group: X11/Development/Libraries
53Requires: %{name} = %{version}-%{release}
54
55%description devel
133f9fc6 56Header files for %{kfname} development.
2c8b5e74
WF
57
58%description devel -l pl.UTF-8
133f9fc6 59Pliki 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
65install -d build
66cd build
54882264 67%cmake -G Ninja \
b7e0dc1a 68 %{!?with_tests:-DBUILD_TESTING=OFF} \
133f9fc6 69 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
2c8b5e74 70 ../
54882264 71%ninja_build
2c8b5e74 72
b7e0dc1a
WF
73%if %{with tests}
74ctest
75%endif
76
77
2c8b5e74
WF
78%install
79rm -rf $RPM_BUILD_ROOT
54882264 80%ninja_install -C build
2c8b5e74
WF
81
82%clean
83rm -rf $RPM_BUILD_ROOT
84
85%post -p /sbin/ldconfig
86%postun -p /sbin/ldconfig
87
88%files
89%defattr(644,root,root,755)
90%doc README.md
a816c44e 91%ghost %{_libdir}/libKF5ItemModels.so.5
7b012b58 92%attr(755,root,root) %{_libdir}/libKF5ItemModels.so.*.*
65d59634
ŁM
93%dir %{qt5dir}/qml/org/kde/kitemmodels
94%attr(755,root,root) %{qt5dir}/qml/org/kde/kitemmodels/libitemmodelsplugin.so
95%{qt5dir}/qml/org/kde/kitemmodels/qmldir
cbeabd75 96%{_datadir}/qlogging-categories5/kitemmodels.categories
e5a8d17c 97%{_datadir}/qlogging-categories5/kitemmodels.renamecategories
2c8b5e74
WF
98
99%files devel
100%defattr(644,root,root,755)
101%{_includedir}/KF5/KItemModels
2c8b5e74 102%{_libdir}/cmake/KF5ItemModels
a816c44e 103%{_libdir}/libKF5ItemModels.so
2c8b5e74 104%{qt5dir}/mkspecs/modules/qt_KItemModels.pri
This page took 0.574136 seconds and 4 git commands to generate.