Add fonts-config-fix-misspelling.patch: fix misspelling in configuration file(boo#1111791). OBS-URL: https://build.opensuse.org/request/show/642024 OBS-URL: https://build.opensuse.org/package/show/M17N/fonts-config?expand=0&rev=94
128 lines
4.0 KiB
RPMSpec
128 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: 20180430
|
|
Release: 0
|
|
Summary: Configures Fonts for X Windows and other applications
|
|
# MIT for infinality
|
|
License: GPL-2.0-or-later AND MIT
|
|
Group: System/X11/Fonts
|
|
Source: fonts-config-20180430.tar.xz
|
|
Patch: fonts-config-fix-misspelling.patch
|
|
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
|
|
Configures Fonts for X Windows and other applications.
|
|
|
|
Usually fonts-config is called automatically when package containing
|
|
font is installed, upgraded or removed. But you can also execute
|
|
fonts-config directly, which is mainly useful to debug it (use
|
|
--debug flag).
|
|
|
|
%prep
|
|
%setup
|
|
%patch -p1
|
|
|
|
%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 \
|
|
31-metric-aliases-bw.conf \
|
|
49-family-default.conf \
|
|
59-family-prefer-emoji.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
|