File vlgothic.spec of Package vlgothic
#
# spec file for package vlgothic (Version 20090710)
#
# Copyright (c) 2009 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: vlgothic
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: Public Domain, Freeware
Group: System/X11/Fonts
AutoReqProv: on
Url: http://dicey.org/vlgothic/
Summary: VL-Gothic TrueType font family
Version: 20090710
Release: 1
Provides: scalable-font-ja
Provides: locale(ja)
Source0: VLGothic-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
This package provides "VLGothic" Japanese TrueType fonts which are
based on the M+ fonts and the Sazanami fonts.
Authors:
--------
Daisuke SUZUKI <vlfonts@vinelinux.org>
%prep
%setup -q -n VLGothic
%build
for i in README_J.mplus LICENSE_J.mplus
do
iconv -feucjp -tutf-8 < $i > $i.tmp
mv $i.tmp $i
done
%install
mkdir -p $RPM_BUILD_ROOT%{fontdir}
for i in *.ttf
do
install -m 644 $i $RPM_BUILD_ROOT%{fontdir}
done
%clean
rm -rf $RPM_BUILD_ROOT
%post
%run_suseconfig_fonts -c
%postun
%run_suseconfig_fonts -c
%files
%defattr(-,root,root)
%doc README* LICENSE* Changelog*
%{fontdir}
%changelog