File sgi-fonts.spec of Package sgi-fonts
#
# spec file for package sgi-fonts (Version 1.0)
#
# Copyright (c) 2010 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/
#
# norootforbuild
Name: sgi-fonts
%if %suse_version > 910
BuildRequires: freetype2 xorg-x11 xorg-x11-devel xorg-x11-fonts
%else
BuildRequires: XFree86 XFree86-devel freetype2
%endif
%define fontdir /usr/share/fonts
Summary: Very nice bitmapped fonts from SGI
Version: 1.0
Release: 933
Group: System/X11/Fonts
AutoReqProv: on
PreReq: %suseconfig_fonts_prereq
License: MIT
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: %name.tar.bz2
Patch0: %name-%version.patch
BuildArch: noarch
%description
A few extra fonts from SGI, very readable.
%prep
%setup -q -n %name
%patch0 -p1
%build
xmkmf
make
%install
make FONTINSTDIR=%{fontdir}/misc DESTDIR=$RPM_BUILD_ROOT install
pushd $RPM_BUILD_ROOT%{fontdir}/misc/sgi
gzip --best *.pcf
fc-cache -f .
mkfontscale .
chmod u+w fonts.dir
mkfontdir -e %{fontdir}/encodings
touch .fonts-config-timestamp
popd
rm -f $RPM_BUILD_ROOT%{fontdir}/misc/sgi/fonts.cache-?
%post
%run_suseconfig_fonts
%postun
%run_suseconfig_fonts
%files
%defattr(644,root,root,755)
%dir %{fontdir}/misc/sgi/
%verify(not md5 size mtime) %{fontdir}/misc/sgi/.fonts-config-timestamp
%verify(not md5 size mtime) %{fontdir}/misc/sgi/encodings.dir
%verify(not md5 size mtime) %{fontdir}/misc/sgi/fonts.dir
%verify(not md5 size mtime) %{fontdir}/misc/sgi/fonts.scale
%{fontdir}/misc/sgi/fonts.alias
%{fontdir}/misc/sgi/*.pcf.gz
%changelog