Compare commits

...

7 Commits

Author SHA1 Message Date
3e67c07cfe Import from AlmaLinux stable repository 2024-05-31 18:09:37 +00:00
CentOS Sources
b7a189460a import smc-tools-1.8.2-1.el8 2023-05-17 03:10:22 +00:00
CentOS Sources
3eb3604a08 import smc-tools-1.8.1-1.gitbbf7e8c.el8 2022-11-08 15:14:25 +00:00
CentOS Sources
4eca72a8b8 import smc-tools-1.6.1-1.git7202891.el8 2022-05-10 11:52:37 +00:00
CentOS Sources
c544a695ad import smc-tools-1.6.0-3.git393dd23.el8 2021-12-08 12:33:42 +00:00
CentOS Sources
1717e4d48a import smc-tools-1.4.0-3.git71c863a.el8 2021-09-10 04:38:31 +00:00
CentOS Sources
8f8309f6d0 import smc-tools-1.3.0-1.el8 2021-09-10 04:38:29 +00:00
4 changed files with 101 additions and 17 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/smc-tools-1.2.2.tar.gz
SOURCES/1.8.3.tar.gz

View File

@ -1 +0,0 @@
da21b2c721cff79c7c671ac93a134cd8360eb7dd SOURCES/smc-tools-1.2.2.tar.gz

View 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

View File

@ -1,51 +1,107 @@
%define debug_package %{nil}
Name: smc-tools
Version: 1.2.2
Release: 3%{?dist}
Version: 1.8.3
Release: 1%{?dist}
Summary: Shared Memory Communication Tools
License: EPL
URL: https://www.ibm.com/developerworks/linux/linux390/smc-tools.html
Source0: https://public.dhe.ibm.com/software/dw/linux390/ht_src/%{name}-%{version}.tar.gz
Requires: man
BuildRequires: gcc
BuildRequires: libnl3-devel
BuildRequires: bash-completion
Source0: https://github.com/ibm-s390-linux/%{name}/archive/refs/tags/%{version}.tar.gz
Patch0: smc-tools-1.6.0-smc_chk-py3.patch
%description
The Shared Memory Communication Tools (smc-tools) package enables usage of SMC
sockets in Linux.
%prep
%autosetup
%forgesetup
%patch0 -p1
%build
%make_build CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" V=1
%make_build CFLAGS="%{build_cflags} -I%{_includedir}/libnl3" LDFLAGS="%{build_ldflags}" V=1
%install
%make_install V=1
%files
%license LICENSE
%doc README.smctools
%doc README.md
%{_datadir}/bash-completion/
%{_mandir}/man7/af_smc.7.gz
%{_mandir}/man8/smc*
%{_bindir}/smc_pnet
%{_bindir}/smc_run
%{_bindir}/smcss
%{_bindir}/smcd
%{_bindir}/smcr
%{_bindir}/smc_dbg
%ifarch s390x
%{_bindir}/smc_rnics
%{_mandir}/man8/smc_rnics.8*
%{_bindir}/smc_chk
%endif
%{_bindir}/smc_dbg
%{_libdir}/libsmc-preload.so*
%{_mandir}/man7/af_smc.7*
%{_mandir}/man8/smc_pnet.8*
%{_mandir}/man8/smc_run.8*
%{_mandir}/man8/smcss.8*
%changelog
* Mon Oct 09 2023 Čestmír Kalina <ckalina@redhat.com> - 1.8.3-1
- Resolves: RHEL-11417 Upgrade smc-tools to latest version
- smc_stats: Fix man page name
- Bump version.
* Mon Dec 05 2022 Čestmír Kalina <ckalina@redhat.com> - 1.8.2-1
- Resolves: #2110414 Upgrade smc-tools to latest version
* Thu Jun 23 2022 Čestmír Kalina <ckalina@redhat.com> - 1.8.1-1
- Upgrade smc-tools to latest version
- Add User-defined EID (Enterprise ID) Support
- Resolves: #1919228
- Resolves: #2043841
* Mon Oct 18 2021 Čestmír Kalina <ckalina@redhat.com> - 1.6.1-1
- Upgrade smc-tools to latest version
- Resolves: #1984975
* Fri Jul 16 2021 Čestmír Kalina <ckalina@redhat.com> - 1.6.0-3
- Patch stats.c to fix overruns
- Patch stats.c to fix leaks
- Patch stats.c to fix fallback counter values
- Resolves: #1993469
* 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
- Resolves: #1869292 Statistics Support - smc-tools part
- Resolves: #1919225 Add SMC-D Setup Check (smc-tools)
- Resolves: #1919240 Upgrade smc-tools to latest version
* Wed Feb 10 2021 Čestmír Kalina <ckalina@redhat.com> - 1.5.0-2
- Resolves: #1924787
- Add python3/man requires
* Mon Feb 08 2021 Čestmír Kalina <ckalina@redhat.com> - 1.5.0-1
- Resolves: #1924787
- Upgrade to 1.5.0
* Mon Jan 04 2021 Čestmír Kalina <ckalina@redhat.com> - 1.4.0-3
- Resolves: #1879128
- Add bash-completion to build requires
* Mon Jan 04 2021 Čestmír Kalina <ckalina@redhat.com> - 1.4.0-1
- Resolves: #1851143
- Update to 1.4.0
- Explicitly state libnl3 in include path
* Tue Jun 23 2020 Čestmír Kalina <ckalina@redhat.com> - 1.3.0-1
- Resolves: #1780304
- Update to 1.3.0
* Wed Nov 06 2019 Čestmír Kalina <ckalina@redhat.com> - 1.2.2-3
- Resolves: rhbz#1726264
- Release bump to force brew rebuild due to tagging failure.