!25 split groff-x11 from main package

From: @renxichen 
Reviewed-by: @overweight 
Signed-off-by: @overweight
This commit is contained in:
openeuler-ci-bot 2022-03-18 09:46:53 +00:00 committed by Gitee
commit 59fe43571c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,7 +1,8 @@
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\([^.]*\\.pl\\) %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\([^.]*\\.pl\\)
%{!?with_x:%global with_x 1}
Name: groff Name: groff
Version: 1.22.4 Version: 1.22.4
Release: 8 Release: 9
Summary: A typesetting system Summary: A typesetting system
License: GPLv3+ and GFDL and BSD and MIT License: GPLv3+ and GFDL and BSD and MIT
URL: http://www.gnu.org/software/groff/ URL: http://www.gnu.org/software/groff/
@ -47,6 +48,23 @@ Requires: groff = %{version}-%{release}
Obsoletes: %{name}-doc < %{version}-%{release} Obsoletes: %{name}-doc < %{version}-%{release}
Provides: %{name}-doc 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 %description help
Man pages and other related documents for %{name}. Man pages and other related documents for %{name}.
@ -114,8 +132,6 @@ make check
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_datadir}/X11/app-defaults/GXditview
%{_datadir}/X11/app-defaults/GXditview-color
%{_datadir}/%{name}/%{version}/font/devX*/ %{_datadir}/%{name}/%{version}/font/devX*/
%{_datadir}/%{name}/%{version}/tmac/X.tmac %{_datadir}/%{name}/%{version}/tmac/X.tmac
%{_datadir}/%{name}/%{version}/tmac/Xps.tmac %{_datadir}/%{name}/%{version}/tmac/Xps.tmac
@ -155,7 +171,6 @@ make check
%{_datadir}/%{name}/%{version}/tmac/spdf.tmac %{_datadir}/%{name}/%{version}/tmac/spdf.tmac
%{_datadir}/%{name}/%{version}/tmac/trace.tmac %{_datadir}/%{name}/%{version}/tmac/trace.tmac
%{_datadir}/%{name}/%{version}/tmac/zh.tmac %{_datadir}/%{name}/%{version}/tmac/zh.tmac
%{_bindir}/gxditview
%{_bindir}/addftinfo %{_bindir}/addftinfo
%{_bindir}/eqn2graph %{_bindir}/eqn2graph
%{_bindir}/gdiffmk %{_bindir}/gdiffmk
@ -192,7 +207,6 @@ make check
%{_bindir}/roff2ps %{_bindir}/roff2ps
%{_bindir}/roff2text %{_bindir}/roff2text
%{_bindir}/roff2x %{_bindir}/roff2x
%{_bindir}/xtotroff
%files base %files base
%license COPYING FDL LICENSES %license COPYING FDL LICENSES
@ -282,16 +296,33 @@ make check
%{_bindir}/zsoelim %{_bindir}/zsoelim
%{_libdir}/groff/ %{_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 %files help
%defattr(-,root,root) %defattr(-,root,root)
%{_mandir}/man1/ %{_mandir}/man1/
%{_mandir}/man5/ %{_mandir}/man5/
%{_mandir}/man7/ %{_mandir}/man7/
%doc %{_docdir}/%{name}-%{version}/ %doc %{_docdir}/%{name}-%{version}/
%exclude %{_docdir}/%{name}-%{version}/examples/mom/slide-demo.pdf
%doc BUG-REPORT MORE.STUFF NEWS PROBLEMS %doc BUG-REPORT MORE.STUFF NEWS PROBLEMS
%{_infodir}/groff.info* %{_infodir}/groff.info*
%changelog %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 * Wed Sep 01 2021 Jianmin <jianmin@iscas.ac.cn> - 1.22.4-8
- move basic files into base package. - move basic files into base package.