Add metainfo file to show this font in gnome-software

- Remove group tag
- Replace %define with %global
This commit is contained in:
Parag Nemade 2014-11-08 14:13:56 +05:30
parent 21100defd6
commit 0a58b95e35

View File

@ -1,22 +1,37 @@
%define fontname thai-scalable
%define fontconf 90-%{fontname}-synthetic
%global fontname thai-scalable
%global fontconf 90-%{fontname}-synthetic
%define archivename fonts-tlwg
%global archivename fonts-tlwg
%define common_desc \
%global common_desc \
%{archivename} provides a collection of free scalable Thai fonts.
Name: %{fontname}-fonts
Version: 0.5.0
Release: 8%{?dist}
Summary: Thai TrueType fonts
Group: User Interface/X
License: GPLv2+ and Bitstream Vera
URL: http://linux.thai.net/projects/thaifonts-scalable
Source0: http://linux.thai.net/pub/ThaiLinux/software/%{archivename}/%{archivename}-%{version}.tar.gz
Source1: %{fontconf}-garuda.conf
Source2: %{fontconf}-kinnari.conf
Source3: %{fontconf}-umpush.conf
#Appdata Metainfo
Source11: %{fontname}-garuda.metainfo.xml
Source12: %{fontname}-kinnari.metainfo.xml
Source13: %{fontname}-loma.metainfo.xml
Source14: %{fontname}-norasi.metainfo.xml
Source15: %{fontname}-purisa.metainfo.xml
Source16: %{fontname}-sawasdee.metainfo.xml
Source17: %{fontname}-tlwgmono.metainfo.xml
Source18: %{fontname}-tlwgtypewriter.metainfo.xml
Source19: %{fontname}-tlwgtpist.metainfo.xml
Source20: %{fontname}-tlwgtypo.metainfo.xml
Source21: %{fontname}-umpush.metainfo.xml
Source22: %{fontname}-waree.metainfo.xml
BuildArch: noarch
BuildRequires: fontforge >= 20071110
BuildRequires: fontpackages-devel
@ -43,7 +58,6 @@ This package consists of files used by other %{name} packages.
%package -n %{fontname}-garuda-fonts
Summary: Thai Garuda fonts
Group: User Interface/X
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-garuda-fonts
@ -52,11 +66,11 @@ Requires: %{name}-common = %{version}-%{release}
This package provides the Garuda family of Thai fonts.
%_font_pkg -n garuda -f %{fontconf}-garuda.conf Garuda*.ttf
%{_datadir}/appdata/%{fontname}-garuda.metainfo.xml
%package -n %{fontname}-kinnari-fonts
Summary: Thai Kinnari fonts
Group: User Interface/X
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-kinnari-fonts
@ -65,11 +79,11 @@ Requires: %{name}-common = %{version}-%{release}
This package provides the Kinnari family of Thai fonts.
%_font_pkg -n kinnari -f %{fontconf}-kinnari.conf Kinnari*.ttf
%{_datadir}/appdata/%{fontname}-kinnari.metainfo.xml
%package -n %{fontname}-loma-fonts
Summary: Thai Loma fonts
Group: User Interface/X
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-loma-fonts
@ -78,11 +92,11 @@ Requires: %{name}-common = %{version}-%{release}
This package provides the Loma family of Thai fonts.
%_font_pkg -n loma Loma*.ttf
%{_datadir}/appdata/%{fontname}-loma.metainfo.xml
%package -n %{fontname}-norasi-fonts
Summary: Thai Norasi fonts
Group: User Interface/X
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-norasi-fonts
@ -91,11 +105,11 @@ Requires: %{name}-common = %{version}-%{release}
This package provides the Norasi family of Thai fonts.
%_font_pkg -n norasi Norasi*.ttf
%{_datadir}/appdata/%{fontname}-norasi.metainfo.xml
%package -n %{fontname}-purisa-fonts
Summary: Thai Purisa fonts
Group: User Interface/X
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-purisa-fonts
@ -104,11 +118,11 @@ Requires: %{name}-common = %{version}-%{release}
This package provides the Purisa family of Thai fonts.
%_font_pkg -n purisa Purisa*.ttf
%{_datadir}/appdata/%{fontname}-purisa.metainfo.xml
%package -n %{fontname}-sawasdee-fonts
Summary: Thai Sawasdee fonts
Group: User Interface/X
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-sawasdee-fonts
@ -117,11 +131,11 @@ Requires: %{name}-common = %{version}-%{release}
This package provides the Sawasdee family of Thai fonts.
%_font_pkg -n sawasdee Sawasdee*.ttf
%{_datadir}/appdata/%{fontname}-sawasdee.metainfo.xml
%package -n %{fontname}-tlwgmono-fonts
Summary: Thai TlwgMono fonts
Group: User Interface/X
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-tlwgmono-fonts
@ -130,11 +144,11 @@ Requires: %{name}-common = %{version}-%{release}
This package provides the TlwgMono family of Thai fonts.
%_font_pkg -n tlwgmono TlwgMono*.ttf
%{_datadir}/appdata/%{fontname}-tlwgmono.metainfo.xml
%package -n %{fontname}-tlwgtypewriter-fonts
Summary: Thai TlwgTypewriter fonts
Group: User Interface/X
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-tlwgtypewriter-fonts
@ -143,11 +157,11 @@ Requires: %{name}-common = %{version}-%{release}
This package provides the TlwgTypewriter family of Thai fonts.
%_font_pkg -n tlwgtypewriter TlwgTypewriter*.ttf
%{_datadir}/appdata/%{fontname}-tlwgtypewriter.metainfo.xml
%package -n %{fontname}-tlwgtypist-fonts
Summary: Thai TlwgTypist fonts
Group: User Interface/X
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-tlwgtypist-fonts
@ -156,11 +170,11 @@ Requires: %{name}-common = %{version}-%{release}
This package provides the TlwgTypist family of Thai fonts.
%_font_pkg -n tlwgtypist TlwgTypist*.ttf
%{_datadir}/appdata/%{fontname}-tlwgtpist.metainfo.xml
%package -n %{fontname}-tlwgtypo-fonts
Summary: Thai TlwgTypo fonts
Group: User Interface/X
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-tlwgtypo-fonts
@ -169,11 +183,11 @@ Requires: %{name}-common = %{version}-%{release}
This package provides the TlwgTypo family of Thai fonts.
%_font_pkg -n tlwgtypo TlwgTypo*.ttf
%{_datadir}/appdata/%{fontname}-tlwgtypo.metainfo.xml
%package -n %{fontname}-umpush-fonts
Summary: Thai Umpush fonts
Group: User Interface/X
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-umpush-fonts
@ -182,11 +196,11 @@ Requires: %{name}-common = %{version}-%{release}
This package provides the Umpush family of Thai fonts.
%_font_pkg -n umpush -f %{fontconf}-umpush.conf Umpush*.ttf
%{_datadir}/appdata/%{fontname}-umpush.metainfo.xml
%package -n %{fontname}-waree-fonts
Summary: Thai Waree fonts
Group: User Interface/X
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-waree-fonts
@ -195,6 +209,7 @@ Requires: %{name}-common = %{version}-%{release}
This package provides the Waree family of Thai fonts.
%_font_pkg -n waree Waree*.ttf
%{_datadir}/appdata/%{fontname}-waree.metainfo.xml
%prep
@ -231,12 +246,42 @@ for fconf in %{fontconf}-garuda.conf \
%{buildroot}%{_fontconfig_confdir}/$fconf
done
# Add AppStream metadata
install -Dm 0644 -p %{SOURCE11} \
%{buildroot}%{_datadir}/appdata/%{fontname}-garuda.metainfo.xml
install -Dm 0644 -p %{SOURCE12} \
%{buildroot}%{_datadir}/appdata/%{fontname}-kinnari.metainfo.xml
install -Dm 0644 -p %{SOURCE13} \
%{buildroot}%{_datadir}/appdata/%{fontname}-loma.metainfo.xml
install -Dm 0644 -p %{SOURCE14} \
%{buildroot}%{_datadir}/appdata/%{fontname}-norasi.metainfo.xml
install -Dm 0644 -p %{SOURCE15} \
%{buildroot}%{_datadir}/appdata/%{fontname}-purisa.metainfo.xml
install -Dm 0644 -p %{SOURCE16} \
%{buildroot}%{_datadir}/appdata/%{fontname}-sawasdee.metainfo.xml
install -Dm 0644 -p %{SOURCE17} \
%{buildroot}%{_datadir}/appdata/%{fontname}-tlwgmono.metainfo.xml
install -Dm 0644 -p %{SOURCE18} \
%{buildroot}%{_datadir}/appdata/%{fontname}-tlwgtypewriter.metainfo.xml
install -Dm 0644 -p %{SOURCE19} \
%{buildroot}%{_datadir}/appdata/%{fontname}-tlwgtpist.metainfo.xml
install -Dm 0644 -p %{SOURCE20} \
%{buildroot}%{_datadir}/appdata/%{fontname}-tlwgtypo.metainfo.xml
install -Dm 0644 -p %{SOURCE21} \
%{buildroot}%{_datadir}/appdata/%{fontname}-umpush.metainfo.xml
install -Dm 0644 -p %{SOURCE22} \
%{buildroot}%{_datadir}/appdata/%{fontname}-waree.metainfo.xml
%files common
%doc AUTHORS README COPYING NEWS
%changelog
* Sat Nov 08 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.5.0-9
- Add metainfo file to show this font in gnome-software
- Remove group tag
- Replace %%define with %%global
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild