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

#
# spec file for package efont-serif-ttf (Version 20010312)
#
# Copyright (c) 2010 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
%define	fontdir     /usr/share/fonts/truetype
License:        GPLv2+
Group:          System/X11/Fonts
AutoReqProv:    on
PreReq:         %suseconfig_fonts_prereq
Version:        20010312
Release:        668
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
openSUSE Build Service is sponsored by