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 http://bugs.opensuse.org/
#

# norootforbuild


Name:           freefont
BuildRequires:  fontforge >= 20080429
BuildRequires:  xorg-x11-devel
%if "%(xft-config --prefix)" == "/usr"
%define	ttf_fontdir     /usr/share/fonts/truetype
%else
%define	ttf_fontdir     /usr/X11R6/lib/X11/fonts/truetype
%endif
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
Url:            http://savannah.nongnu.org/projects/freefont/
#    cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/freefont login
#    (hit Enter)
#    cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/freefont co  freefont
#    tar jcvf freefont-0.20080323.tar.bz2 freefont/
Source0:        http://savannah.nongnu.org/download/freefont/freefont-0.20080323.tar.bz2
Source10:       remove-kana-glyphs
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Free UCS Outline Fonts

%description
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.



Authors:
--------
    Primoz Peterlin <primoz.peterlin@biofiz.mf.uni-lj.si>

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

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

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

%clean

%post
%run_suseconfig_fonts

%postun
%run_suseconfig_fonts

%files 
%defattr(-, root,root)
%doc AUTHORS CREDITS ChangeLog INSTALL README
%doc papers/
%dir %{ttf_fontdir}/
%{ttf_fontdir}/*.ttf

%changelog
* Mon May 26 2008 mfabian@suse.de
- bnc#246804: update to latest release (0.20080323), this seems
  to finally fix the spacing issues in the monospace font.
* Tue Aug 08 2006 mfabian@suse.de
- BuildRequires: xorg-x11-devel is necessary to detect Xorg X11R7.
* Mon Aug 07 2006 mfabian@suse.de
- move fonts to /usr/share/fonts because of the move to Xorg X11R7.
* Fri Aug 04 2006 mfabian@suse.de
- 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 mfabian@suse.de
- 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 mfabian@suse.de
- 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 mfabian@suse.de
- 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 mfabian@suse.de
- add "Provides: locale(bg;el;he;ru)".
* 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
- Bugzilla #45156: add "Provides:     scalable-font-el,
  scalable-font-he, scalable-font-ru, scalable-font-bg".
* Thu Aug 19 2004 ro@suse.de
- PfaEdit has been renamed to fontforge
* Sat Apr 24 2004 sndirsch@suse.de
- fixed neededforbuild (XFree86-libs --> xorg-x11-libs)
* Thu Apr 01 2004 mfabian@suse.de
- 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 mfabian@suse.de
- use %%suseconfig_fonts_prereq
* Fri Feb 27 2004 mfabian@suse.de
- update to 0.20040227.
- run SuSEconfig.fonts and SuSEconfig.pango in %%post and %%postun
* Tue Feb 24 2004 hmacht@suse.de
- building as non-root
* Sun Sep 14 2003 mfabian@suse.de
- Bugzilla #30768: update to version 0.20030914 which includes
  the U+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK glyph missing
  in previous versions.
* Mon Aug 18 2003 mfabian@suse.de
- new package, version 0.20030815