SHA256
1
0
forked from pool/kgamma5
kgamma5/kgamma5.spec

76 lines
2.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package kgamma5
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%bcond_without lang
Name: kgamma5
Version: 5.4.1
Release: 0
Summary: Display gamma configuration
License: GPL-2.0+
Group: Productivity/Graphics/Other
Url: http://www.kde.org
Source0: %{name}-%{version}.tar.xz
BuildRequires: extra-cmake-modules
BuildRequires: kdelibs4support-devel
BuildRequires: kdoctools-devel
BuildRequires: kf5-filesystem
BuildRequires: xz
BuildRequires: pkgconfig(Qt5Core) >= 5.4.0
BuildRequires: pkgconfig(Qt5Gui) >= 5.4.0
BuildRequires: pkgconfig(Qt5Widgets) >= 5.4.0
BuildRequires: pkgconfig(Qt5X11Extras) >= 5.4.0
%if %{with lang}
Recommends: %{name}-lang
%endif
%if 0%{?suse_version} > 1314 && "%{suse_version}" != "1320"
Provides: kgamma = %{version}
Obsoletes: kgamma
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains a KDE system settings module to configure display
gamma.
%lang_package
%prep
%setup -q -n %{name}-%{version}
%build
%cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=%{_kf5_localedir}
%make_jobs
%install
%kf5_makeinstall -C build
%files
%defattr(-,root,root)
%{_kf5_plugindir}/
%{_kf5_servicesdir}/
%{_kf5_sharedir}/kgamma/
%dir %{_kf5_htmldir}
%dir %{_kf5_htmldir}/en
%doc %{_kf5_htmldir}/en/%{name}/
%if %{with lang}
%files lang
%{_kf5_localedir}
%endif
%changelog