File mikachan-fonts.spec of Package mikachan-fonts
#
# spec file for package mikachan-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: mikachan-fonts
Version: 9.1.2006.08.09
Release: 0
Summary: Free Japanese Fonts in "Handwriting" Style by Mika-Chan
License: SUSE-NonFree
Group: System/X11/Fonts
Url: http://mikachan-font.com/
# Original source is in separate .lzh files, using bzip2 here saves 0.5 MB
# see the "update-archive" script where to download the original .lzh files
# http://mikachan.sourceforge.jp/mikachanALL.lzh
Source0: mikachan-fonts.tar.bz2
Source1: http://mikachan.sourceforge.jp/dl.html
Source2: COPYING
Source10: update-archive
BuildRequires: convmv
BuildRequires: fontpackages-devel
%reconfigure_fonts_prereq
Provides: scalable-font-ja
Provides: locale(ja)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
This package contains free Japanese fonts in "handwriting" style by Mika-Chan.
%prep
%setup -n %{name}
cp $RPM_SOURCE_DIR/*.html .
cp $RPM_SOURCE_DIR/COPYING .
convmv -f shift_jis -t utf-8 --notest *.ttf
%build
%install
mkdir -p %{buildroot}%{_ttfontsdir}/
install -c -m 644 *.ttf %{buildroot}%{_ttfontsdir}
%reconfigure_fonts_scriptlets -c
%files
%defattr(-, root,root)
%doc COPYING *.html
%{_ttfontsdir}
%changelog