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