File mplus-fonts.spec of Package mplus-fonts

# spec file for package mplus-fonts (Version 1.0.29)
# 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

# norootforbuild

%define mplusname mplus-TESTFLIGHT-029

Name:           mplus-fonts
%define	fontdir     /usr/share/fonts/truetype
License:        mplus font license (freely distributable)
Group:          System/X11/Fonts
AutoReqProv:    on
PreReq:         %suseconfig_fonts_prereq
#Provides:       locale(vi)
Version:        1.0.29
Release:        1
Source0:        %{mplusname}.tar.bz2
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Free fonts set incorporates all Kanji until level 2 and Latin glyphs

The M+ outline fonts are distributed with proportional Latin (4 variations), 
fixed-halfwidth Latin (3 variations) and fixed-fullwidth Japanese (2 Kana variations)
character set. 7 weights from Thin to Black are included, but fixed-halfwidth
Latin with 5 weights from Thin to Bold.

  Haiku Monkey
  Coji Morishita
  Kazuyuki Imazu
  Muraoka Taro

%setup -T -c %{mplusname} -n %{mplusname}
%{__tar} xjvf %{S:0}


[ -e %buildroot ] || %{__mkdir} %buildroot
%{__mkdir_p}  $RPM_BUILD_ROOT%{fontdir}/
%{__install} -c -m 644 %{mplusname}/*.ttf $RPM_BUILD_ROOT%{fontdir}

[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && %{__rm} -rf $RPM_BUILD_ROOT;



%defattr(-, root,root)
%doc %{mplusname}/LICENSE_?  %{mplusname}/README_?
%dir %{fontdir}/