# # 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 Provides: xf86tools:/usr/sbin/fonts-config Requires: fontconfig >= 2.3.93.20060103 Requires: perl(English) Recommends: ft2demos PreReq: %fillup_prereq Version: 20080121 Release: 0 Summary: Configures Fonts for X Windows and other applications License: GPL-2.0+ Group: System/X11/Fonts Source: fonts-config Source1: SuSEconfig.fonts 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 BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build %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 $RPM_BUILD_ROOT/sbin/conf.d mkdir -p $RPM_BUILD_ROOT/usr/sbin mkdir -p $RPM_BUILD_ROOT/usr/share/fonts-config mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1 mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates install -m 755 $RPM_SOURCE_DIR/SuSEconfig.fonts $RPM_BUILD_ROOT/sbin/conf.d install -m 755 $RPM_SOURCE_DIR/fonts-config $RPM_BUILD_ROOT/usr/sbin install -m 644 $RPM_SOURCE_DIR/*.template $RPM_BUILD_ROOT/usr/share/fonts-config pod2man --section 1 --center=" " $RPM_SOURCE_DIR/fonts-config > \ $RPM_BUILD_ROOT/%{_mandir}/man1/fonts-config.1 install -m 644 $RPM_SOURCE_DIR/sysconfig.fonts-config \ $RPM_BUILD_ROOT/var/adm/fillup-templates/ %post %{fillup_only -n fonts-config} exit 0 %files %defattr(-,root,root) /usr/sbin/fonts-config %dir /usr/share/fonts-config/ /usr/share/fonts-config/* /sbin/conf.d/SuSEconfig.fonts %{_mandir}/man1/fonts-config.1.gz /var/adm/fillup-templates/sysconfig.fonts-config %changelog