import smc-tools-1.6.0-2.git393dd23.el8
This commit is contained in:
parent
9d503a3271
commit
afb32566f4
29
SOURCES/smc-tools-1.6.0-smc_chk-py3.patch
Normal file
29
SOURCES/smc-tools-1.6.0-smc_chk-py3.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
--- a/smc_chk 2021-07-02 12:23:56.000000000 +0200
|
||||||
|
+++ b/smc_chk 2021-07-16 14:48:40.988000000 +0200
|
||||||
|
@@ -108,7 +108,7 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
function is_python3_available() {
|
||||||
|
- if ! which python3 >/dev/null; then
|
||||||
|
+ if ! which /usr/libexec/platform-python >/dev/null; then
|
||||||
|
echo "Error: python3 is not available";
|
||||||
|
signal_handler;
|
||||||
|
fi
|
||||||
|
@@ -124,7 +124,7 @@
|
||||||
|
port6=`get_free_port $(expr $port + 1)`;
|
||||||
|
srv=`mktemp /tmp/echo-srv.XXXXXX`;
|
||||||
|
cat <<-EOF > $srv
|
||||||
|
-#!/usr/bin/env python3
|
||||||
|
+#!/usr/libexec/platform-python
|
||||||
|
|
||||||
|
import argparse
|
||||||
|
import signal
|
||||||
|
@@ -171,7 +171,7 @@
|
||||||
|
is_python3_available;
|
||||||
|
clt=`mktemp /tmp/echo-clt.XXXXXX`;
|
||||||
|
cat <<-EOF > $clt
|
||||||
|
-#!/usr/bin/env python3
|
||||||
|
+#!/usr/libexec/platform-python
|
||||||
|
|
||||||
|
import argparse
|
||||||
|
import socket
|
@ -9,13 +9,12 @@
|
|||||||
|
|
||||||
Name: smc-tools
|
Name: smc-tools
|
||||||
Version: 1.6.0
|
Version: 1.6.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Shared Memory Communication Tools
|
Summary: Shared Memory Communication Tools
|
||||||
|
|
||||||
License: EPL
|
License: EPL
|
||||||
URL: https://www.ibm.com/developerworks/linux/linux390/smc-tools.html
|
URL: https://www.ibm.com/developerworks/linux/linux390/smc-tools.html
|
||||||
|
|
||||||
Requires: python3
|
|
||||||
Requires: man
|
Requires: man
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: libnl3-devel
|
BuildRequires: libnl3-devel
|
||||||
@ -23,12 +22,15 @@ BuildRequires: bash-completion
|
|||||||
|
|
||||||
Source0: https://github.com/ibm-s390-tools/smc-tools/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
Source0: https://github.com/ibm-s390-tools/smc-tools/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
||||||
|
|
||||||
|
Patch0: smc-tools-1.6.0-smc_chk-py3.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Shared Memory Communication Tools (smc-tools) package enables usage of SMC
|
The Shared Memory Communication Tools (smc-tools) package enables usage of SMC
|
||||||
sockets in Linux.
|
sockets in Linux.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%forgesetup
|
%forgesetup
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%make_build CFLAGS="%{build_cflags} -I%{_includedir}/libnl3" LDFLAGS="%{build_ldflags}" V=1
|
%make_build CFLAGS="%{build_cflags} -I%{_includedir}/libnl3" LDFLAGS="%{build_ldflags}" V=1
|
||||||
@ -56,6 +58,10 @@ sockets in Linux.
|
|||||||
%{_libdir}/libsmc-preload.so*
|
%{_libdir}/libsmc-preload.so*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 16 2021 Čestmír Kalina <ckalina@redhat.com> - 1.6.0-2
|
||||||
|
- Patch smc_chk to use platform-python
|
||||||
|
- Resolves: #1981727
|
||||||
|
|
||||||
* Fri Jul 02 2021 Čestmír Kalina <ckalina@redhat.com> - 1.6.0-1
|
* Fri Jul 02 2021 Čestmír Kalina <ckalina@redhat.com> - 1.6.0-1
|
||||||
- Resolves: #1869292 Statistics Support - smc-tools part
|
- Resolves: #1869292 Statistics Support - smc-tools part
|
||||||
- Resolves: #1919225 Add SMC-D Setup Check (smc-tools)
|
- Resolves: #1919225 Add SMC-D Setup Check (smc-tools)
|
||||||
|
Loading…
Reference in New Issue
Block a user