Akira TAGOH 0902de
%global	priority	70
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
6cd60b
Release:	0.21.%{archivedate}git%{?dist}
d8cc1e
Summary:	Japanese Gothic-typeface TrueType fonts by MOTOYA Co,LTD
d8cc1e
d8cc1e
License:	ASL 2.0
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
6bcaef
Source11:       %{fontname}.metainfo.xml
d8cc1e
d8cc1e
BuildArch:	noarch
Akira TAGOH 18330a
BuildRequires:	fontpackages-devel libappstream-glib
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
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
6bcaef
# Add AppStream metadata
6bcaef
install -Dm 0644 -p %{SOURCE11} \
Akira TAGOH 18330a
        %{buildroot}%{_metainfodir}/%{fontname}.metainfo.xml
Akira TAGOH 18330a
Akira TAGOH 18330a
%check
Akira TAGOH 18330a
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml
d8cc1e
d8cc1e
%_font_pkg -f %{fontconf} *.ttf
Akira TAGOH 0902de
%doc readme.txt
Akira TAGOH 0902de
%license notice.txt
Akira TAGOH 18330a
%{_metainfodir}/%{fontname}.metainfo.xml
d8cc1e
d8cc1e
d8cc1e
%changelog
6cd60b
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.00-0.21.20110406git
6cd60b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
6cd60b
Akira TAGOH 18330a
* Wed Jun  5 2019 Akira TAGOH <tagoh@redhat.com> - 1.00-0.20.20110406git
Akira TAGOH 18330a
- Install metainfo files under %%{_metainfodir}.
Akira TAGOH 18330a
Akira TAGOH 42953b
* Fri May 17 2019 Akira TAGOH <tagoh@redhat.com> - 1.00-0.19.20110406git
Akira TAGOH 42953b
- Fix a typo in conf.
Akira TAGOH 42953b
137a7f
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.00-0.18.20110406git
137a7f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
137a7f
d328b1
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.00-0.17.20110406git
d328b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d328b1
be2b58
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.00-0.16.20110406git
be2b58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
be2b58
Akira TAGOH 0902de
* Mon Jan 22 2018 Akira TAGOH <tagoh@redhat.com> - 1.00-0.14.20110406git
Akira TAGOH 0902de
- Update the priority to change the default font to Noto.
Akira TAGOH 0902de
05c98e
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.00-0.14.20110406git
05c98e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
05c98e
8af1a7
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.00-0.13.20110406git
8af1a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8af1a7
f8aafe
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.00-0.12.20110406git
f8aafe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f8aafe
1a525b
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00-0.11.20110406git
1a525b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1a525b
6bcaef
* Sun Nov 09 2014 Parag Nemade <pnemade at="" redhat="" dot="" com=""> - 1.00-0.10.20110406git
6bcaef
- Add metainfo file to show this font in gnome-software
6bcaef
- Remove %%clean section which is optional now
6bcaef
- Remove removal of buildroot in %%install
6bcaef
- Remove group tag
6bcaef
bb66a1
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00-0.9.20110406git
bb66a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
bb66a1
b280ab
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00-0.8.20110406git
b280ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b280ab
f61ca5
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00-0.7.20110406git
f61ca5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f61ca5
dbc39b
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00-0.6.20110406git
dbc39b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
dbc39b
8c6c90
* Wed Jul  4 2012 Akira TAGOH <tagoh@redhat.com> - 1.00-0.5.20110406git
8c6c90
- Correct fontconfig config file. (#837530)
8c6c90
77f318
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00-0.4.20110406git
77f318
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
77f318
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