diff options
author | CoprDistGit <infra@openeuler.org> | 2023-07-21 06:40:39 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-07-21 06:40:39 +0000 |
commit | 81110e15c411188ace2ba06e55c86af2b37b1a49 (patch) | |
tree | caf4d875438d7b69fec463f9ee2bc48c9154acce | |
parent | 4d637b310dbad9b659ef47fae5ef3c4c858af7f2 (diff) |
automatic import of plasma-drkonqiopeneuler23.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | drkonqi-installdbgsymbols.patch | 37 | ||||
-rw-r--r-- | plasma-drkonqi.spec | 93 | ||||
-rw-r--r-- | sources | 1 |
4 files changed, 132 insertions, 0 deletions
@@ -0,0 +1 @@ +/drkonqi-5.23.4.tar.xz diff --git a/drkonqi-installdbgsymbols.patch b/drkonqi-installdbgsymbols.patch new file mode 100644 index 0000000..25e726e --- /dev/null +++ b/drkonqi-installdbgsymbols.patch @@ -0,0 +1,37 @@ +diff --git a/src/doc/examples/installdbgsymbols_fedora.sh b/src/doc/examples/installdbgsymbols_fedora.sh +index 4a1254a..7ac3f91 100644 +--- a/src/doc/examples/installdbgsymbols_fedora.sh ++++ b/src/doc/examples/installdbgsymbols_fedora.sh +@@ -27,12 +27,12 @@ run_in_terminal() + mkfifo $fifo + + # start terminal +- konsole -e sh -c "echo \$\$ > $fifo; $1; exit_status=\$?; sleep 1; rm $fifo; echo \$exit_status > $fifo" & ++ konsole -e sh -c "echo \$\$ > $fifo; set -x ; $1; exit_status=\$?; sleep 10; rm $fifo; echo \$exit_status > $fifo" & + + # wait for it to finish + local pid=`cat $fifo` + while [ "$?" = "0" ]; do +- sleep 1 ++ sleep 10 + kill -0 $pid 2>/dev/null + done + +@@ -65,7 +65,7 @@ check_dep() + fi + } + +-check_dep debuginfo-install ++# check_dep debuginfo-install + check_dep konsole + + # start searching for packages +@@ -80,7 +80,7 @@ done + # filter out duplicates + packages=`echo "$packages" | tr " " "\n" | sort | uniq | tr "\n" " "` + +-run_in_terminal "su -c \"debuginfo-install $packages\"" ++run_in_terminal "pkexec dnf debuginfo-install $packages" + + if [ "$?" = "1" ]; then + exit 3 diff --git a/plasma-drkonqi.spec b/plasma-drkonqi.spec new file mode 100644 index 0000000..620d86a --- /dev/null +++ b/plasma-drkonqi.spec @@ -0,0 +1,93 @@ +%undefine __cmake_in_source_build + +%global base_name drkonqi + +Name: plasma-drkonqi +Summary: DrKonqi crash handler for KF5/Plasma5 +Version: 5.23.4 +Release: 1 + +License: GPLv2+ +URL: https://cgit.kde.org/%{base_name}.git + +%global revision %(echo %{version} | cut -d. -f3) +%if %{revision} >= 50 +%global stable unstable +%else +%global stable stable +%endif +Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{base_name}-%{version}.tar.xz + +Patch52: drkonqi-installdbgsymbols.patch + +BuildRequires: extra-cmake-modules +BuildRequires: kf5-rpm-macros +BuildRequires: qt5-qtbase-devel + +BuildRequires: cmake(KF5CoreAddons) +BuildRequires: cmake(KF5I18n) +BuildRequires: cmake(KF5Notifications) +BuildRequires: cmake(KF5Service) +BuildRequires: cmake(KF5ConfigWidgets) +BuildRequires: cmake(KF5JobWidgets) +BuildRequires: cmake(KF5KIO) +BuildRequires: cmake(KF5Crash) +BuildRequires: cmake(KF5XmlRpcClient) +BuildRequires: cmake(KF5Wallet) +BuildRequires: cmake(KF5WindowSystem) +BuildRequires: cmake(KF5IdleTime) +BuildRequires: cmake(KF5SyntaxHighlighting) +BuildRequires: cmake(Qt5X11Extras) + +Obsoletes: plasma-workspace-drkonqi < 5.10.95 +Provides: plasma-workspace-drkonqi = %{version}-%{release} + +Requires: (dnf-command(debuginfo-install) if dnf) +Requires: konsole5 +Requires: polkit + +Requires(post): policycoreutils + +%description +%{summary} + + +%prep +%setup -q -n %{base_name}-%{version} + +%patch52 -p1 -b .installdgbsymbols + +%build +mkdir %{_target_platform} +pushd %{_target_platform} +%{cmake_kf5} .. +popd +%make_build -C %{_target_platform} + +%install +make install/fast DESTDIR=%{buildroot} -C %{_target_platform} + +install -p -D -m755 src/doc/examples/installdbgsymbols_fedora.sh \ + %{buildroot}%{_libexecdir}/installdbgsymbols.sh + +%find_lang all --with-html --with-qt --all-name +grep drkonqi5.mo all.lang > plasma-drkonqi.lang + +%post +if [ -z "$KDE_DEBUG" ] ; then +if [ "`getsebool deny_ptrace 2>/dev/null`" == 'deny_ptrace --> on' ] ; then + setsebool -P deny_ptrace off &> /dev/null || : +fi +fi + +%files -f plasma-drkonqi.lang +%license LICENSES/* +%{_libexecdir}/drkonqi +%{_libexecdir}/installdbgsymbols.sh +%{_kf5_datadir}/drkonqi/ +%{_kf5_datadir}/applications/org.kde.*.desktop +%{_kf5_datadir}/qlogging-categories5/drkonqi.categories + +%changelog +* Tue Jul 19 2022 misaka00251 <misaka00251@misakanet.cn> - 5.23.4-1 +- Init package (Thanks to fedora team) @@ -0,0 +1 @@ +8a105673248c94dd7d67345e5015cfa1 drkonqi-5.23.4.tar.xz |