Accepting request 1116096 from M17N
OBS-URL: https://build.opensuse.org/request/show/1116096 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/groff?expand=0&rev=68
This commit is contained in:
commit
8e4896380f
@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 4 23:01:54 UTC 2023 - Luciano Santos <luc14n0@opensuse.org>
|
||||||
|
|
||||||
|
- Define ext_man="%{?ext_man}%{!?ext_man:.gz}" shell variable in
|
||||||
|
the install directive, and replace "%{?ext_man}" with
|
||||||
|
"${ext_man:-}" to fix groff-gf.7.gz file ending up uncompressed
|
||||||
|
(despite the name) due to the use of %{?ext_man} in the mv/ln
|
||||||
|
TARGET parameter used for the preparation of Alternatives. Also
|
||||||
|
define a simple shell contruct which identifies whether the
|
||||||
|
manpage file is compressed. If not, it unsets the $ext_man
|
||||||
|
variable, then ajdusting the mv/ln calls. That's all necessary
|
||||||
|
because even though ext_man macro is defined, it doesn't mean the
|
||||||
|
file has the extension (which dependes whether the build script
|
||||||
|
compresses it).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Sep 8 19:42:28 UTC 2023 - Antonio Teixeira <antonio.teixeira@suse.com>
|
Fri Sep 8 19:42:28 UTC 2023 - Antonio Teixeira <antonio.teixeira@suse.com>
|
||||||
|
|
||||||
|
15
groff.spec
15
groff.spec
@ -193,10 +193,17 @@ rm -f %{buildroot}%{_mandir}/man1/troff.1*
|
|||||||
# Prepare alternatives
|
# Prepare alternatives
|
||||||
find %{buildroot}%{_mandir}
|
find %{buildroot}%{_mandir}
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||||
mv -v %{buildroot}%{_mandir}/man7/roff.7* \
|
|
||||||
%{buildroot}%{_mandir}/man7/roff-gf.7%{?ext_man}
|
## This construct should help identify whether the manpage is compressed,
|
||||||
ln -s -f %{_sysconfdir}/alternatives/roff.7%{?ext_man} \
|
## and the mv/ln TARGET parameter should be adjusted accordingly.
|
||||||
%{buildroot}%{_mandir}/man7/roff.7%{?ext_man}
|
ext_man="%{?ext_man}%{!?ext_man:.gz}"
|
||||||
|
manfile="$(find %{buildroot}%{_mandir}/man7/ -type f -name "roff.7${ext_man}")"
|
||||||
|
test -z "${manfile}" && unset ext_man
|
||||||
|
|
||||||
|
mv -v "%{buildroot}%{_mandir}/man7/roff.7${ext_man:-}" \
|
||||||
|
"%{buildroot}%{_mandir}/man7/roff-gf.7${ext_man:-}"
|
||||||
|
ln -s -f "%{_sysconfdir}/alternatives/roff.7${ext_man:-}" \
|
||||||
|
"%{buildroot}%{_mandir}/man7/roff.7${ext_man:-}"
|
||||||
# full_build
|
# full_build
|
||||||
%else
|
%else
|
||||||
# fix permission for devps/generate/afmname
|
# fix permission for devps/generate/afmname
|
||||||
|
Loading…
Reference in New Issue
Block a user