代码拉取完成,页面将自动刷新
%global __cmake_builddir %{!?__cmake_in_source_build:%{_vpath_builddir}}%{?__cmake_in_source_build:.}
%global unstable 1
%global kf5min 5.92
%global qtmin 5.15.2
%global sover 12
Name: kpmcore
Version: 23.08.1
Release: 1
Summary: Library for managing partitions by KDE programs
License: GPL-3.0-or-later AND MIT AND CC-BY-4.0 AND CC0-1.0
URL: https://github.com/KDE/kpmcore
%if 0%{?unstable}
Source0: http://download.kde.org/unstable/release-service/%{version}/src/%{name}-%{version}.tar.xz
%else
Source0: http://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
%endif
BuildRequires: cmake >= 3.16
BuildRequires: extra-cmake-modules
BuildRequires: gettext
BuildRequires: kf5-kcoreaddons-devel >= %{kf5min}
BuildRequires: kf5-ki18n-devel >= %{kf5min}
BuildRequires: kf5-kwidgetsaddons-devel >= %{kf5min}
BuildRequires: qt5-qtbase-devel >= %{qtmin}
BuildRequires: kf5-rpm-macros
BuildRequires: pkgconfig
BuildRequires: pkgconfig(blkid) >= 2.33.2
BuildRequires: pkgconfig(polkit-qt5-1)
Requires: e2fsprogs
Requires: kf5-filesystem
Recommends: dosfstools
Recommends: exfatprogs
Recommends: f2fs-tools
Recommends: fatresize
Recommends: hfsutils
Recommends: hfsplus-tools
Recommends: jfsutils
Recommends: nilfs-utils
Recommends: ocfs2-tools
Recommends: udftools
%description
KPMcore contains common code for managing partitions by KDE Partition Manager
and other KDE projects
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: qt5-qtbase-devel
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}
%prep
%autosetup -p1
%build
%cmake_kf5
%__cmake --build "%{__cmake_builddir}" %{?_smp_mflags} --verbose
%install
DESTDIR="%{buildroot}" %__cmake --install "%{__cmake_builddir}"
%find_lang %{name}
%find_lang %{name}._policy_
%files -f %{name}.lang -f %{name}._policy_.lang
%license LICENSES/*
%doc README.md
%{_kf5_libdir}/libkpmcore.so.%{sover}
%{_kf5_libdir}/libkpmcore.so.%{version}
%{_kf5_qtplugindir}/kpmcore
%{_libexecdir}/kpmcore_externalcommand
%{_datadir}/dbus-1/system.d/org.kde.kpmcore.*.conf
%{_datadir}/dbus-1/system-services/org.kde.kpmcore.*.service
%{_datadir}/polkit-1/actions/org.kde.kpmcore.externalcommand.policy
%files devel
%{_includedir}/%{name}/
%{_kf5_libdir}/cmake/KPMcore
%{_kf5_libdir}/libkpmcore.so
%changelog
* Wed Oct 9 2024 Li Ping <liping136@huawei.com> - 23.08.1-1
- Initial
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。