File efont-serif-ttf.spec of Package efont-serif-ttf

#
# spec file for package efont-serif-ttf (Version 20010312)
#
# 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:           efont-serif-ttf
%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:        GPL v2 or later
Group:          System/X11/Fonts
AutoReqProv:    on
PreReq:         %suseconfig_fonts_prereq
Version:        20010312
Release:        667
Url:            http://openlab.ring.gr.jp/efont/
# downloaded from
# http://openlab.ring.gr.jp/efont/dist/serif/efont-serif-%{version}-win.zip
# and converted to tar.bz2 to save a bit of space
Source0:        http://openlab.ring.gr.jp/efont/dist/serif/efont-serif-%{version}.tar.bz2
Source1:        fonts.scale.efont-serif-ttf
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Free and Open Scalable Electronic Font
# Summary(ja):  真にフリーでオープンな電子書体です。
# %description -l ja
#
# 真にフリーでオープンな電子書体です。
# 
# 
# 例えば、再配布が自由な Omega Serif や URW Nimbus は、Adobe Times と字形
# が酷似しています。efont-serif は、アウトラインデータはもちろん、字形その
# ものも、著作権で保護されている他の書体を一切コピーしていません。
# 
# Authors:
# --------
# 
#     Kazuhiko Shiozaki <kazuhiko@ring.gr.jp>

%description
The efont-serif is a really free and open scalable electronic font.

The Omega Serif and URW Nimbus are also distributable. But their letter
forms are quite similar to Adobe Times. The efont-serif does not copy
the outlines or the letter forms of any copyrighted typefaces.



Authors:
--------
    Kazuhiko Shiozaki <kazuhiko@ring.gr.jp>

%prep
%setup -n efont-serif-%{version}-win

%build

%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
mkdir -p $RPM_BUILD_ROOT%{fontdir}/
install -c -m 644 *.ttf $RPM_BUILD_ROOT%{fontdir}
install -c -m 644 $RPM_SOURCE_DIR/fonts.scale.efont-serif-ttf $RPM_BUILD_ROOT%{fontdir}/

%clean
#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;

%post
%run_suseconfig_fonts

%postun
%run_suseconfig_fonts

%files 
%defattr(-, root,root)
%doc GPL*
%dir %{fontdir}/
%{fontdir}/*.ttf
%config %{fontdir}/fonts.scale.efont-serif-ttf

%changelog
* Wed Aug 09 2006 mfabian@suse.de
- move fonts to /usr/share/fonts/truetype
  (openSUSE 10.2 will use X11R7).
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Dec 03 2004 mfabian@suse.de
- use new macro "%%run_suseconfig_fonts".
* Thu Mar 18 2004 mfabian@suse.de
- use %%suseconfig_fonts_prereq
* Sat Feb 14 2004 mfabian@suse.de
- run SuSEconfig.fonts and SuSEconfig.pango in %%post and %%postun
* Wed Nov 26 2003 mfabian@suse.de
- don't build as root
- remove unsupported ascii-0 encoding from fonts.scale
- remove useless %%post and %%postun.
* Fri Jun 13 2003 mfabian@suse.de
- add %%dir /usr/X11R6/lib/X11/fonts/truetype/ to file list
* Mon Jan 28 2002 schwab@suse.de
- Remove empty lines from fonts.scale.
* Tue Apr 17 2001 mfabian@suse.de
- update to version 20010312
- remove %%post and %%postun, it is enough when SuSEconfig
  updates the font directory, better don't duplicate the code
  here.
* Fri Mar 02 2001 mfabian@suse.de
- new package: efont-serif-ttf version 20010226
openSUSE Build Service is sponsored by