3 %bcond_with tests # build with tests
4 %define kdeplasmaver 5.25.3
11 License: GPL v2+/LGPL v2.1+
13 Source0: https://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
14 # Source0-md5: b0985997467750af1b5b5e729b077143
15 URL: http://www.kde.org/
16 BuildRequires: Qt5Core-devel >= %{qtver}
17 BuildRequires: Qt5Gui-devel >= %{qtver}
18 BuildRequires: Qt5Widgets-devel >= %{qtver}
19 BuildRequires: Qt5X11Extras-devel >= %{qtver}
20 BuildRequires: cmake >= 2.8.12
21 BuildRequires: gettext-devel
22 BuildRequires: kf5-extra-cmake-modules >= 1.4.0
23 BuildRequires: kf5-kdelibs4support-devel
24 BuildRequires: kf5-kdoctools-devel
26 BuildRequires: qt5-build >= %{qtver}
27 BuildRequires: rpmbuild(macros) >= 1.164
28 BuildRequires: tar >= 1:1.22
29 BuildRequires: xorg-lib-libX11-devel
30 BuildRequires: xorg-lib-libXxf86vm-devel
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 This module is a tool for monitor gamma correction. With proper gamma
36 settings, your display (websites, images, etc.) will look the same on
37 your monitor as on other monitors. It allows you to alter the
38 monitor's gamma correction of the X-Server. But that's not all to do.
41 %setup -q -n %{kpname}-%{version}
47 %{!?with_tests:-DBUILD_TESTING=OFF} \
48 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
49 -DHTML_INSTALL_DIR=%{_kdedocdir} \
58 rm -rf $RPM_BUILD_ROOT
59 %ninja_install -C build
61 %find_lang %{kpname} --all-name --with-kde
64 rm -rf $RPM_BUILD_ROOT
66 %files -f %{kpname}.lang
67 %defattr(644,root,root,755)
68 %{_libdir}/qt5/plugins/plasma/kcminit/kcm_kgamma_init.so
69 %{_libdir}/qt5/plugins/plasma/kcms/systemsettings/kcm_kgamma.so