Blame SPECS/urw-base35-fonts.spec

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