fonts-config/fonts-config.spec
Karl Cheng bcc9201867 Accepting request 657353 from home:simotek:branches:M17N
- Update to 20181211
  * Update subpixel rendering config
  * fix missspelling fonts-config-fix-misspelling.patch no longer
    required
  * fix boo#1092737
  * other minor tidyups

OBS-URL: https://build.opensuse.org/request/show/657353
OBS-URL: https://build.opensuse.org/package/show/M17N/fonts-config?expand=0&rev=98
2018-12-12 12:30:52 +00:00

127 lines
4.0 KiB
RPMSpec

#
# spec file for package fonts-config
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
#Compat macro for new _fillupdir macro introduced in Nov 2017
%if ! %{defined _fillupdir}
%define _fillupdir /var/adm/fillup-templates
%endif
Name: fonts-config
Version: 20181211
Release: 0
Summary: Script to configure fonts for X Windows and other applications
# MIT for infinality
License: GPL-2.0-or-later AND MIT
Group: System/X11/Fonts
Source: %{name}-%{version}.tar.xz
BuildRequires: fontconfig
BuildRequires: fontpackages-devel
Requires(pre): %fillup_prereq
%reconfigure_fonts_prereq
Requires: fontconfig
Requires: gawk
Requires: perl(English)
Recommends: mkfontscale
Recommends: mkfontdir
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
A script to configure fonts for X Windows and other applications.
fonts-config is usually called automatically when a package containing
fonts is installed, upgraded or removed. But it can also be executed
directly, which is mainly useful to debug it (use the --debug flag).
%prep
%setup
%build
# empty configuration now, should be filled after fonts-config call
cp 99-example.conf 10-rendering-options.conf
# empty configuration now, can be filled after fonts-config call
cp 99-example.conf 58-family-prefer-local.conf
%install
mkdir -p %{buildroot}/sbin/conf.d
mkdir -p %{buildroot}%{_prefix}/sbin
mkdir -p %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}/%{_mandir}/man1
mkdir -p %{buildroot}/%{_docdir}/%{name}/infinality
mkdir -p %{buildroot}%{_fillupdir}
install -m 755 fonts-config %{buildroot}%{_prefix}/sbin
install -m 644 sysconfig.fonts-config \
%{buildroot}%{_fillupdir}/
install -m 644 fontconfig.SUSE.properties.template %{buildroot}%{_datadir}/fonts-config
pod2man --section 1 --center=" " fonts-config > \
%{buildroot}/%{_mandir}/man1/fonts-config.1
#
install -m 644 10-rendering-options.conf.template %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_fontsconfavaildir}
# following two conf files can not be under /usr/share/fonts-config
# as they are changed during installation [bnc#882029 (internal)]
mkdir -p %{buildroot}%{_fontsconfddir}
for conf in 10-rendering-options.conf \
58-family-prefer-local.conf; do
install -m 644 $conf %{buildroot}%{_fontsconfddir}
done
#
for conf in 10-group-tt-hinted-fonts.conf \
10-group-tt-non-hinted-fonts.conf \
11-base-rendering.conf \
12-tt-monospace-rendering.conf \
13-selective-rendering.conf \
13-selective-rendering-ipa.conf \
21-emoji-rendering.conf \
31-metric-aliases-bw.conf \
32-emoji-reject.conf \
32-symbol-substitution.conf \
49-family-default.conf \
59-family-prefer-lang-specific.conf \
60-family-prefer.conf \
61-wine-aliases.conf \
70-reject.conf; do
install -m 644 $conf %{buildroot}%{_datadir}/%{name}/conf.avail/
%link_avail_to_system_fontsconf $conf
done
%post
%{fillup_only -n fonts-config}
%reconfigure_fonts_post -c
exit 0
%postun
%reconfigure_fonts_postun -c
%posttrans
%reconfigure_fonts_posttrans
%files
%defattr(-,root,root)
%dir %{_datadir}/fonts-config
%files_fontsconf_availdir
%{_sbindir}/fonts-config
%{_datadir}/fonts-config/*.template
%{_mandir}/man1/fonts-config.1.gz
%{_docdir}/%{name}
%{_fillupdir}/sysconfig.fonts-config
%{_fontsconfavaildir}/*.conf
%config %{_fontsconfddir}/*.conf
%changelog