kirigami-gallery/kirigami-gallery.spec

77 lines
2.4 KiB
RPMSpec

#
# spec file for package kirigami-gallery
#
# Copyright (c) 2024 SUSE LLC
#
# 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/
#
%bcond_without released
Name: kirigami-gallery
Version: 24.01.95
Release: 0
Summary: Gallery application built using Kirigami
License: LGPL-2.0-or-later
URL: https://apps.kde.org/kirigami2.gallery
Source: https://download.kde.org/unstable/release-service/%{version}/src/%{name}-%{version}.tar.xz
%if %{with released}
Source1: https://download.kde.org/unstable/release-service/%{version}/src/%{name}-%{version}.tar.xz.sig
Source2: applications.keyring
%endif
BuildRequires: extra-cmake-modules
# For some reason needed for appstream xml installation
BuildRequires: kpackage
BuildRequires: update-desktop-files
BuildRequires: cmake(KF5ItemModels)
BuildRequires: cmake(KF5Kirigami2)
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5Gui)
BuildRequires: cmake(Qt5LinguistTools)
BuildRequires: cmake(Qt5Quick)
BuildRequires: cmake(Qt5QuickControls2)
BuildRequires: cmake(Qt5Svg)
Requires: kirigami2
Requires: kitemmodels-imports
Requires: libqt5-qtgraphicaleffects
Requires: libqt5-qtquickcontrols2
%description
Example application which uses all features from kirigami,
including links to the sourcecode, tips on how to use the
components and links to the corresponding HIG pages and
code examples on cgit
%lang_package
%prep
%autosetup -p1
%build
%cmake_kf5 -d build
%cmake_build
%install
%kf5_makeinstall -C build
%suse_update_desktop_file -G "Kirigami Gallery" org.kde.kirigami2.gallery GUIDesigner
%find_lang kirigamigallery %{name}.lang --with-qt
%files
%license LICENSE.LGPL-2
%{_kf5_applicationsdir}/org.kde.kirigami2.gallery.desktop
%{_kf5_appstreamdir}/org.kde.kirigami2.gallery.appdata.xml
%{_kf5_bindir}/kirigami2gallery
%files lang -f %{name}.lang
%changelog