- cooperate with fontconfig 2.10.0 (removed /etc/fonts/conf.avail) OBS-URL: https://build.opensuse.org/request/show/135644 OBS-URL: https://build.opensuse.org/package/show/M17N/fonts-config?expand=0&rev=32
98 lines
3.4 KiB
RPMSpec
98 lines
3.4 KiB
RPMSpec
#
|
|
# spec file for package fonts-config
|
|
#
|
|
# Copyright (c) 2012 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: 20080121
|
|
Release: 0
|
|
Summary: Configures Fonts for X Windows and other applications
|
|
License: GPL-2.0+
|
|
Group: System/X11/Fonts
|
|
Source: fonts-config
|
|
Source2: sysconfig.fonts-config
|
|
Source3: Common.xcu.template
|
|
Source5: fontconfig.SuSE.properties.template
|
|
Source6: suse-hinting.conf.template
|
|
Source7: suse-bitmaps.conf.template
|
|
Source8: suse-font-dirs.conf.template
|
|
BuildRequires: fontconfig
|
|
BuildRequires: fontpackages-devel
|
|
Requires(pre): %fillup_prereq
|
|
Requires(pre): sysvinit-tools
|
|
Requires: fontconfig >= 2.3.93.20060103
|
|
Requires: perl(English)
|
|
Recommends: ft2demos
|
|
Provides: xf86tools:/usr/sbin/fonts-config
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
%reconfigure_fonts_prereq
|
|
|
|
%description
|
|
Configures Fonts for X Windows and other applications.
|
|
|
|
Usually fonts-config is called automatically via SuSEconfig (SuSEconfig
|
|
--module fonts), which is usually automatically called by YaST2. You
|
|
can also execute fonts-config directly, which is mainly useful for
|
|
debugging it.
|
|
|
|
%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 $RPM_SOURCE_DIR/fonts-config %{buildroot}%{_prefix}/sbin
|
|
install -m 644 $RPM_SOURCE_DIR/*.template %{buildroot}%{_datadir}/fonts-config
|
|
pod2man --section 1 --center=" " $RPM_SOURCE_DIR/fonts-config > \
|
|
%{buildroot}/%{_mandir}/man1/fonts-config.1
|
|
install -m 644 $RPM_SOURCE_DIR/sysconfig.fonts-config \
|
|
%{buildroot}%{_localstatedir}/adm/fillup-templates/
|
|
#
|
|
mkdir %{buildroot}%{_datadir}/%{name}/conf.avail/
|
|
sed -e's/_BYTECODE_BW_MAX_PIXEL_/0/' %{SOURCE6} \
|
|
> %{buildroot}%{_datadir}/%{name}/conf.avail/12-suse-hinting-bc.conf
|
|
sed -e's/_USE_EMBEDDED_BITMAPS_PLACEHOLDER_//' %{SOURCE7} \
|
|
> %{buildroot}%{_datadir}/%{name}/conf.avail/17-suse-bitmaps.conf
|
|
#
|
|
mkdir -p %{buildroot}%{_fontsconfddir}
|
|
ln -s %{_datadir}/%{name}/conf.avail/12-suse-hinting-bc.conf \
|
|
%{buildroot}%{_fontsconfddir}/12-suse-hinting-bc.conf
|
|
ln -s %{_datadir}/%{name}/conf.avail/17-suse-bitmaps.conf \
|
|
%{buildroot}%{_fontsconfddir}/17-suse-bitmaps.conf
|
|
|
|
%post
|
|
%{fillup_only -n fonts-config}
|
|
%reconfigure_fonts_post
|
|
exit 0
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_sbindir}/fonts-config
|
|
%dir %{_datadir}/fonts-config/
|
|
%{_datadir}/fonts-config/*
|
|
%{_mandir}/man1/fonts-config.1.gz
|
|
%{_localstatedir}/adm/fillup-templates/sysconfig.fonts-config
|
|
%dir %{_datadir}/%{name}/conf.avail
|
|
%{_datadir}/%{name}/conf.avail/*.conf
|
|
%{_fontsconfddir}/*
|
|
|
|
%changelog
|