File xano-mincho.spec of Package xano-mincho

#
# spec file for package xano-mincho (Version 20040509)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           xano-mincho
BuildRequires:  xorg-x11-devel
%if "%(xft-config --prefix)" == "/usr"
%define	fontdir     /usr/share/fonts/truetype
%else
%define	fontdir     /usr/X11R6/lib/X11/fonts/truetype
%endif
License:        BSD License and BSD-like
Group:          System/X11/Fonts
Provides:       scalable-font-ja
Autoreqprov:    on
PreReq:         %suseconfig_fonts_prereq
Provides:       locale(ja)
Version:        20040509
Release:        1
URL:            http://www.asahi-net.or.jp/~sd5a-ucd/freefonts/XANO-mincho/
# original archive was in .zip format. Converted to .tar.bz2 to save some
# space in the .src.rpm file  The original archive also contained a .otf file.
# This file is removed to save some more space in the .src.rpm file.
# The .otf file contains only glyphs from the BMP and even in the BMP it contains
# fewer glyphs than the .ttf file. On top of that, the hinting in the .otf file
# seems to less good than the hinting in the .ttf file. 
Source0:        xano-mincho-20040509.tar.bz2
BuildArchitectures: noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Japanese "XANO-Mincho-U32" TrueType font JIS X 0213:2004

%description
Japanese "XANO-Mincho-U32" TrueType font JIS X 0213:2004



Authors:
--------
    &#20869;&#30000;&#26126; <uchida@happy.email.ne.jp>

%prep
%setup 

%build
for i in README.txt
do
    iconv -f SHIFT-JIS -t UTF-8 < $i > $i.UTF-8
    mv $i.UTF-8 $i
done

%install
mkdir -p $RPM_BUILD_ROOT%{fontdir}/
install -c -m 644 *.ttf $RPM_BUILD_ROOT%{fontdir}

%post
%run_suseconfig_fonts -c

%postun
%run_suseconfig_fonts -c

%files 
%defattr(-, root,root)
%doc README.txt license.txt
%dir %{fontdir}
%{fontdir}/*.ttf

%changelog
* Fri May 04 2007 - mfabian@suse.de
- new package: version 20040509.
openSUSE Build Service is sponsored by