1 %define kdeplasmaver 5.22.0
8 License: GPL v2+/LGPL v2.1+
10 Source0: http://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
11 # Source0-md5: af64e2ebbec171521324322f981394c8
12 URL: http://www.kde.org/
13 BuildRequires: Qt5Core-devel >= %{qtver}
14 BuildRequires: Qt5Gui-devel >= %{qtver}
15 BuildRequires: Qt5Widgets-devel >= %{qtver}
16 BuildRequires: Qt5X11Extras-devel >= %{qtver}
17 BuildRequires: cmake >= 2.8.12
18 BuildRequires: gettext-devel
19 BuildRequires: kf5-extra-cmake-modules >= 1.4.0
20 BuildRequires: kf5-kdelibs4support-devel
21 BuildRequires: kf5-kdoctools-devel
23 BuildRequires: qt5-build >= %{qtver}
24 BuildRequires: rpmbuild(macros) >= 1.164
25 BuildRequires: tar >= 1:1.22
26 BuildRequires: xorg-lib-libX11-devel
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 This module is a tool for monitor gamma correction. With proper gamma
32 settings, your display (websites, images, etc.) will look the same on
33 your monitor as on other monitors. It allows you to alter the
34 monitor's gamma correction of the X-Server. But that's not all to do.
37 %setup -q -n %{kpname}-%{version}
43 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
44 -DHTML_INSTALL_DIR=%{_kdedocdir} \
49 rm -rf $RPM_BUILD_ROOT
50 %ninja_install -C build
52 %find_lang %{kpname} --all-name --with-kde
55 rm -rf $RPM_BUILD_ROOT
57 %files -f %{kpname}.lang
58 %defattr(644,root,root,755)
59 %attr(755,root,root) %{_libdir}/qt5/plugins/kcm_kgamma.so
61 %{_datadir}/kservices5/kgamma.desktop