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