]>
Commit | Line | Data |
---|---|---|
ac851ced WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
f82ebeb8 | 4 | %define kdeplasmaver 5.27.2 |
a89c30e3 | 5 | %define qtver 5.15.2 |
3d38a0e8 AM |
6 | %define kpname libkscreen |
7 | ||
8 | Summary: KDE screen management software | |
9 | Name: kp5-%{kpname} | |
f82ebeb8 | 10 | Version: 5.27.2 |
14fc88dd | 11 | Release: 1 |
3d38a0e8 AM |
12 | License: LGPL v2.1+ |
13 | Group: X11/Libraries | |
ecfd56af | 14 | Source0: https://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz |
f82ebeb8 | 15 | # Source0-md5: 750550603896d86afc712c33b242ee9c |
3d38a0e8 AM |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: cmake >= 2.8.12 | |
5b15ff0e JR |
19 | BuildRequires: kf5-extra-cmake-modules |
20 | BuildRequires: kf5-kwayland-devel | |
508f8a39 | 21 | BuildRequires: kf5-plasma-wayland-protocols-devel >= 1.10.0 |
638ebc44 | 22 | BuildRequires: ninja |
3d38a0e8 AM |
23 | BuildRequires: rpmbuild(macros) >= 1.164 |
24 | BuildRequires: xz | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %define qt5dir %{_libdir}/qt5 | |
28 | ||
29 | %description | |
30 | KDE screen management software. | |
31 | ||
32 | %package devel | |
33 | Summary: Header files for %{kpname} development | |
34 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kpname} | |
35 | Group: X11/Development/Libraries | |
36 | Requires: %{name} = %{version}-%{release} | |
37 | ||
38 | %description devel | |
39 | Header files for %{kpname} development. | |
40 | ||
41 | %description devel -l pl.UTF-8 | |
42 | Pliki nagłówkowe dla programistów używających %{kpname}. | |
43 | ||
44 | %prep | |
45 | %setup -q -n %{kpname}-%{version} | |
46 | ||
47 | %build | |
48 | install -d build | |
49 | cd build | |
638ebc44 | 50 | %cmake -G Ninja \ |
ac851ced | 51 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
3d38a0e8 | 52 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
5e13bc00 | 53 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
3d38a0e8 | 54 | ../ |
638ebc44 | 55 | %ninja_build |
3d38a0e8 | 56 | |
ac851ced WF |
57 | %if %{with tests} |
58 | ctest | |
59 | %endif | |
60 | ||
3d38a0e8 AM |
61 | %install |
62 | rm -rf $RPM_BUILD_ROOT | |
638ebc44 | 63 | %ninja_install -C build |
3d38a0e8 AM |
64 | |
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %post -p /sbin/ldconfig | |
69 | %postun -p /sbin/ldconfig | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
79bf3861 | 73 | %attr(755,root,root) %{_bindir}/kscreen-doctor |
fcdc997e | 74 | %attr(755,root,root) %{_prefix}/libexec/kf5/kscreen_backend_launcher |
3d38a0e8 | 75 | %attr(755,root,root) %{_libdir}/libKF5Screen.so.*.*.* |
508f8a39 WF |
76 | %ghost %{_libdir}/libKF5Screen.so.8 |
77 | %attr(755,root,root) %{_libdir}/libKF5ScreenDpms.so.*.*.* | |
78 | %ghost %{_libdir}/libKF5ScreenDpms.so.8 | |
4bad2ecf | 79 | %dir %{_libdir}/qt5/plugins/kf5/kscreen |
3d38a0e8 AM |
80 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kscreen/KSC_Fake.so |
81 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kscreen/KSC_QScreen.so | |
82 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kscreen/KSC_XRandR.so | |
83 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kscreen/KSC_XRandR11.so | |
79bf3861 | 84 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kscreen/KSC_KWayland.so |
e5e03330 | 85 | %{_datadir}/dbus-1/services/org.kde.kscreen.service |
5e13bc00 | 86 | %{_datadir}/qlogging-categories5/libkscreen.categories |
692b02e3 | 87 | %{systemduserunitdir}/plasma-kscreen.service |
508f8a39 | 88 | %{zsh_compdir}/_kscreen-doctor |
3d38a0e8 AM |
89 | |
90 | %files devel | |
91 | %defattr(644,root,root,755) | |
ec497f0e | 92 | %{_libdir}/libKF5Screen.so |
508f8a39 | 93 | %{_libdir}/libKF5ScreenDpms.so |
3d38a0e8 AM |
94 | %{_includedir}/KF5/KScreen |
95 | %{_includedir}/KF5/kscreen_version.h | |
96 | %{_libdir}/cmake/KF5Screen | |
97 | %{_pkgconfigdir}/kscreen2.pc | |
98 | %{_libdir}/qt5/mkspecs/modules/qt_KScreen.pri |