4618ee2
%global		priority	65-2
f2e5f64
%global		fontname	ipa-pmincho
f2e5f64
%global		fontconf	%{priority}-%{fontname}.conf
ec08125
%global		archiveversion	00303
f2e5f64
%global		archivename	ipamp%{archiveversion}
f2e5f64
f2e5f64
Name:		%{fontname}-fonts
ec08125
Version:	003.03
9a419c0
Release:	3%{?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
9a419c0
* Fri Aug 17 2012 Akira TAGOH <tagoh@redhat.com> - 003.03-3
9a419c0
- Enable autohinting explicitly since the own hinting seems broken.
9a419c0
eeb7b73
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 003.03-2
eeb7b73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
eeb7b73
ec08125
* Fri Feb 03 2012 Akira TAGOH <tagoh@redhat.com> - 003.03-1
ec08125
- New upstream release.
ec08125
7bbe89c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 003.02-6
7bbe89c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7bbe89c
60d392c
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 003.02-5
60d392c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
60d392c
4618ee2
* Tue May 25 2010 Akira TAGOH <tagoh@redhat.com> - 003.02-4
4618ee2
- Improve the fontconfig config file to match ja as well.
4618ee2
4618ee2
* Mon Apr 19 2010 Akira TAGOH <tagoh@redhat.com> - 003.02-3
4618ee2
- Get rid of compare="contains".
4618ee2
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