File monapo-fonts.spec of Package monapo-fonts

#
# spec file for package monapo-fonts
#
# Copyright (c) 2012 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/
#



Name:           monapo-fonts
Version:        20090423
Release:        1
%define	fontdir     /usr/share/fonts/truetype
License:        IPA
Summary:        Monapo Japanese Truetype font
Url:            http://dicey.org/vlgothic/
Group:          System/X11/Fonts
Source0:        monapo-%{version}.tar.bz2
Requires(pre):  %suseconfig_fonts_prereq
Provides:       scalable-font-ja
Provides:       locale(ja)
Provides:       monapo = %{version}
Obsoletes:      monapo < %{version}
Provides:       monapo-font = %{version}
Obsoletes:      monapo-font <= 20090423
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
This package provides "monapo" Japanese TrueType font which is
based on IPA fonts (v3).  Monapo font is adjusted to be compatible
with MS P Gothic so that it can show Japanese Ascii Art properly.

%prep
%setup -q -n monapo-%{version}
for i in docs-mona/README*
do
    iconv -fsjis -tutf-8 < $i > $i.tmp
    mv $i.tmp $i
done

%build

%install
mkdir -p %{buildroot}%{fontdir}
install -m 644 monapo.ttf %{buildroot}%{fontdir}

%clean
rm -rf %{buildroot}

%post
%run_suseconfig_fonts -c

%postun
%run_suseconfig_fonts -c

%files
%defattr(-,root,root)
%doc ChangeLog IPA_Font_License_Agreement_v1.0.txt README
%doc docs-ipafont
%doc docs-mona
%{fontdir}

%changelog