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