update spec

This commit is contained in:
jiaxiya 2019-12-07 00:33:35 +08:00
parent 01f994105c
commit a1e61ea8a3

View File

@ -1,27 +1,21 @@
%global fontname khmeros %global fontname khmeros
%global fontconf 65-0-%{fontname} %global conf_prefix 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.
Name: %{fontname}-fonts Name: %{fontname}-fonts
Version: 5.0 Version: 5.0
Release: 1 Release: 27
Summary: Khmer font set created by Danh Hong of the Cambodian Open Institute Summary: Khmer font set.
License: LGPLv2+ License: LGPLv2+
URL: http://www.khmeros.info/en/fonts URL: http://www.khmeros.info/en/fonts
Source0: All_KhmerOS_5.0.zip Source0: All_KhmerOS_5.0.zip
Source1: 65-0-khmeros-battambang.conf Source1: %{conf_prefix}-battambang.conf
Source2: 65-0-khmeros-bokor.conf Source2: %{conf_prefix}-bokor.conf
Source3: 65-0-khmeros-handwritten.conf Source3: %{conf_prefix}-handwritten.conf
Source4: 65-0-khmeros-base.conf Source4: %{conf_prefix}-base.conf
Source5: 65-0-khmeros-metal-chrieng.conf Source5: %{conf_prefix}-metal-chrieng.conf
Source6: 65-0-khmeros-muol.conf Source6: %{conf_prefix}-muol.conf
Source7: 65-0-khmeros-siemreap.conf Source7: %{conf_prefix}-siemreap.conf
Source8: License.txt Source8: License.txt
Source9: %{fontname}-base.metainfo.xml Source9: %{fontname}-base.metainfo.xml
Source10: %{fontname}-battambang.metainfo.xml Source10: %{fontname}-battambang.metainfo.xml
@ -36,10 +30,13 @@ BuildRequires: fontpackages-devel
Requires: fontpackages-filesystem Requires: fontpackages-filesystem
%description %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 %prep
%autosetup -n All_KhmerOS_5.0 %autosetup -n All_KhmerOS_5.0 -p1
install -p %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} . install -p %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} .
install -p %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} . install -p %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} .
@ -59,7 +56,6 @@ ln -s %{_fontconfig_templatedir}/$conffile \
%{buildroot}%{_fontconfig_confdir}/$conffile %{buildroot}%{_fontconfig_confdir}/$conffile
done done
# Add AppStream metadata
install -Dm 0644 -p %{SOURCE9} \ install -Dm 0644 -p %{SOURCE9} \
%{buildroot}%{_datadir}/appdata/%{fontname}-base.metainfo.xml %{buildroot}%{_datadir}/appdata/%{fontname}-base.metainfo.xml
install -Dm 0644 -p %{SOURCE10} \ install -Dm 0644 -p %{SOURCE10} \
@ -90,5 +86,5 @@ install -Dm 0644 -p %{SOURCE15} \
%{_fontdir}/*.ttf %{_fontdir}/*.ttf
%changelog %changelog
* Sat Nov 30 2019 openEuler Buildteam <buildteam@openeuler.org> - 5.0-1 * Sat Nov 30 2019 jiaxiya <jiaxiyajiaxiya@163.com> - 5.0-27
- Package init - Package init