Create kf6-karchive.spec
This commit is contained in:
91
kf6-karchive/kf6-karchive.spec
Normal file
91
kf6-karchive/kf6-karchive.spec
Normal file
@@ -0,0 +1,91 @@
|
||||
%define qt6_version 6.8.0
|
||||
|
||||
%define rname karchive
|
||||
# Full KF6 version (e.g. 6.22.0)
|
||||
%{!?_kf6_version: %global _kf6_version %{version}}
|
||||
%bcond_without released
|
||||
Name: kf6-karchive
|
||||
Version: 6.20.0
|
||||
Release: 0
|
||||
Summary: Qt 6 addon providing access to numerous types of archives
|
||||
License: LGPL-2.0-or-later
|
||||
URL: https://www.kde.org
|
||||
Source: https://ftp.ntu.edu.tw/pub/kde/stable/frameworks/6.20/%{rname}-%{version}.tar.xz
|
||||
%endif
|
||||
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: 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 -n libKF6Archive6
|
||||
Summary: Qt 6 addon providing access to numerous types of archives
|
||||
Requires: kf6-karchive >= %{version}
|
||||
|
||||
%description -n libKF6Archive6
|
||||
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.
|
||||
|
||||
%lang_package -n libKF6Archive6
|
||||
|
||||
%package devel
|
||||
Summary: Development files for kf6-karchive
|
||||
Requires: libKF6Archive6 = %{version}
|
||||
|
||||
%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}
|
||||
|
||||
%find_lang kf6-karchive --with-man --all-name --with-qt
|
||||
|
||||
%ldconfig_scriptlets -n libKF6Archive6
|
||||
|
||||
%files
|
||||
%{_kf6_debugdir}/karchive.categories
|
||||
%{_kf6_debugdir}/karchive.renamecategories
|
||||
|
||||
%files -n libKF6Archive6
|
||||
%license LICENSES/*
|
||||
%doc README.md
|
||||
%{_kf6_libdir}/libKF6Archive.so.*
|
||||
|
||||
%files devel
|
||||
%{_kf6_includedir}/KArchive/
|
||||
%{_kf6_cmakedir}/KF6Archive/
|
||||
%{_kf6_libdir}/libKF6Archive.so
|
||||
|
||||
%files -n libKF6Archive6-lang -f kf6-karchive.lang
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user