File vlgothic-fonts.spec of Package vlgothic-fonts

#
# spec file for package vlgothic-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:           vlgothic-fonts
Version:        20120325
Release:        0
Summary:        VL-Gothic TrueType font family
License:        BSD-3-Clause and SUSE-mplus
Group:          System/X11/Fonts
Url:            http://dicey.org/vlgothic/
Source0:        VLGothic-%{version}.tar.bz2
BuildRequires:  fontpackages-devel
Provides:       scalable-font-ja
Provides:       vlgothic = %{version}
Provides:       locale(ja)
Obsoletes:      vlgothic <= 20110722
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
%reconfigure_fonts_prereq

%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 %{buildroot}%{_ttfontsdir}
for i in *.ttf
do
    install -m 644 $i %{buildroot}%{_ttfontsdir}
done

%reconfigure_fonts_scriptlets -c

%files
%defattr(-,root,root)
%doc README* LICENSE* Changelog*
%{_ttfontsdir}

%changelog
openSUSE Build Service is sponsored by