Compress man page and fix its name
Resolves: RHEL-96490
This commit is contained in:
parent
5c5559450d
commit
7a9672af5c
@ -25,11 +25,11 @@
|
||||
|
||||
%if %have_scl_utils
|
||||
%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
|
||||
%else
|
||||
%global long_name GCC Toolset %gts_ver
|
||||
%global version_string %{?scl_name}
|
||||
%global version_string GCC-Toolset %{gts_ver}
|
||||
%include %{_sourcedir}/macros.gts
|
||||
%endif
|
||||
%{?scl_package:%scl_package %scl}
|
||||
@ -37,7 +37,7 @@ BuildRequires: scl-utils-build
|
||||
Summary: Package that installs %scl
|
||||
Name: %scl_name
|
||||
Version: %{gts_ver}.0
|
||||
Release: 8%{?dist}
|
||||
Release: 9%{?dist}
|
||||
License: GPLv2+
|
||||
Group: Applications/File
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
@ -123,6 +123,7 @@ EOF
|
||||
chmod a+x h2m_helper
|
||||
# Generate the man page.
|
||||
help2man -N --section 7 ./h2m_helper -o %{?scl_name}.7
|
||||
gzip %{?scl_name}.7
|
||||
|
||||
# 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 -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
|
||||
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
|
||||
%endif
|
||||
|
||||
@ -264,6 +265,9 @@ fi
|
||||
%endif
|
||||
|
||||
%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
|
||||
- Fix typo in gcc-toolset-env (RHEL-94760)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user