90 lines
2.6 KiB
RPMSpec
90 lines
2.6 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 karchive
|
|
# Full KF6 version (e.g. 6.22.0)
|
|
%{!?_kf6_version: %global _kf6_version %{version}}
|
|
|
|
Name: kf6-karchive
|
|
Version: 6.22.0
|
|
Release: %autorelease
|
|
Summary: Qt 6 addon providing access to numerous types of archives
|
|
License: LGPL-2.0-or-later
|
|
URL: https://www.kde.org
|
|
VCS: git:https://invent.kde.org/frameworks/karchive
|
|
#!RemoteAsset
|
|
Source: https://download.kde.org/stable/frameworks/6.22/%{rname}-%{version}.tar.xz
|
|
|
|
BuildRequires: fdupes
|
|
BuildRequires: kf6-extra-cmake-modules >= %{_kf6_version}
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: cmake(Qt6Core) >= %{qt6_version}
|
|
BuildRequires: cmake(Qt6LinguistTools) >= %{qt6_version}
|
|
BuildRequires: cmake(Qt6ToolsTools) >= %{qt6_version}
|
|
BuildRequires: qt6-tools
|
|
BuildRequires: qt6-doctools
|
|
BuildRequires: qt6-linguist
|
|
BuildRequires: pkgconfig(bzip2)
|
|
BuildRequires: pkgconfig(liblzma)
|
|
BuildRequires: pkgconfig(libzstd)
|
|
BuildRequires: pkgconfig(openssl)
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
%description
|
|
KArchive provides classes for easy reading, creation and manipulation of
|
|
"archive" formats like ZIP and TAR.
|
|
|
|
If also provides transparent compression and decompression of data, like the
|
|
GZip format, via a subclass of QIODevice.
|
|
|
|
%package devel
|
|
Summary: Development files for kf6-karchive
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%description devel
|
|
KArchive provides classes for easy reading, creation and manipulation of
|
|
"archive" formats like ZIP and TAR.
|
|
|
|
If also provides transparent compression and decompression of data, like the
|
|
GZip format, via a subclass of QIODevice. Development files
|
|
|
|
%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
|
|
%{_kf6_debugdir}/karchive.categories
|
|
%{_kf6_debugdir}/karchive.renamecategories
|
|
%{_kf6_libdir}/libKF6Archive.so.*
|
|
|
|
%files devel
|
|
%{_kf6_includedir}/KArchive/
|
|
%{_kf6_cmakedir}/KF6Archive/
|
|
%{_kf6_libdir}/libKF6Archive.so
|
|
|
|
%changelog
|
|
%{?autochangelog}
|