]>
Commit | Line | Data |
---|---|---|
bef220ee WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
565d556b | 4 | %define kdeplasmaver 5.93.0 |
5ec2a300 | 5 | %define qtver 5.15.2 |
e2415594 AM |
6 | %define kpname oxygen |
7 | Summary: Plasma and Qt widget style and window decorations for Plasma 5 and KDE 4 | |
8 | Name: kp5-%{kpname} | |
565d556b WF |
9 | Version: 5.93.0 |
10 | Release: 0.1 | |
e2415594 AM |
11 | License: GPL v2+/LGPL v2.1+ |
12 | Group: X11/Libraries | |
565d556b WF |
13 | Source0: https://download.kde.org/unstable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz |
14 | # Source0-md5: fc87c82b32478bd2da2c280fc1fa3fcb | |
e2415594 | 15 | URL: http://www.kde.org/ |
565d556b | 16 | BuildRequires: Qt6Core-devel >= %{qtver} |
587f291c | 17 | BuildRequires: cmake >= 3.16.0 |
565d556b WF |
18 | BuildRequires: kf6-extra-cmake-modules >= 1.4.0 |
19 | BuildRequires: kf6-frameworkintegration-devel | |
20 | BuildRequires: kf6-kcompletion-devel | |
21 | BuildRequires: kf6-kconfig-devel | |
22 | BuildRequires: kf6-kguiaddons-devel | |
23 | BuildRequires: kf6-ki18n-devel | |
24 | BuildRequires: kf6-kservice-devel | |
25 | BuildRequires: kf6-kwidgetsaddons-devel | |
26 | BuildRequires: kf6-kwindowsystem-devel | |
05d5165e | 27 | BuildRequires: ninja |
565d556b | 28 | BuildRequires: qt6-build >= %{qtver} |
e2415594 AM |
29 | BuildRequires: rpmbuild(macros) >= 1.164 |
30 | BuildRequires: tar >= 1:1.22 | |
31 | BuildRequires: xz | |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
33 | ||
34 | %description | |
35 | Plasma and Qt widget style and window decorations for Plasma 5 and KDE | |
36 | 4 A plugin-based library to create window decorations. | |
37 | ||
38 | %package devel | |
39 | Summary: Header files for %{kpname} development | |
40 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kpname} | |
41 | Group: X11/Development/Libraries | |
42 | Requires: %{name} = %{version}-%{release} | |
43 | ||
44 | %description devel | |
45 | Header files for %{kpname} development. | |
46 | ||
47 | %description devel -l pl.UTF-8 | |
48 | Pliki nagłówkowe dla programistów używających %{kpname}. | |
49 | ||
50 | %prep | |
51 | %setup -q -n %{kpname}-%{version} | |
52 | ||
53 | %build | |
587f291c WF |
54 | %cmake -B build \ |
55 | -G Ninja \ | |
bef220ee | 56 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
e2415594 | 57 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
565d556b WF |
58 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
59 | -DBUILD_QT5=OFF \ | |
60 | -DBUILD_QT6=ON | |
587f291c | 61 | %ninja_build -C build |
e2415594 | 62 | |
bef220ee WF |
63 | %if %{with tests} |
64 | ctest | |
65 | %endif | |
66 | ||
e2415594 AM |
67 | %install |
68 | rm -rf $RPM_BUILD_ROOT | |
05d5165e | 69 | %ninja_install -C build |
e2415594 | 70 | |
2e1c1470 | 71 | %find_lang %{kpname} --all-name --with-kde |
e2415594 AM |
72 | |
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %post -p /sbin/ldconfig | |
77 | %postun -p /sbin/ldconfig | |
78 | ||
0d97f8f9 | 79 | %files -f %{kpname}.lang |
e2415594 | 80 | %defattr(644,root,root,755) |
e2415594 AM |
81 | %{_datadir}/plasma/look-and-feel/org.kde.oxygen |
82 | %{_iconsdir}/KDE_Classic | |
e2415594 | 83 | %{_datadir}/kstyle/themes/oxygen.themerc |
05223bde | 84 | %{_iconsdir}/hicolor/256x256/apps/oxygen-settings.png |
e2415594 | 85 | %{_iconsdir}/Oxygen* |
1f3c597e WF |
86 | %{_datadir}/color-schemes/Oxygen.colors |
87 | %{_datadir}/color-schemes/OxygenCold.colors | |
565d556b WF |
88 | %attr(755,root,root) %{_bindir}/oxygen-demo6 |
89 | %attr(755,root,root)%{_bindir}/oxygen-settings6 | |
90 | %attr(755,root,root)%{_libdir}/liboxygenstyle6.so.*.* | |
91 | %ghost %{_libdir}/liboxygenstyle6.so.6 | |
92 | %attr(755,root,root)%{_libdir}/liboxygenstyleconfig6.so.*.* | |
93 | %ghost %{_libdir}/liboxygenstyleconfig6.so.6 | |
94 | %attr(755,root,root)%{_libdir}/qt6/plugins/kstyle_config/kstyle_oxygen_config.so | |
95 | %attr(755,root,root)%{_libdir}/qt6/plugins/org.kde.kdecoration2.kcm/kcm_oxygendecoration.so | |
96 | %attr(755,root,root)%{_libdir}/qt6/plugins/org.kde.kdecoration2/org.kde.oxygen.so | |
97 | %attr(755,root,root)%{_libdir}/qt6/plugins/styles/oxygen6.so | |
98 | %{_desktopdir}/kcm_oxygendecoration.desktop | |
99 | %{_datadir}/metainfo/org.kde.oxygen.appdata.xml |