File sgi-fonts.spec of Package sgi-fonts
#
# spec file for package sgi-fonts (Version 1.0)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# 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
%if "%(xft-config --prefix)" == "/usr"
%define fontdir /usr/share/fonts
%else
%define fontdir /usr/X11R6/lib/X11/fonts
%endif
Summary: Very nice bitmapped fonts from SGI
Version: 1.0
Release: 725
Group: System/X11/Fonts
Autoreqprov: on
PreReq: %suseconfig_fonts_prereq
License: X11/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 -n sgi-fonts
* Tue Aug 08 2006 - mfabian@suse.de
- move fonts to /usr/share/fonts because of the move to Xorg X11R7.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Jan 24 2006 - mmj@suse.de
- don't package font-cache stuff
* Thu Jan 19 2006 - mmj@suse.de
- fix filelist
* Fri Oct 14 2005 - ro@suse.de
- use fonts-cache-? in filelist
* Fri Dec 03 2004 - mfabian@suse.de
- use new macro "%%run_suseconfig_fonts".
* Fri Mar 19 2004 - mfabian@suse.de
- use %%suseconfig_fonts_prereq
* Fri Feb 27 2004 - mfabian@suse.de
- run SuSEconfig.fonts and SuSEconfig.pango in %%post and %%postun
* Wed Nov 05 2003 - ro@suse.de
- fix build after previous change
* Thu Oct 16 2003 - mmj@suse.de
- Don't build as root
* Thu Sep 18 2003 - kukuk@suse.de
- Create all font metadata
* Fri Aug 29 2003 - kukuk@suse.de
- Add %%verify for fonts.dir
* Sat Mar 08 2003 - mfabian@suse.de
- Bug #24908: bdf property FOUNDRY was the empty string in a few
fonts -> fill it with "SGI" as it is in the other fonts already.
- sgi-fonts.tar.gz wasn't really gzipped, only tarred.
-> make it a correct .tar.bz2 file.
* Sun Mar 02 2003 - mmj@suse.de
- Make it use BuildRoot:
- Add freetype2 for build on s390
- Cleanup specfile
* Mon Apr 09 2001 - ro@suse.de
- don't use macro for version
* Thu Mar 22 2001 - jj@suse.de
- initial version