]>
Commit | Line | Data |
---|---|---|
3de18592 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
7ffc94ca | 4 | %define kdeappsver 22.04.2 |
47685a98 | 5 | %define kframever 5.56.0 |
8576fe35 WF |
6 | %define qtver 5.9.0 |
7 | %define kaname grantleetheme | |
8 | Summary: Grantlee Theme | |
9 | Name: ka5-%{kaname} | |
7ffc94ca | 10 | Version: 22.04.2 |
c244bbf9 | 11 | Release: 1 |
8576fe35 WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Libraries | |
7ffc94ca WF |
14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
15 | # Source0-md5: 6f416d6582b7a8b55adcf183de62e9de | |
8576fe35 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: cmake >= 2.8.12 | |
2f90381f | 19 | BuildRequires: grantlee-qt5-devel >= 5.2 |
47685a98 | 20 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
30cde787 | 21 | BuildRequires: kf5-kguiaddons-devel >= %{kframever} |
587dc6da | 22 | BuildRequires: kf5-knewstuff-devel >= %{kframever} |
47685a98 | 23 | BuildRequires: ninja |
8576fe35 WF |
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 | ||
bd81336d WF |
35 | %description -l pl.UTF-8 |
36 | Biblioteka GrantleeTheme dostarcza klasę do ładowania paczek | |
37 | zawierających zestawy szablonów. | |
38 | ||
8576fe35 WF |
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 | |
47685a98 | 57 | %cmake -G Ninja \ |
3de18592 | 58 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
47685a98 | 59 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
8576fe35 WF |
60 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
61 | .. | |
47685a98 | 62 | %ninja_build |
8576fe35 | 63 | |
3de18592 WF |
64 | %if %{with tests} |
65 | ctest | |
66 | %endif | |
67 | ||
68 | ||
8576fe35 WF |
69 | %install |
70 | rm -rf $RPM_BUILD_ROOT | |
47685a98 | 71 | %ninja_install -C build |
8576fe35 WF |
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) | |
2f90381f | 83 | %attr(755,root,root) %{_libdir}/grantlee/5.2/kde_grantlee_plugin.so |
7f67c577 WF |
84 | %ghost %{_libdir}/libKF5GrantleeTheme.so.5 |
85 | %attr(755,root,root) %{_libdir}/libKF5GrantleeTheme.so.*.*.* | |
2f90381f WF |
86 | %{_datadir}/qlogging-categories5/grantleetheme.categories |
87 | %{_datadir}/qlogging-categories5/grantleetheme.renamecategories | |
8576fe35 WF |
88 | |
89 | %files devel | |
90 | %defattr(644,root,root,755) | |
91 | %{_includedir}/KF5/GrantleeTheme | |
8576fe35 | 92 | %{_libdir}/cmake/KF5GrantleeTheme |
7f67c577 | 93 | %{_libdir}/libKF5GrantleeTheme.so |
8576fe35 | 94 | %{_libdir}/qt5/mkspecs/modules/qt_GrantleeTheme.pri |