split a sub-package groff-x11

This commit is contained in:
rwx403335 2022-03-15 14:36:27 +08:00
parent 03627ffc8b
commit 7b0795aaa4

View File

@ -1,7 +1,8 @@
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\([^.]*\\.pl\\)
%{!?with_x:%global with_x 1}
Name: groff
Version: 1.22.4
Release: 8
Release: 9
Summary: A typesetting system
License: GPLv3+ and GFDL and BSD and MIT
URL: http://www.gnu.org/software/groff/
@ -47,6 +48,23 @@ Requires: groff = %{version}-%{release}
Obsoletes: %{name}-doc < %{version}-%{release}
Provides: %{name}-doc
%if %{with_x}
%package x11
Summary: Parts of the groff formatting system that require X Windows System
Requires: groff-base = %{version}-%{release}
BuildRequires: libXaw-devel, libXmu-devel
Provides: groff-gxditview = %{version}-%{release}
Obsoletes: groff-gxditview < 1.20.1
Conflicts: groff < 1.22.4-8
%description x11
The groff-x11 package contains the parts of the groff text processor
package that require X Windows System. These include gxditview (display
groff intermediate output files on X Windows System display) and
xtotroff (converts X font metrics into groff font metrics).
%endif
%description help
Man pages and other related documents for %{name}.
@ -114,8 +132,6 @@ make check
%files
%defattr(-,root,root)
%{_datadir}/X11/app-defaults/GXditview
%{_datadir}/X11/app-defaults/GXditview-color
%{_datadir}/%{name}/%{version}/font/devX*/
%{_datadir}/%{name}/%{version}/tmac/X.tmac
%{_datadir}/%{name}/%{version}/tmac/Xps.tmac
@ -155,7 +171,6 @@ make check
%{_datadir}/%{name}/%{version}/tmac/spdf.tmac
%{_datadir}/%{name}/%{version}/tmac/trace.tmac
%{_datadir}/%{name}/%{version}/tmac/zh.tmac
%{_bindir}/gxditview
%{_bindir}/addftinfo
%{_bindir}/eqn2graph
%{_bindir}/gdiffmk
@ -192,7 +207,6 @@ make check
%{_bindir}/roff2ps
%{_bindir}/roff2text
%{_bindir}/roff2x
%{_bindir}/xtotroff
%files base
%license COPYING FDL LICENSES
@ -282,16 +296,33 @@ make check
%{_bindir}/zsoelim
%{_libdir}/groff/
%if %{with_x}
%files x11
# data
%{_datadir}/%{name}/%{version}/font/devX*/
%{_datadir}/%{name}/%{version}/tmac/X.tmac
%{_datadir}/%{name}/%{version}/tmac/Xps.tmac
%{_datadir}/X11/app-defaults/GXditview
%{_datadir}/X11/app-defaults/GXditview-color
# programs
%{_bindir}/gxditview
%{_bindir}/xtotroff
%endif
%files help
%defattr(-,root,root)
%{_mandir}/man1/
%{_mandir}/man5/
%{_mandir}/man7/
%doc %{_docdir}/%{name}-%{version}/
%exclude %{_docdir}/%{name}-%{version}/examples/mom/slide-demo.pdf
%doc BUG-REPORT MORE.STUFF NEWS PROBLEMS
%{_infodir}/groff.info*
%changelog
* Tue Mar 15 2022 renhognxun <renhongxun@h-partners.com> 1.22.4-9
- split a sub-package groff-x11
* Wed Sep 01 2021 Jianmin <jianmin@iscas.ac.cn> - 1.22.4-8
- move basic files into base package.