forked from pool/ghostscript-fonts
Compare commits
10 Commits
Author | SHA256 | Date | |
---|---|---|---|
07d1e49f27 | |||
d7d1cf453c | |||
8c5140be37 | |||
392537e55a | |||
0505959a55 | |||
0b6e7c1bb3 | |||
c37533c49b | |||
832a240d71 | |||
|
e699e4beb2 | ||
|
ae9af78d3b |
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 24 15:22:56 UTC 2025 - Antonio Larrosa <alarrosa@suse.com>
|
||||
|
||||
- Remove the -converted subpackage that uses ttf-converter.
|
||||
Anyone using these fonts should actually use the
|
||||
urw-base35-fonts package.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 22 11:10:15 UTC 2020 - Antonio Larrosa <alarrosa@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package ghostscript-fonts
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -54,12 +54,6 @@ Source1: ghostscript-fonts-other-6.0.tar.gz
|
||||
#
|
||||
# Patch100...Patch999 is for patches from SUSE which are not intended for upstream:
|
||||
#
|
||||
BuildRequires: ttf-converter >= 1.0.3
|
||||
# An older fontforge version should work, but 20200314 fixes bugs
|
||||
# that appear when converting n021023l.pfb from
|
||||
# ghostscript-fonts-std
|
||||
BuildRequires: fontforge >= 20200314
|
||||
BuildRequires: fontpackages-devel
|
||||
# The main-package ghostscript-fonts alone is useless because it does not contain any font file.
|
||||
# The font files are provided via its sub-packages. Nevertheless when a user selects only
|
||||
# the main-package to be installed, he probably wants "all Ghostscript's free fonts"
|
||||
@@ -79,7 +73,6 @@ in the package ghostscript-fonts-std.
|
||||
Optional Fonts for Ghostscript
|
||||
in the package ghostscript-fonts-other.
|
||||
|
||||
|
||||
%package std
|
||||
Summary: Basic Fonts for Ghostscript
|
||||
Group: Productivity/Publishing/PS
|
||||
@@ -92,7 +85,6 @@ Times, Helvetica, Courier, Symbol, etc.
|
||||
Contributed by URW++ Design and Development
|
||||
Incorporated, of Hamburg, Germany.
|
||||
|
||||
|
||||
%package other
|
||||
Summary: Optional Fonts for Ghostscript
|
||||
# ghostscript-fonts-std contains /usr/share/ghostscript/fonts/fonts.dir
|
||||
@@ -113,23 +105,6 @@ from traditional printer or display fonts;
|
||||
you can read about them in more detail in
|
||||
the documentation on Hershey fonts.
|
||||
|
||||
%package std-converted
|
||||
Summary: Basic Fonts for Ghostscript converted to truetype
|
||||
Group: Productivity/Publishing/PS
|
||||
Requires(post): fonts-config
|
||||
Requires(posttrans): fonts-config
|
||||
Requires(postun): fonts-config
|
||||
%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150200
|
||||
# In TW and SLE 15 SP2/Leap 15.2 we have pango >= 1.44.0 which
|
||||
# doesn't support Type1 fonts (boo1169444)
|
||||
Supplements: packageand(ghostscript-fonts-std:libpango-1_0-0)
|
||||
%endif
|
||||
|
||||
%description std-converted
|
||||
This package contains the Type1 (.pfb) fonts from
|
||||
ghostscript-fonts-std converted to TrueType format, so they can
|
||||
be used by applications that don't support Type1 fonts.
|
||||
|
||||
%prep
|
||||
# Be quiet when unpacking and
|
||||
# create directory (and change to it) before unpacking Source0 and
|
||||
@@ -138,13 +113,6 @@ be used by applications that don't support Type1 fonts.
|
||||
|
||||
%build
|
||||
# There is nothing to "make" as the sources contain plain font files.
|
||||
ttf-converter --input-dir fonts/ --output-dir generated
|
||||
# Force Nimbus Mono to be monospaced:
|
||||
ttf-converter --force-monospaced fonts/n022003l.pfb fonts/n022004l.pfb fonts/n022023l.pfb fonts/n022024l.pfb --output-dir generated
|
||||
|
||||
# There's already a version of these fonts included in xorg-x11-fonts-converted
|
||||
rm generated/CharterBT-*
|
||||
rm generated/Utopia-*
|
||||
|
||||
%install
|
||||
# Install the fonts into the /usr/share/ghostscript/fonts/ directory
|
||||
@@ -169,10 +137,6 @@ install -d -m 755 %{buildroot}%{_datadir}/fonts
|
||||
# gets the intended symbolic link /usr/share/fonts/ghostscript -> ../ghostscript/fonts
|
||||
ln -s %{_datadir}/ghostscript/fonts %{buildroot}%{_datadir}/fonts/ghostscript
|
||||
|
||||
# Install also the fonts converted to truetype format
|
||||
mkdir -p %{buildroot}/%{_datadir}/fonts/truetype
|
||||
cp generated/*.ttf %{buildroot}/%{_datadir}/fonts/truetype
|
||||
|
||||
# Use traditional bash scriptlet with an explicite "exit 0" line at the end to be fail safe
|
||||
# see http://en.opensuse.org/openSUSE:Packaging_scriptlet_snippets
|
||||
# Only if suse_version > 1220 it BuildRequires fontpackages-devel which provides reconfigure_fonts_post.
|
||||
@@ -192,8 +156,6 @@ fi
|
||||
%endif
|
||||
exit 0
|
||||
|
||||
%reconfigure_fonts_scriptlets -n ghostscript-fonts-std-converted
|
||||
|
||||
# Use traditional bash scriptlet with an explicite "exit 0" line at the end to be fail safe
|
||||
# see http://en.opensuse.org/openSUSE:Packaging_scriptlet_snippets
|
||||
# Only if suse_version > 1220 it BuildRequires fontpackages-devel which provides reconfigure_fonts_postun.
|
||||
@@ -436,18 +398,4 @@ exit 0
|
||||
%{_datadir}/ghostscript/fonts/u003043t.pfm
|
||||
%{_datadir}/ghostscript/fonts/u004006t.pfm
|
||||
|
||||
%files std-converted
|
||||
%defattr(0644,root,root,0755)
|
||||
%dir %{_datadir}/fonts/truetype
|
||||
%{_datadir}/fonts/truetype/CenturySchL-*.ttf
|
||||
%{_datadir}/fonts/truetype/Dingbats.ttf
|
||||
%{_datadir}/fonts/truetype/NimbusMonL-*.ttf
|
||||
%{_datadir}/fonts/truetype/NimbusRomNo9L-*.ttf
|
||||
%{_datadir}/fonts/truetype/NimbusSanL-*.ttf
|
||||
%{_datadir}/fonts/truetype/StandardSymL.ttf
|
||||
%{_datadir}/fonts/truetype/URWBookmanL-*.ttf
|
||||
%{_datadir}/fonts/truetype/URWChanceryL-MediItal.ttf
|
||||
%{_datadir}/fonts/truetype/URWGothicL-*.ttf
|
||||
%{_datadir}/fonts/truetype/URWPalladioL-*.ttf
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user