Add metainfo file to show this font in gnome-software
- Remove %clean section which is optional now - Remove removal of buildroot in %install - Remove group tag
This commit is contained in:
parent
c0806d92b9
commit
2e749cde2d
@ -13,10 +13,9 @@ Pascal Zoghbi of 29ArabicLetters.
|
|||||||
Name: %{fontname}-fonts
|
Name: %{fontname}-fonts
|
||||||
# No sane versionning upstream, use git clone timestamp
|
# No sane versionning upstream, use git clone timestamp
|
||||||
Version: 20120715
|
Version: 20120715
|
||||||
Release: 7%{?dist}
|
Release: 8%{?dist}
|
||||||
Summary: General-purpose fonts released by Google as part of Android
|
Summary: General-purpose fonts released by Google as part of Android
|
||||||
|
|
||||||
Group: User Interface/X
|
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: https://android.googlesource.com/
|
URL: https://android.googlesource.com/
|
||||||
Source0: %{archivename}.tar.xz
|
Source0: %{archivename}.tar.xz
|
||||||
@ -26,7 +25,10 @@ Source10: %{name}-sans-fontconfig.conf
|
|||||||
Source11: %{name}-sans-mono-fontconfig.conf
|
Source11: %{name}-sans-mono-fontconfig.conf
|
||||||
Source12: %{name}-serif-fontconfig.conf
|
Source12: %{name}-serif-fontconfig.conf
|
||||||
Source13: %{name}-kufi-fontconfig.conf
|
Source13: %{name}-kufi-fontconfig.conf
|
||||||
|
Source14: %{fontname}-sans.metainfo.xml
|
||||||
|
Source15: %{fontname}-sans-mono.metainfo.xml
|
||||||
|
Source16: %{fontname}-serif.metainfo.xml
|
||||||
|
Source17: %{fontname}-kufi.metainfo.xml
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: fontpackages-devel
|
BuildRequires: fontpackages-devel
|
||||||
@ -49,6 +51,7 @@ electronic communication.
|
|||||||
%_font_pkg -n sans -f ??-%{fontname}-sans.conf DroidSans*ttf
|
%_font_pkg -n sans -f ??-%{fontname}-sans.conf DroidSans*ttf
|
||||||
%exclude %{_fontdir}/DroidSansMono*ttf
|
%exclude %{_fontdir}/DroidSansMono*ttf
|
||||||
%doc README.txt NOTICE
|
%doc README.txt NOTICE
|
||||||
|
%{_datadir}/appdata/%{fontname}-sans.metainfo.xml
|
||||||
|
|
||||||
%package -n %{fontname}-sans-mono-fonts
|
%package -n %{fontname}-sans-mono-fonts
|
||||||
Summary: A humanist monospace sans serif typeface
|
Summary: A humanist monospace sans serif typeface
|
||||||
@ -62,6 +65,7 @@ interfaces and electronic communication.
|
|||||||
|
|
||||||
%_font_pkg -n sans-mono -f ??-%{fontname}-sans-mono.conf DroidSansMono.ttf
|
%_font_pkg -n sans-mono -f ??-%{fontname}-sans-mono.conf DroidSansMono.ttf
|
||||||
%doc README.txt NOTICE
|
%doc README.txt NOTICE
|
||||||
|
%{_datadir}/appdata/%{fontname}-sans-mono.metainfo.xml
|
||||||
|
|
||||||
%package -n %{fontname}-serif-fonts
|
%package -n %{fontname}-serif-fonts
|
||||||
Summary: A contemporary serif typeface
|
Summary: A contemporary serif typeface
|
||||||
@ -81,6 +85,7 @@ Droid Naskh name.
|
|||||||
|
|
||||||
%_font_pkg -n serif -f ??-%{fontname}-serif.conf DroidSerif*ttf DroidNaskh*ttf
|
%_font_pkg -n serif -f ??-%{fontname}-serif.conf DroidSerif*ttf DroidNaskh*ttf
|
||||||
%doc README.txt NOTICE
|
%doc README.txt NOTICE
|
||||||
|
%{_datadir}/appdata/%{fontname}-serif.metainfo.xml
|
||||||
|
|
||||||
%package -n %{fontname}-kufi-fonts
|
%package -n %{fontname}-kufi-fonts
|
||||||
Summary: A kufi Arabic titling typeface designed to complement Droid Sans
|
Summary: A kufi Arabic titling typeface designed to complement Droid Sans
|
||||||
@ -96,6 +101,7 @@ Steve Matteson of Ascender with consulting by Pascal Zoghbi of 29ArabicLetters
|
|||||||
to finalize the font family.
|
to finalize the font family.
|
||||||
|
|
||||||
%_font_pkg -n kufi -f ??-%{fontname}-kufi.conf DroidKufi*ttf
|
%_font_pkg -n kufi -f ??-%{fontname}-kufi.conf DroidKufi*ttf
|
||||||
|
%{_datadir}/appdata/%{fontname}-kufi.metainfo.xml
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{archivename}
|
%setup -q -n %{archivename}
|
||||||
@ -105,8 +111,6 @@ to finalize the font family.
|
|||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -fr %{buildroot}
|
|
||||||
|
|
||||||
install -m 0755 -d %{buildroot}%{_fontdir}
|
install -m 0755 -d %{buildroot}%{_fontdir}
|
||||||
|
|
||||||
install -m 0644 -p $(ls *ttf | grep -v DroidSansFallbackFull\
|
install -m 0644 -p $(ls *ttf | grep -v DroidSansFallbackFull\
|
||||||
@ -134,12 +138,23 @@ for fontconf in 65-%{fontname}-sans.conf \
|
|||||||
%{buildroot}%{_fontconfig_confdir}/$fontconf
|
%{buildroot}%{_fontconfig_confdir}/$fontconf
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Add AppStream metadata
|
||||||
%clean
|
install -Dm 0644 -p %{SOURCE14} \
|
||||||
rm -fr %{buildroot}
|
%{buildroot}%{_datadir}/appdata/%{fontname}-sans.metainfo.xml
|
||||||
|
install -Dm 0644 -p %{SOURCE15} \
|
||||||
|
%{buildroot}%{_datadir}/appdata/%{fontname}-sans-mono.metainfo.xml
|
||||||
|
install -Dm 0644 -p %{SOURCE16} \
|
||||||
|
%{buildroot}%{_datadir}/appdata/%{fontname}-serif.metainfo.xml
|
||||||
|
install -Dm 0644 -p %{SOURCE17} \
|
||||||
|
%{buildroot}%{_datadir}/appdata/%{fontname}-kufi.metainfo.xml
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Nov 08 2014 Parag Nemade <pnemade AT redhat DOT com> - 20120715-8
|
||||||
|
- Add metainfo file to show this font in gnome-software
|
||||||
|
- Remove %%clean section which is optional now
|
||||||
|
- Remove removal of buildroot in %%install
|
||||||
|
- Remove group tag
|
||||||
|
|
||||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20120715-7
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20120715-7
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||||
|
|
||||||
@ -187,7 +202,7 @@ rm -fr %{buildroot}
|
|||||||
- 20090906-3
|
- 20090906-3
|
||||||
— more Behdad-suggested fontconfig tweaks
|
— more Behdad-suggested fontconfig tweaks
|
||||||
|
|
||||||
* Sun Sep 7 2009 Nicolas Mailhot <nicolas.mailhot at laposte.net>
|
* Mon Sep 7 2009 Nicolas Mailhot <nicolas.mailhot at laposte.net>
|
||||||
- 20090906-2
|
- 20090906-2
|
||||||
— first-level CJK fixes (as suggested by Behdad in bug #517789, complete fix
|
— first-level CJK fixes (as suggested by Behdad in bug #517789, complete fix
|
||||||
needs the rpm changes traced in bug #521697)
|
needs the rpm changes traced in bug #521697)
|
||||||
|
Loading…
Reference in New Issue
Block a user