92 lines
2.7 KiB
RPMSpec
92 lines
2.7 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
|
|
|
|
%global __requires_exclude org.kde.kaccounts.(next|own)cloud
|
|
|
|
# The nextcloud plugin will only be built on these archs
|
|
%ifarch x86_64 %{x86_64} aarch64 riscv64
|
|
%bcond_without qtwebengine
|
|
%endif
|
|
|
|
%define kf6_version 6.19.0
|
|
%define qt6_version 6.9.0
|
|
|
|
Name: kaccounts-providers
|
|
Version: 25.12.2
|
|
Release: %autorelease
|
|
Summary: KDE Accounts Providers
|
|
License: GPL-2.0-or-later
|
|
VCS: git:https://github.com/KDE/kaccounts-providers.git
|
|
#!RemoteAsset
|
|
Source0: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
|
|
|
|
BuildRequires: kf6-extra-cmake-modules >= %{kf6_version}
|
|
BuildRequires: intltool
|
|
BuildRequires: cmake(KAccounts6)
|
|
BuildRequires: cmake(KF6I18n) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6KIO) >= %{kf6_version}
|
|
BuildRequires: cmake(KF6Package) >= %{kf6_version}
|
|
BuildRequires: cmake(QCoro6Core)
|
|
BuildRequires: cmake(QCoro6Network)
|
|
BuildRequires: cmake(Qt6Core) >= %{qt6_version}
|
|
BuildRequires: cmake(Qt6Qml) >= %{qt6_version}
|
|
%if %{with qtwebengine}
|
|
BuildRequires: cmake(Qt6WebEngineQuick) >= %{qt6_version}
|
|
%endif
|
|
Requires: signon-plugin-oauth2
|
|
|
|
%description
|
|
KDE Accounts Providers.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%cmake_kf6
|
|
|
|
%kf6_build
|
|
|
|
%install
|
|
%kf6_install
|
|
|
|
# qtwebkit is long dead
|
|
rm -r %{buildroot}%{_kf6_sysconfdir}/signon-ui/
|
|
|
|
# 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} --with-qt --all-name --generate-subpackages
|
|
|
|
%files
|
|
%license LICENSES/*
|
|
%{_kf6_iconsdir}/hicolor/256x256/apps/kaccounts-owncloud.png
|
|
%if %{with qtwebengine}
|
|
%{_kf6_iconsdir}/hicolor/scalable/apps/kaccounts-nextcloud.svg
|
|
%endif
|
|
%{_kf6_plugindir}/kaccounts/
|
|
%dir %{_kf6_sharedir}/accounts
|
|
%dir %{_kf6_sharedir}/accounts/providers
|
|
%dir %{_kf6_sharedir}/accounts/providers/kde
|
|
%{_kf6_sharedir}/accounts/providers/kde/google.provider
|
|
%if %{with qtwebengine}
|
|
%{_kf6_sharedir}/accounts/providers/kde/nextcloud.provider
|
|
%endif
|
|
%{_kf6_sharedir}/accounts/providers/kde/owncloud.provider
|
|
%dir %{_kf6_sharedir}/accounts/services
|
|
%dir %{_kf6_sharedir}/accounts/services/kde
|
|
%if %{with qtwebengine}
|
|
%{_kf6_sharedir}/accounts/services/kde/nextcloud-contacts.service
|
|
%{_kf6_sharedir}/accounts/services/kde/nextcloud-storage.service
|
|
%endif
|
|
%{_kf6_sharedir}/accounts/services/kde/owncloud-storage.service
|
|
%dir %{_kf6_sharedir}/kpackage/
|
|
%{_kf6_sharedir}/kpackage/genericqml/
|
|
|
|
%changelog
|
|
%{?autochangelog}
|