Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
8802d287c2
!38 update mtr version to 0.95
From: @yangl777 
Reviewed-by: @seuzw 
Signed-off-by: @seuzw
2022-10-31 06:27:47 +00:00
yangl777
c28e6e7163 update mtr version to 0.95 2022-10-31 06:06:01 +00:00
openeuler-ci-bot
22777f3c9e
!35 [sync] PR-34: fix changing source failed
From: @openeuler-sync-bot 
Reviewed-by: @zengwefeng 
Signed-off-by: @zengwefeng
2022-08-12 02:07:27 +00:00
liyunqing
1b07d88645 fix changing source failed
(cherry picked from commit 2911b40a691876ef5f33e1ae26c6823145cce979)
2022-08-11 19:28:03 +08:00
openeuler-ci-bot
17b19bad06
!33 [sync] PR-31: fix xmtr cannot start in xface4 environment
From: @openeuler-sync-bot 
Reviewed-by: @seuzw 
Signed-off-by: @seuzw
2022-08-10 02:29:46 +00:00
liyunqing_kl
77a252abdf fix xmtr cannot start in Xface4 environment
(cherry picked from commit 915a6f12e4280f5306d84f71c36f933421441c84)
2022-08-09 15:46:17 +08:00
openeuler-ci-bot
9c61c96687
!28 add macros to control if detach the GTK package from the master package
From: @eaglegai 
Reviewed-by: @kircher 
Signed-off-by: @kircher
2022-06-25 11:57:15 +00:00
eaglegai
a19a5abac3 add macros to control if detach the GTK package from the master package 2022-06-25 17:26:35 +08:00
openeuler-ci-bot
b9f860d22b
!24 [sync] PR-23: fix for printw error
From: @openeuler-sync-bot 
Reviewed-by: @zengwefeng 
Signed-off-by: @zengwefeng
2022-03-11 02:11:21 +00:00
zhang__3125
546fc995aa fix for printw error
(cherry picked from commit 1adcfb5d15871f4fb44a802e3ed003a134d243a2)
2022-03-10 20:47:23 +08:00
5 changed files with 56 additions and 9 deletions

Binary file not shown.

BIN
mtr-0.95.tar.gz Normal file

Binary file not shown.

View File

@ -7,4 +7,4 @@ if [ "$XDG_SESSION_TYPE" = wayland ]; then
exit 1
fi
/usr/bin/pkexec /usr/bin/xmtr.bin
/usr/bin/pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /usr/bin/xmtr.bin

View File

@ -1,8 +1,8 @@
%global _hardened_build 1
Name: mtr
Version: 0.94
Release: 2
Version: 0.95
Release: 1
Epoch: 2
Summary: Ping and Traceroute Network Diagnostic Tool
License: GPLv2 and BSD
@ -10,11 +10,12 @@ URL: https://www.bitwizard.nl/mtr/
Source0: https://github.com/traviscross/mtr/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: net-x%{name}.desktop
Source2: mtr-gtk-pkexec-wrapper.sh
BuildRequires: git autoconf automake libtool ncurses-devel gtk3-devel desktop-file-utils
BuildRequires: git autoconf automake libtool ncurses-devel gtk2-devel desktop-file-utils
%if %{?openEuler:1}0
Provides: %{name}-gtk = %{epoch}:%{version}-%{release}
Obsoletes: %{name}-gtk < %{epoch}:%{version}-%{release}
%endif
%description
It is a network diagnostic tool,it has the "ping" and "traceroute" features.
@ -22,10 +23,22 @@ It prints information about the route and packets that sent from the host to
the specified destination system.This tool can also print the response times
and percentage for all network hops between the systems.
%if %{!?openEuler:1}0
%package gtk
Summary: GTK interface for MTR
Group: Applications/Internet
Requires: %{name} = %{epoch}:%{version}-%{release}
%description gtk
MTR combines the functionality of the 'traceroute' and 'ping' programs
in a single network diagnostic tool. The mtr-gtk package provides the
GTK interface for MTR.
%endif
%package_help
%prep
%autosetup -n %{name}-%{version}
%autosetup -n %{name}-%{version} -p1
%build
export CFLAGS="%{optflags} -fPIE"
@ -54,10 +67,18 @@ make test
%files
%license COPYING BSDCOPYING
%doc AUTHORS FORMATS
%if %{?openEuler:1}0
%caps(cap_net_raw=pe)
%{_bindir}/xmtr*
%{_sbindir}/%{name}
%{_sbindir}/%{name}-packet
%else
%caps(cap_net_raw=pe) %{_sbindir}/%{name}
%caps(cap_net_raw=pe) %{_sbindir}/%{name}-packet
%files gtk
%{_bindir}/xmtr*
%endif
%{_datadir}/pixmaps/mtr_icon.xpm
%{_datadir}/applications/net-x%{name}.desktop
%{_datadir}/bash-completion/completions/%{name}
@ -68,10 +89,36 @@ make test
%{_mandir}/man8/*
%changelog
* Wed Mar 3 2021 lin.zhang <lin.zhang@turbolinux.com.cn> - 0.94-2
* Sat Oct 29 2022 yanglu <yanglu72@h-partners> - 2:0.95-1
- Type:Requirement
- ID:NA
- SUG:NA
- DESC:update mtr version to 0.95
* Tue Aug 9 2022 liyunqing <liyunqing@kylinos.cn> - 2:0.94-6
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:backport patch to fix changing source failed
* Mon Jul 18 2022 liyunqing <liyunqing@kylinos.cn> - 2:0.94-5
- modify mtr-gtk-pkexec-wrapper.sh and net-xmtr.desktop
to fix xmtr cannot start in Xface4 environment
* Sat Jun 25 2022 gaihuiying <eaglegai@163.com> - 2:0.94-4
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:add macros to control if detach the GTK package from the master package
modify changelog to add epoch:2
* Fri Mar 11 2022 lin.zhang <lin.zhang@turbolinux.com.cn> - 2:0.94-3
- add patch fix_for_printw_error.patch
* Wed Mar 3 2021 lin.zhang <lin.zhang@turbolinux.com.cn> - 2:0.94-2
- modify net-xmtr.desktop file for Xfce4 Traceroute
* Tue Jan 26 2021 SimpleUpdate Robot <tc@openeuler.org> - 0.94-1
* Tue Jan 26 2021 SimpleUpdate Robot <tc@openeuler.org> - 2:0.94-1
- Upgrade to version 0.94
* Mon Jul 20 2020 cuibaobao <cuibaobao1@huawei.com> - 2:0.93-9

View File

@ -3,7 +3,7 @@ Name=Traceroute
Type=Application
Comment=Traces packets between two network hosts
Exec=xmtr
Terminal=true
Terminal=false
Icon=mtr_icon.xpm
Encoding=UTF-8
X-Desktop-File-Install-Version=0.2