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