2020-11-21 13:58:30 +01:00
|
|
|
#
|
|
|
|
# spec file for package kontrast
|
|
|
|
#
|
2021-01-06 15:52:07 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2020-11-21 13:58:30 +01:00
|
|
|
#
|
|
|
|
# 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 https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
|
2022-01-06 13:44:54 +01:00
|
|
|
%bcond_without released
|
2020-11-21 13:58:30 +01:00
|
|
|
Name: kontrast
|
2022-05-12 13:02:10 +02:00
|
|
|
Version: 22.04.1
|
2020-11-21 13:58:30 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Contrast checker
|
|
|
|
License: GPL-3.0-or-later AND CC0-1.0
|
2021-04-19 15:31:04 +02:00
|
|
|
URL: https://apps.kde.org/kontrast
|
2022-04-21 10:21:29 +02:00
|
|
|
Source: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
|
2022-01-06 13:44:54 +01:00
|
|
|
%if %{with released}
|
2022-04-21 10:21:29 +02:00
|
|
|
Source1: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz.sig
|
2020-11-21 13:58:30 +01:00
|
|
|
Source2: applications.keyring
|
|
|
|
%endif
|
|
|
|
BuildRequires: extra-cmake-modules
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: cmake(KF5CoreAddons)
|
|
|
|
BuildRequires: cmake(KF5Declarative)
|
|
|
|
BuildRequires: cmake(KF5I18n)
|
|
|
|
BuildRequires: cmake(KF5Kirigami2)
|
|
|
|
BuildRequires: cmake(Qt5Core) >= 5.14.0
|
|
|
|
BuildRequires: cmake(Qt5DBus)
|
|
|
|
BuildRequires: cmake(Qt5Gui)
|
|
|
|
BuildRequires: cmake(Qt5Qml)
|
|
|
|
BuildRequires: cmake(Qt5QuickControls2)
|
|
|
|
BuildRequires: cmake(Qt5Sql)
|
|
|
|
BuildRequires: cmake(Qt5Svg)
|
|
|
|
Requires: kirigami2
|
2020-12-08 17:24:01 +01:00
|
|
|
Requires: libqt5-qtquickcontrols
|
2020-11-21 13:58:30 +01:00
|
|
|
%lang_package
|
|
|
|
|
|
|
|
%description
|
|
|
|
Kontrast allows choosing background and text color that are easy to read when
|
|
|
|
used together.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake_kf5 -d build
|
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%kf5_makeinstall -C build
|
|
|
|
|
2022-01-06 13:44:54 +01:00
|
|
|
%if %{with released}
|
2020-11-21 13:58:30 +01:00
|
|
|
%find_lang %{name}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%suse_update_desktop_file -r org.kde.kontrast Qt KDE Utility Accessibility
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSES/*
|
|
|
|
%{_kf5_applicationsdir}/org.kde.kontrast.desktop
|
|
|
|
%{_kf5_appstreamdir}/org.kde.kontrast.appdata.xml
|
|
|
|
%{_kf5_bindir}/kontrast
|
|
|
|
%{_kf5_iconsdir}/hicolor/scalable/apps/org.kde.kontrast.svg
|
|
|
|
|
2022-01-06 13:44:54 +01:00
|
|
|
%if %{with released}
|
2020-11-21 13:58:30 +01:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|