File mikachan-fonts.spec of Package mikachan-fonts

#
# spec file for package mikachan-fonts (Version 9.1.2006.08.09)
#
# Copyright (c) 2008 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:           mikachan-fonts
BuildRequires:  convmv
%if %suse_version > 910
BuildRequires:  xorg-x11-devel
%else
BuildRequires:  XFree86-devel
%endif
%if "%(xft-config --prefix)" == "/usr"
%define	fontdir     /usr/share/fonts/truetype
%else
%define	fontdir     /usr/X11R6/lib/X11/fonts/truetype
%endif
License:        http://mikachan.sourceforge.jp/dl.html
Group:          System/X11/Fonts
Provides:       scalable-font-ja
AutoReqProv:    on
PreReq:         %suseconfig_fonts_prereq
Provides:       locale(ja)
Version:        9.1.2006.08.09
Release:        165
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
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Free Japanese Fonts in "Handwriting" Style by Mika-Chan

%description
Free Japanese fonts in "handwriting" style by Mika-Chan.



Authors:
--------
    Mika-Chan <mikachan_font@hotmail.com>

%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 $RPM_BUILD_ROOT%{fontdir}/
install -c -m 644 *.ttf $RPM_BUILD_ROOT%{fontdir}

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;

%post
%run_suseconfig_fonts -c

%postun
%run_suseconfig_fonts -c

%files 
%defattr(-, root,root)
%doc COPYING *.html
%dir %{fontdir}/
%{fontdir}/*

%changelog
* Tue Dec 02 2008 mfabian@suse.de
- Add inofficial translation of the license in
  http://mikachan.sourceforge.jp/dl.html
* Wed Aug 09 2006 mfabian@suse.de
- move fonts to /usr/share/fonts/truetype
  (openSUSE 10.2 will use X11R7).
- update to 9.1.2006.08.09.
* Wed Mar 01 2006 mfabian@suse.de
- add "Provides: locale(ja)".
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Dec 03 2004 mfabian@suse.de
- use new macro "%%run_suseconfig_fonts -c"
* Mon Sep 13 2004 mfabian@suse.de
- Bugzilla #45156: add "Provides: scalable-font-ja".
* Fri Mar 19 2004 mfabian@suse.de
- use %%suseconfig_fonts_prereq
* Fri Feb 27 2004 mfabian@suse.de
- update to 9.0.2004.02.08
- run SuSEconfig.fonts and SuSEconfig.pango in %%post and %%postun
* Tue Feb 03 2004 hmacht@suse.de
- added option # norootforbuild in specfile
* Sun Aug 24 2003 mfabian@suse.de
- new package: mikachan-fonts, Version 8.9.2003.08.11
openSUSE Build Service is sponsored by