groff: Update to version 1.22.3

Fixes #10676
This commit is contained in:
Michael Tremer 2014-11-10 17:31:21 +01:00
parent 9d413ed0b3
commit c98024d1a7
3 changed files with 65 additions and 19024 deletions

View File

@ -4,7 +4,7 @@
###############################################################################
name = groff
version = 1.18.1.4
version = 1.22.3
release = 1
groups = Applications/Text
@ -13,64 +13,45 @@ license = GPLv2 and GFDL
summary = A document formatting system.
description
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 \
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.
end
source_dl =
source_dl = http://ftp.gnu.org/gnu/%{name}/
build
requires
bison
gcc-c++
ghostscript
netpbm-progs
perl
texinfo
end
export PAGE = A4
# Cannot run in parallel
PARALLELISMFLAGS =
configure_options += \
--enable-multibyte
prepare_cmds
sed -i \
-e 's/2010/002D/' \
-e 's/2212/002D/' \
-e 's/2018/0060/' \
-e 's/2019/0027/' font/devutf8/R.proto
end
install
mkdir -pv %{BUILDROOT}/usr/{bin,include,sbin,share/man}
make install \
manroot=%{BUILDROOT}/usr/share/man \
bindir=%{BUILDROOT}/usr/bin \
mandir=%{BUILDROOT}/usr/share/man \
prefix=%{BUILDROOT}/usr \
exec_prefix=%{BUILDROOT}/usr \
sbindir=%{BUILDROOT}/usr/sbin \
sysconfdir=%{BUILDROOT}/etc \
datadir=%{BUILDROOT}/usr/share \
infodir=%{BUILDROOT}/usr/share/info \
sysconfdir=%{BUILDROOT}/etc \
includedir=%{BUILDROOT}/usr/include \
libdir=%{BUILDROOT}/usr/lib \
libexecdir=%{BUILDROOT}/usr/libexec \
localstatedir=%{BUILDROOT}/var \
sharedstatedir=%{BUILDROOT}/usr/com \
infodir=%{BUILDROOT}/usr/share/info
ln -svf eqn %{BUILDROOT}/usr/bin/geqn
ln -svf tbl %{BUILDROOT}/usr/bin/gtbl
install_cmds
for file in g{nroff,troff,tbl,pic,eqn,neqn,refer,lookbib,indxbib,soelim} zsoelim; do
ln -svf ${file#?} %{BUILDROOT}%{bindir}/${file}
ln -svf ${file#?}.1 %{BUILDROOT}%{mandir}/man1/${file}.1
done
end
end
packages
package %{name}
filter_requires
main_subs.pl
man.pl
oop_fh.pl
subs.pl
end
end
package %{name}-debuginfo

View File

@ -0,0 +1,43 @@
From c6d8bb3e0ebc03274564d7b2c768e9932cc5f79d Mon Sep 17 00:00:00 2001
From: Jan Vcelak <jvcelak@redhat.com>
Date: Tue, 1 Jan 2013 15:33:45 +0100
Subject: [PATCH] load site-font and site-tmac from /etc/groff
Move site-font and site-tmac configuration from /usr/share/groff to
/etc/groff. That allows permanent custom changes. (Symlinking brought
a lot of problems with RPM. This is safer and cleaner.)
Signed-off-by: Jan Vcelak <jvcelak@redhat.com>
---
Makefile.in | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index 7534e56..d97d1b9 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -167,7 +167,7 @@ fontdir=$(datasubdir)/font
oldfontdir=$(datasubdir)/oldfont
# `localfontdir' says where local fonts will be installed (as dev*/*).
-localfontdir=$(dataprogramdir)/site-font
+localfontdir=@sysconfdir@/groff/site-font
# `legacyfontdir' is for compatibility with non-GNU troff.
legacyfontdir=/usr/lib/font
@@ -179,10 +179,10 @@ fontpath=$(localfontdir)$(RT_SEP)$(fontdir)$(RT_SEP)$(legacyfontdir)
tmacdir=$(datasubdir)/tmac
# `systemtmacdir' says where to install platform-dependent macros.
-systemtmacdir=$(libprogramdir)/site-tmac
+systemtmacdir=@sysconfdir@/groff/site-tmac
# `localtmacdir' says where local files will be installed.
-localtmacdir=$(dataprogramdir)/site-tmac
+localtmacdir=@sysconfdir@/groff/site-tmac
# `appresdir' says where to install the application resource file for
# gxditview.
--
1.8.0.2

File diff suppressed because it is too large Load Diff