94 lines
2.8 KiB
RPMSpec
94 lines
2.8 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 qt6_version 6.8.0
|
|
|
|
%define rname kservice
|
|
# Full KF6 version (e.g. 6.22.0)
|
|
%{!?_kf6_version: %global _kf6_version %{version}}
|
|
|
|
Name: kf6-kservice
|
|
Version: 6.22.0
|
|
Release: %autorelease
|
|
Summary: Plugin framework for desktop services
|
|
License: LGPL-2.1-or-later
|
|
URL: https://www.kde.org
|
|
VCS: git:https://invent.kde.org/frameworks/kservice
|
|
#!RemoteAsset
|
|
Source: https://download.kde.org/stable/frameworks/6.22/%{rname}-%{version}.tar.xz
|
|
|
|
BuildRequires: bison
|
|
BuildRequires: fdupes
|
|
BuildRequires: flex
|
|
BuildRequires: kf6-extra-cmake-modules >= %{_kf6_version}
|
|
BuildRequires: cmake(KF6Config) >= %{_kf6_version}
|
|
BuildRequires: cmake(KF6CoreAddons) >= %{_kf6_version}
|
|
BuildRequires: cmake(KF6DocTools) >= %{_kf6_version}
|
|
BuildRequires: cmake(KF6I18n) >= %{_kf6_version}
|
|
BuildRequires: cmake(Qt6ToolsTools) >= %{qt6_version}
|
|
BuildRequires: cmake(Qt6Xml) >= %{qt6_version}
|
|
BuildRequires: qt6-qttools
|
|
BuildRequires: qt6-doctools
|
|
BuildRequires: qt6-linguist
|
|
BuildRequires: docbook-dtds
|
|
Recommends: kded6 >= %{_kf6_version}
|
|
|
|
%description
|
|
Provides a plugin framework for handling desktop services. Services can
|
|
be applications or libraries. They can be bound to MIME types or handled by
|
|
application specific code.
|
|
|
|
%package devel
|
|
Summary: Plugin framework for desktop services: Build Environment
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
Requires: cmake(KF6Config) >= %{_kf6_version}
|
|
Requires: cmake(KF6CoreAddons) >= %{_kf6_version}
|
|
|
|
%description devel
|
|
Provides a plugin framework for handling desktop services. Services can
|
|
be applications or libraries. They can be bound to MIME types or handled by
|
|
application specific code. Development files
|
|
|
|
%lang_package
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{rname}-%{version}
|
|
|
|
%build
|
|
%cmake_kf6
|
|
|
|
%kf6_build
|
|
|
|
%install
|
|
%kf6_install
|
|
|
|
%fdupes %{buildroot}
|
|
|
|
# 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 LICENSES/*
|
|
%doc README.md
|
|
%doc %lang(en) %{_kf6_mandir}/*/kbuildsycoca6.*
|
|
%{_kf6_bindir}/kbuildsycoca6
|
|
%{_kf6_debugdir}/kservice.categories
|
|
%{_kf6_debugdir}/kservice.renamecategories
|
|
%{_kf6_libdir}/libKF6Service.so.*
|
|
%doc %{_datadir}/man/*/man8/kbuildsycoca6.8*
|
|
|
|
%files devel
|
|
%{_kf6_cmakedir}/KF6Service/
|
|
%{_kf6_includedir}/KService/
|
|
%{_kf6_libdir}/libKF6Service.so
|
|
|
|
%changelog
|
|
%{?autochangelog}
|