f2e5f64
%global		priority	65
f2e5f64
%global		fontname	ipa-pmincho
f2e5f64
%global		fontconf	%{priority}-%{fontname}.conf
1920371
%global		archiveversion	00302
f2e5f64
%global		archivename	ipamp%{archiveversion}
f2e5f64
f2e5f64
Name:		%{fontname}-fonts
1920371
Version:	003.02
4c55e6b
Release:	2%{?dist}
f2e5f64
Summary:	Japanese Proportional Mincho-typeface OpenType font by IPA
f2e5f64
f2e5f64
Group:		User Interface/X
f2e5f64
License:	IPA
f2e5f64
URL:		http://ossipedia.ipa.go.jp/ipafont/
f2e5f64
Source0:	http://info.openlab.ipa.go.jp/ipafont/fontdata/%{archivename}.zip
f2e5f64
Source1:	%{name}-fontconfig.conf
f2e5f64
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
f2e5f64
f2e5f64
BuildArch:	noarch
f2e5f64
BuildRequires:	fontpackages-devel
f2e5f64
Requires:	fontpackages-filesystem
f2e5f64
f2e5f64
%description
f2e5f64
IPA Font is a Japanese OpenType fonts that is JIS X 0213:2004
f2e5f64
compliant, provided by Information-technology Promotion Agency, Japan.
f2e5f64
f2e5f64
This package contains Proportional Mincho style font.
f2e5f64
f2e5f64
%prep
f2e5f64
%setup -q -n %{archivename}
f2e5f64
f2e5f64
f2e5f64
%build
f2e5f64
f2e5f64
%install
f2e5f64
rm -rf $RPM_BUILD_ROOT
f2e5f64
f2e5f64
install -m 0755 -d $RPM_BUILD_ROOT%{_fontdir}
1920371
install -m 0644 -p *.ttf $RPM_BUILD_ROOT%{_fontdir}
f2e5f64
f2e5f64
install -m 0755 -d	$RPM_BUILD_ROOT%{_fontconfig_templatedir}	\
f2e5f64
			$RPM_BUILD_ROOT%{_fontconfig_confdir}
f2e5f64
install -m 0644 -p	%{SOURCE1}	\
f2e5f64
			$RPM_BUILD_ROOT%{_fontconfig_templatedir}/%{fontconf}
f2e5f64
f2e5f64
ln -s	%{_fontconfig_templatedir}/%{fontconf}	\
f2e5f64
	$RPM_BUILD_ROOT%{_fontconfig_confdir}/%{fontconf}
f2e5f64
f2e5f64
%clean
f2e5f64
rm -rf $RPM_BUILD_ROOT
f2e5f64
f2e5f64
1920371
%_font_pkg -f %{fontconf} *.ttf
0b36de3
f2e5f64
%doc Readme_%{archivename}.txt IPA_Font_License_Agreement_v1.0.txt
f2e5f64
f2e5f64
f2e5f64
%changelog
4c55e6b
* Mon Apr 19 2010 Akira TAGOH <tagoh@redhat.com> - 003.02-2
4c55e6b
- Get rid of binding="same" from the fontconfig config file. (#578025)
4c55e6b
1920371
* Tue Feb 16 2010 Akira TAGOH <tagoh@redhat.com> - 003.02-1
1920371
- New upstream release.
1920371
c01cec8
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 003.01-4
c01cec8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c01cec8
7133e06
* Fri Jun  5 2009 Akira TAGOH <tagoh@redhat.com> - 003.01-3
7133e06
- Disable hinting.
7133e06
f2e5f64
* Wed Apr 22 2009 Akira TAGOH <tagoh@redhat.com> - 003.01-2
f2e5f64
- Correct the source URL.
f2e5f64
f2e5f64
* Tue Apr 21 2009 Akira TAGOH <tagoh@redhat.com> - 003.01-1
f2e5f64
- Initial package.
f2e5f64