]>
Commit | Line | Data |
---|---|---|
537ac5ca WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
db8e1d31 | 4 | # TODO: |
db8e1d31 | 5 | # - runtime Requires if any |
b003eb56 | 6 | %define kdeframever 5.97 |
21a53ccf | 7 | %define qtver 5.15.2 |
9b412b03 | 8 | %define kfname kcompletion |
db8e1d31 WF |
9 | |
10 | Summary: String completion framework | |
9b412b03 | 11 | Name: kf5-%{kfname} |
b003eb56 | 12 | Version: 5.97.0 |
f23ec284 | 13 | Release: 2 |
db8e1d31 WF |
14 | License: GPL v2+/LGPL v2.1+ |
15 | Group: X11/Libraries | |
33938d45 | 16 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
b003eb56 | 17 | # Source0-md5: a4a5c5b82eb731b2229fab92d3dfb1cb |
db8e1d31 | 18 | URL: http://www.kde.org/ |
21a53ccf | 19 | BuildRequires: Qt5Core-devel >= %{qtver} |
9b412b03 AM |
20 | BuildRequires: Qt5Test-devel >= %{qtver} |
21 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
21a53ccf | 22 | BuildRequires: cmake >= 3.16 |
95b823d4 | 23 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
fd6c7b40 | 24 | BuildRequires: kf5-kconfig-devel >= %{version} |
db8e1d31 | 25 | BuildRequires: kf5-kwidgetsaddons-devel >= %{version} |
5fdd6455 | 26 | BuildRequires: ninja |
9b412b03 | 27 | BuildRequires: qt5-linguist >= %{qtver} |
2d9108ce | 28 | BuildRequires: rpmbuild(macros) >= 1.736 |
cbf5800d ER |
29 | BuildRequires: tar >= 1:1.22 |
30 | BuildRequires: xz | |
ae3e050d | 31 | Requires: Qt5Widgets >= %{qtver} |
dcf1df17 | 32 | Requires: kf5-dirs |
db8e1d31 WF |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
35 | %define qt5dir %{_libdir}/qt5 | |
36 | ||
37 | %description | |
38 | This class offers "auto-completion", "manual-completion" or "shell | |
39 | completion" on QString objects. A common use is completing filenames | |
40 | or URLs. It can also be used for completing email-addresses, | |
41 | telephone-numbers, commands, SQL queries, etc. | |
42 | ||
43 | %package devel | |
9b412b03 AM |
44 | Summary: Header files for %{kfname} development |
45 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
db8e1d31 WF |
46 | Group: X11/Development/Libraries |
47 | Requires: %{name} = %{version}-%{release} | |
c669efc1 | 48 | Requires: Qt5Widgets-devel >= %{qtver} |
21a53ccf | 49 | Requires: cmake >= 3.16 |
db8e1d31 WF |
50 | |
51 | %description devel | |
9b412b03 | 52 | Header files for %{kfname} development. |
db8e1d31 WF |
53 | |
54 | %description devel -l pl.UTF-8 | |
9b412b03 | 55 | Pliki nagłówkowe dla programistów używających %{kfname}. |
db8e1d31 WF |
56 | |
57 | %prep | |
9b412b03 | 58 | %setup -q -n %{kfname}-%{version} |
db8e1d31 WF |
59 | |
60 | %build | |
61 | install -d build | |
62 | cd build | |
5fdd6455 | 63 | %cmake -G Ninja \ |
537ac5ca | 64 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
9b412b03 | 65 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
db8e1d31 | 66 | ../ |
5fdd6455 | 67 | %ninja_build |
db8e1d31 | 68 | |
537ac5ca WF |
69 | %if %{with tests} |
70 | ctest | |
71 | %endif | |
72 | ||
73 | ||
db8e1d31 WF |
74 | %install |
75 | rm -rf $RPM_BUILD_ROOT | |
5fdd6455 | 76 | %ninja_install -C build |
db8e1d31 | 77 | |
7a9347dd | 78 | %find_lang %{kfname}5_qt --with-qm --all-name --with-kde |
db8e1d31 WF |
79 | |
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %post -p /sbin/ldconfig | |
84 | %postun -p /sbin/ldconfig | |
85 | ||
9b412b03 | 86 | %files -f %{kfname}5_qt.lang |
db8e1d31 WF |
87 | %defattr(644,root,root,755) |
88 | %doc README.md | |
6987ace1 | 89 | %ghost %{_libdir}/libKF5Completion.so.5 |
a557a6c6 | 90 | %attr(755,root,root) %{_libdir}/libKF5Completion.so.*.* |
fd6c7b40 WF |
91 | %attr(755,root,root) %{_libdir}/qt5/plugins/designer/kcompletion5widgets.so |
92 | %{_datadir}/qlogging-categories5/kcompletion.categories | |
db8e1d31 WF |
93 | |
94 | %files devel | |
95 | %defattr(644,root,root,755) | |
96 | %{_includedir}/KF5/KCompletion | |
db8e1d31 WF |
97 | %{_libdir}/cmake/KF5Completion |
98 | %{_libdir}/libKF5Completion.so | |
99 | %{qt5dir}/mkspecs/modules/qt_KCompletion.pri |