Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SPECS/breeze/breeze.spec
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Summary: Plasma Desktop artwork, styles and assets
License: GPL-2.0-or-later
URL: https://www.kde.org
VCS: git:https://invent.kde.org/plasma/breeze
#!RemoteAsset: sha256:09b3f7bd2386c4b91c418462f02b203510f2ae88489398ef05e0b6ddea3aa590
Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
#!RemoteAsset: sha256:33c69d10454e1eb1c5908bb7b50a955eabf3264d836bd82dc02f3ba8d97692b0
Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz
BuildSystem: cmake

BuildOption(conf): -DBUILD_QT6:BOOL=TRUE
Expand Down
4 changes: 2 additions & 2 deletions SPECS/kactivitymanagerd/kactivitymanagerd.spec
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Summary: KDE Plasma Activities support
License: GPL-2.0-or-later
URL: https://invent.kde.org/plasma/kactivitymanagerd
VCS: git:https://invent.kde.org/plasma/kactivitymanagerd.git
#!RemoteAsset: sha256:87a0f8865f180fc69dcab2fe75d9a840fb39c99393c1d37c11a3d3a30171fbf8
Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
#!RemoteAsset: sha256:ffb83efc69102d6e73ab7a327b6c4df30bad019493b97cdfd38ac55afde7f415
Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz
BuildSystem: cmake

BuildOption(conf): -DBUILD_TESTING=OFF
Expand Down
4 changes: 2 additions & 2 deletions SPECS/kde-cli-tools/kde-cli-tools.spec
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Summary: Additional CLI tools for KDE applications
License: GPL-2.0-or-later
URL: https://www.kde.org
VCS: git:https://invent.kde.org/plasma/kde-cli-tools.git
#!RemoteAsset: sha256:083b5d3c8e6315554547e1fc538c7d9f0671e08f7c52f2bc0a5a345027a12279
Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
#!RemoteAsset: sha256:e96d9ba8385a80758bf0e0958257cd11721e90b1cc835ee6edbad87e6a1afca1
Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz
BuildSystem: cmake

BuildOption(conf): -DBUILD_TESTING=OFF
Expand Down
4 changes: 2 additions & 2 deletions SPECS/kde-gtk-config/kde-gtk-config.spec
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Summary: Daemon for GTK2 and GTK3 Applications Appearance Under KDE
License: GPL-3.0-or-later AND LGPL-3.0-or-later
URL: https://www.kde.org
VCS: git:https://invent.kde.org/plasma/kde-gtk-config.git
#!RemoteAsset: sha256:666b4a5ed1fcb969c98c102b5477c351d073422d4fa80eb84a41b007d9d9885a
Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
#!RemoteAsset: sha256:60807df37815b29587c5c9fd88045f0159c833c39a0884f1ba17f0ed236873ba
Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz
BuildSystem: cmake

BuildOption(conf): -DBUILD_TESTING=OFF
Expand Down
4 changes: 2 additions & 2 deletions SPECS/kdecoration/kdecoration.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Summary: KDE's window decorations library
License: GPL-2.0-or-later
URL: https://www.kde.org
VCS: git:https://invent.kde.org/plasma/kdecoration.git
#!RemoteAsset: sha256:dc217bc6374f07a427b6d78de677b1878e9af47352c6addeb89426211b53681a
Source: https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
#!RemoteAsset: sha256:2c65b9e030a01a5567dfe79b5f1dc4305ac8ee232abd3347bda213ed2639ca99
Source: https://invent.kde.org/plasma/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz
BuildSystem: cmake

BuildOption(conf): -DBUILD_TESTING=OFF
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Applications do not need to link to this directly.

%package plugin
Summary: Plugins responsible for better integration of Qt applications in KDE Workspace
Requires: plasma6-integration
Requires: plasma-integration

%description plugin
Framework Integration is a set of plugins responsible for better
Expand Down
39 changes: 9 additions & 30 deletions SPECS/kf6-kcmutils/kf6-kcmutils.spec
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ Summary: Classes to work with KCModules
License: LGPL-2.1-or-later
URL: https://www.kde.org
VCS: git:https://invent.kde.org/frameworks/kcmutils
#!RemoteAsset
#!RemoteAsset: sha256:c6ed2d3be1f0e4efc91abca48afd64ff0c8917fbb6bc3c0b9725c66b3b9e3993
Source: https://download.kde.org/stable/frameworks/6.22/%{rname}-%{version}.tar.xz
BuildSystem: cmake

BuildOption(conf): -DBUILD_TESTING=OFF

BuildRequires: fdupes
BuildRequires: kf6-extra-cmake-modules >= %{_kf6_version}
BuildRequires: cmake(KF6ConfigWidgets) >= %{_kf6_version}
BuildRequires: cmake(KF6CoreAddons) >= %{_kf6_version}
Expand All @@ -49,15 +51,6 @@ BuildRequires: qt6-linguist
KCMUtils provides various classes to work with KCModules. KCModules can be
created with the KConfigWidgets framework.

%package imports
Summary: QtQuick bindings for classes to work with KCModules
Requires: %{name}%{?_isa} = %{version}-%{release}

%description imports
KCMUtils provides various classes to work with KCModules. KCModules can be
created with the KConfigWidgets framework. This package provides QtQuick bindings
for the KCMUtils libraries.

%package devel
Summary: Build environment for kcmutils, a set of classes to work with KCModules
Requires: %{name}%{?_isa} = %{version}-%{release}
Expand All @@ -69,36 +62,22 @@ Requires: cmake(Qt6Qml) >= %{qt6_version}
KCMUtils provides various classes to work with KCModules. KCModules can be
created with the KConfigWidgets framework. Development files.

%prep
%autosetup -p1 -n %{rname}-%{version}

%build
%cmake_kf6

%kf6_build

%install
%kf6_install

%fdupes %{buildroot}

%install -a
# todo: fix the name error.
# Avoid illegal package names
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*@*
# Use langpacks macro to auto-split translations
%find_lang %{name}6 --with-qt --all-name --generate-subpackages
%find_lang %{name} --with-qt --all-name --generate-subpackages

%files -f %{name}6.lang
%license LICENSES/*
%files -f %{name}.lang
%doc README.md
%license LICENSES/*
%{_kf6_bindir}/kcmshell6
%{_kf6_debugdir}/kcmutils.categories
%{_kf6_libexecdir}/kcmdesktopfilegenerator
%{_kf6_libdir}/libKF6KCMUtils.so.*
%{_kf6_libdir}/libKF6KCMUtilsCore.so.*
%{_kf6_libdir}/libKF6KCMUtilsQuick.so.*

%files imports
%{_kf6_qmldir}/org/kde/kcmutils/

%files devel
Expand All @@ -111,4 +90,4 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/*@*
%{_kf6_libdir}/libKF6KCMUtilsQuick.so

%changelog
%{?autochangelog}
%autochangelog
35 changes: 7 additions & 28 deletions SPECS/kf6-kcoreaddons/kf6-kcoreaddons.spec
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,14 @@ URL: https://www.kde.org
VCS: https://invent.kde.org/frameworks/kcoreaddons
#!RemoteAsset: sha256:843d27cd76ca890c4f352d6f29d2e2b8747883602b63119106b1eb229b95e649
Source: https://download.kde.org/stable/frameworks/6.22/%{rname}-%{version}.tar.xz
BuildSystem: cmake

BuildOption(conf): -DBUILD_TESTING=OFF
BuildOption(conf): -DENABLE_PCH:BOOL=FALSE
BuildOption(conf): -DBUILD_PYTHON_BINDINGS:BOOL=OFF
BuildOption(conf): -DBUILD_QCH:BOOL=OFF
BuildOption(conf): -DKCOREADDONS_BUILD_PYTHON_DOCS:BOOL=OFF

BuildRequires: fdupes
BuildRequires: kf6-extra-cmake-modules >= %{_kf6_version}
BuildRequires: shared-mime-info
BuildRequires: cmake(Qt6Core) >= %{qt6_version}
Expand Down Expand Up @@ -50,13 +56,6 @@ such as manipulating mime types, autosaving files, creating backup files,
generating random sequences, performing text manipulations such as macro
replacement, accessing user information and many more.

%package imports
Summary: QML imports for kcoreaddons
Requires: %{name}%{?_isa} = %{version}-%{release}

%description imports
QML imports for kcoreaddons.

%package devel
Summary: Utilities for core application functionality and accessing the OS
Requires: %{name}%{?_isa} = %{version}-%{release}
Expand All @@ -76,24 +75,6 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%description -n python-%{name}
The package contains the PySide6 bindings library for %{name}.

%prep
%autosetup -p1 -n %{rname}-%{version}

%build
# ENABLE_PCH breaks the build locally with 'error: is pie differs in PCH file vs. current file'
%cmake_kf6 \
-DENABLE_PCH:BOOL=FALSE \
-DBUILD_PYTHON_BINDINGS:BOOL=OFF \
-DBUILD_QCH:BOOL=OFF \
-DKCOREADDONS_BUILD_PYTHON_DOCS:BOOL=OFF

%kf6_build

%install
%kf6_install

%fdupes %{buildroot}

%files
%license LICENSES/*
%doc README.md
Expand All @@ -102,8 +83,6 @@ The package contains the PySide6 bindings library for %{name}.
%{_kf6_debugdir}/kcoreaddons.renamecategories
%{_kf6_libdir}/libKF6CoreAddons.so.*
%{_datadir}/locale/*/LC_MESSAGES/kcoreaddons6_qt.qm

%files imports
%{_kf6_qmldir}/org/kde/coreaddons/

%files devel
Expand Down
139 changes: 139 additions & 0 deletions SPECS/kf6-kimageformats/kf6-kimageformats.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
# 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 kimageformats

%bcond avif 0
%bcond heif 0
%bcond exr 1
%bcond jxl 1
%bcond jp2 1

# Full KF6 version (e.g. 6.22.0)
%{!?_kf6_version: %global _kf6_version %{version}}

Name: kf6-kimageformats
Version: 6.22.0
Release: %autorelease
Summary: Image format plugins for Qt
License: LGPL-2.1-or-later
URL: https://www.kde.org
VCS: git:https://invent.kde.org/frameworks/kimageformats.git
#!RemoteAsset: sha256:d6eede9a75aa4b33c3e8afdebdcc9664cf423effeabe684b21dc1cc9728a2073
Source: https://download.kde.org/stable/frameworks/6.22/%{rname}-%{version}.tar.xz
BuildSystem: cmake

BuildOption(conf): -DBUILD_TESTING=OFF
%if %{with avif}
BuildOption(conf): -DKIMAGEFORMATS_AVIF:BOOL=TRUE
%else
BuildOption(conf): -DKIMAGEFORMATS_AVIF:BOOL=FALSE
%endif
%if %{with heif}
BuildOption(conf): -DKIMAGEFORMATS_HEIF:BOOL=TRUE
%else
BuildOption(conf): -DKIMAGEFORMATS_HEIF:BOOL=FALSE
%endif

BuildRequires: kf6-extra-cmake-modules >= %{_kf6_version}
%if %{with exr}
BuildRequires: openexr-devel
%endif
BuildRequires: cmake(KF6Archive) >= %{_kf6_version}
BuildRequires: cmake(Qt6Gui) >= %{qt6_version}
BuildRequires: cmake(Qt6PrintSupport) >= %{qt6_version}
BuildRequires: cmake(Qt6Test) >= %{qt6_version}
%if %{with avif}
BuildRequires: cmake(libavif) >= 0.8.2
%endif
%if %{with heif}
BuildRequires: cmake(libheif) >= 1.10.0
%endif
%if %{with jp2}
BuildRequires: cmake(OpenJPEG)
%endif
%if %{with jxl}
BuildRequires: pkgconfig(libjxl) >= 0.9.4
BuildRequires: pkgconfig(libjxl_cms) >= 0.9.4
BuildRequires: pkgconfig(libjxl_threads) >= 0.9.4
%endif
BuildRequires: pkgconfig(libraw)
BuildRequires: pkgconfig(libraw_r)

Requires: qt6-qtimageformats >= %{qt6_version}

%description
This framework provides additional image format plugins for QtGui. As
such it is not required for the compilation of any other software, but
may be a runtime requirement for Qt-based software to support certain
image formats.

%package eps
Summary: EPS image format plugin for Qt
Requires: ghostscript

%description eps
This plugin provides support for the EPS document format for QtGui. As
it invokes ghostscript for conversion, it should only be used in trusted
environments.

%package devel
Summary: Development files for kimageformats
Requires: %{name}%{?_isa} = %{version}-%{release}

%description devel
This package contains development files for kimageformats, a framework
to provide additional image format plugins for QtGui.

%files
%license LICENSES/*
%dir %{_kf6_plugindir}/imageformats
%{_kf6_plugindir}/imageformats/kimg_ani.so
%if %{with avif}
%{_kf6_plugindir}/imageformats/kimg_avif.so
%endif
%{_kf6_plugindir}/imageformats/kimg_dds.so
%if %{with exr}
%{_kf6_plugindir}/imageformats/kimg_exr.so
%endif
%{_kf6_plugindir}/imageformats/kimg_hdr.so
%if %{with heif}
%{_kf6_plugindir}/imageformats/kimg_heif.so
%endif
%if %{with jxl}
%{_kf6_plugindir}/imageformats/kimg_jxl.so
%endif
%if %{with jp2}
%{_kf6_plugindir}/imageformats/kimg_jp2.so
%endif
%{_kf6_plugindir}/imageformats/kimg_kra.so
%{_kf6_plugindir}/imageformats/kimg_iff.so
%{_kf6_plugindir}/imageformats/kimg_ora.so
%{_kf6_plugindir}/imageformats/kimg_pcx.so
%{_kf6_plugindir}/imageformats/kimg_pfm.so
%{_kf6_plugindir}/imageformats/kimg_pic.so
%{_kf6_plugindir}/imageformats/kimg_psd.so
%{_kf6_plugindir}/imageformats/kimg_pxr.so
%{_kf6_plugindir}/imageformats/kimg_qoi.so
%{_kf6_plugindir}/imageformats/kimg_ras.so
%{_kf6_plugindir}/imageformats/kimg_raw.so
%{_kf6_plugindir}/imageformats/kimg_rgb.so
%{_kf6_plugindir}/imageformats/kimg_sct.so
%{_kf6_plugindir}/imageformats/kimg_tga.so
%{_kf6_plugindir}/imageformats/kimg_xcf.so

%files eps
%license LICENSES/*
%dir %{_kf6_plugindir}/imageformats
%{_kf6_plugindir}/imageformats/kimg_eps.so

%files devel
%{_kf6_cmakedir}/KF6ImageFormats/

%changelog
%autochangelog
Loading
Loading