File IPAPGothic.spec of Package IPAPGothic
#
# spec file for package IPAPGothic
#
# 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/
#
Url: http://ossipedia.ipa.go.jp/ipafont/
Name: IPAPGothic
BuildRequires: dos2unix
%define ttf_fontdir /usr/share/fonts/truetype
License: Other uncritical OpenSource License ; see IPA_Font_License_Agreement_v1.0.txt
Group: System/X11/Fonts
Summary: "Proportional Gothic" Japanese TrueType font made by IPA
Version: 003.02
Release: 1
Provides: scalable-font-ja
Provides: locale(ja)
Source0: ftp://ftp.ipa.go.jp/IPAfont00302.tar.bz2
Source1: ipa-hinting.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
"Proportional Gothic" Japanese TrueType font made by IPA
(Information-technology Promotion Agency).
%package -n IPAGothic
License: Other uncritical OpenSource License ; see IPA_Font_License_Agreement_v1.0.txt
Summary: "Gothic" Japanese TrueType font made by IPA
Group: System/X11/Fonts
Provides: scalable-font-ja
Provides: locale(ja)
%description -n IPAGothic
"Gothic" Japanese TrueType font made by IPA (Information-technology
Promotion Agency).
%package -n IPAMincho
License: Other uncritical OpenSource License ; see IPA_Font_License_Agreement_v1.0.txt
Summary: "Mincho" Japanese TrueType font made by IPA
Group: System/X11/Fonts
Provides: scalable-font-ja
Provides: locale(ja)
%description -n IPAMincho
"Mincho" Japanese TrueType font made by IPA (Information-technology
Promotion Agency).
%package -n IPAPMincho
License: Other uncritical OpenSource License ; see IPA_Font_License_Agreement_v1.0.txt
Summary: "Proportional Mincho" Japanese TrueType font made by IPA
Group: System/X11/Fonts
Provides: scalable-font-ja
Provides: locale(ja)
%description -n IPAPMincho
"Proportional Mincho" Japanese TrueType font made by IPA
(Information-technology Promotion Agency).
%prep
%setup -q -n IPAfont00302
%build
for i in *.txt
do
dos2unix $i
done
%install
mkdir -p $RPM_BUILD_ROOT%{ttf_fontdir}
for i in *.ttf
do
install -m 644 $i $RPM_BUILD_ROOT%{ttf_fontdir}
done
mkdir -p $RPM_BUILD_ROOT/etc/fonts/conf.avail
mkdir -p $RPM_BUILD_ROOT/etc/fonts/conf.d
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/fonts/conf.avail/21-ipa-hinting.conf
ln -s ../conf.avail/21-ipa-hinting.conf \
$RPM_BUILD_ROOT/etc/fonts/conf.d/21-ipa-hinting.conf
%post
%run_suseconfig_fonts -c
%postun
%run_suseconfig_fonts -c
%post -n IPAGothic
%run_suseconfig_fonts -c
%postun -n IPAGothic
%run_suseconfig_fonts -c
%post -n IPAMincho
%run_suseconfig_fonts -c
%postun -n IPAMincho
%run_suseconfig_fonts -c
%post -n IPAPMincho
%run_suseconfig_fonts -c
%postun -n IPAPMincho
%run_suseconfig_fonts -c
%files
%defattr(-,root,root)
%doc *.txt
%dir %{ttf_fontdir}/
%{ttf_fontdir}/ipagp.*
/etc/fonts
%files -n IPAGothic
%defattr(-,root,root)
%doc *.txt
%dir %{ttf_fontdir}/
%{ttf_fontdir}/ipag.*
/etc/fonts
%files -n IPAMincho
%defattr(-,root,root)
%doc *.txt
%dir %{ttf_fontdir}/
%{ttf_fontdir}/ipam.*
/etc/fonts
%files -n IPAPMincho
%defattr(-,root,root)
%doc *.txt
%dir %{ttf_fontdir}/
%{ttf_fontdir}/ipamp.*
/etc/fonts
%changelog