Compress man page and fix its name

Resolves: RHEL-96490
This commit is contained in:
Siddhesh Poyarekar 2025-06-20 05:44:30 -04:00 committed by Siddhesh Poyarekar
parent 5c5559450d
commit 7a9672af5c

View File

@ -25,11 +25,11 @@
%if %have_scl_utils %if %have_scl_utils
%global long_name %scl Software Collection %global long_name %scl Software Collection
%global version_string %{?scl_name} Software Collection %global version_string GCC-Toolset %{gts_ver} Software Collection
BuildRequires: scl-utils-build BuildRequires: scl-utils-build
%else %else
%global long_name GCC Toolset %gts_ver %global long_name GCC Toolset %gts_ver
%global version_string %{?scl_name} %global version_string GCC-Toolset %{gts_ver}
%include %{_sourcedir}/macros.gts %include %{_sourcedir}/macros.gts
%endif %endif
%{?scl_package:%scl_package %scl} %{?scl_package:%scl_package %scl}
@ -37,7 +37,7 @@ BuildRequires: scl-utils-build
Summary: Package that installs %scl Summary: Package that installs %scl
Name: %scl_name Name: %scl_name
Version: %{gts_ver}.0 Version: %{gts_ver}.0
Release: 8%{?dist} Release: 9%{?dist}
License: GPLv2+ License: GPLv2+
Group: Applications/File Group: Applications/File
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -123,6 +123,7 @@ EOF
chmod a+x h2m_helper chmod a+x h2m_helper
# Generate the man page. # Generate the man page.
help2man -N --section 7 ./h2m_helper -o %{?scl_name}.7 help2man -N --section 7 ./h2m_helper -o %{?scl_name}.7
gzip %{?scl_name}.7
# Enable collection script # Enable collection script
# ======================== # ========================
@ -193,10 +194,10 @@ install -p -m 755 enable %{buildroot}%{_root_prefix}/lib/gcc-toolset/%{gts_ver}-
# Install generated man page. # Install generated man page.
install -d -m 755 %{buildroot}%{_root_mandir}/man7 install -d -m 755 %{buildroot}%{_root_mandir}/man7
install -p -m 644 %{?scl_name}.7 %{buildroot}%{_root_mandir}/man7/ install -p -m 644 %{?scl_name}.7.gz %{buildroot}%{_root_mandir}/man7/
%if %have_scl_utils == 0 %if %have_scl_utils == 0
pushd %{buildroot}%{_root_mandir}/man7/ pushd %{buildroot}%{_root_mandir}/man7/
ln -s ./%{?scl_name}.7 gcc-toolset-%{gts_ver}-env.7 ln -s ./%{?scl_name}.7.gz gcc-toolset-%{gts_ver}-env.7.gz
popd popd
%endif %endif
@ -264,6 +265,9 @@ fi
%endif %endif
%changelog %changelog
* Fri Jun 20 2025 Siddhesh Poyarekar <siddhesh@redhat.com> - 15.0-9
- Compress man page and fix its name (RHEL-96490)
* Wed Jun 11 2025 Siddhesh Poyarekar <siddhesh@redhat.com> - 15.0-8 * Wed Jun 11 2025 Siddhesh Poyarekar <siddhesh@redhat.com> - 15.0-8
- Fix typo in gcc-toolset-env (RHEL-94760) - Fix typo in gcc-toolset-env (RHEL-94760)