%global priority 65-4 %global fontname motoya-lcedar %global archivename MotoyaLCedar %global archivedate 20100928 %global fontconf %{priority}-%{fontname}.conf %global download_root http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=data/fonts/ Name: %{fontname}-fonts Version: 1.00 Release: 0.1.%{archivedate}git%{?dist} Summary: Japanese Gothic-typeface TrueType fonts by MOTOYA Co,LTD License: ASL 2.0 Group: User Interface/X URL: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=data/fonts Source0: %{download_root}MTLc3m.ttf Source1: %{download_root}NOTICE Source2: %{download_root}README.txt Source10: %{fontname}-fontconfig.conf BuildArch: noarch BuildRequires: fontpackages-devel Requires: fontpackages-filesystem %description Motoya font was created in 1950s, it aims beauty and readability. "MotoyaLCedar W3 mono", Gothic-typeface font was contributed by MOTOYA Co,LTD. for Android platform. %prep %setup -q -c -T install -m 0644 -p %{SOURCE1} notice.txt install -m 0644 -p %{SOURCE2} readme.txt %build %install rm -rf $RPM_BUILD_ROOT install -m 0755 -d $RPM_BUILD_ROOT%{_fontdir} install -m 0644 -p %{SOURCE0} $RPM_BUILD_ROOT%{_fontdir} install -m 0755 -d $RPM_BUILD_ROOT%{_fontconfig_templatedir} \ $RPM_BUILD_ROOT%{_fontconfig_confdir} install -m 0644 -p %{SOURCE10} $RPM_BUILD_ROOT%{_fontconfig_templatedir}/%{fontconf} ln -s %{_fontconfig_templatedir}/%{fontconf} $RPM_BUILD_ROOT%{_fontconfig_confdir}/%{fontconf} %clean rm -rf $RPM_BUILD_ROOT %_font_pkg -f %{fontconf} *.ttf %doc *.txt %changelog * Tue Sep 28 2010 Akira TAGOH - 1.00-0.1.20100928git - Initial package.