Tomáš Chvátal 2019-01-03 12:59:41 +00:00 committed by Git OBS Bridge
parent 04674f11fb
commit 81b0e36542

View File

@ -28,7 +28,7 @@ Release: 0
Summary: GNU troff Document Formatting System
License: GPL-3.0-or-later
Group: Productivity/Publishing/Troff
Url: http://www.gnu.org/software/groff/groff.html
URL: http://www.gnu.org/software/groff/groff.html
Source0: ftp://ftp.gnu.org/gnu/groff/groff-%{version}.tar.gz
Source1: ftp://ftp.gnu.org/gnu/groff/groff-%{version}.tar.gz.sig
Source2: groff.keyring
@ -69,7 +69,6 @@ Patch13: groff-reproducible-mdate.patch
BuildRequires: bison
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: makeinfo
%if !%{with full_build}
Recommends: groff-full
@ -98,7 +97,6 @@ Provides: groff-devx = %{version}-%{release}
Obsoletes: groff-devx <= 1.21
%endif
%if !%{with full_build}
%description
The groff package is a stripped-down package containing the necessary
components to read manual pages in ASCII, Latin-1, and UTF-8, plus the
@ -106,8 +104,11 @@ PostScript device (groff's default). Users who want a full groff installation,
with the standard set of devices, fonts, macros, and documentation, should
install the groff-full package.
%else #groff_base_only
%description
%package -n groff-full
Summary: GNU troff Document Formatting System - full variant
Group: Productivity/Publishing/Troff
%description -n groff-full
The groff-full package provides aditional tools excluded from base groff
package, like grohtml, X fonts et. all.
@ -143,8 +144,6 @@ This version of xditview is called gxditview and has some extensions
used by the groff command. gxditview is used by groff if called with
the -X option.
%endif #groff_base_only
%prep
%setup -q -n groff-%{version}
%patch0 -p1 -b .debian
@ -308,16 +307,15 @@ install -m 644 %{SOURCE3} %{SOURCE4} %{buildroot}/%{_sysconfdir}/profile.d/
%fdupes -s %{buildroot}
%if %{with full_build}
%post
%post -n groff-full
%install_info --info-dir=%{_infodir} %{_infodir}/groff.info.gz
%preun
%preun -n groff-full
%install_info_delete --info-dir=%{_infodir} %{_infodir}/groff.info.gz
%endif
%if !%{with full_build}
%files
%defattr(-,root,root)
%license COPYING FDL LICENSES
%doc BUG-REPORT ChangeLog* MANIFEST MORE.STUFF NEWS PROBLEMS PROJECTS README REVISION VERSION
%{_mandir}/man1/*
@ -329,8 +327,7 @@ install -m 644 %{SOURCE3} %{SOURCE4} %{buildroot}/%{_sysconfdir}/profile.d/
%{_libexecdir}/groff/grog/subs.pl
%else #groff_base_only
%files
%defattr(-,root,root)
%files -n groff-full
%dir %{_datadir}/groff/%{version}
%dir %{_libexecdir}/groff
%doc %{_docdir}/groff
@ -360,19 +357,17 @@ install -m 644 %{SOURCE3} %{SOURCE4} %{buildroot}/%{_sysconfdir}/profile.d/
%{_libexecdir}/groff/groffer
%files -n groff-doc
%defattr(-, root, root)
%dir %{_docdir}/groff
%doc %{_docdir}/groff/html
%doc %{_docdir}/groff/examples
%files -n gxditview
%defattr(-,root,root)
%dir %{_datadir}/X11/app-defaults
%doc src/devices/xditview/ChangeLog
%doc src/devices/xditview/README
%doc src/devices/xditview/TODO
%{_bindir}/gxditview
%{_mandir}/man1/gxditview.1*
%{_mandir}/man1/gxditview.1%{?ext_man}
%{_datadir}/X11/app-defaults/GXditview
%{_datadir}/X11/app-defaults/GXditview-color