SHA256
1
0
forked from pool/fonts-config
fonts-config/fonts-config.spec
Petr Gajdos 4fb81b60dc Accepting request 220364 from home:pgajdos
- fonts-config 20131102 [bnc#860097]:
  * do not check for font module used -> fixes TTCap entries 
    generation
  * drop generating ghostscript fontmap
  * drop generating ooo xcu file
  * --quiet means quiet now

OBS-URL: https://build.opensuse.org/request/show/220364
OBS-URL: https://build.opensuse.org/package/show/M17N/fonts-config?expand=0&rev=36
2014-01-30 13:46:44 +00:00

98 lines
3.1 KiB
RPMSpec

#
# spec file for package fonts-config
#
# Copyright (c) 2014 SUSE LINUX Products 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/
#
Name: fonts-config
Version: 20131102
Release: 0
Summary: Configures Fonts for X Windows and other applications
License: GPL-2.0+
Group: System/X11/Fonts
Source0: fonts-config
Source1: sysconfig.fonts-config
Source2: fontconfig.SuSE.properties.template
Source3: suse-hinting.conf.template
Source4: suse-bitmaps.conf.template
BuildRequires: fontconfig
BuildRequires: fontpackages-devel
Requires(pre): %fillup_prereq
%reconfigure_fonts_prereq
Requires: fontconfig
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
%build
%install
mkdir -p %{buildroot}/sbin/conf.d
mkdir -p %{buildroot}%{_prefix}/sbin
mkdir -p %{buildroot}%{_datadir}/fonts-config
mkdir -p %{buildroot}/%{_mandir}/man1
mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates
install -m 755 %{SOURCE0} %{buildroot}%{_prefix}/sbin
install -m 644 %{SOURCE2} %{SOURCE3} %{SOURCE4} %{buildroot}%{_datadir}/fonts-config
pod2man --section 1 --center=" " %{SOURCE0} > \
%{buildroot}/%{_mandir}/man1/fonts-config.1
install -m 644 %{SOURCE1} \
%{buildroot}%{_localstatedir}/adm/fillup-templates/
#
mkdir %{buildroot}%{_datadir}/%{name}/conf.avail/
sed -e's/_BYTECODE_BW_MAX_PIXEL_/0/' %{SOURCE3} \
> %{buildroot}%{_datadir}/%{name}/conf.avail/12-suse-hinting-bc.conf
sed -e's/_USE_EMBEDDED_BITMAPS_PLACEHOLDER_//' %{SOURCE4} \
> %{buildroot}%{_datadir}/%{name}/conf.avail/17-suse-bitmaps.conf
#
%link_avail_to_system_fontsconf 12-suse-hinting-bc.conf
%link_avail_to_system_fontsconf 17-suse-bitmaps.conf
%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
%{_localstatedir}/adm/fillup-templates/sysconfig.fonts-config
%files_fontsconf_file -l 12-suse-hinting-bc.conf
%files_fontsconf_file -l 17-suse-bitmaps.conf
%changelog