2020-11-21 13:58:30 +01:00
|
|
|
#
|
|
|
|
# spec file for package kontrast
|
|
|
|
#
|
2023-03-02 15:21:24 +01:00
|
|
|
# Copyright (c) 2023 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-01-06 13:44:54 +01:00
|
|
|
%bcond_without released
|
2020-11-21 13:58:30 +01:00
|
|
|
Name: kontrast
|
2023-09-14 12:52:08 +02:00
|
|
|
Version: 23.08.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
|
2023-08-24 12:28:59 +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}
|
2023-08-24 12:28:59 +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
|
2023-08-18 08:25:45 +02:00
|
|
|
%if 0%{?suse_version} == 1500
|
|
|
|
# gcc10 is not enough. Missing std::coroutine_handle
|
|
|
|
BuildRequires: gcc12-c++
|
|
|
|
BuildRequires: gcc12-PIE
|
|
|
|
%endif
|
2020-11-21 13:58:30 +01:00
|
|
|
BuildRequires: update-desktop-files
|
2023-08-18 08:25:45 +02:00
|
|
|
BuildRequires: cmake(FutureSQL5)
|
2020-11-21 13:58:30 +01:00
|
|
|
BuildRequires: cmake(KF5CoreAddons)
|
|
|
|
BuildRequires: cmake(KF5Declarative)
|
2022-11-17 23:58:35 +01:00
|
|
|
BuildRequires: cmake(KF5DocTools)
|
2020-11-21 13:58:30 +01:00
|
|
|
BuildRequires: cmake(KF5I18n)
|
|
|
|
BuildRequires: cmake(KF5Kirigami2)
|
2023-08-18 08:25:45 +02:00
|
|
|
BuildRequires: cmake(QCoro5Core)
|
|
|
|
BuildRequires: cmake(Qt5Core) >= 5.15.2
|
2020-11-21 13:58:30 +01:00
|
|
|
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
|
2023-08-18 08:25:45 +02:00
|
|
|
%if 0%{?suse_version} == 1500
|
|
|
|
export CXX=g++-12
|
|
|
|
%endif
|
2020-11-21 13:58:30 +01:00
|
|
|
%cmake_kf5 -d build
|
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%kf5_makeinstall -C build
|
|
|
|
|
|
|
|
%find_lang %{name}
|
2022-11-17 23:58:35 +01:00
|
|
|
%{kf5_find_htmldocs}
|
2020-11-21 13:58:30 +01:00
|
|
|
|
|
|
|
%suse_update_desktop_file -r org.kde.kontrast Qt KDE Utility Accessibility
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSES/*
|
2022-11-17 23:58:35 +01:00
|
|
|
%doc %lang(en) %{_kf5_htmldir}/en/kontrast/
|
2020-11-21 13:58:30 +01:00
|
|
|
%{_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
|
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
|
|
|
%changelog
|