File free-ttf-fonts.spec of Package free-ttf-fonts
#
# spec file for package free-ttf-fonts (Version 1.0)
#
# Copyright (c) 2009 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: free-ttf-fonts
BuildRequires: unzip
%if %suse_version > 910
BuildRequires: xorg-x11-devel
%else
BuildRequires: XFree86-devel
%endif
%if "%(xft-config --prefix)" == "/usr"
%define fontdir /usr/share/fonts/truetype
%else
%define fontdir /usr/X11R6/lib/X11/fonts/truetype
%endif
License: Artistic License; GPL v2 or later; Public Domain, Freeware
Group: System/X11/Fonts
AutoReqProv: on
PreReq: %suseconfig_fonts_prereq
Version: 1.0
Release: 341
Summary: Free TrueType Art Fonts
# Fonts from http://www.dustismo.com/
# Licensed under GPL
Source0: Dustismo.zip
Source1: Junkyard.zip
Source2: Swift.zip
Source3: El_Abogado_Loco.zip
Source4: MarkedFool.zip
Source5: Wargames.zip
Source6: balker.zip
Source7: ItWasntMe.zip
Source8: PenguinAttack.zip
Source9: Winks.zip
Source10: flatline.zip
# Fonts from http://www.thibault.org/fonts/isabella/
# Licensed under GPL
Source11: Isabella.ttf.tar.gz
Source12: latex-xft-fonts-0.1.tar.gz
# Fonts from http://www.larabiefonts.com/
# Licensed under a freeware license
Source100: allfonts.zip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
More than 300 free fonts in True Type format. Most of them are in the
art style and unusable as desktop fonts, but are great for any poster
or illustration.
The fonts are copyrighted under the GPL or a Freeware license, but
donations are requested by the artists. Look in
/usr/share/doc/packages/free-ttf-fonts/ for further information.
Authors:
--------
Dustin Norlander <dustin@dustismo.com>
<nutso@cheapskatefonts.com>
Ray Larabie <rlarabie@hotmail.com>
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{fontdir}/
mkdir -p $RPM_BUILD_ROOT/%_docdir/%name
pushd $RPM_BUILD_ROOT%{fontdir}/
for i in %SOURCE0 %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4 %SOURCE5 %SOURCE6 %SOURCE7 %SOURCE8 %SOURCE9 %SOURCE10 %SOURCE100 \
; do
unzip -o "$i"
done
for i in *.TTF *.TXT; do
mv "$i" "`echo $i|tr '[A-Z]' '[a-z]'`"
done
install -m 0644 *.txt $RPM_BUILD_ROOT/%_docdir/%name
rm $RPM_BUILD_ROOT%{fontdir}/*.txt
popd
mkdir Isabella
pushd Isabella
tar xfvz $RPM_SOURCE_DIR/Isabella.ttf.tar.gz
install -m 0644 *.ttf $RPM_BUILD_ROOT%{fontdir}
install -m 0644 README.txt $RPM_BUILD_ROOT/%_docdir/%name/README.Isabella.txt
install -m 0644 COPYING $RPM_BUILD_ROOT/%_docdir/%name/COPYING.Isabella
popd
mkdir latex-xft
pushd latex-xft
tar xfvz $RPM_SOURCE_DIR/latex-xft-fonts-0.1.tar.gz
install -m 0644 *.ttf $RPM_BUILD_ROOT%{fontdir}
install -m 0644 readme.latex-fonts $RPM_BUILD_ROOT/%_docdir/%name
popd
%clean
rm -rf $RPM_BUILD_ROOT
%post
%run_suseconfig_fonts
%postun
%run_suseconfig_fonts
%files
%defattr(0644,root,root,755)
%_docdir/%name
%dir %{fontdir}/
%{fontdir}/*
%changelog
* Thu Mar 29 2007 dmueller@suse.de
- add unzip BuildRequires
* Fri Aug 11 2006 mfabian@suse.de
- don't install readme files and licenses into the font directory.
* Fri Aug 11 2006 dmueller@suse.de
- fix build
* Tue Aug 08 2006 dmueller@suse.de
- /usr/X11R6/lib/X11/fonts -> /usr/share/fonts
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Dec 03 2004 mfabian@suse.de
- use new macro "%%run_suseconfig_fonts".
* Mon Sep 13 2004 mfabian@suse.de
- run SuSEconfig.fonts only if it exists.
* Thu Mar 18 2004 mfabian@suse.de
- use %%suseconfig_fonts_prereq
- run SuSEconfig.fonts and SuSEconfig.pango in %%post and %%postun
* Mon Feb 23 2004 hmacht@suse.de
- building as non-root
* Thu Jan 08 2004 bg@suse.de
- add latex-xft-fonts-0.1 (see readme.latex-fonts)
ftp://ftp.lyx.org/pub/lyx/contrib/latex-xft-fonts-0.1.tar.gz
* Wed Aug 13 2003 adrian@suse.de
- add new font
* Mon Jun 16 2003 coolo@suse.de
- package directories
* Mon May 26 2003 adrian@suse.de
- build fix
* Sat Apr 19 2003 adrian@suse.de
- initial package of a large number of fonts