]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
4 | %define kdeappsver 22.04.2 | |
5 | %define kframever 5.56.0 | |
6 | %define qtver 5.9.0 | |
7 | %define kaname grantleetheme | |
8 | Summary: Grantlee Theme | |
9 | Name: ka5-%{kaname} | |
10 | Version: 22.04.2 | |
11 | Release: 1 | |
12 | License: GPL v2+/LGPL v2.1+ | |
13 | Group: X11/Libraries | |
14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz | |
15 | # Source0-md5: 6f416d6582b7a8b55adcf183de62e9de | |
16 | URL: http://www.kde.org/ | |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: cmake >= 2.8.12 | |
19 | BuildRequires: grantlee-qt5-devel >= 5.2 | |
20 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} | |
21 | BuildRequires: kf5-kguiaddons-devel >= %{kframever} | |
22 | BuildRequires: kf5-knewstuff-devel >= %{kframever} | |
23 | BuildRequires: ninja | |
24 | BuildRequires: qt5-build >= %{qtver} | |
25 | BuildRequires: rpmbuild(macros) >= 1.164 | |
26 | BuildRequires: shared-mime-info | |
27 | BuildRequires: tar >= 1:1.22 | |
28 | BuildRequires: xz | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | GrantleeTheme library provides a class for loading theme packages | |
33 | containing set of templates. | |
34 | ||
35 | %description -l pl.UTF-8 | |
36 | Biblioteka GrantleeTheme dostarcza klasę do ładowania paczek | |
37 | zawierających zestawy szablonów. | |
38 | ||
39 | %package devel | |
40 | Summary: Header files for %{kaname} development | |
41 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} | |
42 | Group: X11/Development/Libraries | |
43 | Requires: %{name} = %{version}-%{release} | |
44 | ||
45 | %description devel | |
46 | Header files for %{kaname} development. | |
47 | ||
48 | %description devel -l pl.UTF-8 | |
49 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
50 | ||
51 | %prep | |
52 | %setup -q -n %{kaname}-%{version} | |
53 | ||
54 | %build | |
55 | install -d build | |
56 | cd build | |
57 | %cmake -G Ninja \ | |
58 | %{!?with_tests:-DBUILD_TESTING=OFF} \ | |
59 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ | |
60 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ | |
61 | .. | |
62 | %ninja_build | |
63 | ||
64 | %if %{with tests} | |
65 | ctest | |
66 | %endif | |
67 | ||
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | %ninja_install -C build | |
72 | ||
73 | %find_lang %{kaname} --all-name --with-kde | |
74 | ||
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %post -p /sbin/ldconfig | |
79 | %postun -p /sbin/ldconfig | |
80 | ||
81 | %files -f %{kaname}.lang | |
82 | %defattr(644,root,root,755) | |
83 | %attr(755,root,root) %{_libdir}/grantlee/5.2/kde_grantlee_plugin.so | |
84 | %ghost %{_libdir}/libKF5GrantleeTheme.so.5 | |
85 | %attr(755,root,root) %{_libdir}/libKF5GrantleeTheme.so.*.*.* | |
86 | %{_datadir}/qlogging-categories5/grantleetheme.categories | |
87 | %{_datadir}/qlogging-categories5/grantleetheme.renamecategories | |
88 | ||
89 | %files devel | |
90 | %defattr(644,root,root,755) | |
91 | %{_includedir}/KF5/GrantleeTheme | |
92 | %{_libdir}/cmake/KF5GrantleeTheme | |
93 | %{_libdir}/libKF5GrantleeTheme.so | |
94 | %{_libdir}/qt5/mkspecs/modules/qt_GrantleeTheme.pri |