58ffc7
#
58ffc7
# Important notes regarding the package:
58ffc7
# ======================================
58ffc7
# This package contains 35 fonts defined as PostScript Level 2 Core Font Set:
58ffc7
# > https://en.wikipedia.org/wiki/PostScript_fonts#Core_Font_Set
58ffc7
#
58ffc7
# This package is the replacement for previous 'urw-fonts' package (obsolete now).
58ffc7
#
58ffc7
# However, there are currently several issues that needed to be adressed:
58ffc7
# 1) This font set is owned by company (URW)++ [https://www.urwpp.de/en/], but
58ffc7
#    the company Artifex Software [http://www.artifex.com/] has negotiated with
58ffc7
#    (URW)++ the Open Source release of several fonts that (URW)++ owns, which
58ffc7
#    can be used as Level 2 Core Font Set.
58ffc7
#
58ffc7
#    Artifex Software is the owner/creator of Ghostscript software, and they use
58ffc7
#    those fonts as part of Ghostscript's resources.
58ffc7
#
58ffc7
#    However, (URW++) company does not provide any way to download those fonts.
58ffc7
#    So right now, we are using the fonts which Artifex Software company uses
58ffc7
#    in Ghostscript, and made available. They do not officially provide them,
58ffc7
#    but they have become the 'de facto' standard across Linux distributions.
58ffc7
#
58ffc7
#    Therefore, from now on, I will refer to Artifex Software as to 'upstream'.
58ffc7
#
58ffc7
# 2) Upstream has its own git repository for Core Font Set Level 2 sources:
58ffc7
#    > https://github.com/ArtifexSoftware/urw-base35-fonts
58ffc7
#
58ffc7
#    Here you can find 4 types of files (regarding the fonts):
58ffc7
#    *.t1  - https://en.wikipedia.org/wiki/PostScript_fonts#Type_1
58ffc7
#    *.afm - https://de.wikipedia.org/wiki/Adobe_Font_Metrics
58ffc7
#    *.ttf - https://en.wikipedia.org/wiki/TrueType
58ffc7
#    *.otf - https://en.wikipedia.org/wiki/OpenType
58ffc7
#
58ffc7
#    According to upstream, Ghostscript needs only Type 1 fonts to work properly.
58ffc7
#    It can use TTF or OTF fonts as substitutions as well in case the Type 1
58ffc7
#    fonts are missing, but the substitution is not (and can't be) guaranteed to
58ffc7
#    be absolutely flawless, unless the fonts use the CFF outlines:
58ffc7
#    > https://en.wikipedia.org/wiki/PostScript_fonts#Compact_Font_Format
58ffc7
#
58ffc7
#    And even though the OTF font files have CFF outlines embedded inside them,
58ffc7
#    those OTF fonts still cause problems when they are used with Ghostscript's
58ffc7
#    'pdfwrite' device as substitutions. This can break printing or conversions
58ffc7
#    for many users out there using Ghostscript. At the moment, upstream does
58ffc7
#    not have reason/motivation to fix the 'pdfwrite' device in the near future.
58ffc7
#
58ffc7
#    The AFM (Adobe Font Metrics) are useful for layout purposes of other
58ffc7
#    applications, and they contain general font information and font metrics.
58ffc7
#    These AFM files were distributed in the previous 'urw-fonts' package, so in
58ffc7
#    order to avoid possible regressions in the future, we need to continue
58ffc7
#    distributing them.
58ffc7
#
58ffc7
#    However, distributing AFM files would not be possible if we would create
58ffc7
#    this package from Ghostscript source package only. It does not contain
58ffc7
#    these AFM files, because as stated above - Ghostscript requires only T1
58ffc7
#    fonts. Therefore, we're using the archive with fonts provided from upstream.
58ffc7
#
58ffc7
#
58ffc7
# 3) The previous package 'urw-fonts' shipped the fonts in different format:
58ffc7
#    *.pfb - Printer Font Binary (compressed Type 1 fonts, which require an
58ffc7
#            8-bit transmission method)
58ffc7
#    *.pfm - Printer Font Metrics (same as *.afm files according to upstream)
58ffc7
#
58ffc7
#    These formats were basically replaced with T1 and AFM formats, currently
58ffc7
#    used by upstream.
58ffc7
#
58ffc7
# 4) (URW)++ does not have any sane versioning procedure. After reaching
58ffc7
#    version 1.10, they returned to version 1.00. That is the reason why
58ffc7
#    upstream switched to using git snapshot dates for versioning, and we
58ffc7
#    are sticking to that after discussion at fedora-devel mailing list.
58ffc7
#
58ffc7
# 5) The package scheme is this:
58ffc7
#
58ffc7
#    * urw-base35-fonts        -- Metapackage which does not contain anything,
58ffc7
#                                 but requires all its font subpackages. This
58ffc7
#                                 is a wrapper package to ease-up installation
58ffc7
#                                 of all fonts.
58ffc7
#
58ffc7
#    * urw-base35-fonts-common -- Package that contains only the license file,
58ffc7
#                                 to avoid duplication of it and to make the
58ffc7
#                                 font packages size smaller.
58ffc7
#
58ffc7
#    * urw-base35-[***]-fonts  -- Subpackage of base35 fonts, containing only
58ffc7
#                                 one font family, as required by FPG.
58ffc7
#
58ffc7
#    * urw-base35-fonts-devel  -- Devel subpackage that provides useful RPM
58ffc7
#                                 macro(s), so other packages can more easily
58ffc7
#                                 build against base35 fonts.
58ffc7
#
58ffc7
#    ==========================================================================
58ffc7
#
58ffc7
#    urw-base35-fonts ----- urw-base35-fonts-common
58ffc7
#                       |             |
58ffc7
#                       |             |
58ffc7
#                       \-- urw-base35-[***]-fonts
58ffc7
#
58ffc7
#    ==========================================================================
58ffc7
#
58ffc7
#    NOTE: Fedora Packaging Guidelines (FPG) requires to use OTF or TTF format:
58ffc7
#          https://fedoraproject.org/wiki/Choosing_the_right_font_format_to_package
58ffc7
#
58ffc7
#          However, there are several packages in Fedora that still hadn't been
58ffc7
#          updated to work with OTF/TTF formats, and thus still require the
58ffc7
#          Type1 font format to work correctly. These packages include e.g.:
58ffc7
#           * ghostscript
58ffc7
#           * ImageMagick
58ffc7
#           * hylafax+
58ffc7
#
58ffc7
#          On the other hand, more and more software (e.g. LibreOffice) is
58ffc7
#          moving away from Type1 format completely and dropping its support.
58ffc7
#
58ffc7
#          As a result, we currently need to ship both OTF and Type1/AFM formats.
58ffc7
#          In case all the packages depending on base35 fonts will finally start
58ffc7
#          supporting the OTF, then we will make complete switch to OTF only.
58ffc7
#
58ffc7
#    ==========================================================================
58ffc7
58ffc7
# GLOBAL MACROS:
58ffc7
# --------------
58ffc7
%global fontname            urw-base35
58ffc7
%global fontconfig_prio     61
58ffc7
%global urw_fonts_vers      3:2.4-25
58ffc7
%global tmpdir              %{_localstatedir}/lib/rpm-state/urw-base35-fonts
58ffc7
%global tmpfile             %{tmpdir}/cache-update-needed
58ffc7
%global legacydir           %{_datadir}/X11/fonts/urw-fonts
58ffc7
58ffc7
58ffc7
# By redefining the '_docdir_fmt' macro we override the default location of
58ffc7
# documentation or license files. Instead of them being located in
58ffc7
# 'urw-base35-fonts-common', they are located in 'urw-base35-fonts' folder.
58ffc7
%global _docdir_fmt         %{name}
58ffc7
58ffc7
58ffc7
# This will create an auxiliary file if it does not exist, to indicate that X11
58ffc7
# Logical Font Description database and fontconfig cache needs to be updated.
58ffc7
%global post_scriptlet()    \
58ffc7
(                           \
58ffc7
  if ! [[ -x %{tmpfile} ]]; then \
58ffc7
    rm -rf   %{tmpdir}      \
58ffc7
    mkdir -p %{tmpdir}      \
58ffc7
                            \
58ffc7
    touch    %{tmpfile}     \
58ffc7
    chmod +x %{tmpfile}     \
58ffc7
  fi                        \
58ffc7
)
58ffc7
58ffc7
58ffc7
# NOTE: At the moment, there's no equivalent of 'posttrans' macro for
58ffc7
#       uninstallation, meaning we can only use the 'posttrans'.
58ffc7
#
58ffc7
#       Because of it , we have to use 'postun' instead. That means this
58ffc7
#       scriptlet will be called for every font family subpackage being
58ffc7
#       uninstalled...
58ffc7
%global postun_scriptlet()  \
58ffc7
(                           \
58ffc7
  if [[ $1 -eq 0 ]]; then   \
58ffc7
    # mkfontscale %{_fontdir} &> /dev/null || : \
58ffc7
    # mkfontdir   %{_fontdir} &> /dev/null || : \
58ffc7
    # xset fp rehash          &> /dev/null || : \
58ffc7
    true || :               \
58ffc7
  fi                        \
58ffc7
)
58ffc7
58ffc7
58ffc7
# The content of this scriptlet is only run once during install/update.
58ffc7
#
58ffc7
# NOTE: 'xset' is an utility requiring X server to be running. Because of it,
58ffc7
#       the 'xset fp rehash' will fail to udpate its font database, when the
58ffc7
#       X server is stopped. This has been already reported (and closed):
58ffc7
#       https://bugzilla.redhat.com/show_bug.cgi?id=1466254
58ffc7
%global posttrans_scriptlet() \
58ffc7
(                             \
58ffc7
  if [[ -x %{tmpfile} ]]; then \
58ffc7
    # mkfontscale %{_fontdir}   \
58ffc7
    # mkfontdir   %{_fontdir}   \
58ffc7
    # export DISPLAY=:0         \
58ffc7
    # xset fp rehash &> /dev/null || : \
58ffc7
    #                          \
58ffc7
    true || :                 \
58ffc7
    rm -rf %{tmpdir}          \
58ffc7
  fi                          \
58ffc7
)
58ffc7
58ffc7
58ffc7
%global common_desc \
58ffc7
The Level 2 Core Font Set is a PostScript specification of 35 base fonts that \
58ffc7
can be used with any PostScript file. In Fedora, these fonts are provided freely \
58ffc7
by (URW)++ company, and are mainly utilized by applications using Ghostscript.
58ffc7
58ffc7
# Necessary after removal of *-nimbus-sans-narrow subpackage.
58ffc7
# Remove this once F27 is EOL.
58ffc7
%global obsolete_vers     20170801-4
58ffc7
58ffc7
# =============================================================================
58ffc7
58ffc7
Name:             %{fontname}-fonts
58ffc7
Summary:          Core Font Set containing 35 freely distributable fonts from (URW)++
58ffc7
Version:          20170801
58ffc7
Release:          10%{?dist}
58ffc7
58ffc7
# NOTE: (URW)++ holds the copyright, but Artifex Software has obtained rights to
58ffc7
#       release these fonts under GNU Affero General Public License (version 3).
58ffc7
License:          AGPLv3
58ffc7
58ffc7
URL:              https://www.urwpp.de/en/
58ffc7
Source:           https://github.com/ArtifexSoftware/urw-base35-fonts/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
58ffc7
Source1:          urw-fonts-1.0.7pre44.tar.bz2
58ffc7
58ffc7
BuildArch:        noarch
58ffc7
58ffc7
BuildRequires:    fontpackages-devel
58ffc7
BuildRequires:    libappstream-glib
58ffc7
58ffc7
BuildRequires:    git
58ffc7
BuildRequires:    sed
58ffc7
58ffc7
# ---------------
58ffc7
58ffc7
Provides:         urw-fonts = %{urw_fonts_vers}
58ffc7
Obsoletes:        urw-fonts < %{urw_fonts_vers}
58ffc7
58ffc7
# This is metapackage for installation all font subpackages, require them:
58ffc7
Requires:         %{name}-common = %{version}-%{release}
58ffc7
Requires:         %{fontname}-bookman-fonts
58ffc7
Requires:         %{fontname}-c059-fonts
58ffc7
Requires:         %{fontname}-d050000l-fonts
58ffc7
Requires:         %{fontname}-gothic-fonts
58ffc7
Requires:         %{fontname}-nimbus-mono-ps-fonts
58ffc7
Requires:         %{fontname}-nimbus-roman-fonts
58ffc7
Requires:         %{fontname}-nimbus-sans-fonts
58ffc7
Requires:         %{fontname}-p052-fonts
58ffc7
Requires:         %{fontname}-standard-symbols-ps-fonts
58ffc7
Requires:         %{fontname}-z003-fonts
58ffc7
58ffc7
# Upstream patches -- official upstream patches released by upstream since the
58ffc7
# ----------------    last rebase that are necessary for any reason:
58ffc7
Patch000:         urw-base35-fonts-20170801-000-split-urw-fallback.patch
58ffc7
Patch001:         urw-base35-fonts-20170801-001-appstream-typos-and-syntax-fix.patch
58ffc7
Patch002:         urw-base35-fonts-20170801-002-BdOblique-renamed.patch
58ffc7
Patch003:         urw-base35-fonts-20170801-003-merge-Nimbus-Sans-Narrow.patch
58ffc7
58ffc7
%description
58ffc7
%{common_desc}
58ffc7
58ffc7
This meta-package will install all the 35 fonts from the %{name}.
58ffc7
58ffc7
# =============================================================================
58ffc7
58ffc7
# Macro for creating a subpackage for a given font family.
58ffc7
#
58ffc7
# USAGE: font_subpkg [-c] [-o old_subpackage_name]
58ffc7
#  -c    Make this subpackage conflict with the previous versions of URW fonts.
58ffc7
#  -o    Marks this supbackage to obsolete (& provide) other previous subpackage.
58ffc7
%define fontfamily_subpkg(co:)                                                   \
58ffc7
                                                                               \
58ffc7
%define ff_filename   %(echo %{*} | tr --delete " ")                           \
58ffc7
%define subpkg_name   %(echo %{*} | tr "A-Z " "a-z-" | sed -e 's/urw-//')      \
58ffc7
                                                                               \
58ffc7
%package -n       %{fontname}-%{subpkg_name}-fonts                             \
58ffc7
Summary:          %{*} font family [part of Level 2 Core Font Set]             \
58ffc7
Requires:         %{name}-common = %{version}-%{release}                       \
58ffc7
                                                                               \
58ffc7
Requires(post):   fontconfig                                                   \
58ffc7
Requires(post):   xorg-x11-font-utils                                          \
58ffc7
Requires(post):   xorg-x11-server-utils                                        \
58ffc7
                                                                               \
58ffc7
Requires(postun): fontconfig                                                   \
58ffc7
Requires(postun): xorg-x11-font-utils                                          \
58ffc7
Requires(postun): xorg-x11-server-utils                                        \
58ffc7
                                                                               \
58ffc7
# NOTE: Remove the -o section below once F27 is EOL.                           \
58ffc7
%{-o:                                                                          \
58ffc7
Obsoletes:        %{fontname}-%{-o*}-fonts < %{obsolete_vers}                  \
58ffc7
Provides:         %{fontname}-%{-o*}-fonts < %{obsolete_vers} }                \
58ffc7
                                                                               \
58ffc7
# The section below will be only added if the '-c' option was specified:       \
58ffc7
%{-c:                                                                          \
58ffc7
Conflicts:        urw-fonts < %{urw_fonts_vers} }                              \
58ffc7
                                                                               \
58ffc7
%description -n   %{fontname}-%{subpkg_name}-fonts                             \
58ffc7
This package contains %{*} font family,                                        \
58ffc7
which is part of Level 2 Core Font Set.                                        \
58ffc7
                                                                               \
58ffc7
%{common_desc}                                                                 \
58ffc7
                                                                               \
58ffc7
%post -n %{fontname}-%{subpkg_name}-fonts                                      \
58ffc7
%{post_scriptlet}                                                              \
58ffc7
                                                                               \
58ffc7
%postun -n %{fontname}-%{subpkg_name}-fonts                                    \
58ffc7
%{postun_scriptlet}                                                            \
58ffc7
                                                                               \
58ffc7
%posttrans -n %{fontname}-%{subpkg_name}-fonts                                 \
58ffc7
%{posttrans_scriptlet}                                                         \
58ffc7
                                                                               \
58ffc7
%files -n %{fontname}-%{subpkg_name}-fonts                                     \
58ffc7
%{_fontdir}/%{ff_filename}*.t1                                                 \
58ffc7
%{_fontdir}/%{ff_filename}*.afm                                                \
58ffc7
%{_fontdir}/%{ff_filename}*.otf                                                \
58ffc7
%{_datadir}/appdata/de.urwpp.%{ff_filename}.metainfo.xml                       \
58ffc7
%{_datadir}/fontconfig/conf.avail/%{fontconfig_prio}-urw-%{subpkg_name}.conf   \
58ffc7
%{_sysconfdir}/fonts/conf.d/%{fontconfig_prio}-urw-%{subpkg_name}.conf         \
58ffc7
# Temporary workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1534206:\
58ffc7
%exclude %{_fontdir}/StandardSymbolsPS.otf                                     \
58ffc7
58ffc7
# =============================================================================
58ffc7
58ffc7
%package common
58ffc7
Summary:          Common files of the (URW)++ Level 2 Core Font Set
58ffc7
Requires:         filesystem
58ffc7
Requires:         fontpackages-filesystem
58ffc7
58ffc7
%description common
58ffc7
%{common_desc}
58ffc7
58ffc7
This package contains the necessary license files for this font set.
58ffc7
58ffc7
# ---------------
58ffc7
58ffc7
%package devel
58ffc7
Summary:          RPM macros related to (URW)++ Level 2 Core Font Set
58ffc7
Requires:         %{name} = %{version}-%{release}
58ffc7
58ffc7
%description devel
58ffc7
%{common_desc}
58ffc7
58ffc7
This package is useful for Fedora development purposes only. It installs RPM
58ffc7
macros useful for building packages against %{name},
58ffc7
as well as all the fonts contained in this font set.
58ffc7
58ffc7
# ---------------
58ffc7
58ffc7
%package legacy
58ffc7
Summary:          Legacy version of (URW)++ Level 2 Core Font Set
58ffc7
58ffc7
%description legacy
58ffc7
%{common_desc}
58ffc7
58ffc7
This package provides previous (legacy) versions of these fonts, which are still
58ffc7
required by some of the software in Fedora, like e.g. xfig, X11, etc.
58ffc7
58ffc7
# =============================================================================
58ffc7
# NOTE: When making an update, make sure to check if any font families were
58ffc7
#       added/removed. We always need to pack all the fonts into subpackages.
58ffc7
# =============================================================================
58ffc7
58ffc7
%fontfamily_subpkg C059
58ffc7
%fontfamily_subpkg D050000L
58ffc7
%fontfamily_subpkg Nimbus Mono PS -c
58ffc7
%fontfamily_subpkg Nimbus Roman -c
58ffc7
%fontfamily_subpkg Nimbus Sans -c -o nimbus-sans-narrow
58ffc7
%fontfamily_subpkg P052
58ffc7
%fontfamily_subpkg Standard Symbols PS -c
58ffc7
%fontfamily_subpkg URW Bookman -c
58ffc7
%fontfamily_subpkg URW Gothic -c
58ffc7
%fontfamily_subpkg Z003
58ffc7
58ffc7
# =============================================================================
58ffc7
58ffc7
# We need to ship the legacy fonts for now as well (BZ #1551219):
58ffc7
%prep
58ffc7
%autosetup -N -S git
58ffc7
58ffc7
mkdir -p legacy
58ffc7
tar --directory=legacy/ -xf %{SOURCE1}
58ffc7
rm -f legacy/ChangeLog legacy/README* legacy/fonts*
58ffc7
58ffc7
# Amend all the files to the initial commit, and patch the sources:
58ffc7
git add --all --force
58ffc7
git commit --all --amend --no-edit > /dev/null
58ffc7
%autopatch -p1
58ffc7
58ffc7
%install
58ffc7
install -m 0755 -d %{buildroot}%{_fontdir}
58ffc7
install -m 0755 -d %{buildroot}%{_datadir}/appdata
58ffc7
install -m 0755 -d %{buildroot}%{_datadir}/fontconfig/conf.avail
58ffc7
install -m 0755 -d %{buildroot}%{_sysconfdir}/fonts/conf.d
58ffc7
install -m 0755 -d %{buildroot}%{legacydir}
58ffc7
install -m 0755 -d %{buildroot}%{_datadir}/licenses/urw-fonts
58ffc7
58ffc7
install -m 0644 -p fonts/*.t1  %{buildroot}%{_fontdir}
58ffc7
install -m 0644 -p fonts/*.afm %{buildroot}%{_fontdir}
58ffc7
install -m 0644 -p fonts/*.otf %{buildroot}%{_fontdir}
58ffc7
install -m 0644 -p legacy/*.afm legacy/*.pfm legacy/*.pfb %{buildroot}%{legacydir}
58ffc7
install -m 0644 -p legacy/COPYING %{buildroot}%{_datadir}/licenses/urw-fonts
58ffc7
58ffc7
install -m 0644 -p appstream/*.metainfo.xml %{buildroot}%{_datadir}/appdata/
58ffc7
58ffc7
# Install the fontconfig files with correct priority for our distribution:
58ffc7
for file in fontconfig/*.conf; do
58ffc7
  DISTRO_FILENAME="%{fontconfig_prio}-$(basename $file)"
58ffc7
  install -m 0644 -p $file %{buildroot}%{_datadir}/fontconfig/conf.avail/$DISTRO_FILENAME
58ffc7
  ln -sf %{_datadir}/fontconfig/conf.avail/$DISTRO_FILENAME %{buildroot}%{_sysconfdir}/fonts/conf.d/$DISTRO_FILENAME
58ffc7
done
58ffc7
58ffc7
# Some of the fontconfig files are not to be shipped:
58ffc7
#  * urw-fallback-specifics.conf - these mappings are already provided by fontconfig
58ffc7
#  * urw-fallback-generics.conf - no use-cases for this as far as we know
58ffc7
rm -f %{buildroot}%{_datadir}/fontconfig/conf.avail/%{fontconfig_prio}-urw-fallback-{specifics,generics}.conf
58ffc7
rm -f %{buildroot}%{_sysconfdir}/fonts/conf.d/%{fontconfig_prio}-urw-fallback-{specifics,generics}.conf
58ffc7
58ffc7
# We need to touch these files -- otherwise running 'rpm --setperms' would
58ffc7
# result in these files having incorrect permissions like this: [-------.]
58ffc7
#touch %{buildroot}%{_fontdir}/fonts.dir
58ffc7
#touch %{buildroot}%{_fontdir}/fonts.scale
58ffc7
touch %{buildroot}%{legacydir}/fonts.dir
58ffc7
touch %{buildroot}%{legacydir}/fonts.scale
58ffc7
58ffc7
# Install the symlink for the X11 Logical Font Description to actually work:
58ffc7
install -m 0755 -d %{buildroot}%{_sysconfdir}/X11/fontpath.d
58ffc7
#ln -sf %{_fontdir} %{buildroot}%{_sysconfdir}/X11/fontpath.d/%{name}
58ffc7
ln -sf %{legacydir} %{buildroot}%{_sysconfdir}/X11/fontpath.d/urw-fonts
58ffc7
58ffc7
# Generate the macro containing the path to our fonts:
58ffc7
install -m 0755 -d %{buildroot}%{_rpmconfigdir}/macros.d
58ffc7
58ffc7
cat > %{buildroot}%{_rpmconfigdir}/macros.d/macros.%{name} << _EOF
58ffc7
%%urw_base35_fontpath    %{_fontdir}
58ffc7
_EOF
58ffc7
58ffc7
# Check that the AppStream files are valid and safe. Otherwise they might not
58ffc7
# get used in Gnome Software...
58ffc7
%check
58ffc7
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/*.metainfo.xml
58ffc7
58ffc7
%post legacy
58ffc7
mkfontscale %{legacydir}
58ffc7
mkfontdir   %{legacydir}
58ffc7
export DISPLAY=:0
58ffc7
xset fp rehash &> /dev/null || :
58ffc7
58ffc7
%postun legacy
58ffc7
mkfontscale %{legacydir}
58ffc7
mkfontdir   %{legacydir}
58ffc7
export DISPLAY=:0
58ffc7
xset fp rehash &> /dev/null || :
58ffc7
58ffc7
# NOTE: There's no reason to run 'post' and 'postun' scriptlets for the main
58ffc7
#       metapackage or the *-common subpackage. Everything necessary is handled
58ffc7
#       by any of the actual font family subpackages.
58ffc7
58ffc7
# =============================================================================
58ffc7
58ffc7
%files
58ffc7
%{_datadir}/appdata/de.urwpp.URWCoreFontSetLevel2.metainfo.xml
58ffc7
58ffc7
# ---------------
58ffc7
58ffc7
%files common
58ffc7
%license LICENSE COPYING
58ffc7
58ffc7
%dir %{_fontdir}
58ffc7
#%ghost %verify (not md5 size mtime) %{_fontdir}/fonts.dir
58ffc7
#%ghost %verify (not md5 size mtime) %{_fontdir}/fonts.scale
58ffc7
58ffc7
%{_datadir}/fontconfig/conf.avail/%{fontconfig_prio}-urw-fallback-backwards.conf
58ffc7
%{_sysconfdir}/fonts/conf.d/%{fontconfig_prio}-urw-fallback-backwards.conf
58ffc7
#%{_sysconfdir}/X11/fontpath.d/%{name}
58ffc7
58ffc7
# ---------------
58ffc7
58ffc7
%files devel
58ffc7
%{_rpmconfigdir}/macros.d/macros.%{name}
58ffc7
58ffc7
# ---------------
58ffc7
58ffc7
%files legacy
58ffc7
%license %{_datadir}/licenses/urw-fonts/COPYING
58ffc7
%ghost %verify (not md5 size mtime) %{legacydir}/fonts.dir
58ffc7
%ghost %verify (not md5 size mtime) %{legacydir}/fonts.scale
58ffc7
%{_sysconfdir}/X11/fontpath.d/urw-fonts
58ffc7
%{legacydir}/*.afm
58ffc7
%{legacydir}/*.pfm
58ffc7
%{legacydir}/*.pfb
58ffc7
58ffc7
# =============================================================================
58ffc7
58ffc7
%changelog
58ffc7
* Mon Jun 18 2018 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 20170801-10
58ffc7
- fc-cache call dropped (from scriptlets)
58ffc7
58ffc7
* Fri Apr 06 2018 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 20170801-9
58ffc7
- *-legacy subpackage introduced (temporary workaround for BZ #1551219)
58ffc7
58ffc7
* Wed Feb 28 2018 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 20170801-8
58ffc7
- copy-paste error fixed in de.urwpp.URWCoreFontSetLevel2.metainfo.xml file
58ffc7
58ffc7
* Wed Feb 21 2018 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 20170801-7
58ffc7
- added %%check section for validation of AppStream files
58ffc7
58ffc7
* Mon Feb 19 2018 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 20170801-6
58ffc7
- temporary workaround for BZ #1534206
58ffc7
58ffc7
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20170801-5
58ffc7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
58ffc7
58ffc7
* Thu Jan 11 2018 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 20170801-4
58ffc7
- added missing Obsoletes/Provides for *-nimbus-sans-narrow subpackage
58ffc7
58ffc7
* Wed Dec 13 2017 David Kaspar [Dee'Kej] <dkaspar@redhat.com> 20170801-3
58ffc7
- *-devel subpackage added
58ffc7
- typos & syntax fixed for AppStream files
58ffc7
- NimbusSansNarrow-BdOblique.* renamed to *-BoldOblique
58ffc7
- *-nimbus-sans-narrow subpackage dropped
58ffc7
- priority/ordering decreased [60->61]
58ffc7
- ship *.otf format files as well
58ffc7
58ffc7
* Mon Sep 25 2017 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 20170801-2
58ffc7
- urw-base35-fonts-20170801-000-split-urw-fallback.patch added
58ffc7
- decrease the fontconfig priority/ordering value to 60 (bug #1494850)
58ffc7
- set same priority value for urw-fallback.conf as for other files (bug #1495199)
58ffc7
58ffc7
* Fri Sep 22 2017 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 20170801-1
58ffc7
- rebase to 20170801 version
58ffc7
- removed urw-* string from subpackages
58ffc7
- fontconfig priority value updated to 35
58ffc7
- error messages from 'xset fp rehash' suppressed (bug #1466254)
58ffc7
- AppStream files added into (sub)packages
58ffc7
- fontconfig files added into (sub)packages
58ffc7
- fixed fonts path during %%install
58ffc7
- source location updated to point at github.com
58ffc7
58ffc7
* Mon Jun 05 2017 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 20160926-1
58ffc7
- %%description line in 'fontfamily_subpkg' macro split
58ffc7
- requirement for 'fontpackages-filesystem' added
58ffc7
- mark 'font.dir' and 'font.scale' as %%ghost files
58ffc7
- fix the upgrading process (for Obsoletes|Provides|Conflicts)
58ffc7
- simplify creation of the subpackages with auxiliary %%fontfamily_subpkg macro
58ffc7
- update the fontconfig cache and X11 Logical Font Description database
58ffc7
  (during install/update/erase)
58ffc7
- initial version of specfile created
58ffc7