-Summary: GNU groff text formatting package
-Summary(de): GNU groff-Textformatierungspaket
+Summary: A document formatting system
+Summary(de): Ein Dokumentformatierungssystem
Summary(fr): Paquetage de formatage de texte groff de GNU
-Summary(pl): GNU groff - pakiet do formatowania tekstu
+Summary(pl): GNU groff - pakiet do formatowania tekstu
Summary(tr): GNU groff metin biçemleme paketi
Name: groff
-Version: 1.11.1
-Release: 16
-Copyright: GPL
+Version: 1.15
+Release: 9
+License: GPL
Group: Applications/Publishing
Group(pl): Aplikacje/Publikowanie
Source0: ftp://prep.ai.mit.edu/pub/gnu/groff/%{name}-%{version}.tar.gz
Source1: troff-to-ps.fpi
Patch0: groff-fhs.patch
Patch1: groff-safer.patch
-Patch2: groff-X11.patch
-Patch3: groff-include-opt.patch
-Patch4: groff-DESTDIR.patch
+Patch2: groff-DESTDIR.patch
BuildRequires: XFree86-devel
BuildRequires: libstdc++-devel
Requires: mktemp
Obsoletes: groff-tools
-Buildroot: /tmp/%{name}-%{version}-root
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-The groff text formatting system can be used to create professional looking
-documents on both paper and a computer screen. All the man pages are
-processed with groff, so you'll need this package to read man pages.
+Groff is a document formatting system. Groff takes standard text and
+formatting commands as input and produces formatted output. The
+created documents can be shown on a display or printed on a printer.
+Groff's formatting commands allow you to specify font type and size,
+bold type, italic type, the number and size of columns on a page, and
+more. You should install groff if you want to use it as a document
+formatting system. Groff can also be used to format man pages. If you
+are going to use groff with the X Window System, you'll also need to
+install the groff-gxditview package.
%description -l de
-Das Textformatiersystem groff wird zum Erstellen professioneller Dokumente
-auf Papier und Bildschirm verwendet. Alle man-Seiten werden mit groff
-verarbeitet. Das Paket wird zum Lesen von man-Seiten benötigt.
+Groff ist ein Dokumentformatierungssystem. Groff liest Text und
+Formatierungskommandos ein, und gibt formatierte Ausgabe aus. Die
+erzeugten Dokumente können angezeigt oder ausgedruckt werden. Groffs
+Formatierungsbefehle erlauben Ihnen, Schriftart und -größe, Fettdruck,
+Kursivdruck, und die Anzahl der Spalten pro Seite usw. zu setzen. Sie
+sollten groff installieren, wenn Sie es als
+Dokumentformatierungssystem benutzen wollen. Groff ann auch benutzt
+werden, um man-pages anzuziegen. Wenn Sie groff in X11 benutzen
+wollten, brauchen Sie auch das groff-gxditview-Paket.
%description -l fr
-Le système de formatage de texte groff peut être utilisé pour créer des
-documents d'aspect professionnel sur papier et à l'écran. Toutes les pages
-man sont traitées avec groff, vous avez donc besoin de ce paquetage pour les
-visualiser.
+Le système de formatage de texte groff peut être utilisé pour créer
+des documents d'aspect professionnel sur papier et à l'écran. Toutes
+les pages man sont traitées avec groff, vous avez donc besoin de ce
+paquetage pour les visualiser.
%description -l pl
System formatowania tekstu groff mo¿e byæ u¿ywany do tworzenia
-profesjonalnie wygl±daj±cego dokumentu zarówno na papierze jak i na konsoli.
-Wszystkie podrêczniki ekranowe (man) potrzebuj± groff'a do formatowania
-tekstu na ekranie. Tak wiêc potrzebujesz tego pakietu do czytania
-podrêczników ekranowych.
+profesjonalnie wygl±daj±cego dokumentu zarówno na papierze jak i na
+konsoli. Wszystkie podrêczniki ekranowe (man) potrzebuj± groff'a do
+formatowania tekstu na ekranie. Tak wiêc potrzebujesz tego pakietu do
+czytania podrêczników ekranowych.
%description -l tr
groff metin biçemleme sistemi kaðýt veya bilgisayar ekraný üzerinde
-profesyonel görünüme sahip belgeler yaratmaya yarar. Bütün kýlavuz (man)
-sayfalarý groff ile hazýrlanmýþtýr. man sayfalarýný okuyabilmek için groff
-paketine gereksiniminiz olacaktýr.
+profesyonel görünüme sahip belgeler yaratmaya yarar. Bütün kýlavuz
+(man) sayfalarý groff ile hazýrlanmýþtýr. man sayfalarýný okuyabilmek
+için groff paketine gereksiniminiz olacaktýr.
%package gxditview
-Summary: GNU groff X previewer
-Summary(de): GNU groff-X-Previewer
-Summary(fr): Le visualiseur de fichier groff de GNU, sous X.
-Summary(pl): Groff pod X'y
+Summary: An X previewer for groff text processor output
+Summary(de): X-Anzeiger fuer groff Textprozessor-Ausgaben
+Summary(fr): Le visualiseur de fichier groff de GNU, sous X
+Summary(pl): Groff pod X'y
Summary(tr): GNU groff X görüntüleyici
Group: Applications/Publishing
Group(pl): Aplikacje/Publikowanie
+Requires: %{name} = %{version}
%description gxditview
-The package contains the gxditview program, which can be used to format and
-view groff documents in X Windows. For example, man pages can be read using
-gxditview.
+Gxditview displays the groff text processor's output on an X Window
+System display. If you are going to use groff as a text processor, you
+should install gxditview so that you preview your processed text files
+in X. You'll also need to install the groff package and the X Window
+System.
%description -l de gxditview
-Das Paket enthält das gxditview-Programm, das zum Formatieren und Anzeigen
-von groff-Dokumenten in X-Windows benutzt wird. So lassen sich
-beispielsweise auch die man-Seiten mit gxditview einsehen.
+Gxditview zeigt groff-Ausgaben auf einem X-Window-Display an. Wenn Sie
+groff als Textprozessor benutzen wollen, und X11 benutzen, sollten Sie
+gxditview installieren.
%description -l fr gxditview
-Ce paquetage contient le programme gxditview, qui peut servir à formater et
-viusaliser les documents groff sous X Window. Les pages peuvent, par
-exemple, être lues avec gxditview.
+Ce paquetage contient le programme gxditview, qui peut servir à
+formater et viusaliser les documents groff sous X Window. Les pages
+peuvent, par exemple, être lues avec gxditview.
%description -l pl gxditview
Pakiet ten zawiera program gxditview, który pozwoli Ci na formatowanie
%description -l tr gxditview
Bu paket groff belgelerini görüntüleyip deðiþtirmeye yarayan gxditview
-programýný içerir. Örneðin man sayfalarý gxditview kullanýlarak okunabilir.
+programýný içerir. Örneðin man sayfalarý gxditview kullanýlarak
+okunabilir.
+
+%package perl
+Summary: Parts of the groff formatting system that require Perl
+Summary(pl): Cze¶æ zasobów groff-a która wymaga Perla
+Group: Applications/Publishing
+Group(pl): Aplikacje/Publikowanie
+Requires: %{name} = %{version}
+
+%description perl
+groff-perl contains the parts of the groff text processor package that
+require Perl. These include the afmtodit font processor used to create
+PostScript font files, the grog utility that can be used to
+automatically determine groff command-line options, and the
+troff-to-ps print filter.
+
+%description -l pl perl
+groff-perl zawiera czê¶æ zasobów groff-a która wymaga Perla. Skrypt
+afmtodit jest procesorem fontów u¿ywanym do tworzenia plików fontów w
+formacie PostScript, a skrypt grok u¿ywany jest do automatycznego
+doboru parametrów dla groff przy konwersji troff -> PostScript (zwykle
+u¿ywany przy drukowaniu).
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
-%patch3 -p1
-%patch4 -p1
%build
rm -f config.cache
cd xditview
xmkmf
-make
+make
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_libdir}/rhs/rhs-printfilters
-make install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+# fix: tmac.m is incorrectly installed
+mv $RPM_BUILD_ROOT%{_datadir}/groff/tmac/tmac. $RPM_BUILD_ROOT%{_datadir}/groff/tmac/tmac.m
cd xditview
-make DESTDIR=$RPM_BUILD_ROOT install install.man
+%{__make} DESTDIR=$RPM_BUILD_ROOT install install.man
cd ..
strip $RPM_BUILD_ROOT{%{_bindir}/*,/usr/X11R6/bin/*} || :
install $RPM_SOURCE_DIR/troff-to-ps.fpi \
$RPM_BUILD_ROOT%{_libdir}/rhs/rhs-printfilters
-gzip -9fn $RPM_BUILD_ROOT{%{_mandir}/man1/*,/usr/X11R6/man/man1/*} \
+gzip -9nf $RPM_BUILD_ROOT{%{_mandir}/man1/*,/usr/X11R6/man/man1/*} \
NEWS PROBLEMS PROJECTS README TODO BUG-REPORT ChangeLog \
xditview/{ChangeLog,README,TODO}
%files
%defattr(644,root,root,755)
%doc {NEWS,PROBLEMS,PROJECTS,README,TODO,BUG-REPORT,ChangeLog}.gz
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/rhs/rhs-printfilters/*
-
+%attr(755,root,root) %{_bindir}/addftinfo
+%attr(755,root,root) %{_bindir}/eqn
+%attr(755,root,root) %{_bindir}/geqn
+%attr(755,root,root) %{_bindir}/gindxbib
+%attr(755,root,root) %{_bindir}/glookbib
+%attr(755,root,root) %{_bindir}/gneqn
+%attr(755,root,root) %{_bindir}/gnroff
+%attr(755,root,root) %{_bindir}/gpic
+%attr(755,root,root) %{_bindir}/grefer
+%attr(755,root,root) %{_bindir}/grodvi
+%attr(755,root,root) %{_bindir}/groff
+%attr(755,root,root) %{_bindir}/grohtml
+%attr(755,root,root) %{_bindir}/grolj4
+%attr(755,root,root) %{_bindir}/grops
+%attr(755,root,root) %{_bindir}/grotty
+%attr(755,root,root) %{_bindir}/gsoelim
+%attr(755,root,root) %{_bindir}/gtbl
+%attr(755,root,root) %{_bindir}/gtroff
+%attr(755,root,root) %{_bindir}/hpftodit
+%attr(755,root,root) %{_bindir}/indxbib
+%attr(755,root,root) %{_bindir}/lkbib
+%attr(755,root,root) %{_bindir}/lookbib
+%attr(755,root,root) %{_bindir}/neqn
+%attr(755,root,root) %{_bindir}/nroff
+%attr(755,root,root) %{_bindir}/pfbtops
+%attr(755,root,root) %{_bindir}/pic
+%attr(755,root,root) %{_bindir}/psbb
+%attr(755,root,root) %{_bindir}/refer
+%attr(755,root,root) %{_bindir}/soelim
+%attr(755,root,root) %{_bindir}/tbl
+%attr(755,root,root) %{_bindir}/tfmtodit
+%attr(755,root,root) %{_bindir}/troff
%{_datadir}/groff
-%{_mandir}/man1/*
+%{_mandir}/man1/addftinfo.1*
+%{_mandir}/man1/eqn.1*
+%{_mandir}/man1/geqn.1*
+%{_mandir}/man1/gindxbib.1*
+%{_mandir}/man1/glookbib.1*
+%{_mandir}/man1/gneqn.1*
+%{_mandir}/man1/gnroff.1*
+%{_mandir}/man1/gpic.1*
+%{_mandir}/man1/grefer.1*
+%{_mandir}/man1/grodvi.1*
+%{_mandir}/man1/groff.1*
+%{_mandir}/man1/grohtml.1*
+%{_mandir}/man1/grolj4.1*
+%{_mandir}/man1/grops.1*
+%{_mandir}/man1/grotty.1*
+%{_mandir}/man1/gsoelim.1*
+%{_mandir}/man1/gtbl.1*
+%{_mandir}/man1/gtroff.1*
+%{_mandir}/man1/hpftodit.1*
+%{_mandir}/man1/indxbib.1*
+%{_mandir}/man1/lkbib.1*
+%{_mandir}/man1/lookbib.1*
+%{_mandir}/man1/nroff.1*
+%{_mandir}/man1/pfbtops.1*
+%{_mandir}/man1/pic.1*
+%{_mandir}/man1/psbb.1*
+%{_mandir}/man1/refer.1*
+%{_mandir}/man1/soelim.1*
+%{_mandir}/man1/tbl.1*
+%{_mandir}/man1/tfmtodit.1*
+%{_mandir}/man1/troff.1*
+%{_mandir}/man[57]/*
%files gxditview
%defattr(644,root,root,755)
%doc xditview/{ChangeLog,README,TODO}.gz
%attr(755,root,root) /usr/X11R6/bin/gxditview
-
-%attr(644,root,root) %config /usr/X11R6/lib/X11/app-defaults/GXditview
+/usr/X11R6/lib/X11/app-defaults/GXditview
/usr/X11R6/man/man1/*
+
+%files perl
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/grog
+%attr(755,root,root) %{_bindir}/afmtodit
+%attr(755,root,root) %{_libdir}/rhs/rhs-printfilters/*
+%{_mandir}/man1/afmtodit.*
+%{_mandir}/man1/grog.*