66 lines
2.0 KiB
RPMSpec
66 lines
2.0 KiB
RPMSpec
# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
|
# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors
|
|
# SPDX-FileContributor: jingyupu <pujingyu@iscas.ac.cn>
|
|
#
|
|
# SPDX-License-Identifier: MulanPSL-2.0
|
|
|
|
%define kf6_version 6.19.0
|
|
%define qt6_version 6.9.0
|
|
|
|
|
|
Name: kdialog
|
|
Version: 25.12.1
|
|
Release: %autorelease
|
|
Summary: KDE version of xdialog
|
|
License: GPL-2.0-or-later
|
|
URL: https://apps.kde.org/kdialog
|
|
VCS: git:https://invent.kde.org/utilities/kdialog
|
|
#!RemoteAsset
|
|
Source0: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
|
|
|
|
BuildRequires: kf6-extra-cmake-modules >= %{kf6_version}
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: cmake(KF6DBusAddons) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6GuiAddons) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6IconThemes) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6KIO) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6Notifications) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6TextWidgets) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6WindowSystem) >= %{kf6_version}
|
|
BuildRequires: cmake(Qt6DBus) >= %{qt6_version}
|
|
BuildRequires: qt6-qtbase-private-devel >= %{qt6_version}
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
%description
|
|
KDialog can be used to show nice dialog boxes from shell scripts.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%cmake_kf6
|
|
|
|
%kf6_build
|
|
|
|
%install
|
|
%kf6_install
|
|
|
|
# todo: fix the name error.
|
|
# Avoid illegal package names
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*@*
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/en_GB/
|
|
# Use langpacks macro to auto-split translations
|
|
%find_lang %{name}6 --with-qt --all-name --generate-subpackages
|
|
|
|
%files
|
|
%license COPYING*
|
|
%doc README.md
|
|
%{_kf6_applicationsdir}/org.kde.kdialog.desktop
|
|
%{_kf6_appstreamdir}/org.kde.kdialog.metainfo.xml
|
|
%{_kf6_bindir}/kdialog
|
|
%{_kf6_bindir}/kdialog_progress_helper
|
|
%{_kf6_dbusinterfacesdir}/org.kde.kdialog.ProgressDialog.xml
|
|
|
|
%changelog
|
|
%{?autochangelog}
|