File vlgothic.spec of Package vlgothic

#
# spec file for package vlgothic
#
# Copyright (c) 2011 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:           vlgothic
%define	fontdir     /usr/share/fonts/truetype
License:        Public Domain, Freeware
Group:          System/X11/Fonts
Url:            http://dicey.org/vlgothic/
Summary:        VL-Gothic TrueType font family
Version:        20110722
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.




%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
openSUSE Build Service is sponsored by