fe7ddccb26
The specfile has been completely rewritten from the ground up, to comply with Fedora Packaging Guidelines, and to incorporate comments from upstream. The subpackage layout was also updated into more sane and more granular scheme. The changes are described more in detail below: (Justifications for them can be found in the specfile's comments.) * libijs -- the IJS library has been debundled and is now provided as a separate package: https://src.fedoraproject.org/rpms/libijs * libgs -- new separate package, created from Ghostscript's shared library. It contains all necessary files for other software/packages that are build upon Ghostscript's functionality. * libgs-devel -- new separate subpackage, for development purposes or Fedora's build process. The 'ghostscript-devel' is still provided for now as a virtual subpackage. * ghostscript -- is no longer a metapackage. It's a regular package instead, and it contains Ghostscript's binaries as well as some typical conversion scripts people are used to (and expect to have installed together with Ghostscript by default). * ghostscript-tools-fonts -- new subpackage that contains 3 scripts that are useful only for people who are working with AFM, PFB or PFA files (conversions usually). * ghostscript-tools-printing -- new subpackage that contains only utilities for formatting and printing text files using either Ghostscript, or BubbleJet, DeskJet, DeskJet 500, & LaserJet printers. * ghostscript-core -- has became an empty metapackage for upgrade purposes. It will be removed once Fedora 28 is EOL, and all other packages has updated their specfiles to require correct subpackages. * LPR setup scripts are no longer being shipped. In case people still need those, then 'ghostscript-tools-lpr' will be created for it. * examples/ from 'ghostscript-doc' are no longer shipped. * Support for /usr/share/ghostscript/conf.d/ folder was dropped to use Ghostscript's default choice for rendering of CJK glyphs, which is Google Droid Sans Fallback font. In case this proves insufficent, the conf.d/ folder support will be re-established. * Symbolic links for direct resources locations have been added to speedup Ghostscript's startup time * Ghostscript's search path was updated to include only fonts locations, which will be used only as a backup (in case of broken symbolic links). * Documentation and resources paths no longer contain version string inside of them. * Ghostscript itself (as a whole) has been completely debundled (to a point where it still makes sense). It newly requires these packages: https://src.fedoraproject.org/rpms/adobe-mappings-cmap https://src.fedoraproject.org/rpms/adobe-mappings-pdf https://src.fedoraproject.org/rpms/libijs https://src.fedoraproject.org/rpms/urw-base35-fonts * As a result of debundling, 'poppler-data' is no longer a requirement for Ghostscript, and it is no longer necessary to do a rebuild of 'poppler-data' when Ghostscript is rebased.
71 lines
2.4 KiB
Diff
71 lines
2.4 KiB
Diff
From 3bbbbbfbaf543e47cbddf6a1932d84b10e26a082 Mon Sep 17 00:00:00 2001
|
|
From: "David Kaspar [Dee'Kej]" <dkaspar@redhat.com>
|
|
Date: Mon, 11 Dec 2017 19:11:04 +0100
|
|
Subject: [PATCH] Makefile.in: enable --docdir= parameter to be working
|
|
|
|
Previously, the Ghostscript was using custom path to the documentation
|
|
(as docdir=$(gsdatadir)/doc). This was causing that value of --docdir=
|
|
parameter of ./configure was accepted, but not used at all.
|
|
|
|
This commit fixes this issue, by using docdir=@docdir@@VERSIONED_PATH@
|
|
instead. However, as a side effect this results in default path for
|
|
documentation to changed to this (with --prefix=/usr):
|
|
|
|
/usr/share/doc/ghostscript/<version>/
|
|
|
|
To stay backward compatible, a symlink is automatically created to
|
|
point from the old location (/usr/share/ghostscript/<version>/doc) to
|
|
the new location.
|
|
|
|
NOTE: Trying to fix this issue with the location of documentation
|
|
staying as it was would require some hacking inside the Autoconf
|
|
itself, which is not desirable.
|
|
---
|
|
Makefile.in | 3 ++-
|
|
base/unixinst.mak | 1 +
|
|
2 files changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/Makefile.in b/Makefile.in
|
|
index a554b42..ebf64d8 100644
|
|
--- a/Makefile.in
|
|
+++ b/Makefile.in
|
|
@@ -23,6 +23,7 @@
|
|
# source, generated intermediate file, and object directories
|
|
# for the graphics library (GL) and the PostScript/PDF interpreter (PS).
|
|
|
|
+PACKAGE=ghostscript
|
|
BINDIR=./$(BUILDDIRPREFIX)bin
|
|
GLSRCDIR=@srcdir@/base
|
|
DEVSRCDIR=@srcdir@/devices
|
|
@@ -91,6 +92,7 @@ mandir = @mandir@
|
|
man1ext = 1
|
|
man1dir = $(mandir)/man$(man1ext)
|
|
datadir = @datadir@
|
|
+docdir = @docdir@@VERSIONED_PATH@
|
|
|
|
# The following must be substituted using @datadir@ and @libdir@
|
|
# to avoid adding RPM generation paths (CUPS STR #1112)
|
|
@@ -99,7 +101,6 @@ gsdatadir = $(gsdir)@VERSIONED_PATH@
|
|
gssharedir = @libdir@/ghostscript@VERSIONED_PATH@
|
|
gsincludedir = @includedir@/ghostscript/
|
|
|
|
-docdir=$(gsdatadir)/doc
|
|
exdir=$(gsdatadir)/examples
|
|
GS_DOCDIR=$(docdir)
|
|
|
|
diff --git a/base/unixinst.mak b/base/unixinst.mak
|
|
index 296e9fa..5977396 100644
|
|
--- a/base/unixinst.mak
|
|
+++ b/base/unixinst.mak
|
|
@@ -163,6 +163,7 @@ install-doc: $(PSDOCDIR)/News.htm
|
|
$(SH) -c 'for f in $(DOC_PAGES) ;\
|
|
do if ( test -f $(PSDOCDIR)/$$f ); then $(INSTALL_DATA) $(PSDOCDIR)/$$f $(DESTDIR)$(docdir); fi;\
|
|
done'
|
|
+ ln -s $(docdir) $(DESTDIR)$(gsdatadir)/doc
|
|
|
|
# install the man pages for each locale
|
|
MAN_LCDIRS=. de
|
|
--
|
|
2.9.5
|
|
|