Accepting request 758083 from M17N
OBS-URL: https://build.opensuse.org/request/show/758083 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/groff?expand=0&rev=59
This commit is contained in:
commit
133e36b4f7
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 16 15:53:33 CET 2019 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Add man page roff(7) to alternatives to avoid conflict with
|
||||||
|
mandoc.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 18 04:03:32 UTC 2019 - Marguerite Su <i@marguerite.su>
|
Mon Feb 18 04:03:32 UTC 2019 - Marguerite Su <i@marguerite.su>
|
||||||
|
|
||||||
|
24
groff.spec
24
groff.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package groff
|
# spec file for package groff
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -83,6 +83,10 @@ Obsoletes: jgroff < %{version}
|
|||||||
# X fonts were moved back
|
# X fonts were moved back
|
||||||
Provides: groff-devx = %{version}-%{release}
|
Provides: groff-devx = %{version}-%{release}
|
||||||
Obsoletes: groff-devx <= 1.21
|
Obsoletes: groff-devx <= 1.21
|
||||||
|
# alternatives
|
||||||
|
BuildRequires: update-alternatives
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
%else
|
%else
|
||||||
Recommends: groff-full
|
Recommends: groff-full
|
||||||
%endif
|
%endif
|
||||||
@ -183,6 +187,15 @@ rm -f %{buildroot}%{_mandir}/man1/preconv.1*
|
|||||||
rm -f %{buildroot}%{_mandir}/man1/soelim.1*
|
rm -f %{buildroot}%{_mandir}/man1/soelim.1*
|
||||||
rm -f %{buildroot}%{_mandir}/man1/tbl.1*
|
rm -f %{buildroot}%{_mandir}/man1/tbl.1*
|
||||||
rm -f %{buildroot}%{_mandir}/man1/troff.1*
|
rm -f %{buildroot}%{_mandir}/man1/troff.1*
|
||||||
|
|
||||||
|
# Prepare alternatives
|
||||||
|
find %{buildroot}%{_mandir}
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||||
|
mv -v %{buildroot}%{_mandir}/man7/roff.7* \
|
||||||
|
%{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
|
||||||
%else
|
%else
|
||||||
# fix permission for devps/generate/afmname
|
# fix permission for devps/generate/afmname
|
||||||
# used by ghostscript-fonts-grops
|
# used by ghostscript-fonts-grops
|
||||||
@ -228,6 +241,8 @@ ln -s -f tbl %{buildroot}%{_bindir}/gtbl
|
|||||||
# install profiles to disable the use of ANSI colour sequences by default:
|
# install profiles to disable the use of ANSI colour sequences by default:
|
||||||
install -d -m 0755 %{buildroot}/%{_sysconfdir}/profile.d
|
install -d -m 0755 %{buildroot}/%{_sysconfdir}/profile.d
|
||||||
install -m 644 %{SOURCE3} %{SOURCE4} %{buildroot}/%{_sysconfdir}/profile.d/
|
install -m 644 %{SOURCE3} %{SOURCE4} %{buildroot}/%{_sysconfdir}/profile.d/
|
||||||
|
|
||||||
|
# full_build
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%fdupes -s %{buildroot}
|
%fdupes -s %{buildroot}
|
||||||
@ -235,9 +250,15 @@ install -m 644 %{SOURCE3} %{SOURCE4} %{buildroot}/%{_sysconfdir}/profile.d/
|
|||||||
%if %{with full_build}
|
%if %{with full_build}
|
||||||
%post -n groff-full
|
%post -n groff-full
|
||||||
%install_info --info-dir=%{_infodir} %{_infodir}/groff.info.gz
|
%install_info --info-dir=%{_infodir} %{_infodir}/groff.info.gz
|
||||||
|
update-alternatives --install \
|
||||||
|
%{_mandir}/man7/roff.7%{?ext_man} roff.7%{?ext_man} \
|
||||||
|
%{_mandir}/man7/roff-gf.7%{?ext_man} 500
|
||||||
|
|
||||||
%preun -n groff-full
|
%preun -n groff-full
|
||||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/groff.info.gz
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/groff.info.gz
|
||||||
|
if [ $1 -eq 0 ] ; then
|
||||||
|
update-alternatives --remove man.7%{?ext_man} %{_mandir}/man7/man-gf.7%{?ext_man}
|
||||||
|
fi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if !%{with full_build}
|
%if !%{with full_build}
|
||||||
@ -299,6 +320,7 @@ install -m 644 %{SOURCE3} %{SOURCE4} %{buildroot}/%{_sysconfdir}/profile.d/
|
|||||||
%{_mandir}/man5/*
|
%{_mandir}/man5/*
|
||||||
%{_mandir}/man7/*
|
%{_mandir}/man7/*
|
||||||
%exclude %{_mandir}/man1/gxditview.1*
|
%exclude %{_mandir}/man1/gxditview.1*
|
||||||
|
%ghost %{_sysconfdir}/alternatives/roff.7%{?ext_man}
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%exclude %{_bindir}/gxditview
|
%exclude %{_bindir}/gxditview
|
||||||
%dir %{_datadir}/groff
|
%dir %{_datadir}/groff
|
||||||
|
Loading…
Reference in New Issue
Block a user