From a1e61ea8a3ba0074c3eb2024b4cdf54880211447 Mon Sep 17 00:00:00 2001 From: jiaxiya Date: Sat, 7 Dec 2019 00:33:35 +0800 Subject: [PATCH] update spec --- khmeros-fonts.spec | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/khmeros-fonts.spec b/khmeros-fonts.spec index 461ad68..55e344e 100644 --- a/khmeros-fonts.spec +++ b/khmeros-fonts.spec @@ -1,27 +1,21 @@ %global fontname khmeros -%global fontconf 65-0-%{fontname} -%global common_desc \ -The Khmer OS fonts include Khmer and Latin alphabets, and they have equivalent \ -sizes for Khmer and English alphabets, so that when texts mix both it is not \ -necessary to have different point sizes for the text in each language. \ -\ -They were created by Danh Hong of the Cambodian Open Institute. +%global conf_prefix 65-0-%{fontname} Name: %{fontname}-fonts Version: 5.0 -Release: 1 -Summary: Khmer font set created by Danh Hong of the Cambodian Open Institute +Release: 27 +Summary: Khmer font set. License: LGPLv2+ URL: http://www.khmeros.info/en/fonts Source0: All_KhmerOS_5.0.zip -Source1: 65-0-khmeros-battambang.conf -Source2: 65-0-khmeros-bokor.conf -Source3: 65-0-khmeros-handwritten.conf -Source4: 65-0-khmeros-base.conf -Source5: 65-0-khmeros-metal-chrieng.conf -Source6: 65-0-khmeros-muol.conf -Source7: 65-0-khmeros-siemreap.conf +Source1: %{conf_prefix}-battambang.conf +Source2: %{conf_prefix}-bokor.conf +Source3: %{conf_prefix}-handwritten.conf +Source4: %{conf_prefix}-base.conf +Source5: %{conf_prefix}-metal-chrieng.conf +Source6: %{conf_prefix}-muol.conf +Source7: %{conf_prefix}-siemreap.conf Source8: License.txt Source9: %{fontname}-base.metainfo.xml Source10: %{fontname}-battambang.metainfo.xml @@ -36,10 +30,13 @@ BuildRequires: fontpackages-devel Requires: fontpackages-filesystem %description -%common_desc +All font include Khmer and Latin alphabets, and they have equivalent sizes for +Khmer and English alphabets, so that when texts mix both it is not necessary to +have different size points of the text for each language. This makes +localization possible. %prep -%autosetup -n All_KhmerOS_5.0 +%autosetup -n All_KhmerOS_5.0 -p1 install -p %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} . install -p %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} . @@ -59,7 +56,6 @@ ln -s %{_fontconfig_templatedir}/$conffile \ %{buildroot}%{_fontconfig_confdir}/$conffile done -# Add AppStream metadata install -Dm 0644 -p %{SOURCE9} \ %{buildroot}%{_datadir}/appdata/%{fontname}-base.metainfo.xml install -Dm 0644 -p %{SOURCE10} \ @@ -90,5 +86,5 @@ install -Dm 0644 -p %{SOURCE15} \ %{_fontdir}/*.ttf %changelog -* Sat Nov 30 2019 openEuler Buildteam - 5.0-1 +* Sat Nov 30 2019 jiaxiya - 5.0-27 - Package init