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:        0
Summary:        Monapo Japanese Truetype font
License:        IPA
Group:          System/X11/Fonts
Url:            http://dicey.org/vlgothic/
Source0:        monapo-%{version}.tar.bz2
BuildRequires:  fontpackages-devel
%reconfigure_fonts_prereq
Provides:       monapo = %{version}
Provides:       scalable-font-ja
Provides:       locale(ja)
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}%{_ttfontsdir}
install -m 644 monapo.ttf %{buildroot}%{_ttfontsdir}

%clean
rm -rf %{buildroot}

%reconfigure_fonts_scriptlets -c

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

%changelog
openSUSE Build Service is sponsored by