File freefont.spec of Package freefont

# spec file for package freefont (Version 0.20080323)
# Copyright (c) 2008 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

# norootforbuild

Name:           freefont
BuildRequires:  fontforge >= 20080429
BuildRequires:  xorg-x11-devel
%if "%(xft-config --prefix)" == "/usr"
%define	ttf_fontdir     /usr/share/fonts/truetype
%define	ttf_fontdir     /usr/X11R6/lib/X11/fonts/truetype
License:        GPL v2 or later
Group:          System/X11/Fonts
Provides:       scalable-font-el, scalable-font-he, scalable-font-ru, scalable-font-bg
AutoReqProv:    on
PreReq:         %suseconfig_fonts_prereq
Provides:       locale(bg;el;he;ru;vi)
Version:        0.20080323
Release:        1
#    cvs -z3 login
#    (hit Enter)
#    cvs -z3 co  freefont
#    tar jcvf freefont-0.20080323.tar.bz2 freefont/
Source10:       remove-kana-glyphs
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Free UCS Outline Fonts

A set of free outline (OpenType, for example) fonts covering the ISO
10646/Unicode UCS (Universal Character Set). The set consists of three
typefaces: one monospaced and two proportional (one with uniform and
one with modulated stroke.

    Primoz Peterlin <>

%setup -n freefont
find . -name CVS -type d | xargs rm -rf

chmod 755 $RPM_SOURCE_DIR/remove-kana-glyphs
$RPM_SOURCE_DIR/remove-kana-glyphs ./sfd/*.sfd
fontforge -script ./tools/GenerateTrueType *.sfd

mkdir -p $RPM_BUILD_ROOT%{ttf_fontdir}/
install -c -m 644 *.ttf $RPM_BUILD_ROOT%{ttf_fontdir}/




%defattr(-, root,root)
%doc papers/
%dir %{ttf_fontdir}/

* Mon May 26 2008
- bnc#246804: update to latest release (0.20080323), this seems
  to finally fix the spacing issues in the monospace font.
* Tue Aug 08 2006
- BuildRequires: xorg-x11-devel is necessary to detect Xorg X11R7.
* Mon Aug 07 2006
- move fonts to /usr/share/fonts because of the move to Xorg X11R7.
* Fri Aug 04 2006
- remove "#!BuildIgnore: NX". It is not necessary anymore, on
  the contrary it makes the build fail now for xorg7-SUSE_Factory
  in the openSUSE build service.
* Thu Jul 20 2006
- add "chmod 755 $RPM_SOURCE_DIR/remove-kana-glyphs" to make
  it build in the openSUSE build service.
  Permissions for any file in $RPM_SOURCE_DIR are nowhere guaranteed
  to be preserved.
* Wed Jul 19 2006
- add "#!BuildIgnore: NX" to make it build for the
  xorg7-SUSE_Factory in the openSUSE build service.
- add "vi" to the "Provides: locale".
* Tue Jul 18 2006
- update to 0.20060718.
  + All the fonts now conform to MES-1 (Minimum European Subset) of
  Unicode/ISO 10646. In addition, thanks to Solaiman Karim,
  Omi Azad, K.H. Hussain and R. Chitrajan, OpenType support for
  Bengali (in FreeSerif, FreeSerifItalic, FreeSans and
  FreeSansOblique) and traditional Malayalam (FreeSerif) might
  be mentioned as major new features.
* Wed Mar 01 2006
- add "Provides: locale(bg;el;he;ru)".
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Fri Dec 03 2004
- use new macro "%%run_suseconfig_fonts".
* Mon Sep 13 2004
- Bugzilla #45156: add "Provides:     scalable-font-el,
  scalable-font-he, scalable-font-ru, scalable-font-bg".
* Thu Aug 19 2004
- PfaEdit has been renamed to fontforge
* Sat Apr 24 2004
- fixed neededforbuild (XFree86-libs --> xorg-x11-libs)
* Thu Apr 01 2004
- Bugzilla #37113: remove Kana to improve the appearance of
  Japanese during the installation.
  Kana without Kanji are completely useless.
  They can only cause problems because it can happen
  that they are combined with Kanji from a completely different
  font which looks very ugly. This happens easily in Qt
  applications because Qt unfortunately treats "Hiragana",
  "Katakana", and "Han" as 3 different Unicode regions and may
  select a different font for each of these regions. I.e. if
  FreeSans is set as the main font in Qt while using Japanese,
  FreeSans will be used no only for Latin but also for Kana and
  only for the Kanji a "real" Japanese font like "Kochi Gothic"
  will be used. This looks very bad. If FreeSans doesn't have
  Kana at all, the "real" Japanese font will be used for the
  Kana and the Kanji, which looks much nicer.
* Thu Mar 18 2004
- use %%suseconfig_fonts_prereq
* Fri Feb 27 2004
- update to 0.20040227.
- run SuSEconfig.fonts and SuSEconfig.pango in %%post and %%postun
* Tue Feb 24 2004
- building as non-root
* Sun Sep 14 2003
- Bugzilla #30768: update to version 0.20030914 which includes
  in previous versions.
* Mon Aug 18 2003
- new package, version 0.20030815