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