Update kf6-kpty.spec

This commit is contained in:
2026-02-27 16:33:11 +08:00
parent 8b5696d01d
commit df76551073

View File

@@ -28,18 +28,9 @@ This library provides primitives to interface with pseudo terminal devices
as well as a KProcess derived class for running child processes and
communicating with them using a pty.
%package -n libKF6Pty6
Summary: Interfacing with pseudo terminal devices
Requires: kf6-kpty >= %{version}
%description -n libKF6Pty6
This library provides primitives to interface with pseudo terminal devices
as well as a KProcess derived class for running child processes and
communicating with them using a pty.
%package devel
Summary: Development files for kpty, a pseudo terminal device interface
Requires: libKF6Pty6 = %{version}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: cmake(Qt6Core) >= %{qt6_version}
%description devel
@@ -47,8 +38,6 @@ This library provides primitives to interface with pseudo terminal devices
as well as a KProcess derived class for running child processes and
communicating with them using a pty.
%lang_package -n libKF6Pty6
%prep
%autosetup -p1 -n %{rname}-%{version}
@@ -60,24 +49,25 @@ communicating with them using a pty.
%install
%kf6_install
# 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} --with-qt --all-name --generate-subpackages
%fdupes %{buildroot}
%find_lang kpty6
%ldconfig_scriptlets -n libKF6Pty6
%ldconfig_scriptlets -n %{name}-devel
%files
%{_kf6_debugdir}/kpty.categories
%files -n libKF6Pty6
%files devel
%license LICENSES/*
%{_kf6_libdir}/libKF6Pty.so.*
%files devel
%{_kf6_includedir}/KPty/
%{_kf6_cmakedir}/KF6Pty/
%{_kf6_libdir}/libKF6Pty.so
%files -n libKF6Pty6-lang -f kpty6.lang
%changelog