]> git.pld-linux.org Git - packages/kp5-kgamma5.git/blame - kp5-kgamma5.spec
rebuild with qt5-5.15.6
[packages/kp5-kgamma5.git] / kp5-kgamma5.spec
CommitLineData
66c66580
WF
1#
2# Conditional build:
3%bcond_with tests # build with tests
7fa1ac7e 4%define kdeplasmaver 5.25.5
9375e61c 5%define qtver 5.15.2
48e98fd6
WF
6%define kpname kgamma5
7Summary: kgamma5
8Name: kp5-%{kpname}
7fa1ac7e 9Version: 5.25.5
9804731a 10Release: 2
48e98fd6
WF
11License: GPL v2+/LGPL v2.1+
12Group: X11/Libraries
85c940dd 13Source0: https://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
7fa1ac7e 14# Source0-md5: 0c2b7afef01994a52810e435ab3bc159
48e98fd6
WF
15URL: http://www.kde.org/
16BuildRequires: Qt5Core-devel >= %{qtver}
17BuildRequires: Qt5Gui-devel >= %{qtver}
18BuildRequires: Qt5Widgets-devel >= %{qtver}
19BuildRequires: Qt5X11Extras-devel >= %{qtver}
20BuildRequires: cmake >= 2.8.12
21BuildRequires: gettext-devel
22BuildRequires: kf5-extra-cmake-modules >= 1.4.0
23BuildRequires: kf5-kdelibs4support-devel
24BuildRequires: kf5-kdoctools-devel
5b26e980 25BuildRequires: ninja
48e98fd6
WF
26BuildRequires: qt5-build >= %{qtver}
27BuildRequires: rpmbuild(macros) >= 1.164
28BuildRequires: tar >= 1:1.22
29BuildRequires: xorg-lib-libX11-devel
549c991b 30BuildRequires: xorg-lib-libXxf86vm-devel
48e98fd6
WF
31BuildRequires: xz
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34%description
06d26a1c
WF
35This module is a tool for monitor gamma correction. With proper gamma
36settings, your display (websites, images, etc.) will look the same on
37your monitor as on other monitors. It allows you to alter the
38monitor's gamma correction of the X-Server. But that's not all to do.
48e98fd6
WF
39
40%prep
41%setup -q -n %{kpname}-%{version}
42
43%build
44install -d build
45cd build
5b26e980 46%cmake -G Ninja \
66c66580 47 %{!?with_tests:-DBUILD_TESTING=OFF} \
48e98fd6 48 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
aa039462 49 -DHTML_INSTALL_DIR=%{_kdedocdir} \
48e98fd6 50 ..
5b26e980 51%ninja_build
48e98fd6 52
66c66580
WF
53%if %{with tests}
54ctest
55%endif
56
48e98fd6
WF
57%install
58rm -rf $RPM_BUILD_ROOT
5b26e980 59%ninja_install -C build
48e98fd6
WF
60
61%find_lang %{kpname} --all-name --with-kde
62
63%clean
64rm -rf $RPM_BUILD_ROOT
65
66%files -f %{kpname}.lang
67%defattr(644,root,root,755)
fb41a8a2
WF
68%{_libdir}/qt5/plugins/plasma/kcminit/kcm_kgamma_init.so
69%{_libdir}/qt5/plugins/plasma/kcms/systemsettings/kcm_kgamma.so
72275b86 70%{_datadir}/kgamma
This page took 0.413936 seconds and 4 git commands to generate.