98 lines
2.9 KiB
RPMSpec
98 lines
2.9 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 breeze-icons
|
|
# Some distros don't ship the icon cache helper macros; make them no-ops if missing
|
|
%{!?icon_theme_cache_create_ghost:%global icon_theme_cache_create_ghost() %{nil}}
|
|
# Full KF6 version (e.g. 6.22.0)
|
|
%{!?_kf6_version: %global _kf6_version %{version}}
|
|
|
|
Name: kf6-breeze-icons
|
|
Version: 6.22.0
|
|
Release: %autorelease
|
|
Summary: Breeze icon theme
|
|
License: LGPL-3.0-only
|
|
URL: https://www.kde.org
|
|
VCS: git:https://invent.kde.org/frameworks/breeze-icons
|
|
#!RemoteAsset
|
|
Source: https://download.kde.org/stable/frameworks/6.22/%{rname}-%{version}.tar.xz
|
|
|
|
BuildRequires: fdupes
|
|
BuildRequires: kf6-extra-cmake-modules >= %{_kf6_version}
|
|
BuildRequires: libxml2
|
|
# Skip 24px icons generation (saves ~30MB and installs dangling symlinks)
|
|
# BuildRequires: python3 python3-lxml
|
|
BuildRequires: cmake(Qt6Core) >= %{qt6_version}
|
|
BuildRequires: cmake(Qt6Gui) >= %{qt6_version}
|
|
|
|
%description
|
|
Breeze-icons is a freedesktop.org compatible icon theme.
|
|
|
|
%package rcc
|
|
Summary: Breeze icon theme - rcc file
|
|
|
|
%description rcc
|
|
Breeze-icons is a freedesktop.org compatible icon theme.
|
|
This contains the Breeze (non-dark) icons in a QResource file, used by Kexi.
|
|
|
|
%package devel
|
|
Summary: CMake config files for kf6-breeze-icons
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%description devel
|
|
This package provides CMake config files for projects that wish to ensure
|
|
the Breeze icons are available at build time.
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{rname}-%{version}
|
|
|
|
%build
|
|
%define _lto_cflags %{nil}
|
|
|
|
# kexi needs the icons resource
|
|
%cmake_kf6 \
|
|
-DBINARY_ICONS_RESOURCE:BOOL=TRUE \
|
|
-DWITH_ICON_GENERATION:BOOL=FALSE
|
|
|
|
%kf6_build
|
|
|
|
%install
|
|
%kf6_install
|
|
|
|
# yast2-theme uses these, but it got renamed in 5.55.0
|
|
ln -s yast-software-group.svg %{buildroot}%{_kf6_iconsdir}/breeze/preferences/32/yast-software.svg
|
|
|
|
%fdupes %{buildroot}%{_kf6_iconsdir}
|
|
|
|
%icon_theme_cache_create_ghost breeze
|
|
%icon_theme_cache_create_ghost breeze-dark
|
|
|
|
%files
|
|
%license COPYING*
|
|
%ghost %{_kf6_iconsdir}/breeze/icon-theme.cache
|
|
%ghost %{_kf6_iconsdir}/breeze-dark/icon-theme.cache
|
|
%exclude %{_kf6_iconsdir}/breeze/breeze-icons.rcc
|
|
%exclude %{_kf6_iconsdir}/breeze-dark/breeze-icons-dark.rcc
|
|
%{_kf6_iconsdir}/breeze/
|
|
%{_kf6_iconsdir}/breeze-dark/
|
|
%{_kf6_libdir}/libKF6BreezeIcons.so.*
|
|
|
|
%files rcc
|
|
%dir %{_kf6_iconsdir}/breeze
|
|
# Kexi does not need the -dark variant.
|
|
%{_kf6_iconsdir}/breeze/breeze-icons.rcc
|
|
# No dark rcc built/installed in this config
|
|
|
|
%files devel
|
|
%{_kf6_cmakedir}/KF6BreezeIcons/
|
|
%{_kf6_includedir}/BreezeIcons/
|
|
%{_kf6_libdir}/libKF6BreezeIcons.so
|
|
|
|
%changelog
|
|
%{?autochangelog}
|