]>
Commit | Line | Data |
---|---|---|
bef220ee WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
a06e69a3 | 4 | %define kdeplasmaver 5.27.1 |
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} | |
a06e69a3 | 9 | Version: 5.27.1 |
d6bf56a7 | 10 | Release: 1 |
e2415594 AM |
11 | License: GPL v2+/LGPL v2.1+ |
12 | Group: X11/Libraries | |
a2f7c1fc | 13 | Source0: https://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz |
a06e69a3 | 14 | # Source0-md5: e62aeae798646f5720fcd054c22e7477 |
e2415594 AM |
15 | URL: http://www.kde.org/ |
16 | BuildRequires: Qt5Core-devel >= %{qtver} | |
17 | BuildRequires: cmake >= 2.8.12 | |
18 | BuildRequires: kf5-extra-cmake-modules >= 1.4.0 | |
19 | BuildRequires: kf5-frameworkintegration-devel | |
20 | BuildRequires: kf5-kcompletion-devel | |
21 | BuildRequires: kf5-kconfig-devel | |
22 | BuildRequires: kf5-kguiaddons-devel | |
23 | BuildRequires: kf5-ki18n-devel | |
24 | BuildRequires: kf5-kservice-devel | |
25 | BuildRequires: kf5-kwidgetsaddons-devel | |
26 | BuildRequires: kf5-kwindowsystem-devel | |
05d5165e | 27 | BuildRequires: ninja |
e2415594 AM |
28 | BuildRequires: qt5-build >= %{qtver} |
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 | |
54 | install -d build | |
55 | cd build | |
05d5165e | 56 | %cmake -G Ninja \ |
bef220ee | 57 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
e2415594 | 58 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
1f3c597e | 59 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
e2415594 | 60 | .. |
05d5165e | 61 | %ninja_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 AM |
80 | %defattr(644,root,root,755) |
81 | %attr(755,root,root) %{_bindir}/oxygen-demo5 | |
82 | %attr(755,root,root) %{_bindir}/oxygen-settings5 | |
83 | %attr(755,root,root) %{_libdir}/liboxygenstyle5.so.*.* | |
ded96968 | 84 | %ghost %{_libdir}/liboxygenstyle5.so.5 |
e2415594 | 85 | %attr(755,root,root) %{_libdir}/liboxygenstyleconfig5.so.*.* |
ded96968 | 86 | %ghost %{_libdir}/liboxygenstyleconfig5.so.5 |
e2415594 AM |
87 | %attr(755,root,root) %{_libdir}/qt5/plugins/kstyle_oxygen_config.so |
88 | %attr(755,root,root) %{_libdir}/qt5/plugins/org.kde.kdecoration2/oxygendecoration.so | |
89 | %attr(755,root,root) %{_libdir}/qt5/plugins/styles/oxygen.so | |
90 | %{_datadir}/plasma/look-and-feel/org.kde.oxygen | |
91 | %{_iconsdir}/KDE_Classic | |
92 | %{_datadir}/kservices5/oxygenstyleconfig.desktop | |
05223bde | 93 | %{_datadir}/kservices5/oxygendecorationconfig.desktop |
e2415594 | 94 | %{_datadir}/kstyle/themes/oxygen.themerc |
05223bde | 95 | %{_iconsdir}/hicolor/256x256/apps/oxygen-settings.png |
e2415594 | 96 | %{_iconsdir}/Oxygen* |
1f3c597e WF |
97 | %{_datadir}/color-schemes/Oxygen.colors |
98 | %{_datadir}/color-schemes/OxygenCold.colors |