]>
Commit | Line | Data |
---|---|---|
8e31719d WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
cafc241d | 4 | %define kdeframever 5.101 |
911f3075 | 5 | %define qtver 5.15.2 |
c1e58b5c WF |
6 | %define kfname syntax-highlighting |
7 | ||
8 | Summary: Syntax highlighting | |
9 | Name: kf5-%{kfname} | |
cafc241d | 10 | Version: 5.101.0 |
9747e29a | 11 | Release: 1 |
c1e58b5c WF |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
78e441d3 | 14 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
cafc241d | 15 | # Source0-md5: 4c206cea70f899fa01cd48daeb5df76d |
c1e58b5c | 16 | URL: http://www.kde.org/ |
0e0ede98 | 17 | BuildRequires: ninja |
c1e58b5c WF |
18 | BuildRequires: rpmbuild(macros) >= 1.164 |
19 | BuildRequires: tar >= 1:1.22 | |
20 | BuildRequires: xz | |
21 | Requires: kf5-dirs | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %define qt5dir %{_libdir}/qt5 | |
25 | ||
26 | %description | |
27 | Syntax highlighting. | |
28 | ||
29 | %package devel | |
30 | Summary: Header files for %{kfname} development | |
31 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
32 | Group: X11/Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | ||
35 | %description devel | |
36 | Header files for %{kfname} development. | |
37 | ||
38 | %description devel -l pl.UTF-8 | |
39 | Pliki nagłówkowe dla programistów używających %{kfname}. | |
40 | ||
41 | %prep | |
42 | %setup -q -n %{kfname}-%{version} | |
43 | ||
44 | %build | |
45 | install -d build | |
46 | cd build | |
0e0ede98 | 47 | %cmake -G Ninja \ |
8e31719d | 48 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
c1e58b5c WF |
49 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
50 | ../ | |
0e0ede98 | 51 | %ninja_build |
c1e58b5c | 52 | |
8e31719d WF |
53 | %if %{with tests} |
54 | ctest | |
55 | %endif | |
56 | ||
57 | ||
c1e58b5c WF |
58 | %install |
59 | rm -rf $RPM_BUILD_ROOT | |
0e0ede98 | 60 | %ninja_install -C build |
c1e58b5c WF |
61 | |
62 | %find_lang syntaxhighlighting5 --with-qm | |
63 | ||
64 | %clean | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %post -p /sbin/ldconfig | |
68 | %postun -p /sbin/ldconfig | |
69 | ||
70 | %files -f syntaxhighlighting5.lang | |
71 | %defattr(644,root,root,755) | |
c1e58b5c | 72 | %attr(755,root,root) %{_bindir}/kate-syntax-highlighter |
64d1925f | 73 | %ghost %{_libdir}/libKF5SyntaxHighlighting.so.5 |
c1e58b5c | 74 | %attr(755,root,root) %{_libdir}/libKF5SyntaxHighlighting.so.5.*.* |
af1f3f7a WF |
75 | %{_datadir}/qlogging-categories5/ksyntaxhighlighting.categories |
76 | %{_datadir}/qlogging-categories5/ksyntaxhighlighting.renamecategories | |
78e441d3 WF |
77 | %dir %{_libdir}/qt5/qml/org/kde/syntaxhighlighting |
78 | %{_libdir}/qt5/qml/org/kde/syntaxhighlighting/libkquicksyntaxhighlightingplugin.so | |
79 | %{_libdir}/qt5/qml/org/kde/syntaxhighlighting/qmldir | |
c1e58b5c WF |
80 | |
81 | %files devel | |
82 | %defattr(644,root,root,755) | |
83 | %{_includedir}/KF5/KSyntaxHighlighting | |
c1e58b5c WF |
84 | %{_libdir}/cmake/KF5SyntaxHighlighting |
85 | %{_libdir}/libKF5SyntaxHighlighting.so | |
86 | %{_libdir}/qt5/mkspecs/modules/qt_KSyntaxHighlighting.pri |