d8cc1e3
%global	priority	65-4
d8cc1e3
%global	fontname	motoya-lcedar
8b6c706
%global	archivedate	20110406
d8cc1e3
%global	fontconf	%{priority}-%{fontname}.conf
d8cc1e3
%global	download_root	http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=data/fonts/
d8cc1e3
d8cc1e3
Name:		%{fontname}-fonts
d8cc1e3
Version:	1.00
dbc39b6
Release:	0.6.%{archivedate}git%{?dist}
d8cc1e3
Summary:	Japanese Gothic-typeface TrueType fonts by MOTOYA Co,LTD
d8cc1e3
d8cc1e3
License:	ASL 2.0
d8cc1e3
Group:		User Interface/X
d8cc1e3
URL:		http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=data/fonts
d8cc1e3
Source0:	%{download_root}MTLc3m.ttf
d8cc1e3
Source1:	%{download_root}NOTICE
d8cc1e3
Source2:	%{download_root}README.txt
d8cc1e3
Source10:	%{fontname}-fontconfig.conf
d8cc1e3
d8cc1e3
BuildArch:	noarch
d8cc1e3
BuildRequires:	fontpackages-devel
d8cc1e3
Requires:	fontpackages-filesystem
d8cc1e3
d8cc1e3
%description
d8cc1e3
Motoya font was created in 1950s, it aims beauty and readability.
d8cc1e3
"MotoyaLCedar W3 mono", Gothic-typeface font was contributed by
d8cc1e3
MOTOYA Co,LTD. for Android platform.
d8cc1e3
d8cc1e3
%prep
d8cc1e3
%setup -q -c -T
d8cc1e3
install -m 0644 -p %{SOURCE1} notice.txt
d8cc1e3
install -m 0644 -p %{SOURCE2} readme.txt
d8cc1e3
d8cc1e3
d8cc1e3
%build
d8cc1e3
d8cc1e3
d8cc1e3
%install
d8cc1e3
rm -rf $RPM_BUILD_ROOT
d8cc1e3
install -m 0755 -d $RPM_BUILD_ROOT%{_fontdir}
d8cc1e3
install -m 0644 -p %{SOURCE0} $RPM_BUILD_ROOT%{_fontdir}
d8cc1e3
d8cc1e3
install -m 0755 -d	$RPM_BUILD_ROOT%{_fontconfig_templatedir}	\
d8cc1e3
			$RPM_BUILD_ROOT%{_fontconfig_confdir}
d8cc1e3
install -m 0644 -p %{SOURCE10} $RPM_BUILD_ROOT%{_fontconfig_templatedir}/%{fontconf}
d8cc1e3
d8cc1e3
ln -s %{_fontconfig_templatedir}/%{fontconf} $RPM_BUILD_ROOT%{_fontconfig_confdir}/%{fontconf}
d8cc1e3
d8cc1e3
d8cc1e3
%clean
d8cc1e3
rm -rf $RPM_BUILD_ROOT
d8cc1e3
d8cc1e3
d8cc1e3
%_font_pkg -f %{fontconf} *.ttf
d8cc1e3
%doc *.txt
d8cc1e3
d8cc1e3
d8cc1e3
%changelog
dbc39b6
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00-0.6.20110406git
dbc39b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
dbc39b6
8c6c906
* Wed Jul  4 2012 Akira TAGOH <tagoh@redhat.com> - 1.00-0.5.20110406git
8c6c906
- Correct fontconfig config file. (#837530)
8c6c906
77f318f
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00-0.4.20110406git
77f318f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
77f318f
8b6c706
* Fri Apr  8 2011 Akira TAGOH <tagoh@redhat.com> - 1.00-0.3.20110406git
8b6c706
- Updates from upstream git.
8b6c706
  https://review.source.android.com/#change,22161
8b6c706
caf3cf5
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00-0.2.20100928git
caf3cf5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
caf3cf5
d8cc1e3
* Tue Sep 28 2010 Akira TAGOH <tagoh@redhat.com> - 1.00-0.1.20100928git
d8cc1e3
- Initial package.
d8cc1e3